Skip to main content
Glama
elad12390

Sentry MCP Server

by elad12390

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SENTRY_ORGNoOrganization slug. Optional — if omitted, the first org the token can access is auto-detected.
SENTRY_URLNoBase URL of your Sentry instance. Default https://sentry.io.https://sentry.io
SENTRY_PROJECTNoDefault project slug used for tag-value lookups. Optional — defaults to the first project in the org.
SENTRY_AUTH_TOKENYesA Sentry auth token. Create one at Settings → Auth Tokens or User Settings → Personal Tokens. Required scopes: org:read, project:read, event:read.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sentry_search_issuesA

🔍 THE PRIMARY SENTRY SEARCH TOOL - Use this when the user asks to: 'check sentry', 'look at errors', 'search sentry', 'what's breaking', 'show me errors', 'find this exception', 'any new crashes', 'unresolved issues', 'top errors', 'how many errors', 'error rate', or 'error trend'. Searches grouped issues across the whole org automatically (no project needed) or filtered by a specific project. Uses Sentry search syntax in query (e.g. 'is:unresolved level:error', 'is:unresolved release:latest', free text like a message or exception type). Set count=true to get error event COUNTS and a TREND chart over time instead of the issue list.

sentry_trace_lookupA

🔗 TRACE ID LOOKUP TOOL - Use when the user mentions a Sentry trace ID (a 32-char hex string like 'ce8f0d3961214198a040517b3dfda0d4') or asks: 'find this trace', 'what happened in this request', 'follow this trace across services', 'what services touched this request', 'show the trace timeline', or 'distributed trace'. CRITICAL: when a user pastes a trace ID and asks to find/follow it, use THIS tool - not search_issues. It returns every span and error across all projects/services that participated in the trace, grouped by service with a timeline.

sentry_get_issue_detailsA

🔎 ROOT CAUSE TOOL - Use when the user asks: 'what happened before this error', 'show the stack trace', 'get context', 'why did this fail', 'details of this issue', 'what led to this', or as a follow-up after finding an interesting issue with sentry_search_issues. Fetches the full picture of one issue: summary (level, counts, first/last seen), the exception + stack trace, the BREADCRUMBS (the chronological events leading UP TO the error - the equivalent of 'logs before'), request context, tags, and the trace ID for cross-service investigation.

sentry_pattern_analysisA

🧩 Use when the user asks: 'group similar errors', 'what error patterns', 'types of errors', 'categorize errors', 'what's the breakdown', 'do we have one problem or many', or during an incident. Sentry already groups events into issues; this tool ranks those issue groups by event volume and merges near-duplicate issue titles (stripping IDs/UUIDs/numbers) into higher-level patterns. ESSENTIAL for incident triage - instantly see whether you have 1 dominant problem or 50 different ones, and which patterns drive the most events.

Prompts

Interactive templates invoked by user choice

NameDescription
debug-errorGuided workflow to debug an error in Sentry. Searches for the issue, pulls the stack trace and breadcrumbs leading up to it, and checks how widespread it is.
trace-requestFollow a request across all services using its Sentry trace ID. Shows the complete journey of a request through your distributed system, including any errors.
health-checkQuick production health check. Lists projects, counts recent error events and their trend, and identifies the dominant error patterns.

Resources

Contextual data attached and managed by the client

NameDescription
projectsList of all projects in the Sentry organization (read this first to know what to filter by)
tagsAll tag keys (searchable/filterable metadata) available in the org

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elad12390/sentry-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server