MCP ConfigsApr 6, 2026·2 min read

Sentry MCP — Error Monitoring Server for AI Agents

MCP server that connects AI agents to Sentry for real-time error monitoring. Query issues, analyze stack traces, track regressions, and resolve bugs with full crash context. 2,000+ stars.

MC
MCP Hub · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

Add to your .mcp.json:

{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": ["-y", "@sentry/mcp-server"],
      "env": {
        "SENTRY_AUTH_TOKEN": "sntrys_your_token",
        "SENTRY_ORG": "your-org"
      }
    }
  }
}

Get your token at sentry.io/settings/auth-tokens. Restart Claude Code.


Intro

Sentry MCP is a Model Context Protocol server that connects AI agents like Claude Code to Sentry error monitoring with 2,000+ GitHub stars. Query recent issues, analyze stack traces, view affected users, track regressions, and even resolve bugs — all through natural language. Your AI agent gets real-time visibility into production errors with full crash context. Best for developers who use Sentry and want AI-assisted debugging. Works with: Claude Code, Cursor, any MCP client. Setup time: under 2 minutes.


Available Tools

sentry_list_issues

"Show the top 10 unresolved errors from the last 24 hours"
"List all critical issues affecting more than 100 users"

sentry_get_issue

"Show the full stack trace for issue PROJ-1234"
"What caused the TypeError in the payment module?"

sentry_search

"Search for errors containing 'connection refused'"
"Find all issues tagged with 'database'"

sentry_resolve

"Mark issue PROJ-1234 as resolved"
"Ignore issue PROJ-5678 — it is a known upstream bug"

sentry_stats

"Show error trends for the last 7 days"
"Which release introduced the most new issues?"

Use Cases

Debug Production Errors

"Show me the latest unresolved error, read the stack trace, then find and fix the bug in our code"
-> Agent queries Sentry, reads the trace, navigates to the buggy file, writes a fix

Release Health

"Compare error rates between v2.3 and v2.4 releases"
-> Agent queries Sentry stats and identifies regressions

Key Stats

  • 2,000+ GitHub stars
  • Official Sentry integration
  • Issue listing, search, resolution
  • Stack trace analysis
  • Release and regression tracking

FAQ

Q: What is Sentry MCP? A: An MCP server that gives AI agents access to Sentry error monitoring — query issues, read stack traces, and resolve bugs via natural language.

Q: Is Sentry MCP free? A: The MCP server is open-source. Sentry has a free tier for small projects.

Q: Can the agent auto-fix bugs from Sentry? A: Yes — the agent reads the stack trace from Sentry, navigates to the buggy file in your project, and writes a fix.


🙏

Source & Thanks

Created by Sentry. Licensed under MIT.

sentry-mcp — ⭐ 2,000+

Thanks to Sentry for closing the loop between error monitoring and AI-assisted fixing.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets