Sentry MCP Server
Official注意:Sentry Remote-MCP 服务器已基本取代了它,后者支持更多功能(例如身份验证、更强大的工具等)。它作为独立的 MCP 服务器,仅供教学之用;但您很可能需要使用远程服务器。您可以在https://mcp.sentry.dev上实时查看。
Sentry MCP 服务器
用于与 Sentry 交互的模型上下文协议 (MCP) 服务器。该 MCP 服务器提供与 Sentry API 交互的工具,允许 AI 助手检索和分析错误数据、管理项目以及监控应用程序性能。
要求
Node.js(v14 或更高版本)
npm 或 yarn
具有 API 访问权限的 Sentry 帐户
具有适当权限的 Sentry 身份验证令牌
Related MCP server: Sentry MCP Server
设置
安装依赖项:
npm install
在 IDE 中使用它
该 MCP 已经过验证,可与 Cursor、Codeium Windsurf 和 Claude Desktop 配合使用。
与 Claude 一起使用
要将此 MCP 服务器与 Claude 一起使用,请将以下配置添加到您的 Claude 设置中:
{
"mcpServers": {
"sentry": {
"command": "npx",
"args": ["ts-node", "/Users/<your-user-directory>/sentry-mcp-ts/index.ts"],
"env": {
"SENTRY_AUTH": "<YOUR_AUTH_TOKEN>"
}
}
}
}使用
args字段中的目录路径进行更新。用您的 Sentry 身份验证令牌替换
<YOUR_AUTH_TOKEN>。
可用工具
列出项目
列出给定组织的所有可访问的 Sentry 项目。
参数:
organization_slug(字符串,必需):列出项目的组织 slugview(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
解析短ID
使用问题的短 ID 检索有关问题的详细信息。
参数:
organization_slug(字符串,必需):问题所属组织的 slugshort_id(字符串,必需):待解决的问题的简短 ID(例如,PROJECT-123)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
获取哨兵事件
从问题中检索并分析特定的 Sentry 事件。
参数:
issue_id_or_url(字符串,必需):完整的 Sentry 问题 URL 或仅为数字问题 IDevent_id(字符串,必需):要检索的特定事件 IDview(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
列出项目中的错误事件
列出来自特定 Sentry 项目的错误事件。
参数:
organization_slug(字符串,必需):项目所属组织的 slugproject_slug(字符串,必需):列出事件的项目的 slugview(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
创建项目
在 Sentry 中创建一个新项目并检索其客户端密钥。
参数:
organization_slug(字符串,必需):创建项目的组织的 slugteam_slug(字符串,必需):分配项目的团队的 slugname(字符串,必需):新项目的名称platform(字符串,可选):新项目的平台view(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
列出项目问题
列出特定 Sentry 项目的问题。
参数:
organization_slug(字符串,必需):项目所属组织的 slugproject_slug(字符串,必需):列出问题的项目的 slugview(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
列出问题事件
列出特定 Sentry 问题的事件。
参数:
organization_slug(字符串,必需):问题所属组织的 slugissue_id(字符串,必需):列出事件的问题的 IDview(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
获取哨兵问题
检索并分析 Sentry 问题。
参数:
issue_id_or_url(字符串,必需):完整的 Sentry 问题 URL 或仅为数字问题 IDview(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
列出组织重播
列出来自特定 Sentry 组织的重放。
参数:
organization_slug(字符串,必需):列出重播的组织的 slugproject_ids(string[],可选):用于过滤重播的项目 ID 列表environment(字符串,可选):用于过滤重播的环境stats_period(字符串,可选):统计的时间段(例如“24h”,“7d”)start(字符串,可选):过滤重播的开始日期end(字符串,可选):过滤重播的结束日期sort(字符串,可选):对重播进行排序的字段query(字符串,可选):搜索查询以过滤重播per_page(数字,可选):每页重播次数cursor(字符串,可选):分页游标view(字符串,可选):视图类型,可以是“摘要”或“详细”(默认值:“详细”)format(字符串,可选):输出格式,可以是“plain”或“markdown”(默认值:“markdown”)
运行服务器
npx ts-node index.ts验证
此工具需要具有适当权限的 Sentry 身份验证令牌才能访问 Sentry API。您可以在 Sentry 帐户设置中的“设置”->“用户设置”->“身份验证令牌”下生成令牌。
Available Tools
11 toolscreate_projectB
Create a new project in Sentry. Track deployments, releases, and health metrics.
Inputs: organization_slug (required), team_slug (required), name (required), platform, +2 more.
get_sentry_eventB
Retrieve a specific Sentry event from an issue. Requires issue ID/URL and event ID.
Inputs: issue_id_or_url (required), event_id (required), organization_slug (required), view, +1 more.
get_sentry_issueC
Retrieve and analyze a Sentry issue. Accepts issue URL or ID.
Inputs: issue_id_or_url (required), organization_slug (required), view, format.
list_error_events_in_projectC
List error events from a specific Sentry project. View recent errors, frequency patterns, and occurrence timestamps.
Inputs: organization_slug (required), project_slug (required), view, format.
list_issue_eventsC
List events for a specific Sentry issue. Analyze event details, metadata, and patterns.
Inputs: organization_slug (required), issue_id (required), view, format.
list_organization_replaysC
List replays from a Sentry organization. Monitor user sessions, interactions, errors, and experience issues.
Inputs: organization_slug (required), project_ids, environment, stats_period, +8 more.
list_project_issuesC
List issues from a Sentry project. Monitor issue status, severity, frequency, and timing.
Inputs: organization_slug (required), project_slug (required), view, format.
list_projectsC
List accessible Sentry projects. View project slugs, IDs, status, settings, features, and organization details.
Inputs: organization_slug (required), view, format.
resolve_short_idC
Retrieve details about an issue using its short ID. Maps short IDs to issue details, project context, and status.
Inputs: organization_slug (required), short_id (required), format.
search_errors_in_fileC
Search for Sentry errors occurring in a specific file. Find all issues related to a particular file path or filename.
Inputs: organization_slug (required), project_slug (required), file_identifier (required), identifier_type (required), +2 more.
setup_sentryC
Set up Sentry for a project returning a dsn and instructions for setup.
Inputs: organization_slug (required), team_slug (required), project_name (required), environment, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools have distinct purposes, but there is some overlap between 'list_project_issues' and 'list_error_events_in_project'—both list issues/errors for a project, which could cause confusion. Other tools like 'get_sentry_event' and 'get_sentry_issue' are clearly differentiated by focusing on events vs. issues.
All tool names follow a consistent verb_noun pattern with underscores, such as 'create_project', 'list_projects', and 'get_sentry_event'. There are no deviations in naming conventions, making the set predictable and easy to understand.
With 11 tools, the count is well-scoped for a Sentry integration, covering key operations like project management, issue/event retrieval, listing, and setup. Each tool appears to serve a specific purpose without being excessive or insufficient.
The toolset provides good coverage for monitoring and debugging in Sentry, including CRUD-like operations (create, list, get) for projects, issues, and events. A minor gap is the lack of update or delete tools for issues or projects, which agents might need for full lifecycle management, but core workflows are well-supported.
Maintenance
Related MCP Connectors
MCP server for Sentry - error monitoring, issue tracking, and debugging for AI assistants
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that retrieves and analyzes Sentry.io issues, allowing users to inspect error reports, stacktraces, and debugging information from their Sentry account.223-
- AlicenseBqualityFmaintenanceA Model Context Protocol server that enables AI assistants to interact with Sentry for error tracking and monitoring, allowing retrieval and analysis of error data, project management, and performance monitoring through the Sentry API.1121ISC
- AlicenseNot gradedqualityDmaintenanceA TypeScript implementation of a Model Context Protocol server that connects to Sentry error tracking service, allowing AI models to query and analyze error reports and events.MIT
- FlicenseNot gradedqualityDmaintenanceA TypeScript server that allows AI agents to access, retrieve, and analyze Sentry error data through the Modern Context Protocol.2-