Sentry MCP
Sentry 官方 MCP 服务器:让 AI Agent 读取真实生产报错并直接定位修复。
安装
传输方式: both
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp/{organizationSlug}/{projectSlug}工具列表 (34)
search_sentry_tools
Searches the on-demand tool catalogue to find the right Sentry tool.
execute_sentry_tool
Executes a tool found in the catalogue by name.
get_sentry_resource
Fetches any Sentry resource by pasting its Sentry URL.
whoami
Returns the authenticated Sentry user and organization.
find_organizations
Lists Sentry organizations the user can access.
find_projects
Lists Sentry projects in an organization.
find_teams
Lists teams in an organization.
find_releases
Lists releases for a project.
search_issues
Natural-language search over Sentry issues (needs an LLM provider).
search_errors
Natural-language search over error events.
search_traces
Natural-language search over traces.
search_logs
Natural-language search over logs.
search_metrics
Natural-language search over metrics.
search_profiles
Natural-language search over profiles.
search_replays
Natural-language search over session replays.
search_events
Natural-language search over events (catalogue/stdio).
get_issue_details
Gets full details of an issue, including stack trace.
get_trace_details
Gets details of a trace.
get_span_details
Gets details of a single span.
get_event_stacktrace
Gets the stack trace of an event.
get_issue_breadcrumbs
Gets breadcrumbs leading up to an issue's event.
search_ai_conversations
Searches AI conversations (Seer) related to issues.
analyze_issue_with_seer
Runs Seer AI root-cause analysis on an issue.
update_issue
Updates an issue (resolve, assign, ignore).
find_monitors
Lists cron monitors for a project.
get_replay_details
Gets details of a session replay.
find_alert_rules
Lists alert rules for a project.
get_alert_rule
Gets details of an alert rule.
find_dashboards
Lists Sentry dashboards.
get_dashboard_details
Gets details of a dashboard.
search_docs
Searches Sentry documentation.
get_doc
Fetches a Sentry documentation page.
find_uptime_monitors
Lists uptime monitors.
get_uptime_monitor_details
Gets details of an uptime monitor.
价格
Free to connect; requires a Sentry account (free tier available).
Sentry MCP 评测:从生产报错到修复,一次对话搞定
生产报错总以聊天里的一条链接出现。有人贴一个 Sentry 链接,Agent 要堆栈,你再复制过去,然后它问是哪个版本、哪个环境、是不是新报错。等 Agent 拿到足够的信息可以帮忙时,你其实已经把大部分调试工作自己做完了。
Sentry MCP 是 Sentry 官方的服务器,它让 Agent 直接读取报错。0.49.0 版默认提供 14 个工具,还有约 63 个按需调用的工具,覆盖问题、事件、版本和项目。Agent 打开问题、读取堆栈和受影响的版本,在同一次对话里提出修复。错误追踪不再是你粘贴的链接,而变成你问的一个问题。
什么是 Sentry MCP?
Sentry MCP 是由 Sentry 维护的 Model Context Protocol 服务器,有两种形态:托管的远程服务器,一条命令加 OAuth 就能连上;以及用认证令牌运行的本地服务器。远程服务器最容易上手:指向你的组织和项目,登录,Agent 就能查询问题。
默认的 14 个工具覆盖核心工作流:列出和搜索问题、读取问题的事件与堆栈、查找版本、检查项目。其余约 63 个工具通过一个搜索工具按需提供,Agent 只在需要时才拉入更深的能力。服务器采用功能源许可证(源代码可见),不是开源许可。
核心功能
1. 读真实报错,而不是粘贴的摘要
Agent 打开问题,直接从 Sentry 读取堆栈、受影响的版本、环境和事件历史。不用再把报错文本复制到聊天里给 Agent 提供上下文。
2. 按你的思路搜索问题
按项目、版本、环境或时间范围搜索。Agent 可以回答“这个报错是不是最新版本才出现的”或者“过去一天有多少用户遇到”,不用你打开 Sentry 控制台。
3. 同一次会话里从问题到修复
因为 Agent 能在同一次会话里读报错和读代码,它可以顺着堆栈找到源文件、解释原因、提出修复。调试循环不用离开对话就能闭环。
4. 按需工具保持界面精简
默认只加载 14 个工具,其余工具按需获取,Agent 不会被当前任务不需要的工具淹没。
5. 托管或本地,随你选
托管的远程服务器只需要 OAuth 和一个带组织与项目的 URL。本地服务器用认证令牌运行,适合希望把连接留在自己机器上的团队。
工作原理
一条命令把客户端连到托管端点,用 Sentry 账号登录,选组织和项目。按名字、链接或症状向 Agent 问一个报错。它搜索问题、读取堆栈,告诉你哪里坏了、什么时候开始的、哪个版本引入的。
本地使用则改用认证令牌运行服务器。工具相同,只是连接方式不同。
适合谁用?
修复生产报错的开发者、值班处理 Sentry 问题的工程师,以及想让 Agent 理解生产环境到底出了什么问题的团队。如果你的错误追踪在 Sentry 里,这就是让 Agent 成为事件响应真正参与者、而不是旁观者要截图的连接。
价格
免费连接,需要一个 Sentry 账号(有免费套餐)。MCP 服务器本身不收费,你只为已经在用的 Sentry 套餐付费。
优点与缺点
优点
- 官方服务器:读取真实的问题、事件和版本
- 托管远程端点加 OAuth:一条命令就能连上
- 按需工具目录保持默认界面小而专注
- 在一次对话里闭环从报错到修复
缺点
- 源代码可见许可(FSL),不是开源许可
- 需要 Sentry 账号和项目访问权限;Agent 能读取你的报错数据
- 写操作有限;这主要是读取与诊断的工具,不是修复并部署的工具
上手提示
先连上你最常出问题的项目。按报错名字或链接问 Agent,让它读堆栈、告诉你哪个版本引入的、影响了多少用户。把最常见的报错先过一遍,Agent 就能帮你排优先级,知道先修哪一个。值班时直接问它,比翻控制台快得多,半夜收到报警也能先让 Agent 看一眼再决定要不要起床处理。用它处理重复性高的报错最划算,Agent 能批量读事件、归纳共性,一次给出修复方向。先从影响面小的项目开始试点,确认 Agent 的判断准确再推广到核心项目。
最终评价
如果生产报错在 Sentry 里,Agent 就应该能读到它们。这是官方、免费的做法,能把最常见的调试对话从复制粘贴变成问一次就够。连上它,指给它你的项目,让 Agent 告诉你哪里坏了。








