Connect Claude Code
Add the Sentrasec MCP server to Claude Code so you can scan and reason over findings from your terminal.
Install the CLI
The MCP server ships inside the sentrasec binary. Skip this if sentrasec --version already works.
macOS / Linux (Terminal)
$ curl -fsSL https://cli.sentrasec.ai/install.sh | bashWindows (PowerShell)
$ 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
Register the server once. Claude Code stores it and starts it automatically in future sessions:
Terminal
$ claude mcp add sentrasec --env SENTRASEC_APP_ID=app_... --env SENTRASEC_APP_KEY=sk_prod_... -- sentrasec mcp serveReplace sk_prod_... with your API key. See Authentication for how to create one.
Use it
Confirm it registered with claude mcp list, then ask Claude something like:
Scan this project for security issues and explain anything high severity.
See the tools reference for everything the agent can call.
