OfficialObservabilitylocal stdio / remote HTTP

Sentry MCP

Gives coding agents access to Sentry errors, issues, traces and performance data for debugging.

Install

Claude Code (remote)

claude mcp add --transport http sentry https://mcp.sentry.dev/mcp/{organizationSlug}/{projectSlug}

Cursor (remote)

{"mcpServers":{"sentry":{"url":"https://mcp.sentry.dev/mcp/{organizationSlug}/{projectSlug}"}}}

Copilot (VS Code)

Command Palette → “MCP: Add Server” → HTTP → https://mcp.sentry.dev/mcp/{organizationSlug}/{projectSlug}

Other MCP clients (remote)

Sentry’s documentation says any MCP-compatible client can connect over the HTTP transport at https://mcp.sentry.dev/mcp. Sentry’s setup list does not include Codex; for how Codex registers a remote HTTP server, see the Codex MCP guide.

Local server through the Sentry CLI (stdio, Claude Code)

curl https://cli.sentry.dev/install -fsS | bash
sentry auth login
claude mcp add sentry -- sentry mcp

Other clients take the same command:

{
  "mcpServers": {
    "sentry": {
      "command": "sentry",
      "args": ["mcp"]
    }
  }
}

The CLI also installs with brew install getsentry/tools/sentry, npm install -g sentry, or irm https://cli.sentry.dev/install.ps1 | iex on Windows.

Claude Code plugin

the repository also ships a plugin with a sentry-mcp subagent that Claude delegates to when you ask about Sentry errors, issues, traces or performance.

claude plugin marketplace add getsentry/sentry-mcp
claude plugin install sentry-mcp@sentry-mcp

Commands and configuration as given in the server’s documentation (Documentation). Replace placeholders such as {organizationSlug} with your own values.

Sentry MCP brings Sentry errors, issues and traces into coding agents, hosted or local via sentry mcp.

It is Sentry’s official MCP server and runs two ways: Sentry’s hosted remote server at mcp.sentry.dev (OAuth, nothing to install) or a local stdio server started with sentry mcp from the Sentry CLI.

The Sentry MCP server is built for human-in-the-loop debugging inside coding agents. Tools search errors and events, triage and update issues, analyse traces and performance, read Sentry docs, and manage projects. Sentry’s documentation says all remote connections use OAuth: the first connection opens a sign-in flow to your Sentry account. The server is licensed FSL-1.1-Apache-2.0, with setup shown for Claude Code, Cursor and Copilot in VS Code, and a documented route for any other MCP-compatible client.

Last checked November 22, 2026 against Sentry’s MCP documentation and the repository README.

Which setup to use

Setup Transport Sign-in Use it when
Remote https://mcp.sentry.dev/mcp Remote HTTP OAuth in the browser Sentry SaaS and nothing to install locally
Local sentry mcp (Sentry CLI) Local stdio Your sentry auth login session Self-hosted Sentry, or a client without remote OAuth
Remote with an explicit Sentry token Remote HTTP Authorization: Sentry-Bearer header A client that can send custom HTTP headers and a token you manage
npx @sentry/mcp-server Local stdio Shared CLI login or SENTRY_AUTH_TOKEN Legacy: clients that launch the server through npx

Scope the connection

  • Remote: https://mcp.sentry.dev/mcp/{organizationSlug} scopes the session to one organization and https://mcp.sentry.dev/mcp/{organizationSlug}/{projectSlug} to one project. When scoped, tools default to that organization or project and unneeded discovery tools are hidden. Sentry recommends scoping to a project when possible.
  • Local: sentry mcp my-org/ limits it to one organization and sentry mcp my-org/my-project to one project. sentry mcp --help lists every flag and environment variable.
  • ?experimental=1 on the remote URL, or --experimental on sentry mcp, enables forward-looking tool variants. The plugin repository also offers claude plugin install sentry-mcp@sentry-mcp-experimental.

