- Claude Code: hooks and plugins
- Codex: MCP
- Cursor: hooks and MCP
- GitHub Copilot (Visual Studio, JetBrains, Xcode, Eclipse): MCP
- Kiro: MCP
- VS Code: MCP
- Windsurf: Cascade hooks
Prerequisites
- A Semgrep account
Connect to your IDE
- Claude Code
- Codex
- Cursor
- GitHub Copilot
- VS Code
- Windsurf
- Kiro
- Other IDEs
Claude Code uses Semgrep’s hosted remote server by default, so you don’t need to install the Semgrep CLI locally.
The plugin registers a post-tool hook so Claude Code scans every file it writes. Learn more about Claude Code plugins and hooks.
Run Semgrep Guardian locally
Run Semgrep Guardian locally
The remote server is the recommended default. If you need to run Semgrep locally instead, you can install the local plugin from the
semgrep/guardian-local repo.Install the Semgrep CLI
Every IDE except Claude Code runs Semgrep from a locally installed CLI. (Claude Code uses Semgrep’s hosted remote server by default and doesn’t need a local CLI.)Install the Semgrep CLI using Homebrew, pipx, or uv. This requires Python 3.10 or later (the Semgrep CLI needs it at runtime regardless of how it was installed):
Verify that you’ve installed the latest version of Semgrep:
Additional resources
- Semgrep’s
#mcpSlack community - The Semgrep MCP server repo on GitHub