loading…
Search for a command to run...
loading…
Fast and minimal Sentry MCP server written in Rust
Fast and minimal Sentry MCP server written in Rust
Crates.io codecov License: MIT
A fast, lightweight MCP server for Sentry, written in Rust.
Compared to the official Node.js server:
This MCP server provides tools to interact with Sentry's API:
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.
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 URLAdd 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"
}
}
}
}
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"
}
}
}
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 if issue_url not provided)issue_id - Issue ID like PROJECT-123 or numeric ID (required if issue_url not provided)event_id - Specific event ID to fetch instead of latest (optional)Retrieve trace details for distributed tracing analysis.
Parameters:
organization_slug - Organization slugtrace_id - 32-character hex trace IDSearch 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) or oldestДобавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"sentry-mcp-rs": {
"command": "npx",
"args": []
}
}
}