Semgrep MCP server
Semgrep's hosted MCP server exposes the Semgrep static-analysis engine as MCP tools, letting AI coding agents scan generated code for security vulnerabilities, supply-chain issues, and hardcoded secrets. It is the remote backend for the Semgrep Guardian plugin.
Endpoint and access
OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.
OAuth sign-inEndpoint checked 2026-10-03
Semgrep account
MCP endpoint (Streamable HTTP)
https://mcp.semgrep.ai/mcpWhat you can do with it
- Scan agent-written code on every file write and prompt regeneration when findings appear.
- Scan code for security vulnerabilities from a chat prompt.
- Scan code files with a custom Semgrep rule.
- Fetch findings from the Semgrep AppSec Platform.
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http semgrep https://mcp.semgrep.ai/mcpCodex
Codex configuration
codex mcp add semgrep --url https://mcp.semgrep.ai/mcpCursor
Cursor configuration
{
"mcpServers": {
"semgrep": {
"url": "https://mcp.semgrep.ai/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"semgrep": {
"type": "streamableHttp",
"url": "https://mcp.semgrep.ai/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"semgrep": {
"type": "http",
"url": "https://mcp.semgrep.ai/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http semgrep https://mcp.semgrep.ai/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"semgrep": {
"url": "https://mcp.semgrep.ai/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"semgrep": {
"serverUrl": "https://mcp.semgrep.ai/mcp"
}
}
}Other developer tools servers
Do you run Semgrep?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.