Connect Claude Code (CLI)

Add the SentraSec MCP server to Claude Code so you can run scans and reason over findings straight from your terminal.

1

Add the server

One command registers it. Claude Code launches sentrasec mcp serve over stdio when needed.

$claude mcp add sentrasec --env SENTRASEC_API_KEY=sk_live_... -- sentrasec mcp serve

Replace sk_live_... with your API key (see Authentication). sentrasec must be on your PATH.

Add --scope user to make it available in every project, or --scope project to share it with your team via .mcp.json.

2

Verify & use

Confirm it's registered:

$claude mcp list

Then just ask, inside a Claude Code session:

“Run a DAST scan on https://staging.example.com and summarize the critical findings.”

See the tools reference for what the agent can call.