Enables querying and analyzing error reports and events from Sentry, including retrieving issue details with stack traces, status, timestamps, and event counts via the Sentry error tracking service.
MCP Server Sentry - TypeScript Implementation
This is a Model Context Protocol (MCP) server implemented in TypeScript for connecting to the Sentry error tracking service. This server allows AI models to query and analyze error reports and events on Sentry.
Features
get_sentry_issueToolRetrieves and analyzes Sentry issues by ID or URL
Input:
issue_id_or_url(string): Sentry issue ID or URL to analyze
Returns: Issue details including:
Title
Issue ID
Status
Level
First seen timestamp
Last seen timestamp
Event count
Complete stack trace
sentry-issuePrompt TemplateRetrieves issue details from Sentry
Input:
issue_id_or_url(string): Sentry issue ID or URL
Returns: Formatted issue details as conversation context
Related MCP server: MCP Sentry
Installation
Configuration
The server is configured using environment variables. Create a .env file in the project root directory:
Alternatively, you can set these environment variables at runtime.
Running
Run the server via standard IO:
Debug with MCP Inspector:
Environment Variables Description
SENTRY_AUTH_TOKEN(required): Your Sentry API access tokenSENTRY_PROJECT_SLUG(optional): The slug of your Sentry projectSENTRY_ORGANIZATION_SLUG(optional): The slug of your Sentry organization
The latter two variables can be omitted if project and organization information are provided in the URL.
License
This project is licensed under the MIT License.