MCP Server for Self-Hosted Sentry

Bring your Sentry data to AI assistants.

Query issues, events, releases, users, org stats, and project diagnostics from your self-hosted Sentry—securely. 24 tools. Read-only by default. Built for AI workflows.

Self-hosted Read-only by default 24 tools
Ask your AI assistant anything about your Sentry
> Show me top issues in production this week
Top Issues (This Week)
IssueEventsUsersFirst Seen
TypeError: Cannot read property 'x'3,4321222d ago
DBConnectionError: timeout1,987983d ago
ChunkLoadError: Loading chunk 23 failed1,102765d ago
Source: sentry-selfhosted-mcp

The problem

Sentry is powerful, but hard to access programmatically in AI workflows.

No native AI integration

Sentry UI is not designed for AI assistants or automation.

Manual & time-consuming

Copy-paste, clicking around, exporting data—slow and error-prone.

Security concerns

Sending data to third-party services is risky.

Limited context

AI lacks real-time context from issues, releases, users, and system health.

What it does

A secure MCP server that exposes your Sentry data to AI assistants.

Issues & Events

Search, filter, and inspect issues and events.

Releases

List, inspect, and compare releases.

Users

Lookup users and activity insights.

Organizations

Org stats and usage overview.

Diagnostics

Project health and system diagnostics.

AI-Ready

Structured, concise, and context-rich responses.

Quickstart (1 minute)

Configure your AI client to use the MCP server.

1

Get an Auth Token in Sentry

Create a token with read access.

2

Add to your MCP client config

Use the command below.

3

Start querying

Ask questions about your Sentry data.

{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": ["-y", "sentry-selfhosted-mcp"],
      "env": {
        "SENTRY_URL": "https://sentry.yourcompany.com",
        "SENTRY_AUTH_TOKEN": "sntrys_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "SENTRY_ORG_SLUG": "your-org"
      }
    }
  }
}
{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": ["-y", "sentry-selfhosted-mcp"],
      "env": {
        "SENTRY_URL": "https://sentry.yourcompany.com",
        "SENTRY_AUTH_TOKEN": "sntrys_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "SENTRY_ORG_SLUG": "your-org"
      }
    }
  }
}
{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": ["-y", "sentry-selfhosted-mcp"],
      "env": {
        "SENTRY_URL": "https://sentry.yourcompany.com",
        "SENTRY_AUTH_TOKEN": "sntrys_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "SENTRY_ORG_SLUG": "your-org"
      }
    }
  }
}
{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": ["-y", "sentry-selfhosted-mcp"],
      "env": {
        "SENTRY_URL": "https://sentry.yourcompany.com",
        "SENTRY_AUTH_TOKEN": "sntrys_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "SENTRY_ORG_SLUG": "your-org"
      }
    }
  }
}

24 tools. Organized for productivity.

Issues (7)

  • search_issues
  • get_issue
  • get_issue_events
  • get_issue_tags
  • get_top_issues
  • get_issue_users
  • get_issue_trends

Events (6)

  • search_events
  • get_event
  • get_event_contexts
  • get_event_tags
  • get_top_events
  • get_event_trends

Releases (4)

  • list_releases
  • get_release
  • compare_releases
  • get_release_issues

Users (2)

  • search_users
  • get_user

Organizations (2)

  • get_organization
  • get_organization_stats

Diagnostics (3)

  • get_project_health
  • get_project_stats
  • ping

Trust & Safety

Your data stays your data.

Self-hosted

Runs against your Sentry instance. No data leaves your network.

Token-based auth

Uses your Sentry Auth Token. No password. No storage.

Read-only by default

All tools are read-only. Safe for production.

Open source

Transparent and auditable. Built with security in mind.

Supercharge your Sentry workflow with AI.

Join developers using sentry-selfhosted-mcp to ship faster.

View on GitHub
HieuAnh87/sentry-selfhosted-mcp
Latest release v1.1.3
See all releases →