What is Sentry MCP Server?
A standalone Model Context Protocol (MCP) server that provides tools for AI assistants to interact with the Sentry API. It allows retrieval and analysis of error data, project management, and application performance monitoring. Note: this server has been largely superseded by the Sentry Remote-MCP Server and exists for educational purposes.
How to use Sentry MCP Server?
Install dependencies with npm install, set the SENTRY_AUTH environment variable with your Sentry authentication token, then run npx ts-node index.ts. Add a configuration block to your Claude settings (or other IDE) specifying the command, arguments, and environment variable.
Key features of Sentry MCP Server
- Lists accessible Sentry projects for an organization
- Retrieves issue details using a short ID (e.g., PROJECT-123)
- Gets and analyzes specific Sentry events from an issue
- Lists error events from a project
- Creates new projects and retrieves client keys
- Lists issues and events for a project or issue
- Retrieves and analyzes Sentry issues
- Lists replays from an organization with filtering options
- Supports summary or detailed views and plain or markdown output
Use cases of Sentry MCP Server
- An AI assistant debugging errors by fetching event details from a Sentry issue
- Automating project creation and key retrieval for new applications
- Monitoring application performance by listing recent error events and issues
- Analyzing replays to understand user sessions during issues
- Generating reports on project health from Sentry data
评论