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 分