{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "semgrep-semgrep--give-your-ai-coding-assistant-semgrep-scans",
 "repo": "semgrep/semgrep",
 "repo_url": "https://github.com/semgrep/semgrep",
 "repo_slug": "semgrep-semgrep",
 "title": "Give your AI coding assistant Semgrep scans over MCP",
 "page_title": "How to give your AI coding assistant Semgrep scans over MCP with Semgrep",
 "summary": "Start the built-in MCP server so assistants can run scans while they write code.",
 "who": "A developer using Cursor, VS Code or another MCP client who wants security checks on generated code.",
 "problem": "AI generated code ships without any automatic security scan.",
 "outcome": "An MCP server your assistant can call to scan files it just wrote.",
 "steps": [
  "Install with `pipx install semgrep`",
  "Start the server locally with `semgrep mcp`",
  "Register it in your MCP client following your client's settings",
  "Ask the assistant to scan code it generated and fix what Semgrep reports"
 ],
 "agent_prompt": "Using semgrep/semgrep, install it with `pipx install semgrep`, start `semgrep mcp`, then scan the files you changed and fix every finding.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "This card is written from the semgrep/semgrep README, not from a test run by Deduped. Before you start, make sure you have Python and pip, or pipx, uv, Homebrew or Docker. Check the repo for newer instructions before you rely on these steps.",
 "category": "Security and science",
 "tags": [
  "Security and science"
 ],
 "lang": "c",
 "requirements": [
  "Python and pip, or pipx, uv, Homebrew or Docker",
  "A project directory to scan",
  "Optional free Semgrep account for extra rules"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/semgrep-semgrep/give-your-ai-coding-assistant-semgrep-scans/",
 "md": "https://dedupedai.com/use-cases/semgrep-semgrep/give-your-ai-coding-assistant-semgrep-scans/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/semgrep-semgrep--give-your-ai-coding-assistant-semgrep-scans.json",
 "api_version": "v1"
}
