A fast, lightweight MCP server for Sentry, written in Rust. 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 This MCP server provides tools to interact with Sentry's API: - getissuedetails - Retrieve detailed information about a Sentry issue includi
Add this skill
npx mdskills install utapyngo/sentry-mcp-rsWell-documented MCP server with three focused Sentry API tools and clear setup instructions
1# sentry-mcp23[](https://crates.io/crates/sentry-mcp)4[](https://codecov.io/gh/utapyngo/sentry-mcp-rs)5[](https://opensource.org/licenses/MIT)67A fast, lightweight [MCP](https://modelcontextprotocol.io/) server for Sentry, written in Rust.89## Why sentry-mcp?1011Compared to the [official Node.js server](https://www.npmjs.com/package/@sentry/mcp-server):1213- **Memory:** 10x less RAM usage14- **Startup:** instant cold start15- **Disk:** single binary, no runtime dependencies16- **Tokens:** fewer tools = smaller tool list in context1718## Features1920This MCP server provides tools to interact with Sentry's API:2122- **get_issue_details** - Retrieve detailed information about a Sentry issue including metadata, tags, stacktraces, and optionally a specific event23- **get_trace_details** - Retrieve trace details including span tree and timing information for distributed tracing analysis24- **search_issue_events** - Search events within an issue using Sentry's query syntax2526## Installation2728From crates.io:2930```bash31cargo install sentry-mcp32```3334From GitHub:3536```bash37cargo install --git https://github.com/utapyngo/sentry-mcp-rs.git38```3940Or with [mise](https://mise.jdx.dev/):4142```bash43mise use -g github:utapyngo/sentry-mcp-rs44```4546The binary will be installed as `sentry-mcp`.4748## Configuration4950Required environment variables:51- `SENTRY_AUTH_TOKEN` - Your Sentry API authentication token52- `SENTRY_HOST` - Your Sentry instance hostname (e.g., `sentry.io`)5354Optional:55- `SOCKS_PROXY` - SOCKS5 proxy URL (e.g., `socks5://127.0.0.1:1080`)56- `HTTPS_PROXY` - HTTPS proxy URL5758## MCP Client Configuration5960Add to your MCP client configuration:6162```json63{64 "mcpServers": {65 "sentry": {66 "command": "sentry-mcp",67 "env": {68 "SENTRY_AUTH_TOKEN": "your_token_here",69 "SENTRY_HOST": "sentry.io"70 }71 }72 }73}74```7576Or without installation using mise:7778```json79{80 "mcpServers": {81 "sentry": {82 "command": "mise",83 "args": ["x", "github:utapyngo/sentry-mcp-rs", "--", "sentry-mcp"],84 "env": {85 "SENTRY_AUTH_TOKEN": "your_token_here",86 "SENTRY_HOST": "sentry.io"87 }88 }89 }90}91```9293## Development9495Clone the repository and create a `.env` file:9697```bash98git clone https://github.com/utapyngo/sentry-mcp-rs.git99cd sentry-mcp-rs100cp .env.example .env101# Edit .env with your credentials102```103104Build and test with MCP Inspector:105106```bash107cargo build --release108npx @modelcontextprotocol/inspector ./run.sh109```110111Or configure MCP client to use the script:112113```json114{115 "mcpServers": {116 "sentry": {117 "command": "/path/to/sentry-mcp-rs/run.sh"118 }119 }120}121```122123## Tools124125### get_issue_details126127Retrieve detailed information about a specific Sentry issue.128129**Parameters:**130- `issue_url` - Full Sentry issue URL (alternative to the parameters below)131- `organization_slug` - Organization slug (required if `issue_url` not provided)132- `issue_id` - Issue ID like `PROJECT-123` or numeric ID (required if `issue_url` not provided)133- `event_id` - Specific event ID to fetch instead of latest (optional)134135### get_trace_details136137Retrieve trace details for distributed tracing analysis.138139**Parameters:**140- `organization_slug` - Organization slug141- `trace_id` - 32-character hex trace ID142143### search_issue_events144145Search events within an issue using Sentry's query syntax.146147**Parameters:**148- `organization_slug` - Organization slug149- `issue_id` - Issue ID (e.g., `PROJECT-123`)150- `query` - Optional Sentry search query151- `limit` - Maximum events to return (default: 10, max: 100)152- `sort` - Sort order: `newest` (default) or `oldest`153
Full transparency — inspect the skill content before installing.