Sentry Mcp Server

io.github.friendlygeorge由 GitHub 账号 friendlygeorge 发布v1.0.0更新于 Oct 24, 2026

MCP server for Sentry — error tracking, issues, releases, events, and projects for AI assistants.

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

概览

AI 生成的概览

把 AI 助手连接到 Sentry,可浏览组织、项目、问题、事件和发布,并解决或忽略问题。

可以做什么
  • 列出组织、项目、团队和成员及其角色与标识
  • 按环境、状态、级别、查询和项目筛选问题,并查看问题详情与分组哈希
  • 列出并读取某个问题的事件,包括异常、堆栈、面包屑和标签
  • 列出发布并查看发布详情,含提交信息与文件变更
  • 解决、忽略或重新打开问题,并可附加评论
适用场景
适合在调试时让助手处理 Sentry 错误:查找生产环境未解决的问题、获取堆栈信息、确认问题由哪个发布引入,或在修复后关闭问题。
运行要求
通过 npx(Node.js)以 stdio 方式在桌面 MCP 客户端本地运行。需要 Sentry 认证令牌,放在 SENTRY_AUTH_TOKEN 中,具备 org:read、project:read、event:read、issue:read、issue:write 等权限。可用 SENTRY_BASE_URL 指向自建 Sentry 实例,并需能访问 Sentry API。
安装前请注意
该令牌可读取组织、项目、事件和问题数据,issue:write 还允许助手修改问题状态并发表评论,建议按最小权限创建并留意写操作。README 中列出的权限还包括 event:write。令牌以环境变量传入,应避免写入共享配置文件。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Sentry MCP Server

Connect AI assistants to Sentry — error tracking, issues, releases, events, and project management through the Model Context Protocol.

Works with Claude Desktop, Cursor, Windsurf, Cline, Continue, and any MCP-compatible client.

Features

ToolDescription
list_organizationsList all Sentry organizations you have access to
list_projectsList projects in an organization with slug, platform, and team info
list_issuesList issues with filters (environment, status, level, query, project)
get_issueGet full details of a specific issue — title, culprit, metadata, tags
list_issue_eventsList all events (occurrences) for a specific issue
get_eventGet full event details — exception, stacktrace, breadcrumbs, tags
list_releasesList releases in an organization with version, date, and authors
get_releaseGet details of a specific release with commit info and file changes
list_teamsList teams in an organization with member counts and slugs
list_membersList organization members with role and email
get_issue_hashesGet the grouping hashes (fingerprint) for an issue
update_issue_statusResolve, ignore, or unresolve an issue (and add a comment)

Quick Start

1. Get a Sentry Auth Token

Go to Sentry → Settings → Auth Tokens and create a token with the scopes you need (org:read, project:read, event:read, event:write, issue:read, issue:write).

Or visit: https://sentry.io/settings/auth-tokens/

2. Configure your MCP client

Claude Desktop — add to claude_desktop_config.json:

json
{  "mcpServers": {    "sentry": {      "command": "npx",      "args": ["-y", "sentry-mcp-server"],      "env": {        "SENTRY_AUTH_TOKEN": "sntrys_YOUR_TOKEN_HERE"      }    }  }}

Cursor — add to MCP settings (.cursor/mcp.json):

json
{  "mcpServers": {    "sentry": {      "command": "npx",      "args": ["-y", "sentry-mcp-server"],      "env": {        "SENTRY_AUTH_TOKEN": "sntrys_YOUR_TOKEN_HERE"      }    }  }}

3. Run manually (for testing)

bash
git clone https://github.com/friendlygeorge/sentry-mcp-server.gitcd sentry-mcp-servernpm installnpm run build
# RunSENTRY_AUTH_TOKEN=sntrys_xxx node dist/index.js

Environment Variables

VariableRequiredDefaultDescription
SENTRY_AUTH_TOKEN✅—Your Sentry auth token (sntrys_...)
SENTRY_BASE_URL❌https://sentry.io/api/0/Sentry API base URL. Override for self-hosted Sentry.

Self-hosted Sentry

If you run your own Sentry instance, set SENTRY_BASE_URL:

SENTRY_BASE_URL=https://sentry.yourcompany.com/api/0/

Example Queries

"List my Sentry organizations"

"Show me unresolved errors in the production environment for org acme project web"

"Get details of issue 1234567890 and show me the latest event's stack trace"

"Resolve issue 1234567890 and add a comment that it's fixed in v1.2.3"

"List the last 10 releases for acme"

"Who are the members of acme org and their roles?"

API Coverage

This server covers the most-used endpoints of the Sentry Web API:

  • Organizations (/organizations/)
  • Projects (/organizations/{org}/projects/)
  • Issues (/organizations/{org}/issues/, /issues/{id}/)
  • Events (/issues/{id}/events/, /projects/{org}/{project}/events/{id}/)
  • Releases (/organizations/{org}/releases/)
  • Teams (/organizations/{org}/teams/)
  • Members (/organizations/{org}/members/)

For the full Sentry API, see docs.sentry.io/api.

License

MIT © 2026 Nova

来源:README.md,提交 595a8e4

工具

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

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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