Semgrep MCP Server
by Semgrep
Scan code for security vulnerabilities with static analysis.
About Semgrep
The Semgrep MCP server enables integration of Semgrep's static analysis capabilities within LLMs and AI agents. Allows scanning code for vulnerabilities, creating custom Semgrep rules, filtering results by severity/rule ID/file path, and exporting in JSON, SARIF, and text formats.
Tags
How to install Semgrep
- Package
- semgrep-mcp (pypi)
- Transport
- Local (stdio), Remote (Streamable HTTP), Remote (SSE)
- Hosted endpoint
- https://mcp.semgrep.ai/mcp
Install or run
uvx semgrep-mcpClient configuration
{
"mcpServers": {
"semgrep": {
"command": "uvx",
"args": [
"semgrep-mcp"
]
}
}
}Copied from the official README — . Replace placeholder keys with your own credentials.
Client setup documented by the maintainer
| Client | Setup steps in README |
|---|---|
| Claude Desktop | Yes |
| Claude Code | Yes |
| Cursor | Yes |
| VS Code | Yes |
| Windsurf | Yes |
“Not documented” means the README has no client-specific steps — most MCP clients can still run a local stdio server from the configuration above.
Related MCP servers in Developer Tools
Read and write GitHub repos, issues, PRs, and workflows.
Read and write local files inside an allowed directory.
Build, validate, and run n8n workflows programmatically.
Cloud browser automation for LLMs via Browserbase and Stagehand.