Live survey304 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

Semgrep MCP server

by semgrep/mcpMIT licenceAudited 28 Sep 2026 · source 7d30c3bd62af

PyPI semgrep-mcpssestdiostreamable-http★ 687
✕BLOCKGrade D · 69/100 · 28 Sep 2026 · 7d30c3b

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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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 →

Trust audit

Audit 0.4.1 · full source read 28 Sep 2026

Trust score69/100✕BLOCK D
0 critical2 high1 medium6 low0 info

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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
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
F-12 Information disclosureCWE-209 · CWE-532Layer L1
print(f"     SEMGREP_APP_TOKEN: {'*' * min(8, len(token))}")
Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .gitmodules
F-13 Inventory / provenanceCWE-1104Layer L0
.gitmodules
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .pre-commit-config.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.pre-commit-config.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWFilesystem / pathfs.traversal · tests/unit/test_safe_join.py:40
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
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
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
safe_join(base_dir, "./subdir/../../../file.txt")
Why
No further detail recorded for this rule.
Fix
—
LOWNetwork egressnet.raw_ip · README.md:254
F-04 Network egressCWE-200 · CWE-319Layer L1
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
F-04 Network egressCWE-200 · CWE-319Layer L1
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

1 read0 write0 destructive
ToolWhat it doesRisk
deprecation_noticeNo description in the sourceread

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

  1. ✕BLOCK D 69 / 100

    First audit · 7d30c3bd62af

README badge

Badges show the current verdict, BLOCK included

ModelsAtlas: BLOCK DMODELSATLASBLOCK · D

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?
A MCP server for using Semgrep to scan code for security vulnerabilities.
What tools does Semgrep expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Semgrep safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 2 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does Semgrep need?
It reads SEMGREP_APP_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Semgrep run?
It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as semgrep-mcp.
How current is this page?
The grade is for one exact copy of the source (7d30c3bd62af), read on 2026-09-28. The repository is watched and re-audited when it changes.
Which Semgrep MCP server is the right one?
2 unrelated servers share the name “Semgrep”; compare them side by side before you install.
I already installed Semgrep. What should I do?
Remove it from your client's MCP configuration, then rotate any API keys and tokens that were in your environment while it ran.
Can the verdict change?
Yes. The repository is watched and re-audited when its source changes. If the findings are removed the verdict updates, and the history on this page shows it.

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.