Twinkle HubTwinkle Hub
Sign in

📌 2026-05-12 added: Legislature dataset live (8 datasets · 284,257+ rows)

View full changelog →

Sentry MCP

Sentry

Sentry's official MCP — LLM browses your org's issues, events, releases, performance. Most common use: auto-analysing production error stack traces and suggesting fixes.

Token required5-min install

Why client-side

A Sentry auth token can read (and depending on scope, write) your entire org's error data — including user PII and code snippets in stack traces. High-sensitivity credential. twinkle-hub does not store it.

Prerequisites

  • Node.js ≥ 18
  • Sentry account with org admin (or have admin issue you a token)
  • MCP-capable client

Get a token

  1. 1Log in at https://sentry.io
  2. 2User settings → Auth Tokens → Create New Token
  3. 3Name it (e.g. "claude-mcp")
  4. 4Scopes — read: event:read / project:read / org:read / team:read. Write (be careful): event:write / project:write / team:write
  5. 5Copy the token (starts with sntryu_)
  6. 6For teams, prefer an Organization token: org settings → Developer Settings → Custom Integrations → create an internal integration

Install

Claude Desktop (macOS)

~/Library/Application Support/Claude/claude_desktop_config.json

SENTRY_HOST: for SaaS use sentry.io; for self-hosted use your host (without https://)

{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": ["-y", "@sentry/mcp-server"],
      "env": {
        "SENTRY_AUTH_TOKEN": "<your_sentry_token>",
        "SENTRY_ORG": "<your_org_slug>",
        "SENTRY_HOST": "sentry.io"
      }
    }
  }
}

Full install doc (GitHub)

First run

Try this prompt

List unresolved critical issues on Sentry

Common tools

  • list_organization_projects(organization_slug) list projects
  • list_issues(project_slug, query="is:unresolved") find unresolved issues
  • get_issue_details(issueId) full stack trace + breadcrumbs
  • list_events(issueId) every occurrence of an issue
  • update_issue(issueId, status="resolved") mark resolved (needs write scope)

Troubleshooting

SymptomFix
401 UnauthorizedToken expired or scope insufficient
Project missingToken scope doesn't cover that project, or account lacks permission
Organization not foundSENTRY_ORG must be the slug, not the display name
Self-hosted unreachableSENTRY_HOST correct? Does your reverse proxy expose /api/0?

Security notes

  • Treat the token like a password — never commit to git
  • Start with read-only scope, watch behaviour, then expand if needed
  • Don't grant member:admin / org:admin / project:admin to the LLM token
  • Revoke immediately when no longer needed