Semgrep MCP (official)
Score = points from our five tests (install, handshake, maintenance, docs, license). Not a quality or security rating. Methodology
- Install20/20
- Handshake30/30
- Maintenance25/25
- Docs10/15
- License3/10
Tested PyPI semgrep 1.185.0 (LGPL-2.1-or-later; repo semgrep/semgrep, 17,601 GitHub stars when checked) through `semgrep mcp`, the command Semgrep's docs give for local scanning; the server reports itself as Semgrep 1.29.0. Stdio, 7 tools, no account. Real calls: semgrep_scan_with_custom_rule ran our one-line no-eval rule over a small inline Express snippet and returned the finding on line 3; get_abstract_syntax_tree returned the AST for a Python expression. get_supported_languages is counted as a self-check. semgrep_findings and the supply-chain scan need a Semgrep account or token and were not called. On start it printed 'Tracing initialized' with an app.datadoghq.com trace link, so tracing appears to be on by default; we did not inspect its network traffic.
Tool-call test (2026-11-11, direct MCP stdio client, no LLM): pass. 2 of 2 function calls passed (plus 1 self-check). Account tools (findings, supply chain) not tested. Evidence: local test run, Nov 11, 2026.
Transport (tested 2026-11-11): stdio
Token cost (estimate): approx. 1506 tokens, cl100k estimate (7 tools, measured 2026-11-11, version 1.185.0). This is an estimate from our testing of the tool names, descriptions and input schemas, counted with cl100k_base.
Permissions: 4 read, 1 write (state-changing), 2 unclassified · Auth: none · Rate limit: unknown · Pricing unit: unknown
Auth: none. Rate limit: unknown. Pricing unit: unknown.
get_abstract_syntax_tree— readget_supported_languages— readsemgrep_findings— unclassifiedsemgrep_rule_schema— unclassifiedsemgrep_scan— readsemgrep_scan_supply_chain— write (state-changing)semgrep_scan_with_custom_rule— read
handshake and tools listed without a recorded key or OAuth
Score 88/100 · Tools 7 · Token cost approx. 1,506 tokens · Compare · Last tested 2026-11-11 · Version tested 1.185.0 · Package semgrep · Repo semgrep/semgrep
Summary: Semgrep MCP (official) completed an MCP handshake without credentials and exposed 7 tools.
Evidence summary
- Handshake
- pass
- Tools listed
- 7
- Context cost
- approx. 1506 tokens, cl100k estimate (7 tools, measured 2026-11-11, version 1.185.0; an estimate) ranking · add up your servers' context cost
- API key
- No key needed for the tools we called
- Tested
- 2026-11-11
Test results
| Test | Result | Points | Evidence |
|---|---|---|---|
| install | pass | 20 | uv pip install semgrep (Python venv, Linux) succeeded in 1s. |
| handshake | pass | 30 | MCP initialize + tools/list over stdio succeeded with no credentials; 7 tools listed in 3.7s. |
| maintenance | pass | 25 | Repo pushed 0 days before test; 17,601 GitHub stars. |
| docs | partial | 10 | README over 3,000 chars; install instructions present. Check of the package's own README (PyPI long_description (package README)). |
| license | partial | 3 | License not machine-detected as OSI (LGPL-2.1-or-later). |
Local-model readiness
Token cost (estimate): approx. 1506 tokens, cl100k estimate for 7 tools · about 18% of an 8k context. This is an estimate from our testing (counted with cl100k_base).
Small-model friendly (schema heuristic, not a model result): unknown.
Not tested
Small-model task runs: Not yet tested.
What we tested and what we didn't
Tested on 2026-11-11
- Install from the registry
- We connected with no credentials and asked for its tool list: it listed 7 tools (Method details: MCP
initializethentools/list) - Maintenance signals (last push, archived/deprecated status)
- Docs (README length, install and config example)
- License (OSI-approved or not)
- Token cost (estimate)
Not tested
- Security: not audited (no code review, no permission or data-flow analysis)
- Real tasks (no functional task runs yet)
- Behaviour with real credentials or a real account
- Performance, rate limits or load
- Correctness of results beyond the listed tasks
Methodology: how we test. A high score means it installs and responds, not that giving it access to your data carries no risk.
Known security issues
Checked on 2026-11-11 for version 1.185.0 against OSV, GitHub advisories, GitHub repository advisories. Scope: the package itself; dependencies not scanned.
No published advisories found in OSV and GitHub advisories for semgrep 1.185.0 as of 2026-11-11. This is not a security audit.
Monthly roundup: MCP security issues, October 2026.
Tool list changes
Baseline recorded from the 2026-11-11 test run; changes appear after the next test.
Snapshot hash (fingerprint of the tool list)
1268848e0c8c: SHA-256 of the canonical tool names, descriptions and input schemas. If it changes, the tool list changed.
Raw test record (JSON)
{
"name": "semgrep",
"version": "1.185.0",
"registry": "pypi",
"status": "working",
"tested": "2026-11-11",
"tools_count": 7,
"deprecated": false,
"archived": false,
"tests": {
"install": [
"pass",
20,
"`uv pip install semgrep` (Python venv, Linux) succeeded in 1s."
],
"handshake": [
"pass",
30,
"MCP `initialize` + `tools/list` over stdio succeeded with no credentials; 7 tools listed in 3.7s."
],
"maintenance": [
"pass",
25,
"Repo pushed 0 days before test; 17,601 GitHub stars."
],
"docs": [
"partial",
10,
"README over 3,000 chars; install instructions present. Check of the package's own README (PyPI long_description (package README))."
],
"license": [
"partial",
3,
"License not machine-detected as OSI (LGPL-2.1-or-later)."
]
}
}Install
uvx semgrep mcp
Pin the version we tested
uvx semgrep==1.185.0 mcp
pip install semgrep==1.185.0
tested 2026-11-11. Newer versions may differ and were not tested by us.
{
"mcpServers": {
"semgrep-mcp": {
"command": "uvx",
"args": [
"semgrep==1.185.0",
"mcp"
]
}
}
}Tools listed
get_abstract_syntax_tree, get_supported_languages, semgrep_findings, semgrep_rule_schema, semgrep_scan, semgrep_scan_supply_chain, semgrep_scan_with_custom_rule
Tool history: captured Nov 11, 2026. All tool history.
Quick config
{
"mcpServers": {
"semgrep-mcp": {
"command": "uvx",
"args": [
"semgrep",
"mcp"
]
}
}
}Add to config Opens the config generator with this server selected.
Setup
- Install. Run
uv pip install semgrep(Python venv). This is the exact command we ran on 2026-11-11. - Configure. Add the mcpServers entry below to your MCP client config.
- Verify. Restart the client and check that tools/list returns tools (7 in our test).
{
"mcpServers": {
"semgrep-mcp": {
"command": "uvx",
"args": [
"semgrep",
"mcp"
]
}
}
}Test history
- 2026-11-11: New
FAQ
Is Semgrep MCP deprecated?
No. semgrep was not deprecated or archived when we last tested it on 2026-11-11.
What replaces Semgrep MCP?
Nothing; Semgrep MCP (official) is not deprecated as of 2026-11-11.
Does Semgrep MCP need an API key?
No. It completed an MCP handshake with no credentials and listed 7 tools.
Embed the badge
Every tested server gets a free embeddable badge. It shows the current score and test date and expires after 90 days. Testing is free; payment never changes a score.