home / mcp / sentry issues mcp server

Sentry Issues MCP Server

Provides an MCP server to query Sentry issues and events via two lightweight tools.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "leee62-sentry-issues-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sentry-issues-mcp@latest"
      ],
      "env": {
        "SENTRY_ORG": "<your_sentry_org>",
        "SENTRY_HOST": "<your_sentry_host>",
        "SENTRY_PROJ": "<your_sentry_proj>",
        "SENTRY_USER_TOKEN": "<your_sentry_user_token>"
      }
    }
  }
}

You can run the Sentry Issues MCP to query and analyze Sentry issues through a lightweight MCP server. It exposes small, focused tools to fetch a single event or a list of events from Sentry and can hand results to an AI assistant for analysis or automated handling.

How to use

Start the MCP server using the provided stdio configuration, then connect your MCP client to interact with two available tools. You can ask your AI assistant to analyze a specific issue by URL or ID, or to find today’s most dangerous issue within a 24-hour window by default.

How to install

Prerequisites: you need Node.js and npm installed on your machine.

Install and run the MCP server using the exact commands shown below.

{
  "mcpServers": {
    "sentry_issue_mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sentry-issues-mcp@latest"
      ],
      "env": {
        "SENTRY_HOST": "<your_sentry_host>",
        "SENTRY_ORG": "<your_sentry_org>",
        "SENTRY_PROJ": "<your_sentry_proj>",
        "SENTRY_USER_TOKEN": "<your_sentry_user_token>"
      }
    }
  }
}

Configuration and usage notes

Environment variables shown are required to connect to your Sentry instance. Provide real values for host, organization, project, and a user token to authorize requests.

Tools exposed by this MCP server:

Tools

The MCP server offers two tools to access Sentry data.

Troubleshooting

If you cannot access Sentry data, verify that your SENTRY_HOST, SENTRY_ORG, SENTRY_PROJ, and SENTRY_USER_TOKEN are correctly configured and that network access to the Sentry API is allowed from your environment.

Notes

This MCP uses a lightweight approach where the event-derived data can be passed to an AI assistant for analysis or extraction. Ensure you have appropriate permissions in Sentry for the requested data.

Available tools

get_single_event

Fetch details for a single Sentry event by URL or ID. Tiny mode returns minimal stack info; huge mode returns full event information.

get_project_events

Retrieve a list of events for a project. Tiny mode returns ID and title; huge mode returns complete event details.