Allows interaction with the Sentry API to fetch issue and event details, list organization projects, and query project issues with filtering and pagination support.
Sentry MCP Server
@zereight/sentry-server
Sentry MCP(Model Context Protocol) Server. Allows interaction with the Sentry API to fetch issue and event details.
Usage
Using with Claude, Roo Code, Cline, etc.
Add the following configuration to your MCP settings file (e.g., mcp_settings.json):
Replace placeholder values like "YOUR_SENTRY_AUTH_TOKEN", "YOUR_ORG_SLUG", and "YOUR_PROJECT1,YOUR_PROJECT2" with your actual Sentry details. Provide project slugs separated by commas. Project slugs are used in Sentry URLs (e.g., https://<org-slug>.sentry.io/settings/projects/<project-slug>/). Auth tokens can be generated in User Settings > Auth Tokens.
Using with Cursor (or direct CLI)
When using with Cursor or running directly, you can set up environment variables and run the server as follows:
SENTRY_AUTH_TOKEN(Required): Your Sentry authentication token.SENTRY_ORG_SLUG(Required): The slug of your Sentry organization.SENTRY_PROJECT_NAMES(Required): Comma-separated names (slugs) of your Sentry projects.SENTRY_BASE_URL(Optional): The base URL for your Sentry instance (e.g., for self-hosted). Defaults tohttps://sentry.io.
Tools đ ī¸
get_sentry_issueFetches details for a specific Sentry issue. âšī¸
Inputs:
issue_id_or_url(string, required): The Sentry issue ID or the full URL of the issue page.
Returns: Detailed information about the issue (JSON string).
list_organization_projectsLists all projects for the configured Sentry organization. đ
Inputs: None
Returns: A list of project objects (JSON string).
list_project_issuesLists issues for a specific project, with optional filtering. đ
Inputs:
organization_slug(string, optional): The slug of the organization. Defaults toSENTRY_ORG_SLUGenv var.project_slug(string, required): The slug of the project to list issues for.query(string, optional): Sentry search query to filter issues (e.g., "is:unresolved", "assignee:me").statsPeriod(string, optional): Time period for statistics (e.g., "24h", "14d", "auto").cursor(string, optional): Pagination cursor for fetching next/previous page.
Returns: A list of issue objects and pagination information (JSON string).
get_event_detailsGets details for a specific event within a project. đ
Inputs:
organization_slug(string, optional): The slug of the organization. Defaults toSENTRY_ORG_SLUGenv var.project_slug(string, required): The slug of the project the event belongs to.event_id(string, required): The ID of the event to retrieve.
Returns: Detailed information about the specific event (JSON string).
Environment Variable Configuration
Before running the server, you must set the following environment variables:
Optionally, you can also set:
The Inspector will provide a URL to access debugging tools in your browser.
License
MIT License
This server cannot be installed