Semgrep MCP server (official)
MCP serverScan code for security bugs and secrets with Semgrep rules, or write custom rules, from your coding agent.
The Semgrep MCP server now ships inside the semgrep binary. It lets an agent scan files or snippets with Semgrep's rules, run custom rules it writes, inspect the abstract syntax tree, and, with a Semgrep AppSec Platform token, pull findings from your organisation. Scans run locally on your machine. Use it as a guardrail after an agent writes code, or to triage security issues.
Try asking:
- "Scan the files I changed today for security issues."
- "Write a Semgrep rule that flags use of eval() in our JavaScript and run it."
- "Check this function for SQL injection."
Sign-in: none needed.

Log in to join the discussion.