Connect Cursor
Add the Sentrasec MCP server to Cursor so the agent can run scans and explain findings.
Add the server
Open ~/.cursor/mcp.json for every project, or .cursor/mcp.json inside one project, and add the sentrasec server:
~/.cursor/mcp.json
{ "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.
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.