io.github.friendlygeorge/sentry-mcp-server

السجل الرسمي مؤرشف أدوات المطورين

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package sentry-mcp-server
Claude Code
claude mcp add sentry-mcp-server -e 'SENTRY_AUTH_TOKEN=<your sentry_auth_token>' -e 'SENTRY_BASE_URL=<SENTRY_BASE_URL>' -- npx -y sentry-mcp-server@1.0.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "sentry-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "sentry-mcp-server@1.0.0"
            ],
            "env": {
                "SENTRY_AUTH_TOKEN": "<your sentry_auth_token>",
                "SENTRY_BASE_URL": "<SENTRY_BASE_URL>"
            }
        }
    }
}

متغيرات البيئة

  • SENTRY_AUTH_TOKEN إلزامي سري Sentry auth token from Settings → Auth Tokens. Needs org:read, project:read, event:read, issue:read, issue:write scopes.
  • SENTRY_BASE_URL Sentry API base URL. Defaults to https://sentry.io/api/0/. Override for self-hosted Sentry.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Sentry MCP Server
  2. Features
  3. Quick Start
  4. Environment Variables
  5. Example Queries
  6. API Coverage
  7. License

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:

{
  "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):

{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": ["-y", "sentry-mcp-server"],
      "env": {
        "SENTRY_AUTH_TOKEN": "sntrys_YOUR_TOKEN_HERE"
      }
    }
  }
}
3. Run manually (for testing)
git clone https://github.com/friendlygeorge/sentry-mcp-server.git
cd sentry-mcp-server
npm install
npm run build

# Run
SENTRY_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

الأسئلة الشائعة

ما هو io.github.friendlygeorge/sentry-mcp-server؟

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

كيف أثبّت io.github.friendlygeorge/sentry-mcp-server؟

يعمل على جهازك. في Claude Code: claude mcp add sentry-mcp-server -e 'SENTRY_AUTH_TOKEN=<your sentry_auth_token>' -e 'SENTRY_BASE_URL=<SENTRY_BASE_URL>' -- npx -y sentry-mcp-server@1.0.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.friendlygeorge/sentry-mcp-server إلى مفتاح API؟

نعم. يتطلب SENTRY_AUTH_TOKEN، وتضبطها في إعداداته.

هل io.github.friendlygeorge/sentry-mcp-server مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.friendlygeorge/sentry-mcp-server؟

ينشره friendlygeorge. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.