Sentry MCP Server

a mcp server to get sentry issue by id or url for LLM

Local serverstdio

What is the Sentry MCP server?

a mcp server to get sentry issue by id or url for LLM. That is what the sentry mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

This is a mcp for sentry issue.\ It supports 2 tools to get a issue or list of issues.\ U can let LLM analysis the Res, or u want to do.

The tools it exposes

The server publishes 6 tools. What each one is for:

  • get_single_event — get a event detail infos, tiny mode return stack info, huge mode return all info
  • inputs — - url_or_id: sentry event url or sentry event id
  • organization_id_or_slug — sentry organization id or slug, it can be undefined
  • project_id_or_slug — sentry project id or slug, it can be undefined
  • mode — tiny or huge, it can be undefined
  • get_project_events — get list of events, tiny mode return id and title, huge mode return all info

What it needs from you

Configuration is passed through the environment: SENTRY_HOST, SENTRY_ORG, SENTRY_PROJ, SENTRY_USER_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

How it compares

This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Sentry's toolset — get_single_event, inputs, organization_id_or_slug and 3 more — is a fair guide to whether it matches your workflow. It is maintained by lee62; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
get_single_eventget a event detail infos, tiny mode return stack info, huge mode return all info
inputs- url_or_id: sentry event url or sentry event id
organization_id_or_slugsentry organization id or slug, it can be undefined
project_id_or_slugsentry project id or slug, it can be undefined
modetiny or huge, it can be undefined
get_project_eventsget list of events, tiny mode return id and title, huge mode return all info

How to install the Sentry MCP server

"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 as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
SENTRY_HOSTEndpoint or connection string the server talks to.Optional
SENTRY_ORGConfiguration value read at startup.Optional
SENTRY_PROJConfiguration value read at startup.Optional
SENTRY_USER_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Sentry to get single event.
  • Use Sentry to inputs.
  • Use Sentry to organization id or slug.

Frequently asked questions

It connects Sentry to MCP-compatible AI assistants such as Claude and Cursor, exposing 6 tools (get_single_event, inputs, organization_id_or_slug, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Sentry directly.