MCP server for Semgrep static analysis
Top 81.4% on sourcepulse
This project provides a Model Context Protocol (MCP) server that integrates Semgrep's static analysis capabilities with AI agents and IDEs. It enables LLMs and development tools to automatically scan code for security vulnerabilities, understand code structure via ASTs, and leverage Semgrep's extensive rule set.
How It Works
The server acts as a bridge, exposing Semgrep's functionality through the MCP standard. It supports multiple transport protocols: stdio
for command-line integration, streamable-http
for JSON RPC over HTTP, and sse
(Server-Sent Events) for legacy compatibility. This design allows seamless integration with various AI platforms and IDEs like Cursor, VS Code, and others that adhere to the MCP specification.
Quick Start & Requirements
pipx install semgrep-mcp
or docker run -i --rm ghcr.io/semgrep/mcp -t stdio
Highlighted Details
mcp.semgrep.ai
.Maintenance & Community
#mcp
.Licensing & Compatibility
Limitations & Caveats
mcp.semgrep.ai
is experimental and subject to change.streamable-http
recommended.19 hours ago
Inactive