Sentry MCP Server

Sentry MCP server providing orgs, projects, and issues search via Model Context Protocol.

Local serverstdio

What is the Sentry MCP server?

Sentry MCP server exists for a simple reason — assistants are far more useful when they can act on Sentry directly instead of describing what you should do. Sentry MCP server providing orgs, projects, and issues search via Model Context Protocol.

What you get

Sentry MCP server provides tools for working with Sentry organizations, projects, and issues directly from Claude Code, Code CLI, and other MCP clients.

  • List organizations and projects available to the token
  • Query issues with filters: query, multiple environment, statsPeriod or since/until, project, pagination via cursor
  • Consistent structured responses with toolSuccess/toolError

What the assistant can call

Once Sentry is connected, these are the calls the assistant has available:

  • service_info — Status information: url, tokenPresent, timezone, readOnly, version
  • sentry_organizations — List organizations with pagination (cursor/perPage); brief mode by default
  • sentry_projects — List projects in an organization; supports query, pagination, brief mode
  • sentry_issues — List issues with filters: query, environments, statsPeriod or since/until, project; pagination supported
  • sentry_issue_latest_event — Get latest event for an issue (brief summary by default)
  • sentry_issues_latest_events_batch — Get latest events for multiple issues with safe concurrency
  • sentry_issues_details_batch — Get issue details for multiple issues with safe concurrency

Setting it up

The server ships on npm as @vitalyostanin/sentry-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Configuration and credentials

You will need 2 environment variables: SENTRY_URL, SENTRY_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js 20+ - Environment variables: - SENTRY_URL — Sentry base URL - SENTRY_TOKEN — Sentry auth token (Bearer) - SENTRY_TIMEZONE — optional, defaults to Europe/Moscow - SENTRY_READ_ONLY — optional, defaults to true - SENTRY_HTTP_TIMEOUT_MS — optional request timeout in ms (default 10000)

Choosing this one

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 — service_info, sentry_organizations, sentry_projects and 4 more — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Sentry's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • 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.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the sentry mcp server does with a few real requests.

Available tools

ToolWhat it does
service_infoStatus information: url, tokenPresent, timezone, readOnly, version.
sentry_organizationsList organizations with pagination (cursor/perPage); brief mode by default.
sentry_projectsList projects in an organization; supports query, pagination, brief mode.
sentry_issuesList issues with filters: query, environments, statsPeriod or since/until, project; pagination supported.
sentry_issue_latest_eventGet latest event for an issue (brief summary by default).
sentry_issues_latest_events_batchGet latest events for multiple issues with safe concurrency.
sentry_issues_details_batchGet issue details for multiple issues with safe concurrency.

How to install the Sentry MCP server

## Configuration for Claude Code CLI
```json
{
  "mcpServers": {
    "sentry-mcp": {
      "command": "npx",
      "args": ["-y", "@vitalyostanin/sentry-mcp@latest"],
      "env": {
        "SENTRY_URL": "https://sentry.example.com",
        "SENTRY_TOKEN": "<token>"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 20+ - Environment variables: - SENTRY_URL — Sentry base URL - SENTRY_TOKEN — Sentry auth token (Bearer) - SENTRY_TIMEZONE — optional, defaults to Europe/Moscow - SENTRY_READ_ONLY — optional, defaults to true - SENTRY_HTTP_TIMEOUT_MS — optional request timeout in ms (default 10000)
VariableDescriptionRequired
SENTRY_URLEndpoint or connection string the server talks to.Yes
SENTRY_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Sentry to service info.
  • Use Sentry to sentry organizations.
  • Use Sentry to sentry projects.

Frequently asked questions

It connects Sentry to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (service_info, sentry_organizations, sentry_projects, 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.