MCP server · Org-owned · Audited from source
Semgrep MCP server
by semgrep/mcpMIT licenceAudited 28 Sep 2026 · source 7d30c3bd62af
Is it safe? No — BLOCK, grade D (69/100). It exposes 1 tool: 1 read, 0 write and 0 destructive. The audit recorded 9 findings (0 critical, 2 high, 1 medium, 6 low). Maintainer's description: A MCP server for using Semgrep to scan code for security vulnerabilities.
Cite
Cite this page
ModelsAtlas. “Semgrep MCP server (semgrep/mcp)”. Retrieved 28 Sep 2026. https://modelsatlas.com/mcp/semgrep/semgrep-1
Why this is BLOCK. The audit found 0 critical and 2 high findings; the most severe is Code injection at src/semgrep_mcp/utilities/tracing.py:65. Each finding is listed below with its file and line.
Why this page is still public. People search for this server by name. Hiding it would leave them with the README's word alone; here they see what the code does. We list it so you can decide, and we do not show connect commands for BLOCK servers.
2 MCP servers are called Semgrep. You are viewing semgrep/mcp. Compare all 2 →
- semgrep/mcp Org-owned★ 687✕BLOCK
- szowesgad/mcp-server-semgrep Org-owned★ 28✕BLOCK
Trust audit
Audit 0.4.1 · full source read 28 Sep 2026
9 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared3 observations
- NetworkDeclared2 observations
- ShellDeclared2 observations
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Findings (9)
Sorted by severity
HIGHCode injectioncode.deserialize · src/semgrep_mcp/utilities/tracing.py:65
yaml_contents = yaml.load(fd)
- Why
- deserialises untrusted bytes into live objects
- Fix
- use json or yaml.safe_load
HIGHCode injectioncode.deserialize · src/semgrep_mcp/utilities/utils.py:52
settings = yaml.load(f)
- Why
- deserialises untrusted bytes into live objects
- Fix
- use json or yaml.safe_load
MEDIUMInformation disclosuredisclose.log_secret · scripts/configure_semgrep_mcp.py:136
print(f" SEMGREP_APP_TOKEN: {'*' * min(8, len(token))}")- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/unit/test_safe_join.py:40
safe_join(base_dir, "subdir/../../file.txt")
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/unit/test_safe_join.py:48
safe_join(base_dir, "./subdir/../../../file.txt")
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:254
By default, the server listens on [127.0.0.1:8000/mcp](https://127.0.0.1/mcp) for client connections. To change any of this, set [FASTMCP\_\*](https://github.com/modelcontextprotocol/python-sdk/blob/m
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:278
By default, the server listens on [127.0.0.1:8000/sse](https://127.0.0.1/sse) for client connections. To change any of this, set [FASTMCP\_\*](https://github.com/modelcontextprotocol/python-sdk/blob/m
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
1 declared in source · 0 destructive
| Tool | What it does | Risk |
|---|---|---|
deprecation_notice | No description in the source | read |
Safer alternatives
We could not match this server to a job, so we cannot suggest a like-for-like alternative. Read-only servers are the least-privilege place to start.
Audit history
- ✕BLOCK D 69 / 100
First audit ·
7d30c3bd62af
README badge
Badges show the current verdict, BLOCK included
A badge cannot be hidden by the maintainer while the verdict is BLOCK. Fix the findings, push, and the re-audit updates it.
Questions about Semgrep MCP server
What is the Semgrep MCP server?
What tools does Semgrep expose?
Is Semgrep safe to connect to an agent?
What credentials does Semgrep need?
How does Semgrep run?
How current is this page?
Which Semgrep MCP server is the right one?
I already installed Semgrep. What should I do?
Can the verdict change?
Sources
- semgrep/mcp on GitHub — the source we read, its licence, stars and activityObserved · 28 Sep 2026
- ModelsAtlas trust audit — BLOCK verdict for commit 7d30c3bd62afObserved · 28 Sep 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Semgrep MCP server?
- What tools does Semgrep expose?
- Is Semgrep safe to connect to an agent?