sentry-mcp-rs
Provides tools to interact with Sentry's API, enabling retrieval of detailed issue information, stacktraces, and distributed tracing data, as well as searching for specific events within issues.
sentry-mcp
A fast, lightweight MCP server for Sentry, written in Rust.
Why sentry-mcp?
Compared to the official Node.js server:
Memory: 10x less RAM usage
Startup: instant cold start
Disk: single binary, no runtime dependencies
Tokens: fewer tools = smaller tool list in context
Related MCP server: Outline knowledge base MCP Server
Features
This MCP server provides tools to interact with Sentry's API:
get_issue_details - Retrieve detailed information about a Sentry issue including metadata, tags, stacktraces, and optionally a specific event
get_trace_details - Retrieve trace details including span tree and timing information for distributed tracing analysis
search_issue_events - Search events within an issue using Sentry's query syntax
Installation
From crates.io:
cargo install sentry-mcpFrom GitHub:
cargo install --git https://github.com/utapyngo/sentry-mcp-rs.gitOr with mise:
mise use -g github:utapyngo/sentry-mcp-rsThe binary will be installed as sentry-mcp.
Configuration
Required environment variables:
SENTRY_AUTH_TOKEN- Your Sentry API authentication tokenSENTRY_HOST- Your Sentry instance hostname (e.g.,sentry.io)
Optional:
SOCKS_PROXY- SOCKS5 proxy URL (e.g.,socks5://127.0.0.1:1080)HTTPS_PROXY- HTTPS proxy URL
MCP Client Configuration
Add to your MCP client configuration:
{
"mcpServers": {
"sentry": {
"command": "sentry-mcp",
"env": {
"SENTRY_AUTH_TOKEN": "your_token_here",
"SENTRY_HOST": "sentry.io"
}
}
}
}Or without installation using mise:
{
"mcpServers": {
"sentry": {
"command": "mise",
"args": ["x", "github:utapyngo/sentry-mcp-rs", "--", "sentry-mcp"],
"env": {
"SENTRY_AUTH_TOKEN": "your_token_here",
"SENTRY_HOST": "sentry.io"
}
}
}
}Development
Clone the repository and create a .env file:
git clone https://github.com/utapyngo/sentry-mcp-rs.git
cd sentry-mcp-rs
cp .env.example .env
# Edit .env with your credentialsBuild and test with MCP Inspector:
cargo build --release
npx @modelcontextprotocol/inspector ./run.shOr configure MCP client to use the script:
{
"mcpServers": {
"sentry": {
"command": "/path/to/sentry-mcp-rs/run.sh"
}
}
}Tools
get_issue_details
Retrieve detailed information about a specific Sentry issue.
Parameters:
issue_url- Full Sentry issue URL (alternative to the parameters below)organization_slug- Organization slug (required ifissue_urlnot provided)issue_id- Issue ID likePROJECT-123or numeric ID (required ifissue_urlnot provided)event_id- Specific event ID to fetch instead of latest (optional)
get_trace_details
Retrieve trace details for distributed tracing analysis.
Parameters:
organization_slug- Organization slugtrace_id- 32-character hex trace ID
search_issue_events
Search events within an issue using Sentry's query syntax.
Parameters:
organization_slug- Organization slugissue_id- Issue ID (e.g.,PROJECT-123)query- Optional Sentry search querylimit- Maximum events to return (default: 10, max: 100)sort- Sort order:newest(default) oroldest
Available Tools
3 toolsget_issue_detailsA
Retrieve detailed information about a specific Sentry issue including metadata, tags, and optionally an event. Accepts either an issueUrl OR (organizationSlug + issueId).
Inputs: event_id, issue_id, issue_url, organization_slug.
get_trace_detailsA
Retrieve trace details including span tree and timing information. Useful for analyzing distributed system performance.
Inputs: organization_slug (required), trace_id (required).
search_issue_eventsB
Search events for a specific issue using a query string. Returns matching events with their details.
Inputs: issue_id (required), organization_slug (required), limit, query, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct operation: issue details, trace details, and event search. There is no overlap or ambiguity between them.
All tools follow a consistent verb_noun pattern using snake_case, e.g., get_issue_details, get_trace_details, search_issue_events.
Three tools is on the lower side but still reasonable for a focused Sentry server covering core issue and trace functionality.
The set lacks essential CRUD operations like listing issues, updating issue status, or resolving issues, leaving significant gaps for a comprehensive Sentry workflow.
Maintenance
Related MCP Connectors
MCP server for Sentry - error monitoring, issue tracking, and debugging for AI assistants
A simple MCP server built with FastMCP and python
Related MCP Servers
AlicenseAqualityBmaintenanceA remote Model Context Protocol server acting as middleware to the Sentry API, allowing AI assistants like Claude to access Sentry data and functionality through natural language interfaces.746 npm961MIT- AlicenseNot gradedqualityDmaintenanceMCP server for Outline knowledge base implemented on Rust as one statically linked executable file for Linux/MacOS/Windows.7MIT
- AlicenseAqualityCmaintenanceDeterministic dependency + CVE context for AI coding tools, over the Model Context Protocol. A ~0.85 MB pure-Rust MCP server.21MIT
- AlicenseNot gradedqualityBmaintenanceOpen-source, engine-agnostic MCP server shared by Unity-MCP, Godot-MCP, and Unreal-MCP. Additionally you can use AI Game Dev app (https://ai-game.dev) to generate images, video, audio, 3D, rig, animation and much more.19Apache 2.0