Sentry MCP
Lets your AI agent look up Sentry errors, issues, traces and logs to debug and track down problems.
957 stars on GitHubby SentryLicense NOASSERTIONUpdated 18 days ago
How to install
This MCP has two ways to run: local or remote.
Pick one below. Local runs on your computer; remote runs in the cloud and needs nothing installed.
Paste in the terminal:
claude mcp add sentry -e SENTRY_AUTH_TOKEN="<your value>" -- npx -y @sentry/mcp-server
What to fill in
| Name | What it is | Required |
|---|---|---|
SENTRY_AUTH_TOKEN | Your Sentry user authentication token | Yes |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Show me the most common unresolved errors in my project this week.
Find the issue behind this stack trace and tell me which release introduced it.
What it is
The Sentry MCP server connects your coding agent to your Sentry account. It is built for developer workflows such as finding errors, reading issues and tracing performance problems. You can use the hosted service at mcp.sentry.dev or run a local version, including against a self-hosted Sentry.
What it can do
search_errors: find errors using plain-language queriessearch_issues: search issuessearch_traces: search tracessearch_logs: search logs- Skills such as inspect, triage, seer and project-management group the tools
- A Claude Code plugin adds a sentry-mcp subagent
When to use
- βΊWhen you want your agent to find the cause of a production error
- βΊWhen you want to check recent issues in a project and sort out which need attention
- βΊWhen you want to look at traces to find a slow request
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
debug-with-sentryFinds the root cause of a production error using Sentry's stack traces and events, and separates where a crash happens from what triggered it.sentry-fix-issuesHelps your agent investigate errors from Sentry, reading stack traces and context to find the cause and then propose a fix.sentryHelps your agent look up Sentry errors and issues in read-only mode, so you can see recent production problems and basic health data.Frequently asked questions
Is it free and open source?
The code is public on GitHub. You need a Sentry account, and pricing for that is not in the readme.
Can I use it with self-hosted Sentry?
Yes. Set SENTRY_HOST to your host. The seer skill is dropped by default on self-hosted installs because Seer is not part of self-hosted Sentry.
Which scopes does the token need?
The readme lists org:read, project:read, project:write, team:read, team:write and event:write.
Why do some search tools not appear?
The AI-powered search tools need an LLM provider configured. Without one they are unavailable, but other tools still work.
Can I use it without OAuth?
Yes. Use a user auth token with SENTRY_AUTH_TOKEN, or send a Sentry-Bearer header to the hosted server.
What about rate limits?
Sentry API limits apply. The server retries, and if you see a Rate Limited message, run Sentry tool calls one at a time.
If it does not work
- βΊRun npx @sentry/mcp-server@latest auth login once to sign in, or set SENTRY_AUTH_TOKEN.
- βΊIf search tools are missing, set EMBEDDED_AGENT_PROVIDER and the matching API key.
- βΊOn a rate limit message, run tool calls one at a time instead of in parallel.
5 new skills a week. 1 minute to read.