
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
概覽
在本機執行 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。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Scout Monitoring (local),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Scout Monitoring MCP
[Scout Monitoring MCP server]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:
Build and run from source:
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!
- 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):
Claude Code
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
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 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 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 templatesscoutapm://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
Connect within inspector to add API key, set to STDIO transport
Build the Docker image
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:
For the bots:
mcp-name: com.scoutapm/scout-mcp-local
來源:README.md,提交 106db79
工具
0版本歷史
2- v2026.10.20最新Oct 20, 2026
- v2025.11.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分