- Claude Code: hooks and plugins
- Codex: MCP
- Cursor: hooks and MCP
- GitHub Copilot (Visual Studio, JetBrains, Xcode, Eclipse): MCP
- VS Code: MCP
- Windsurf: Cascade hooks
Prerequisites
- Python 3.10 or later (the Semgrep CLI requires it at runtime regardless of how it was installed)
- Homebrew,
pipx, oruvto install Semgrep - A Semgrep account
Install the Semgrep CLI
These steps are the same regardless of which IDE you use.Verify that you’ve installed the latest version of Semgrep:
Connect to your IDE
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- VS Code
- Windsurf
- Other IDEs
The plugin registers a post-tool hook so Claude Code scans every file it writes. Learn more about Claude Code plugins and hooks.
Scan your code
By default, the Semgrep Guardian runs all three Semgrep products: Code, Supply Chain, and Secrets.
Additional resources
- Semgrep’s
#mcpSlack community - The Semgrep MCP server repo on GitHub