brew install semgrep or pip install semgrep.
semgrep --version to make sure it's installed correctly and the version is 1.146.0 or higher.
semgrep login && semgrep install-semgrep-pro
hooks.json file in your project's .cursor directory and paste the following configuration:
{
"version": 1,
"hooks": {
"stop": [
{
"command": "semgrep mcp -k stop-cli-scan -a cursor"
}
],
"afterFileEdit": [
{
"command": "semgrep mcp -k record-file-edit -a cursor"
}
]
}
}
brew install semgrep or pip install semgrep.
semgrep --version to make sure it's installed correctly and the version is 1.146.0 or higher.
semgrep login && semgrep install-semgrep-pro
claude. Make sure you are using Claude Code version 2.1.7 or higher.
/plugin marketplace add semgrep/mcp-marketplace
/plugin install semgrep-plugin@semgrep
/semgrep-plugin:setup_semgrep_plugin command. If you cannot run the command, try enabling the plugin: /plugin enable semgrep-plugin@semgrep