Sentry MCP Server

DevOpsstdiov0.4.0
Repository

MCP server for Sentry error tracking integration. Enables AI agents to retrieve and analyze issues, view error stack traces, search events by query, and access project performance data. Helps developers debug production errors by providing contextual error information directly in AI-powered development workflows.

Connect

Add this configuration to .claude/mcp.json

{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": [
        "-y",
        "@sentry/mcp-server"
      ],
      "env": {
        "SENTRY_AUTH_TOKEN": "<YOUR_SENTRY_AUTH_TOKEN>",
        "SENTRY_ORG": "<YOUR_SENTRY_ORG>"
      }
    }
  }
}

Tools (3)

list_issues

List recent issues from a Sentry project with status and frequency.

{
  "type": "object",
  "required": [
    "project"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Search query to filter issues"
    },
    "status": {
      "type": "string",
      "description": "Filter by status (unresolved, resolved, ignored)"
    },
    "project": {
      "type": "string",
      "description": "Sentry project slug"
    }
  }
}

get_issue_details

Get detailed information about a specific Sentry issue including stack trace.

{
  "type": "object",
  "required": [
    "issueId"
  ],
  "properties": {
    "issueId": {
      "type": "string",
      "description": "Sentry issue ID"
    }
  }
}

search_events

Search for error events matching a query across projects.

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "Sentry search query (e.g. error message, tag filters)"
    },
    "project": {
      "type": "string",
      "description": "Project slug to search within"
    },
    "timeRange": {
      "type": "string",
      "description": "Time range (e.g. 24h, 7d, 30d)"
    }
  }
}

Resources

This server does not expose any resources.

Prompts

This server does not expose any prompts.

Server Information

Author
Sentry (@getsentry)
Repository
https://github.com/getsentry/sentry-mcp
License
MIT
Version
0.4.0
Stars
704
Last Updated
May 25, 2026