Semgrep MCP
Local static analysis for security bugs, exposed as an MCP server by the semgrep CLI.
Overview
Semgrep exposes its static analysis engine as an MCP server through the semgrep command, so agents can scan code they just wrote and read rule-based findings. Local scans need no account; a Semgrep token unlocks additional rules and platform features. The older standalone semgrep/mcp repository is archived in favour of the CLI subcommand.
Capabilities
- Static analysis
- Custom rules
- Security findings
- Supported languages list
Connection profile
- Transports
- stdio
- Authentication
- None (local); Semgrep token (optional)
- License
- LGPL-2.1
- Vendor
- Semgrep
- Repository
- github.com/semgrep/semgrep
Client format support is reviewed against official client documentation. It is not a claim that this specific server was tested with every client.
Configuration starting point
A documented preset is available for this server. It contains placeholders, not real credentials. Generate a client-correct file or review the raw values below.
semgrep mcp
Security notes
- Local scans are low risk; review what is uploaded if you connect a Semgrep platform token.
The catalog records source evidence, not a security audit. Review the server's permissions, recent releases, and the data it can access before connecting it to a real account.
Sources & evidence
- docs.semgrep.dev/mcpOfficial documentation · checked Nov 26, 2026 · documented
Semgrep documentation describes the MCP server provided by the semgrep CLI and its setup for MCP clients.