Self-Hosted MCP

The self-hosted MCP server runs entirely on your machine, connecting to Scout’s API with your API key. It’s available as a Docker image or Python package.

Source code and full documentation are on GitHub.

Prerequisites

  1. A Scout APM account with the agent installed in your application
  2. A Scout API key (not your Agent Key) — create one at scoutapm.com/settings
  3. Docker installed (if using the Docker image)

Setup Wizard

The fastest way to get started. The wizard auto-detects your platform and walks you through configuration:

npx @scout_apm/wizard

It supports Cursor, Claude Code, Claude Desktop, and other MCP clients.

Manual Configuration

Claude Code

claude mcp add scoutmcp -e SCOUT_API_KEY=your_scout_api_key_here -- docker run --rm -i -e SCOUT_API_KEY scoutapp/scout-mcp-local

Other Clients (Cursor, Claude Desktop, VS Code Copilot)

Add the following to your MCP configuration:

{
  "mcpServers": {
    "scout-apm": {
      "command": "docker",
      "args": ["run", "--rm", "-i", "--env", "SCOUT_API_KEY", "scoutapp/scout-mcp-local"],
      "env": { "SCOUT_API_KEY": "your_scout_api_key_here" }
    }
  }
}

Available Tools

Resources

The local server also provides configuration templates your agent can read:

Useful Prompts

Once connected, try asking your agent: