Sentry MCP Server
OfficialInvestigate errors, analyze issues, and debug with AI using Sentry data
The official Sentry MCP server connects your AI assistant to your Sentry error monitoring account. Retrieve issues, read stack traces, understand error frequency, and get AI-assisted debugging suggestions — all from your AI client. Authenticated via a Sentry auth token. Particularly powerful when combined with your codebase context, letting the AI see both the error and the relevant code at the same time.
Install Config
Config file: ~/Library/Application Support/Claude/claude_desktop_config.json· Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"sentry": {
"command": "npx",
"args": [
"-y",
"@sentry/mcp-server"
],
"env": {
"SENTRY_AUTH_TOKEN": "your_auth_token",
"SENTRY_ORG_SLUG": "your-org-slug"
}
}
}
}Required environment variables:
SENTRY_AUTH_TOKEN— Sentry authentication token(e.g. sntrys_eyJia...)SENTRY_ORG_SLUG— Your Sentry organization slug(e.g. my-org)
Available Tools (4)
| Tool name | Description |
|---|---|
| get_sentry_issue | Get details for a specific Sentry issue including stack trace |
| list_sentry_issues | List recent issues filtered by project, status, or query |
| get_sentry_event | Get a specific error event with full context |
| list_sentry_projects | List all Sentry projects in your organization |
Example Prompts
- “Show me the top 5 unresolved errors in my project”
- “What caused Sentry issue PROJ-1234?”
- “Are there any new errors in production this week?”
- “Get the full stack trace for the most recent error”
- “List all issues tagged as 'performance'”
Pros & Cons
Pros
- Official Sentry server — maintained by Sentry's team
- Read full stack traces and error context
- Powerful when combined with codebase access
Cons
- Requires a Sentry account and project
- Read-only — cannot resolve or assign issues
Who Is This For?
- ·Backend developers who use Sentry for error monitoring
- ·On-call engineers who want AI assistance during incident response
When to use: Use when you're debugging production errors and want the AI to understand the full stack trace context alongside your code.
Supported Clients
Related Servers
GitHub MCP Server
OfficialManage repos, issues, PRs, and code directly from your AI chat
The official GitHub MCP server gives your AI assistant full access to the GitHub API. Create issues, open pull requests,…
Git MCP Server
OfficialRun git commands and inspect local repositories from your AI
The official Git MCP server lets your AI assistant interact with local git repositories directly. Read commit history, c…
Filesystem MCP Server
OfficialGive your AI read and write access to your local files
The official Filesystem MCP server from Anthropic provides secure, configurable access to your local file system. You sp…