BACK TO DIRECTORY
mcpintermediate

Sentry

Integrates Sentry error tracking into your Claude Code workflow. Browse recent errors with full stack traces, investigate specific issues, view error frequency trends, manage alert rules, and search across events. Enables Claude to help debug production issues by correlating errors with recent code changes.

890 STARS
12.3k DOWNLOADS
sentry
sentryerrorsmonitoringdebuggingobservability

INSTALL COMMAND

npx @anthropic-ai/claude-code mcp add sentry -- npx -y @sentry/mcp-server-sentry

CONFIGURATION

json
1{
2 "mcpServers": {
3 "sentry": {
4 "command": "npx",
5 "args": [
6 "-y",
7 "@sentry/mcp-server-sentry"
8 ],
9 "env": {
10 "SENTRY_AUTH_TOKEN": "<your-sentry-auth-token>",
11 "SENTRY_ORG": "<your-sentry-org-slug>"
12 }
13 }
14 }
15}
16
17// Setup steps:
18// 1. Go to Sentry > Settings > Auth Tokens
19// 2. Create a token with project:read, event:read scopes
20// 3. Set SENTRY_AUTH_TOKEN and SENTRY_ORG
21//
22// Available tools:
23// - list_issues: Get recent issues with error counts
24// - get_issue: Get full issue details and stack trace
25// - search_events: Search across all error events
26// - get_issue_events: List events for a specific issue
27// - resolve_issue: Mark an issue as resolved
28// - list_projects: List Sentry projects in the org
29//
30// Debugging workflow:
31// 1. Ask Claude to check Sentry for recent errors
32// 2. Claude inspects the stack trace and error context
33// 3. Claude locates the relevant source code
34// 4. Claude suggests a fix based on the error pattern