An MCP server for Scout Monitoring data interactions.
claude mcp add scoutmcp -e SCOUT_API_KEY=your_scout_api_key_here -- docker run --rm -i -e SCOUT_API_KEY scoutapp/scout-mcp-localMAKE SURE to update the SCOUT_API_KEY value to your actual api key in
Arguments in the Cursor Settings > MCP
Add the following to your claude config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json{
"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"}
}
}
}Scout's MCP is intended to put error and performance data directly in the... hands? of your AI Assistant. Use it to get traces and errors with line-of-code information that the AI can use to target fixes right in your editor.
Most assistants will show you both raw tool calls and perform analysis. Desktop assistants can readily create custom JS applications to explore whatever data you desire. Assistants integrated into code editors can use trace data and error backtraces to make fixes right in your codebase.
Combine Scout's MCP with your AI Assistant's other tools to:
The Scout MCP provides the following tools for accessing Scout APM data:
list_apps - List available Scout APM applications, with optional filtering by last active dateget_app_metrics - Get individual metric data (response_time, throughput, etc.) for a specific applicationget_app_endpoints - Get all endpoints for an application with aggregated performance metricsget_endpoint_metrics - Get timeseries metrics for a specific endpoint in an applicationget_app_endpoint_traces - Get recent traces for an app filtered to a specific endpointget_app_trace - Get an individual trace with all spans and detailed execution informationget_app_error_groups - Get recent error groups for an app, optionally filtered by endpointget_app_insights - Get performance insights including N+1 queries, memory bloat, and slow queriesThe Scout MCP provides configuration templates as resources that your AI assistant can read and apply:
scoutapm://config-resources/{framework} - Setup instructions for supported framework or library (rails, django, flask, fastapi)scoutapm://config-resources/list - List all available configuration templatesscoutapm://metrics - List of all available metrics for Scout APMmy-app-name in the last 7 days. Generate a table
with the results including the average response time, throughput, and P95 response time."Foo in the last 24 hours. Get the
latest error detail, examine the backtrace and suggest a fix."Bar. Pull the specific trace by id and help me
optimize it based on the backtrace data."We are currently more interested in expanding available information than strictly
controlling response size from our MCP tools. If your AI Assistant has a configurable
token limit (e.g. Claude Code export MAX_MCP_OUTPUT_TOKENS=50000), we recommend
setting it generously high, e.g. 50,000 tokens.
We use uv and taskipy to manage environments and run tasks for this project.
uv run task devConnect within inspector to add API key, set to STDIO transport
docker build -t scout-mcp-local .uv run python bump_versions.pygh release create v2025.11.3 --generate-notes --draft)For the bots:
mcp-name: com.scoutapm/scout-mcp-local