Sazabi
MCPSazabi MCP ServerSupported Clients

Claude Code

Set up Claude Code to use Sazabi's MCP server for observability queries and debugging.

Claude Code is Anthropic's official command-line interface for Claude. By connecting Claude Code to Sazabi's MCP server, you can ask questions about your production systems directly from your terminal.

About Claude Code

Claude Code is a terminal-based AI assistant for developers. It can read and edit files, run commands, and now with MCP support, interact with external services like Sazabi.

When connected to Sazabi, you can ask Claude Code questions like:

Ask Sazabi about recent errors in the checkout service
What does Sazabi show for latency spikes in the last hour?
Search Sazabi for payment failures from today

Prerequisites

Before configuring Claude Code to use Sazabi, make sure you have:

  • Claude Code installed: See Claude Code documentation for installation instructions.
  • A Sazabi secret key: Create one in Settings -> API Keys in the Sazabi dashboard. Select Secret as the key type.

Configuration

Claude Code uses MCP servers defined in its configuration file. Add Sazabi to your Claude Code configuration:

Edit ~/.claude/claude.json:

{
  "mcpServers": {
    "sazabi": {
      "type": "http",
      "url": "https://mcp.sazabi.com/mcp",
      "headers": {
        "X-Sazabi-Secret-Key": "<YOUR_SECRET_KEY>"
      }
    }
  }
}

Edit %USERPROFILE%\.claude\claude.json:

{
  "mcpServers": {
    "sazabi": {
      "type": "http",
      "url": "https://mcp.sazabi.com/mcp",
      "headers": {
        "X-Sazabi-Secret-Key": "<YOUR_SECRET_KEY>"
      }
    }
  }
}

Replace <YOUR_SECRET_KEY> with your actual Sazabi secret key.

Keep your secret key secure. Do not commit configuration files containing secret keys to version control.

Verifying the connection

After configuring Claude Code, verify the connection is working:

  1. Start a new Claude Code session.
  2. Ask Claude to list your Sazabi projects:
Use Sazabi to list my projects

If configured correctly, Claude Code will use Sazabi's MCP tools to fetch and display your projects.

Using Sazabi tools

Once connected, you can ask Claude Code to use Sazabi for observability queries. Here are some examples:

Searching logs

Ask Sazabi to search for errors containing "timeout" in the last hour

Investigating issues

Use Sazabi to investigate why the API is returning 500 errors

Continuing conversations

Find my recent Sazabi threads about the payment service

Getting thread context

Show me the details of my latest Sazabi investigation

Troubleshooting

MCP server not found

If Claude Code reports that the Sazabi MCP server is not available:

  1. Verify the configuration file path is correct for your operating system.
  2. Ensure the JSON is valid (check for missing commas or brackets).
  3. Restart Claude Code after making configuration changes.

Authentication errors

If you see authentication errors:

  1. Verify your secret key is correct.
  2. Ensure the key has not been revoked in the Sazabi dashboard.
  3. Check that the header name is exactly X-Sazabi-Secret-Key.

Connection errors

If you see connection errors:

  1. Check that the URL is exactly https://mcp.sazabi.com/mcp.
  2. Ensure your network can reach mcp.sazabi.com.

Next steps