Sentry MCP Server
Officialby Sentry
The Sentry MCP Server gives your AI coding assistant direct access to your Sentry error monitoring data. Instead of switching between your editor and the Sentry dashboard to look up stack traces, you can ask Claude, Cursor, or VS Code Copilot to pull issue details, search for errors, and even trigger root cause analysis -- all without leaving your workflow. The server exposes 16 tools organized into groups you select during setup. At the core, you get issue retrieval and search across all your projects, detailed error investigation with full stack traces, and integration with Sentry's Seer AI agent for automated root cause analysis and fix suggestions. Beyond debugging, you can manage projects, create DSNs, check release health, and query performance data. The recommended setup uses the remote OAuth server at mcp.sentry.dev/mcp. You authenticate with your existing Sentry org credentials and you are done -- no API tokens to manage, no packages to install locally. If you run a self-hosted Sentry instance or prefer local execution, install @sentry/mcp-server via npm and configure a SENTRY_AUTH_TOKEN. Transport-wise, the server supports Streamable HTTP with automatic fallback to Server-Sent Events (SSE), which means it works reliably across different MCP client implementations. OAuth scoping lets you control exactly which tool groups are available to your LLM, keeping context windows focused on what matters for your current task. One practical pattern: chain multiple tool calls to gather context before triggering Seer analysis. Ask your assistant to find recent unresolved issues in a project, pick the highest-impact one, pull the full event data, then run Seer to get a fix proposal. The MCP server handles the Sentry API orchestration while your LLM handles the reasoning. MCP is still a developing protocol, so expect occasional rough edges. But for teams already on Sentry, this is probably the fastest way to get error context into your AI-assisted development workflow.
Installation
Key Features
- ✓Search and retrieve Sentry issues, errors, and stack traces across all projects directly from your AI assistant
- ✓Trigger Seer AI root cause analysis and get fix suggestions without leaving your editor
- ✓Remote OAuth authentication via mcp.sentry.dev -- no tokens or local install required for the hosted option
- ✓16 tools organized into selectable groups (issues, projects, teams, releases, DSNs, performance) to keep context windows lean
- ✓Streamable HTTP transport with SSE fallback for broad MCP client compatibility
- ✓Self-hosted Sentry support via local STDIO mode with @sentry/mcp-server npm package
Use Cases
- →Debugging production errors: Ask your AI assistant to pull the latest unresolved issues, inspect stack traces, and suggest fixes based on Seer analysis -- all in one conversation
- →Onboarding to a new codebase: Query Sentry for the most frequent errors in a project to quickly understand where the pain points are before diving into code
- →Release validation: After deploying, ask your assistant to check release health, compare error rates to the previous release, and flag any new regressions
- →Incident response: During an outage, chain tool calls to search for related errors across multiple projects, correlate them, and get AI-generated root cause hypotheses
- →Project setup: Create new Sentry projects and retrieve DSN keys from within your editor when bootstrapping new services