OmniscioGuidesSentry MCP server
Sentry's MCP server in Claude Code: the error, in context
A Sentry server puts the error in front of Claude while it is already reading your code, which is where debugging a production problem should start.
Both forms end at the same step: an OAuth sign-in you complete by hand. This page gives the two documented commands, the sign-in, the token alternative, and the check for when the status says it needs authentication.
Sources read November 25, 2026. By the Omniscio team. Updated .
What it gives Claude Code
Sentry's server gives the agent search over your error, trace and log data. Its AI-powered search tools, named search_errors, search_traces, search_logs and search_issues, translate a question into Sentry's own query syntax. They need an LLM provider configured, and without one those tools are unavailable while everything else keeps working. The rest of the work sits in skill groups the README calls inspect, triage, project-management and seer.
That pairs well with a local checkout: Claude reads the failing code and the production error in the same turn. Tool calls are subject to the Sentry API's own rate limits.
Sentry also publishes a Claude Code plugin that adds a sentry-mcp subagent Claude delegates to when you ask about Sentry errors, issues, traces or performance, which is worth knowing if you already install plugins: claude plugin marketplace add getsentry/sentry-mcp, then claude plugin install sentry-mcp@sentry-mcp.
The command
The hosted server
Sentry's endpoint is https://mcp.sentry.dev/mcp, and this is the form that needs nothing installed on your machine:
claude mcp add --transport http sentry https://mcp.sentry.dev/mcpThe CLI form
Sentry's README gives a second command, which runs its own CLI and uses the login that CLI already has:
claude mcp add sentry -- sentry mcpThis one is a local server, so the double dash matters: sentry mcp is the command Claude Code starts, and everything after the dash belongs to it.
This form needs the sentry executable on your PATH, and Sentry's README installs it first: curl https://cli.sentry.dev/install -fsS | bash, or brew install getsentry/tools/sentry, or npm install -g sentry, or on Windows irm https://cli.sentry.dev/install.ps1 | iex. Then sentry auth login, then the add command. The hosted URL needs no local command, which is why it is the one to try first.
The .mcp.json equivalent
The hosted server as an entry, in its token form rather than the browser sign-in, for a machine where the interactive sign-in cannot happen. Export a Sentry user auth token as SENTRY_ACCESS_TOKEN in the environment Claude Code starts from; this header form reads that variable, while the CLI form reads SENTRY_AUTH_TOKEN, and the two are not interchangeable.
{
"mcpServers": {
"sentry": {
"type": "http",
"url": "https://mcp.sentry.dev/mcp",
"headers": { "Authorization": "Sentry-Bearer ${SENTRY_ACCESS_TOKEN}" }
}
}
}The CLI form as an entry, which is the shape Sentry's README shows for a generic client:
{
"mcpServers": {
"sentry": {
"command": "sentry",
"args": ["mcp"]
}
}
}Sentry-Bearer is deliberately not the same word as Bearer: Sentry reserves Bearer for the OAuth access tokens its own flow issues, and says it does not store or refresh a token sent as Sentry-Bearer.
Which scope to use
User scope, because the sign-in is yours: claude mcp add --transport http sentry --scope user https://mcp.sentry.dev/mcp. A stored OAuth token belongs to a person, and the server follows the token, not the repository.
Local scope works if you only want Sentry in one project. Project scope writes .mcp.json at the repository root, which is right for a team that shares one token on purpose and wrong for anything personal.
The auth step
Add the server, then start a session and run /mcp. Choose the Sentry server and follow the steps in your browser; Claude Code stores the token and refreshes it automatically. If the browser does not open on its own, copy the URL it prints.
On the CLI form, a token in the environment overrides the stored login: Sentry says a SENTRY_AUTH_TOKEN, when set, wins over the stored login, which is what makes a CI machine or a shared box work without a browser. The hosted URL is different. A token there goes in an Authorization: Sentry-Bearer header, and Claude Code reports a rejected header as a failed connection rather than falling back to OAuth.
For a self-hosted Sentry, set SENTRY_HOST in the server's environment so the token is scoped to that installation, and use a user auth token created there with the scopes you need.
Confirm it connected
In your terminal, not inside a session:
claude mcp list
claude mcp get sentryThe list prints a status beside the name. For Sentry, ! Needs authentication is the normal state until you finish the browser sign-in, and it is not a failure: the server is up and waiting.
Inside a session, /mcp lists the tools under mcp__sentry__<tool>. Then ask for a real issue by name or id and check that the trace it returns is the one you have open.
The failure people hit
The one that looks like a failure is not one: the list says the server needs authentication because the browser step was not done. Run /mcp and sign in; nothing needs reinstalling.
The second is the CLI form on a machine that does not have the Sentry CLI on its PATH. Sentry's README installs the CLI, then runs sentry auth login, then adds the server; the hosted URL skips all three steps.
The rest of the messages are in the MCP errors guide, and the shared flags and scopes in Add an MCP server to Claude Code.
Sources
Every line on this page rests on one of these. The date beside each one is the day we read it.
- getsentry/sentry-mcp README, for both endpoints, the CLI form and its JSON entry, the plugin install, the login behaviour,
SENTRY_AUTH_TOKENandSENTRY_HOST, the token scopes and theSentry-Bearerdistinction. Read November 25, 2026. - Anthropic: Connect Claude Code to tools via MCP, for the Sentry example, the
/mcpsign-in flow, the stored-and-refreshed token, the health statuses and the scope table. Read November 25, 2026.
Common questions
What is the command to add Sentry MCP to Claude Code?
The hosted server is claude mcp add --transport http sentry https://mcp.sentry.dev/mcp. Sentry's README shows a second form, claude mcp add sentry followed by a double dash and sentry mcp, which runs its CLI.
How does it authenticate?
Through the browser. You add the server, then open /mcp and follow the sign-in, and Claude Code keeps and refreshes the token. On the CLI form, Sentry says a SENTRY_AUTH_TOKEN in the environment wins over the stored login.
Which scope should it use?
User scope for the OAuth form, since the sign-in belongs to you rather than to a repository. A token in a project-scoped .mcp.json is a token your whole team can read.
Why does claude mcp list say needs authentication?
Because the server is waiting for the browser sign-in. Open a session, run /mcp, choose the Sentry server and log in; the status changes once the token is stored.
Can I limit what Claude sees in Sentry?
Through the token's scopes and your project access. Sentry's README lists org:read, project:read, project:write, team:read, team:write and event:write for a user token, so a token granted only org:read and project:read holds none of the write scopes.
Every session, one window
Omniscio runs several agent sessions side by side in one window, each with its own context and its own diff view. Any model, any harness — Claude Code, Codex, OpenCode, Devin, Pi, and Hermes all supported.