sentry-mcp-rs
A fast, lightweight MCP server for Sentry, written in Rust.
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
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-mcp
From GitHub:
cargo install --git https://github.com/utapyngo/sentry-mcp-rs.git
Or with mise:
mise use -g github:utapyngo/sentry-mcp-rs
The 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 credentials
Build and test with MCP Inspector:
cargo build --release
npx @modelcontextprotocol/inspector ./run.sh
Or 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
Related Servers
fal.ai Ideogram v3
Advanced text-to-image generation model with superior quality and text rendering via the fal.ai API.
IOL MCP Tool
Interact with the Invertir Online (IOL) API to manage investments and access market data.
Cost Management MCP
A server for unified cost management across various cloud providers and API services.
MultiversX MCP Server
Interact with the MultiversX blockchain for wallet creation, balance fetching, and token management.
kubeview-mcp
Read-only MCP server for AI-powered Kubernetes debugging with support of code execution
Remote MCP Server on Cloudflare
A remote MCP server deployable on Cloudflare Workers, featuring OAuth login support and local development capabilities.
Spring AI Weather Server
An MCP server providing weather tools from the National Weather Service (weather.gov) API, built with Spring Boot.
Replicate Designer
Generate images using Replicate's Flux 1.1 Pro model.
ONOS MCP Server
An MCP server for managing ONOS (Open Network Operating System) networks.
MCP Gemini Server
An MCP server that exposes Google's Gemini model capabilities as tools using the @google/genai SDK.