# Sentry MCP — Error Monitoring Server for AI Agents > MCP server that connects AI agents to Sentry for real-time error monitoring. Query issues, analyze stack traces, track regressions, and resolve bugs with full crash context. 2,000+ stars. ## Install Merge the JSON below into your `.mcp.json`: ## Quick Use Add to your `.mcp.json`: ```json { "mcpServers": { "sentry": { "command": "npx", "args": ["-y", "@sentry/mcp-server"], "env": { "SENTRY_AUTH_TOKEN": "sntrys_your_token", "SENTRY_ORG": "your-org" } } } } ``` Get your token at [sentry.io/settings/auth-tokens](https://sentry.io/settings/auth-tokens/). Restart Claude Code. --- ## Intro Sentry MCP is a Model Context Protocol server that connects AI agents like Claude Code to Sentry error monitoring with 2,000+ GitHub stars. Query recent issues, analyze stack traces, view affected users, track regressions, and even resolve bugs — all through natural language. Your AI agent gets real-time visibility into production errors with full crash context. Best for developers who use Sentry and want AI-assisted debugging. Works with: Claude Code, Cursor, any MCP client. Setup time: under 2 minutes. --- ## Available Tools ### `sentry_list_issues` ``` "Show the top 10 unresolved errors from the last 24 hours" "List all critical issues affecting more than 100 users" ``` ### `sentry_get_issue` ``` "Show the full stack trace for issue PROJ-1234" "What caused the TypeError in the payment module?" ``` ### `sentry_search` ``` "Search for errors containing 'connection refused'" "Find all issues tagged with 'database'" ``` ### `sentry_resolve` ``` "Mark issue PROJ-1234 as resolved" "Ignore issue PROJ-5678 — it is a known upstream bug" ``` ### `sentry_stats` ``` "Show error trends for the last 7 days" "Which release introduced the most new issues?" ``` ## Use Cases ### Debug Production Errors ``` "Show me the latest unresolved error, read the stack trace, then find and fix the bug in our code" -> Agent queries Sentry, reads the trace, navigates to the buggy file, writes a fix ``` ### Release Health ``` "Compare error rates between v2.3 and v2.4 releases" -> Agent queries Sentry stats and identifies regressions ``` ### Key Stats - 2,000+ GitHub stars - Official Sentry integration - Issue listing, search, resolution - Stack trace analysis - Release and regression tracking ### FAQ **Q: What is Sentry MCP?** A: An MCP server that gives AI agents access to Sentry error monitoring — query issues, read stack traces, and resolve bugs via natural language. **Q: Is Sentry MCP free?** A: The MCP server is open-source. Sentry has a free tier for small projects. **Q: Can the agent auto-fix bugs from Sentry?** A: Yes — the agent reads the stack trace from Sentry, navigates to the buggy file in your project, and writes a fix. --- ## Source & Thanks > Created by [Sentry](https://github.com/getsentry). Licensed under MIT. > > [sentry-mcp](https://github.com/getsentry/sentry-mcp) — ⭐ 2,000+ Thanks to Sentry for closing the loop between error monitoring and AI-assisted fixing. --- ## 快速使用 将以下配置添加到 `.mcp.json`: ```json { "mcpServers": { "sentry": { "command": "npx", "args": ["-y", "@sentry/mcp-server"], "env": { "SENTRY_AUTH_TOKEN": "sntrys_你的令牌", "SENTRY_ORG": "你的组织" } } } } ``` --- ## 简介 Sentry MCP 是一个将 AI Agent 连接到 Sentry 错误监控的 MCP 服务器,GitHub 2,000+ stars。查询错误、分析堆栈跟踪、追踪回归。Agent 可以从 Sentry 读取错误上下文,然后在代码中找到并修复 bug。 --- ## 来源与感谢 > Created by [Sentry](https://github.com/getsentry). Licensed under MIT. > > [sentry-mcp](https://github.com/getsentry/sentry-mcp) — ⭐ 2,000+ --- Source: https://tokrepo.com/en/workflows/a739e813-e8fa-4285-8634-55aa447dd71a Author: MCP Hub