Who it is forA developer using Cursor, VS Code or another MCP client who wants security checks on generated code.
The problemAI generated code ships without any automatic security scan.
The outcomeAn MCP server your assistant can call to scan files it just wrote.
What you need first
- Python and pip, or pipx, uv, Homebrew or Docker
- A project directory to scan
- Optional free Semgrep account for extra rules
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
Prompt for your agent
Using semgrep/semgrep, install it with `pipx install semgrep`, start `semgrep mcp`, then scan the files you changed and fix every finding.
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.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for semgrep/semgrep and "Give your AI coding assistant Semgrep scans over MCP"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer