Skip to content About The people and vision powering Probo Blog The latest news from Probo Stories Hear from our customers Docs Documentation for Probo GitHub Explore our open-source compliance tools

Claude Code Configuration

This guide shows you how to configure the Probo MCP Server with Claude Code, Anthropic’s official CLI tool, enabling Claude to interact with your compliance data directly from the command line.

  • Claude Code CLI installed (via npm: npm install -g @anthropic-ai/claude-code)
  • A running Probo instance with API access
  • API token from your Probo instance

First, generate an API token from your Probo instance:

  1. Log into your Probo web interface
  2. Navigate to Settings → API Tokens
  3. Click “Generate New Token”
  4. Copy the token - you’ll need it for configuration

Claude Code stores its configuration in:

Terminal window
~/.config/claude-code/config.json

If the file doesn’t exist, Claude Code will create it on first run.

Add the Probo MCP server to your Claude Code configuration:

{
"mcpServers": {
"probo": {
"url": "https://your-probo-instance.com/api/mcp/v1",
"headers": {
"Authorization": "Bearer your_api_token_here"
}
}
}
}

Replace:

  • https://your-probo-instance.com/api/mcp/v1 with your Probo instance URL
  • your_api_token_here with the API token you generated

For local development, you can connect directly to your local Probo instance:

{
"mcpServers": {
"probo": {
"url": "http://localhost:8080/api/mcp/v1",
"headers": {
"Authorization": "Bearer dev_token_here"
}
}
}
}

Test the MCP server connection:

Terminal window
claude-code mcp list

You should see probo listed among the available MCP servers.

Start Claude Code with MCP support:

Terminal window
claude-code

Claude will automatically load the Probo MCP server and you can begin interacting with your compliance data.

Once in a Claude Code session:

Terminal window
You: "What organizations do I have access to?"
Claude: I'll check your organizations.
[Uses listOrganizations tool]
You have access to 2 organizations:
1. Acme Corporation
2. Beta Industries
Terminal window
You: "Show me all risks with a residual risk score above 15"
Claude: Let me fetch those high-risk items.
[Uses listRisks tool with filtering]
Found 3 high-risk items:
1. Vendor security breach (Score: 20)
2. Data center failure (Score: 18)
3. Insider threat (Score: 16)
Terminal window
You: "Add a vendor named 'SecureCloud' that provides backup services"
Claude: I'll add that vendor now.
[Uses addVendor tool]
Successfully added SecureCloud as a vendor.

Run Claude Code interactively for ongoing conversations:

Terminal window
claude-code
# Now you can have a continuous conversation
> List all vendors
> Add a new risk for data breaches
> Update the vendor security measure to implemented

Execute single commands directly:

Terminal window
claude-code "List all open nonconformities"

Pipe data into Claude Code:

Terminal window
echo "Show me compliance measures that are not started" | claude-code

Provide file context for compliance work:

Terminal window
claude-code --file risk-assessment.md "Add these risks to Probo"

You can create project-specific MCP configurations by placing a .claude-code.json file in your project directory:

{
"mcpServers": {
"probo": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-fetch", "https://project.probo.com/api/mcp"],
"env": {
"PROBO_API_TOKEN": "${PROBO_PROJECT_TOKEN}"
}
}
}
}

This configuration takes precedence over the global config when running Claude Code from that directory.

Store your API token in an environment variable for better security:

Terminal window
# In your ~/.bashrc or ~/.zshrc
export PROBO_API_TOKEN="your_api_token_here"

Then reference it in your config:

{
"mcpServers": {
"probo": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-fetch", "https://your-probo-instance.com/api/mcp"],
"env": {
"PROBO_API_TOKEN": "${PROBO_API_TOKEN}"
}
}
}
}

Create a script for batch compliance operations:

update-compliance.sh
#!/bin/bash
claude-code << EOF
Connect to Probo and:
1. List all risks with status 'open'
2. For each risk, check if mitigation measures are in place
3. Update risk status to 'mitigated' where appropriate
4. Generate a summary report
EOF

Automate daily compliance checks:

daily-check.sh
#!/bin/bash
claude-code "Generate a compliance status report including:
- Number of open nonconformities
- Risks with scores above 15
- Overdue obligations
- In-progress audits"

Integrate with your CI/CD pipeline:

.github/workflows/compliance-check.yml
name: Compliance Check
on:
schedule:
- cron: '0 9 * * 1' # Every Monday at 9 AM
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Check Compliance
run: |
npx -y @anthropic-ai/claude-code "Review current compliance status and report any critical issues"
env:
PROBO_API_TOKEN: ${{ secrets.PROBO_API_TOKEN }}

If Claude Code can’t find the Probo MCP server:

Terminal window
# Check MCP server status
claude-code mcp list
# Reload configuration
claude-code mcp reload
# Check configuration file
cat ~/.config/claude-code/config.json

Test the connection manually:

Terminal window
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://your-probo-instance.com/api/mcp/health

Run Claude Code in debug mode for more information:

Terminal window
claude-code --debug

Check logs:

Terminal window
cat ~/.config/claude-code/logs/mcp-probo.log

Verify your token:

Terminal window
# Test token validity
curl -H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"organizationId": "org_xxx"}' \
https://your-probo-instance.com/api/mcp/listOrganizations

Configure multiple Probo instances for different environments:

{
"mcpServers": {
"probo-dev": {
"url": "http://localhost:8080/api/mcp/v1",
"headers": {
"Authorization": "Bearer ${PROBO_DEV_TOKEN}"
}
},
"probo-staging": {
"url": "https://staging.probo.com/api/mcp/v1",
"headers": {
"Authorization": "Bearer ${PROBO_STAGING_TOKEN}"
}
},
"probo-prod": {
"url": "https://probo.company.com/api/mcp/v1",
"headers": {
"Authorization": "Bearer ${PROBO_PROD_TOKEN}"
}
}
}
}

Create shell aliases for common operations:

Terminal window
# In your ~/.bashrc or ~/.zshrc
alias probo-risks="claude-code 'List all high-priority risks'"
alias probo-vendors="claude-code 'Show vendor list with latest review dates'"
alias probo-report="claude-code 'Generate monthly compliance report'"
  1. Use environment variables for API tokens instead of hardcoding
  2. Create project-specific configs for different compliance contexts
  3. Automate routine checks with scripts and CI/CD
  4. Use descriptive prompts for better results
  5. Review outputs before taking action on compliance data
  6. Keep tokens secure with proper file permissions:
    Terminal window
    chmod 600 ~/.config/claude-code/config.json

Need help with Claude Code configuration?