Semgrep SAST Code Audit MCP

Run deterministic static security rules on diffs before git commit

Runs fast Semgrep static analysis rules on changed files to catch hardcoded secrets, XSS sinks, and SQL injection before code review.

Install & Client JSON Configurations

All client configuration manifests are exposed directly below without hidden tabs for zero-click copying.

CLI Install Command
uvx semgrep-mcp
Claude Desktop · claude_desktop_config.json
{
  "mcpServers": {
    "semgrep-sast": {
      "command": "uvx",
      "args": [
        "semgrep-mcp"
      ]
    }
  }
}
Cursor · .cursor/mcp.json
{
  "mcpServers": {
    "semgrep-sast": {
      "command": "uvx",
      "args": [
        "semgrep-mcp"
      ]
    }
  }
}
VS Code · .vscode/mcp.json
{
  "servers": {
    "semgrep-sast": {
      "command": "uvx",
      "args": [
        "semgrep-mcp"
      ]
    }
  }
}

Automated Pre-Commit Security Gate

AI-generated route handlers can accidentally skip authorization checks or interpolate untrusted query parameters. Semgrep SAST Code Audit MCP executes deterministic security rules locally on modified files right before staging.

Core Benefits

  • Catches OWASP Top 10 anti-patterns deterministically without LLM false reassurance.
  • Provides line-accurate findings so assistants patch vulnerabilities cleanly in seconds.

Alternative Servers in This Category

Security & Monitoring
Rising Stack

Sentry Telemetry & Trace MCP

Fetch grouped stack traces, breadcrumbs, and Seer root causes directly

httpstdiooauth-2.1freemium
Tool Surface8 tools
Reliability Score94 / 100
1640 tok · 2,450 starsInspect config
Security & Monitoring
Long-Tail Niche

Grafana & PromQL Metrics MCP

Query Prometheus metrics, Grafana dashboards, and active alert rules

stdiohttpapi-keyopen-source
Tool Surface10 tools
Reliability Score91 / 100
1860 tok · 1,920 starsInspect config
Security & Monitoring
Long-Tail Niche

OSV Dependency CVE Scanner MCP

Audit npm, PyPI, Go, and Cargo lockfiles against live OSV advisories

stdiononeopen-source
Tool Surface4 tools
Reliability Score91 / 100
790 tok · 760 starsInspect config