Sentry MCP Server
Published · Updated
At a glance
- Category
- Observability
- GitHub repository
- getsentry/toolkit
- Watch out for
- It deliberately does not cover all of Sentry's functionality; admin and configuration work still belongs in the UI or API.
Sentry's MCP server lives in the getsentry/toolkit repository, which also holds the Sentry CLI. The earlier getsentry/sentry-mcp address redirects there. Most people use the hosted version at mcp.sentry.dev, and Sentry is clear about its scope: it is built for human-in-the-loop coding agents and debugging, not as a general wrapper around every Sentry API.
That focus shows in the tools. The core workflow is finding issues and events, reading an issue's details and stack trace, and, on sentry.io, asking Seer, Sentry's AI debugging agent, for a root cause analysis. For a developer the value is obvious: you can paste an issue link into your coding agent and have it read the error and the surrounding events and then look at the code in your repository, all in one place.
Several of the search tools translate your plain-language question into Sentry's query syntax using an LLM. On the hosted service that is handled for you. If you run the server yourself, for example against a self-hosted Sentry, you have to configure an LLM provider (OpenAI, Azure OpenAI, Anthropic or OpenRouter) for those tools to work.
How it connects
Your AI app
An assistant or agent that supports MCP
Sentry MCP Server
Runs as
- npx (Node.js)
- Remote (HTTP)
Gives the agent
- Issue and event search
- Issue inspection
- Seer analysis
- Skills to limit the tool set
Sentry
Signs in with
- API key
What it can do
- Issue and event search
- search_issues and search_events, along with AI-assisted search for errors, traces and logs, turn questions like "unresolved errors in checkout this week" into Sentry queries.
- Issue inspection
- The inspect skill reads issue details, stack traces and event data, which is usually what a coding agent needs to start a fix.
- Seer analysis
- The seer skill asks Sentry's AI agent for root cause analysis. It is dropped by default for self-hosted Sentry.
- Skills to limit the tool set
- Tools are grouped into skills such as inspect, triage, seer and project-management. Use ?skills= or ?disable-skills= on the remote URL, or MCP_SKILLS and MCP_DISABLE_SKILLS locally.
Setting it up
For sentry.io, add an HTTP server at https://mcp.sentry.dev/mcp and sign in when your client prompts. Sentry also publishes a Claude Code plugin. To run it locally, use the @sentry/mcp-server package, which the README now lists as a legacy option next to the Sentry CLI: run npx @sentry/mcp-server@latest auth login once, then npx @sentry/mcp-server@latest, or set SENTRY_AUTH_TOKEN to a user auth token instead. For self-hosted Sentry, set SENTRY_HOST (or SENTRY_URL for an internal address without TLS), and set EMBEDDED_AGENT_PROVIDER plus the matching API key if you want the AI-powered search tools. The older SENTRY_ACCESS_TOKEN variable still works but prints a deprecation warning.
claude mcp add sentry -- npx -y @sentry/mcp-server@latestRuns the @sentry/mcp-server package from npm. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Pasting a Sentry issue into your coding agent and asking it to find and fix the cause in your code
- Asking which new errors appeared after today's deploy
- Getting a Seer root cause analysis for a recurring production error
- Triaging a backlog of issues from the editor instead of the Sentry UI
Limitations and things to watch
- It deliberately does not cover all of Sentry's functionality; admin and configuration work still belongs in the UI or API.
- Running it locally over stdio is mainly meant for self-hosted Sentry, and you have to manage the auth token yourself.
- AI search tools need an LLM provider when self-hosted, which adds cost and another API key.
- Calls count against Sentry API rate limits. The README advises running Sentry tool calls one at a time if you hit them.
Sources
Written from the project's own documentation, checked November 2026.
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.