Connect Cursor
Add the Sentrasec MCP server to Cursor so the agent can run scans and explain findings.
Install the CLI
The MCP server ships inside the sentrasec binary. Skip this if sentrasec --version already works.
$ curl -fsSL https://cli.sentrasec.ai/install.sh | bash$ irm https://cli.sentrasec.ai/install.ps1 | iexOn Windows, open a new terminal afterwards. More options are in the CLI installation guide.
Add the server
Open ~/.cursor/mcp.json for every project (%USERPROFILE%\.cursor\mcp.json on Windows), or .cursor/mcp.json inside one project, and add the sentrasec server:
{ "mcpServers": { "sentrasec": { "command": "sentrasec", "args": ["mcp", "serve"], "env": { "SENTRASEC_APP_ID": "app_...", "SENTRASEC_APP_KEY": "sk_prod_..." } } }}Replace sk_prod_... with your API key. See Authentication for how to create one.
If Cursor reports that it cannot start sentrasec, it is not seeing your shell's PATH. Run sentrasec mcp config and use the full path it prints as command, for example /Users/you/.local/bin/sentrasec on macOS or C:\\Users\\you\\AppData\\Local\\Sentrasec\\bin\\sentrasec.exe on Windows (backslashes doubled inside JSON).
Use it
Restart Cursor, or toggle the server under Settings, then MCP. Then ask the agent something like:
Run a scan on https://staging.example.com and summarise the critical findings.
See the tools reference for everything the agent can call.
