Instructions
-
-
-
-
-
-
-
Open Cursor.
-
Find Semgrep in the Cursor Plugin Marketplace, or open Cursor >
⌘⇧J > Plugins. Search Semgrep and click Add to Cursor.
-
Set up the Semgrep plugin by running the following skill. This also installs the Semgrep CLI:
/setup-semgrep-plugin
-
Restart Cursor to apply configuration.
-
Start a new Claude Code instance in the terminal:
claude
-
Open the plugin marketplace:
/plugin
-
Go to Discover, search for Semgrep, and click Install.
-
Set up the Semgrep plugin by running the following skill. This also installs the Semgrep CLI:
/setup-semgrep-plugin
-
Install Semgrep using Homebrew or Pip:
brew install semgrep OR pip install semgrep
-
Verify that you've installed the latest version of Semgrep by running the following:
semgrep --version
-
Log in to Semgrep and install Semgrep Pro:
semgrep login && semgrep install-semgrep-pro
-
Create a
hooks.json file at ~/.codeium/windsurf/hooks.json and paste the following configuration:
{
"hooks": {
"post_write_code": [
{
"command": "semgrep mcp -k post-tool-cli-scan -a windsurf",
"show_output": true
}
]
}
}
-
Restart Windsurf to apply hook configuration.
-
Install Semgrep using Homebrew or Pip:
brew install semgrep OR pip install semgrep
-
Verify that you've installed the latest version of Semgrep by running the following:
semgrep --version
-
Log in to Semgrep and install Semgrep Pro:
semgrep login && semgrep install-semgrep-pro
-
Add the Semgrep Guardian server to
~/.codex/config.toml:
[mcp_servers.semgrep]
command = "semgrep"
args = ["mcp"]
-
Install Semgrep using Homebrew or Pip:
brew install semgrep OR pip install semgrep
-
Verify that you've installed the latest version of Semgrep by running the following:
semgrep --version
-
Log in to Semgrep and install Semgrep Pro:
semgrep login && semgrep install-semgrep-pro
-
Refer to your IDE's documentation for how to add an MCP server, or see the Semgrep Guardian README for more configuration examples.