
Sentry MCP Server
一个模型上下文协议服务器,使 AI 助手能够与 Sentry 进行交互,以进行错误跟踪和监控。它允许通过 Sentry API 检索和分析错误数据、进行项目管理以及进行性能监控。
Tools
list_projects
List accessible Sentry projects. View project slugs, IDs, status, settings, features, and organization details.
resolve_short_id
Retrieve details about an issue using its short ID. Maps short IDs to issue details, project context, and status.
get_sentry_event
Retrieve a specific Sentry event from an issue. Requires issue ID/URL and event ID.
list_error_events_in_project
List error events from a specific Sentry project. View recent errors, frequency patterns, and occurrence timestamps.
create_project
Create a new project in Sentry. Track deployments, releases, and health metrics.
list_project_issues
List issues from a Sentry project. Monitor issue status, severity, frequency, and timing.
list_issue_events
List events for a specific Sentry issue. Analyze event details, metadata, and patterns.
get_sentry_issue
Retrieve and analyze a Sentry issue. Accepts issue URL or ID.
list_organization_replays
List replays from a Sentry organization. Monitor user sessions, interactions, errors, and experience issues.
setup_sentry
Set up Sentry for a project returning a dsn and instructions for setup.
README
Sentry MCP 服务器
一个用于与 Sentry 交互的模型上下文协议 (MCP) 服务器。此 MCP 服务器提供与 Sentry API 交互的工具,允许 AI 助手检索和分析错误数据、管理项目以及监控应用程序性能。
要求
- Node.js (v14 或更高版本)
- npm 或 yarn
- 具有 API 访问权限的 Sentry 帐户
- 具有适当权限的 Sentry 身份验证令牌
设置
- 安装依赖项:
npm install
在 IDE 中使用
此 MCP 已验证可与 Codeium Windsurf 配合使用。
Cursor 目前的 MCP 实现存在问题;此工具尚未完全正常运行。
与 Claude 一起使用
要将此 MCP 服务器与 Claude 一起使用,请将以下配置添加到您的 Claude 设置:
{
"mcpServers": {
"sentry": {
"command": "npx",
"args": ["ts-node", "/Users/<your-user-directory>/mcp-sentry-ts/index.ts"],
"env": {
"SENTRY_AUTH": "<YOUR_AUTH_TOKEN>"
}
}
}
}
- 使用您的目录路径更新
args
字段。 - 将
<YOUR_AUTH_TOKEN>
替换为您的 Sentry 身份验证令牌。
可用工具
list_projects
列出给定组织的所有可访问的 Sentry 项目。
参数:
organization_slug
(字符串,必需):要从中列出项目的组织的 slugview
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
resolve_short_id
使用问题的短 ID 检索有关问题的详细信息。
参数:
organization_slug
(字符串,必需):问题所属的组织的 slugshort_id
(字符串,必需):要解析的问题的短 ID(例如,PROJECT-123)format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
get_sentry_event
从问题中检索和分析特定的 Sentry 事件。
参数:
issue_id_or_url
(字符串,必需):完整的 Sentry 问题 URL 或仅是数字问题 IDevent_id
(字符串,必需):要检索的特定事件 IDview
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
list_error_events_in_project
列出特定 Sentry 项目中的错误事件。
参数:
organization_slug
(字符串,必需):项目所属的组织的 slugproject_slug
(字符串,必需):要从中列出事件的项目的 slugview
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
create_project
在 Sentry 中创建一个新项目并检索其客户端密钥。
参数:
organization_slug
(字符串,必需):要在其中创建项目的组织的 slugteam_slug
(字符串,必需):要将项目分配到的团队的 slugname
(字符串,必需):新项目的名称platform
(字符串,可选):新项目的平台view
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
list_project_issues
列出特定 Sentry 项目中的问题。
参数:
organization_slug
(字符串,必需):项目所属的组织的 slugproject_slug
(字符串,必需):要从中列出问题的项目的 slugview
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
list_issue_events
列出特定 Sentry 问题的事件。
参数:
organization_slug
(字符串,必需):问题所属的组织的 slugissue_id
(字符串,必需):要从中列出事件的问题的 IDview
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
get_sentry_issue
检索和分析 Sentry 问题。
参数:
issue_id_or_url
(字符串,必需):完整的 Sentry 问题 URL 或仅是数字问题 IDview
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
list_organization_replays
列出特定 Sentry 组织的重放。
参数:
organization_slug
(字符串,必需):要从中列出重放的组织的 slugproject_ids
(字符串数组,可选):用于过滤重放的项目 ID 列表environment
(字符串,可选):用于过滤重放的环境stats_period
(字符串,可选):统计信息的时间段(例如,“24h”,“7d”)start
(字符串,可选):用于过滤重放的开始日期end
(字符串,可选):用于过滤重放的结束日期sort
(字符串,可选):用于对重放进行排序的字段query
(字符串,可选):用于过滤重放的搜索查询per_page
(数字,可选):每页的重放次数cursor
(字符串,可选):用于分页的光标view
(字符串,可选):视图类型,可以是 "summary" 或 "detailed"(默认值:"detailed")format
(字符串,可选):输出格式,可以是 "plain" 或 "markdown"(默认值:"markdown")
运行服务器
npx ts-node index.ts
身份验证
此工具需要具有适当权限的 Sentry 身份验证令牌才能访问 Sentry API。 您可以在 Sentry 帐户设置中的“API 密钥”下生成令牌。
错误处理
该服务器包括全面的错误处理,用于处理:
- 缺少身份验证令牌
- API 请求失败
- 无效参数
- 网络错误
所有错误都会记录到控制台以进行调试。
推荐服务器
Jira-Context-MCP
MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。
mixpanel
连接到您的 Mixpanel 数据。 从 Mixpanel 分析查询事件、留存和漏斗数据。

PostHog MCP Server
一个模型上下文协议服务器,它使 Claude Desktop 用户能够直接与 PostHog 交互,允许他们通过自然语言命令查看项目和创建注释。
metoro-mcp-server
使用LLM查询和交互由Metoro监控的Kubernetes环境。查看APM、指标、追踪和性能分析信息。

Raygun MCP Server
MCP 服务器用于 Raygun 的 API V3 端点,用于与您的崩溃报告和真实用户监控应用程序进行交互。该服务器通过模型上下文协议提供对 Raygun API 功能的全面访问。

systemd-coredump MCP Server
启用支持 MCP 的应用程序,通过与 systemd-coredump 功能集成,来访问、管理和分析系统核心转储。

Airbyte Status Checker
一个用于 Claude Desktop 的 MCP 服务器,允许用户检查他们的 Airbyte 连接状态。

MCP Variance Log
一个代理工具,用于查找对话结构中的统计变异,并将异常事件记录到 SQLite 数据库中。该系统使用模型上下文协议 (MCP) 构建,旨在与 Claude Desktop 或其他兼容 MCP 的客户端一起使用。
Umami Analytics MCP Server
通过提供对 Umami 网站分析数据的访问,增强 Claude 的能力,从而实现用户行为分析、网站性能跟踪和数据驱动的洞察生成。

MCP Accessibility Scanner
使用 Playwright 和 Axe-core 启用 WCAG 合规性的自动化 Web 可访问性扫描,提供包含修复指导的可视化和 JSON 报告。