Self-hosted Sentry

The stdio server is the documented route for self-hosted Sentry. Log in to your instance, then set SENTRY_HOST in the MCP server’s environment:

sentry auth login --url https://sentry.example.com
  • Seer is not part of self-hosted Sentry, so the seer skill is left out of the default skill set whenever the host is not sentry.io. If your deployment runs Seer, opt back in with SENTRY_HOST=sentry.example.com sentry mcp --skills=inspect,seer.
  • To expose fewer tools, disable a skill, for example sentry mcp --disable-skills=project-management.
  • For an internal deployment that only serves plain HTTP, the README uses SENTRY_URL=http://sentry.internal:9000 sentry mcp.

Tokens and LLM provider keys

  • SENTRY_AUTH_TOKEN, when set, wins over the stored CLI login. If you use a token, the README says to create a Sentry User Auth Token with these scopes: org:read, project:read, project:write, team:read, team:write, event:write.
  • The AI-powered search tools (search_errors, search_traces, search_logs, search_issues and similar) translate natural language into Sentry’s query syntax and need an LLM provider: OpenAI, Azure OpenAI, Anthropic or OpenRouter. Without one, only those tools are unavailable; the other tools still work.
  • Set EMBEDDED_AGENT_PROVIDER explicitly (openai, azure-openai, anthropic or openrouter). The README says auto-detection from API keys alone is deprecated and will be removed in a future release.
  • The older --access-token and SENTRY_ACCESS_TOKEN still work but are deprecated: they act as SENTRY_AUTH_TOKEN and print a warning on stderr.
  • Remote clients that can send custom headers may pass a Sentry token directly with Authorization: Sentry-Bearer <token>. Sentry-Bearer is deliberately separate from Bearer, which is reserved for MCP OAuth access tokens; with Sentry-Bearer the worker forwards the token and does not store, validate, exchange or refresh it. Direct remote auth defaults to all active MCP skills, narrowed with ?skills=inspect,triage or ?disable-skills=seer.

Rate limits

Tool calls are subject to the Sentry API’s rate limits. The server retries rate-limited requests, and transient Sentry server errors on read requests, after a short wait. When a limit lasts longer, the tool returns a Rate Limited message that says when to try again. The README says agents hit the per-second limits most often by running many Sentry tool calls in parallel, so run them one at a time if you see this message.

Questions

How do I add the Sentry MCP server to Claude Code?
Run claude mcp add --transport http sentry https://mcp.sentry.dev/mcp/{organizationSlug}/{projectSlug} with your own organization and project slugs, then complete the OAuth sign-in. To run it locally instead, install the Sentry CLI, run sentry auth login, then claude mcp add sentry -- sentry mcp.
Can I use the Sentry MCP server with Codex?
Sentry’s setup list covers Claude Code, Cursor and VS Code and says any MCP-compatible client can use the HTTP endpoint https://mcp.sentry.dev/mcp. Register that URL as a remote server in Codex; the steps are in the Codex MCP guide. Clients that cannot do remote OAuth can run sentry mcp as a stdio server.
Does the Sentry MCP server work with self-hosted Sentry?
Yes, through the stdio server: sentry auth login --url https://sentry.example.com, then set SENTRY_HOST. The seer skill is dropped by default on self-hosted hosts.
Is npx @sentry/mcp-server still supported?
The README labels it legacy: it still ships the same server, bundled without the rest of the CLI, and shares the CLI’s login. The recommended stdio route is sentry mcp.
How does the Sentry MCP server authenticate?
The remote server uses OAuth. The local server uses your Sentry CLI login, or SENTRY_AUTH_TOKEN when set.
Can I limit the Sentry MCP server to one project?
Yes. Add the organization and project slugs to the remote URL, or pass my-org/my-project to sentry mcp.

Sources

Checked November 22, 2026.

Observability

View all
Aftergradient

What are you looking for?

Search commands, errors, tools