← Back to MCP servers

Sentry

Sentry MCP Server

Monitor errors, search issues, and explore crash reports from Sentry in your AI coding assistant.

Token requiredGet credentials →

Last reviewed Mar 2, 2026

Install

claude mcp add sentry --transport stdio -- npx -y @sentry/mcp-server
Scope: project

Environment variables required:

SENTRY_AUTH_TOKEN=your-sentry-auth-token

Available tools

ToolDescription
list_issuesList error issues with filtering by project and status
get_issueGet detailed information about a specific error issue
list_projectsList all projects in your Sentry organization
search_eventsSearch error events across projects

What it does

The Sentry MCP Server connects your AI coding assistant to Sentry's error monitoring platform, giving it access to error reports, crash data, and issue tracking. This enables your assistant to help you investigate and fix bugs by looking at real error data, stack traces, and event context directly from your editor.

When debugging production issues, having Sentry data available to your AI assistant dramatically speeds up root cause analysis. The assistant can look up specific errors, analyze stack traces, identify patterns across events, and suggest fixes based on the actual error context.

Use cases

  • Look up error details and stack traces while debugging issues in your codebase
  • Search for specific error patterns to understand the scope and frequency of bugs
  • List recent issues to prioritize which bugs to fix next
  • Analyze error events to identify common causes and affected code paths
  • Review project health and error trends during development

Getting started

  1. Create a Sentry Auth Token at sentry.io/settings/account/api/auth-tokens. Select the scopes project:read, org:read, and event:read at minimum.
  2. Set the SENTRY_AUTH_TOKEN environment variable to your token value.
  3. The server accesses all organizations and projects your token has permissions for. Use organization-scoped tokens to limit access if needed.
  4. For the best debugging experience, ensure your Sentry projects have source maps uploaded so stack traces show original source code rather than minified bundles.