Scout Monitoring (local)

com.scoutapm由 scoutapm.com 发布v2026.10.20更新于 Oct 24, 2026

Run Scout Monitoring's MCP tools locally with an API key: endpoints, traces, errors, N+1 insights.

发布方自己的服务:Scout Monitoring

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

在本地运行 Scout Monitoring 的 APM 工具,让助手读取应用性能、追踪和错误数据,并带有代码行级信息。

可以做什么
  • 列出 Scout APM 应用,并读取响应时间、吞吐量等单项指标
  • 查看应用的所有端点,并获取单个端点的时间序列指标
  • 获取某端点的近期追踪,并查看单条追踪的全部 span 与执行细节
  • 查看近期错误分组,可按端点筛选
  • 获取 N+1 查询、内存膨胀、慢查询等性能洞察
  • 读取 Rails、Django、Flask、FastAPI 等框架的配置模板
适用场景
当你的应用已向 Scout Monitoring 上报数据,并希望编辑器中的助手定位慢端点、N+1 查询或高频错误并给出修复建议,或据此起草工单和拉取请求时适用。
运行要求
以 stdio 方式启动的本地进程,通常使用 Docker 镜像或 PyPI 包(推荐 uv)。需要一个已安装 Scout Agent 的 Scout Monitoring 账户,并通过 SCOUT_API_KEY 提供只读 API 密钥;未设置时服务器无法启动。使用镜像方式还需安装 Docker。
安装前请注意
需要在环境变量或启动参数中提供 SCOUT_API_KEY 密钥;README 强调这是 API Key 而非 Agent Key。Scout 账户中的数据会发送给助手及其模型提供方。README 建议调高助手的输出 token 上限,可能增加费用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Scout Monitoring (local),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Scout Monitoring MCP

[Scout Monitoring MCP server]

[MCP Badge]

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:

bash
npx @scout_apm/wizard

Build and run from source:

bash
cd ./wizardnpm installnpm run buildnode 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.

  1. Sign up
  2. 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: true are set in your config for the best experience
  3. 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
  4. 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):

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"}    }  }}
Claude Code
sh
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

[Install MCP Server]

MAKE SURE to update the SCOUT_API_KEY value to your actual api key in Arguments in the Cursor Settings > MCP

VS Code Copilot
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
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-name in 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 Foo in 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

bash
uv run task dev

Connect within inspector to add API key, set to STDIO transport

Build the Docker image

bash
docker build -t scout-mcp-local .

Release

  1. Branch and bump versions with uv run python bump_versions.py
  2. Get that merged
  3. 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 by bump_versions.py)
  • server.remote.json → com.scoutapm/scout-monitoring (the hosted server at https://scoutapm.com/mcp). Bump its version by 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:

bash
openssl genpkey -algorithm Ed25519 -out key.pem# Public key for the TXT record: replace the existing v=MCPv1 record, don't add a second oneecho "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 secretopenssl 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

来源:README.md,提交 106db79

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v2026.10.20最新Oct 20, 2026
  2. v2025.11.4Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Scoutapm 集成