Scout Monitoring (local)
What it does
Run Scout Monitoring's MCP tools locally with an API key: endpoints, traces, errors, N+1 insights.
- Connects 在你的电脑上运行
- Account or key Needs SCOUT_API_KEY
- Category 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
通过 2/3 项检查 · 在你的电脑上运行
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
注册并创建 Scout Monitoring (local) 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
打开电脑版 Claude 应用的设置文件
SettingsDeveloperEdit Config
粘贴这些设置并保存文件
正在检查命令 · 通过后才会显示复制按钮
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
退出 Claude 再重新打开
试一试
用 Scout Monitoring (local) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Scout Monitoring (local),或回答中出现 Scout Monitoring (local) 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Scout Monitoring (local)
Scout Monitoring (local) 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 Scout Monitoring (local) 的应用
- 需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
- 需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
B · 开发者工具 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
可连接 Claude Code,但需要先准备
需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Scout Monitoring (local) 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
正在检查命令 · 通过后才会显示复制按钮
按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Claude Code 中输入 /mcp
应能看到 Scout Monitoring (local) 在列表中并显示已连接
试一试
用 Scout Monitoring (local) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Scout Monitoring (local),或回答中出现 Scout Monitoring (local) 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Scout Monitoring (local) 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
点击这个按钮打开 Cursor
正在检查命令 · 通过后才会显示复制按钮
填写你的密钥
在 Scout Monitoring (local) 的设置中,SCOUT_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 Scout Monitoring (local) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Scout Monitoring (local),或回答中出现 Scout Monitoring (local) 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Scout Monitoring (local) 的密钥(在开发者网站创建) · 需要先在电脑上安装 Python (uv)(只需一次)
注册并创建 Scout Monitoring (local) 的密钥
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
点击这个按钮打开 VS Code
正在检查命令 · 通过后才会显示复制按钮
填写你的密钥
在 Scout Monitoring (local) 的设置中,SCOUT_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 Scout Monitoring (local) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Scout Monitoring (local),或回答中出现 Scout Monitoring (local) 的工具名称,就表示连接成功
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
正在检查命令 · 通过后才会显示复制按钮
Claude Desktop (claude_desktop_config.json)
正在检查命令 · 通过后才会显示复制按钮
Cursor (~/.cursor/mcp.json)
正在检查命令 · 通过后才会显示复制按钮
VS Code (mcp.json)
正在检查命令 · 通过后才会显示复制按钮
需要你填写的值
SCOUT_API_KEY机密 必填 envYour API key for Scout Monitoring.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月14日
- ! 注意
作者与仓库一致
发布者(scoutapm.com)不是仓库所有者(scoutapp);可能是其他人代为上架的
- ✓ 通过
仍在维护
代码最后更新于11天前
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5860 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5860 个服务器的 55% 更新
- 基础检查结果等于或优于此分类中其他 5860 个服务器的 44%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Scout Monitoring (local) 安全吗?
它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:SCOUT_API_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于11天前,最新版本(2026.10.20)于24天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv), Docker。
同类别的其他选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Scout Monitoring MCP
<hr
This repository contains code to locally run an MCP server that can access Scout Monitoring data via Scout's API. We provide a Docker image that can be pulled and run by your AI Assistant to access Scout Monitoring data.
This puts Scout Monitoring's performance and error data directly in the hands of your AI Assistant. For Rails, Django, FastAPI, Laravel and more. Use it to get traces and errors with line-of-code information that the AI can use to target fixes right in your editor and codebase. N+1 queries, slow endpoints, slow queries, memory bloat, throughput issues - all your favorite performance problems surfaced and explained right where you are working.
If this makes your life a tiny bit better, why not :star: it?!
Setup Wizard
The simplest way to configure and start using the Scout MCP is with our interactive setup wizard. It handles all the prereqs and installation steps for you.
Run via npx:
npx @scout_apm/wizard
Build and run from source:
cd ./wizard
npm install npm run build node dist/wizard.js
The wizard will guide you through:
- Selecting your AI coding platform (Cursor, Claude Code, Claude Desktop)
- Entering your Scout API key
- Automatically configuring the MCP server settings
Supported Platforms
The wizard currently supports setup for:
- Cursor - Automatically configures MCP settings
- Claude Code (CLI) - Provides the correct command to run
- Claude Desktop - Updates the configuration file for Windows/Mac
For all others, it will output JSON that you can copy/paste into your AI Assistant's MCP configuration.
Prerequisites
The Wizard is a great way to get started, but you can also set things up manually. You will need to have or create a Scout Monitoring account and obtain an API key.
- Sign up
- Install the Scout Agent in your application and send Scout data!
- Ruby
- Python
- PHP
- If you are trying this out locally, make sure
monitor: true,errors_enabled: trueare set in your config for the best experience
- Visit settings to get or create an API key
- This is _not_ your "Agent Key"; it's the "API Key" that can be created on the Settings page
- This is a read-only key that can only access data in your account
- Install Docker. Instructions below assume you can start a Docker container
The MCP server will not currently start without an API key set, either in the environment or by a command-line argument on startup.
Installation
We recommend using the provided Docker image to run the MCP server. It is intended to be started by your AI Assistant and configured with your Scout API key. Many local clients allow specifying a command to run the MCP server in some location. A few examples are provided below.
The Docker image is available on Docker Hub.
Of course, you can always clone this repo and run the MCP server directly; uv or other environment management tools are recommended.
Configure a local Client (e.g. Claude/Cursor/VS Code Copilot)
If you would like to configure the MCP manually, this usually just means supplying a command to run the MCP server with your API key in the environment to your AI Assistant's config. Here is the shape of the JSON (the top-level key varies):
{
"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"} } } }
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
Cursor
MAKE SURE to update the SCOUT_API_KEY value to your actual api key in Arguments in the Cursor Settings > MCP
VS Code Copilot
- VS Code Copilot docs
- We recommend the "Add an MCP server to your workspace" option
Claude Desktop
Add the following to your claude config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%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"} } } }
Using the Scout Monitoring MCP
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:
- Create rich GitHub/GitLab issues based on errors and performance data
- Make JIRA fun - have your AI Assistant create tickets with all the details
- Generate PRs that fix specific errors and performance problems
Tools
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 date
- `get_app_metrics` - Get individual metric data (response_time, throughput, etc.) for a specific application
- `get_app_endpoints` - Get all endpoints for an application with aggregated performance metrics
- `get_endpoint_metrics` - Get timeseries metrics for a specific endpoint in an application
- `get_app_endpoint_traces` - Get recent traces for an app filtered to a specific endpoint
- `get_app_trace` - Get an individual trace with all spans and detailed execution information
- `get_app_error_groups` - Get recent error groups for an app, optionally filtered by endpoint
- `get_app_insights` - Get performance insights including N+1 queries, memory bloat, and slow queries
Resources
The 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 templates
- `scoutapm://metrics` - List of all available metrics for Scout APM
Useful Prompts
Setup & Configuration
- "Help me set up Scout monitoring for my Rails application"
- "Create a Scout APM config file for my Django project with key ABC123"
Performance & Monitoring
- "Summarize the available tools in the Scout Monitoring MCP."
- "Find the slowest endpoints for app
my-app-namein the last 7 days. Generate a table with the results including the average response time, throughput, and P95 response time." - "Show me the highest-frequency errors for app
Fooin the last 24 hours. Get the latest error detail, examine the backtrace and suggest a fix." - "Get any recent n+1 insights for app
Bar. Pull the specific trace by id and help me optimize it based on the backtrace data."
Token Usage
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.
Local Development
We use uv and taskipy to manage environments and run tasks for this project.
Run with Inspector
uv run task dev
Connect within inspector to add API key, set to STDIO transport
Build the Docker image
docker build -t scout-mcp-local .
Release
- Branch and bump versions with
uv run python bump_versions.py - Get that merged
- Create a GitHub release with the new version (
gh release create v2025.11.3 --generate-notes --draft)
Publishing the release pushes the v* tag, and CI publishes the Docker image, the PyPI package, and then the MCP Registry entries:
server.json→com.scoutapm/scout-mcp-local(this server; its version is bumped bybump_versions.py)server.remote.json→com.scoutapm/scout-monitoring(the hosted server athttps://scoutapm.com/mcp). Bump itsversionby hand when you change its metadata; unchanged versions are skipped.
MCP Registry key
The registry verifies we own the com.scoutapm/* namespace through a DNS TXT record at the scoutapm.com apex holding an Ed25519 public key. CI signs in with the matching private key from the MCP_REGISTRY_PRIVATE_KEY repository secret. To rotate it:
openssl genpkey -algorithm Ed25519 -out key.pem
Public key for the TXT record: replace the existing v=MCPv1 record, don't add a second one
echo "v=MCPv1; k=ed25519; p=$(openssl pkey -in key.pem -pubout -outform DER | tail -c 32 | base64)"
Private key (hex) for the MCP_REGISTRY_PRIVATE_KEY secret
openssl pkey -in key.pem -noout -text | grep -A3 "priv:" | tail -n +2 | tr -d ' :\n'
For the bots:
mcp-name: com.scoutapm/scout-mcp-local