Sentry MCP

by @getsentry

Sentry MCP Server

Sentry MCP brings production issues, events, and traces into coding-assistant workflows. It focuses on human-guided debugging rather than exposing every Sentry feature directly.

Server facts

Sentry MCP

GitHub stars

932

Last commit

Oct 17, 2026

Runtime

node

License

—

Tech

Runtime
node
Transports
stdio
Remote access
No

Activity

GitHub stars
932
Last commit
Data as of

Tags

  • Debugging
  • Issue Triage
  • Observability
  • Sentry

Overview

Sentry MCP connects coding assistants to the Sentry API with a deliberate emphasis on debugging and developer workflows. The project targets agents used with human oversight, including Cursor and Claude Code, rather than attempting to be a universal interface for every Sentry operation. Its available tools can locate organizations and projects, search grouped issues, inspect events, retrieve resources, and change issue assignments or status. Seer integration adds root-cause investigation and suggested code fixes when that capability is available in the connected Sentry deployment.

The repository supports a hosted remote service as well as a stdio package launched through npx. The README describes stdio as still evolving but useful for connecting to self-hosted Sentry. A host override selects a private deployment, and individual skills can be disabled when the target lacks features such as Seer. AI-assisted search requires a configured language-model provider; other tools remain usable without that provider. Supported provider choices include OpenAI, Azure OpenAI, Anthropic, and OpenRouter. For operations outside the direct tool list, catalog search and execution tools expose additional Sentry capabilities. Remote clients may authenticate through MCP OAuth or pass a Sentry token using the documented custom authorization scheme. Token lifetime remains the client's responsibility in that direct-token setup.

Install & configure

Requirements

  • Node.js with npx
  • Sentry user token
  • LLM provider credentials for AI-powered search
Documented launch / install command
npx @sentry/mcp-server

This is the README stdio configuration. Required token scopes are event:write, project:write, team:read, org:read, team:write, and project:read. Remote access is also documented at https://mcp.sentry.dev/mcp. Use --host for self-hosted Sentry; unsupported skills can be disabled.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "sentry-mcp": {
      "command": "npx",
      "args": [
        "@sentry/mcp-server"
      ],
      "env": {
        "SENTRY_ACCESS_TOKEN": "<Sentry user auth token with documented scopes>",
        "EMBEDDED_AGENT_PROVIDER": "<Explicit LLM provider for AI-powered search>",
        "OPENAI_API_KEY": "<OpenAI key if selecting OpenAI>"
      }
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "sentry-mcp": {
      "command": "npx",
      "args": [
        "@sentry/mcp-server"
      ],
      "env": {
        "SENTRY_ACCESS_TOKEN": "<Sentry user auth token with documented scopes>",
        "EMBEDDED_AGENT_PROVIDER": "<Explicit LLM provider for AI-powered search>",
        "OPENAI_API_KEY": "<OpenAI key if selecting OpenAI>"
      }
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "sentry-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@sentry/mcp-server"
      ],
      "env": {
        "SENTRY_ACCESS_TOKEN": "<Sentry user auth token with documented scopes>",
        "EMBEDDED_AGENT_PROVIDER": "<Explicit LLM provider for AI-powered search>",
        "OPENAI_API_KEY": "<OpenAI key if selecting OpenAI>"
      }
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "sentry-mcp": {
      "command": "npx",
      "args": [
        "@sentry/mcp-server"
      ],
      "env": {
        "SENTRY_ACCESS_TOKEN": "<Sentry user auth token with documented scopes>",
        "EMBEDDED_AGENT_PROVIDER": "<Explicit LLM provider for AI-powered search>",
        "OPENAI_API_KEY": "<OpenAI key if selecting OpenAI>"
      }
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "sentry-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "@sentry/mcp-server"
      ],
      "env": {
        "SENTRY_ACCESS_TOKEN": "<Sentry user auth token with documented scopes>",
        "EMBEDDED_AGENT_PROVIDER": "<Explicit LLM provider for AI-powered search>",
        "OPENAI_API_KEY": "<OpenAI key if selecting OpenAI>"
      }
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository tool metadata. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
find_organizationsLocate accessible organizations and their slugs.
find_projectsFind projects within a Sentry organization.
update_issueChange an issue status or assignment.
search_eventsSearch events and replays, including statistical queries.
analyze_issue_with_seerAsk Seer to investigate an error and propose code fixes.
search_issuesFind grouped issues using natural language or Sentry query syntax.
get_sentry_resourceRetrieve an issue, event, trace, replay, or other supported resource.
search_sentry_toolsFind additional operations in the Sentry MCP tool catalog.
execute_sentry_toolRun a discovered operation with arguments matching its schema.

Use cases

  • Investigate production errors alongside application code.
  • Find organizations and project identifiers for follow-up requests.
  • Resolve, reopen, ignore, or assign issues.
  • Search event statistics and retrieve trace resources.
  • Request Seer analysis for an issue.

Strengths

  • Designed around coding-agent debugging tasks.
  • Supports hosted and self-hosted Sentry workflows.
  • Tool discovery provides access beyond top-level operations.

Limitations

  • AI-powered search needs an LLM provider.
  • Some self-hosted deployments lack Seer.
  • The README describes stdio support as work in progress.

Sentry MCP setup notes

  • Check EMBEDDED_AGENT_PROVIDER, OPENAI_API_KEY, SENTRY_ACCESS_TOKEN in the Sentry MCP configuration if startup or authentication fails.
  • Sentry MCP's stdio example needs a client that launches local processes.
  • Sentry MCP has no recorded license; confirm reuse terms in its repository.

Frequently asked questions

No. The README prioritizes developer debugging and human-guided coding agents.

Related MCP servers