Semgrep MCP is a server that enables LLMs and IDEs to scan code for security vulnerabilities using Semgrep via a standardized API.
Scan code for security vulnerabilities.
Scan code files for security vulnerabilities with a given config string.
Scan code files using a custom Semgrep rule.
Output the Abstract Syntax Tree (AST) of code.
Fetch Semgrep findings from the Semgrep AppSec Platform API (login and Semgrep token required).
Return the list of languages Semgrep supports.
Fetches the latest semgrep rule JSON Schema.
Return a prompt to help write a Semgrep rule.
Access Semgrep rule specification and full rules from the registry (via resources).
{
"mcpServers": {
"semgrep": {
"command": "uvx",
"args": ["semgrep-mcp"],
"env": {
"SEMGREP_APP_TOKEN": "<token>"
}
}
}
}