SuperAPIAI Directory

sentry-mcp-rs

github.com · AI developer platforms

Minimal Sentry integration.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

sentry-mcp-rs is a fast, lightweight MCP (Model Context Protocol) server written in Rust for interacting with the Sentry API. Its design goal is to significantly reduce resource consumption while keeping functionality streamlined.

Purpose

This server acts as a bridge between MCP clients and Sentry, enabling AI assistants or development tools to query issue details, trace information, and event data in Sentry through the standard MCP protocol.

Main Capabilities

Compared with the official Node.js server, sentry-mcp-rs has the following advantages:

  • 10x lower memory usage
  • Instant cold start
  • A single binary with no runtime dependencies
  • Fewer tools, thereby reducing the tool list in the context

It provides three core tools:

  1. get_issue_details: Get detailed information about a specific Sentry issue, including metadata, tags, stack traces, and optionally a specific event. Parameters include issue_url (full issue URL, replacing the parameters below), organization_slug (organization identifier, required when issue_url is not provided), issue_id (issue ID, such as PROJECT-123 or a numeric ID, required when issue_url is not provided), event_id (optional, specifies the event ID to retrieve instead of the latest event).
  2. get_trace_details: Get trace details for distributed tracing analysis, including the span tree and timing information. Parameters include organization_slug (organization identifier) and trace_id (32-character hexadecimal trace ID).
  3. search_issue_events: Search events within an issue using Sentry query syntax. Parameters include issue_id (issue ID, such as PROJECT-123), query (optional, Sentry search query), limit (maximum number of events to return, default 10, maximum 100), sort (sort order, newest by default or oldest).

Usage

Installation

Install from crates.io:

cargo install sentry-mcp-rs

The binary will be installed as sentry-mcp.

Environment Variables

Required environment variables:

  • SENTRY_AUTH_TOKEN: Sentry API authentication token
  • SENTRY_HOST: Sentry instance hostname (for example sentry.io)

Optional environment variables:

  • SOCKS_PROXY: SOCKS5 proxy URL (for example socks5://127.0.0.1:1080)
  • HTTPS_PROXY: HTTPS proxy URL

MCP Client Configuration

Add the server to the MCP client configuration. You can also run it without installation using mise:

mise x cargo:sentry-mcp-rs -- sentry-mcp

Building from Source

Clone the repository and create a .env file:

git clone https://github.com/utapyngo/sentry-mcp-rs
cd sentry-mcp-rs
cp .env.example .env
# 编辑 .env 填入 SENTRY_AUTH_TOKEN 和 SENTRY_HOST

Build and test with MCP Inspector:

cargo build
npx @modelcontextprotocol/inspector ./target/debug/sentry-mcp

Or configure the MCP client to use the script.

Use Cases

  • Sentry integration environments that require low resource usage and fast startup
  • Querying Sentry issues, traces, and events through the MCP protocol in AI assistants or development tools
  • Distributed tracing analysis
  • Event search using Sentry query syntax

Limitations

  • Only three tools are provided, so functionality may be less than the official server
  • Requires a valid Sentry API authentication token and hostname
  • No description of other advanced features or configuration options is currently provided
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools