Instructions

  1. Open Cursor.
  2. Find Semgrep in the Cursor Plugin Marketplace, or open Cursor > ⌘⇧J > Plugins. Search Semgrep and click Add to Cursor.
  3. Set up the Semgrep plugin by running the following skill. This also installs the Semgrep CLI:
    /setup-semgrep-plugin
  4. Restart Cursor to apply configuration.
  1. Start a new Claude Code instance in the terminal:
    claude
  2. Open the plugin marketplace:
    /plugin
  3. Go to Discover, search for Semgrep, and click Install.
  4. Set up the Semgrep plugin by running the following skill. This also installs the Semgrep CLI:
    /setup-semgrep-plugin
  1. Install Semgrep using Homebrew or Pip:
    brew install semgrep OR pip install semgrep
  2. Verify that you've installed the latest version of Semgrep by running the following:
    semgrep --version
  3. Log in to Semgrep and install Semgrep Pro:
    semgrep login && semgrep install-semgrep-pro
  4. 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
          }
        ]
      }
    }
  5. Restart Windsurf to apply hook configuration.
  1. Install Semgrep using Homebrew or Pip:
    brew install semgrep OR pip install semgrep
  2. Verify that you've installed the latest version of Semgrep by running the following:
    semgrep --version
  3. Log in to Semgrep and install Semgrep Pro:
    semgrep login && semgrep install-semgrep-pro
  4. Add the Semgrep Guardian server to ~/.codex/config.toml:
    [mcp_servers.semgrep]
    command = "semgrep"
    args = ["mcp"]
  1. Install Semgrep using Homebrew or Pip:
    brew install semgrep OR pip install semgrep
  2. Verify that you've installed the latest version of Semgrep by running the following:
    semgrep --version
  3. Log in to Semgrep and install Semgrep Pro:
    semgrep login && semgrep install-semgrep-pro
  4. Refer to your IDE's documentation for how to add an MCP server, or see the Semgrep Guardian README for more configuration examples.