Connect Claude Desktop
Add the Sentrasec MCP server to Claude Desktop so it can scan and explain findings for you.
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 the Claude Desktop configuration file (Settings, then Developer, then Edit Config): ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows. 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 Claude Desktop 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
Quit and reopen Claude Desktop. The tools appear once the server connects. Then ask something like:
Scan our staging environment and tell me what needs fixing before release.
See the tools reference for everything the agent can call.
