MCP server for Sentry - error monitoring, issue tracking, and debugging for AI assistants
Install
What this option needs
No keys or settings needed for this option.
Other ways: manual config, DuoM CLI, what runs
{
"mcpServers": {
"sentry-mcp": {
"url": "https://mcp.sentry.dev/mcp"
}
}
}npx duom@1 add io.github.getsentry/sentry-mcp --client cursor
connects to https://mcp.sentry.dev/mcp
The version is pinned to the one DuoM checked.
About
@sentry/mcp-server
The Sentry MCP server for stdio clients, as a single file with no runtime dependencies. Works with sentry.io and self-hosted Sentry.
Prefer
sentry mcp. The Sentry CLI runs the same server assentry mcp, using your CLI login, so the MCP config needs no token:curl https://cli.sentry.dev/install -fsS | bash sentry auth login claude mcp add sentry -- sentry mcpOther clients take
{"command": "sentry", "args": ["mcp"]}. See thesentry mcpdocs and https://mcp.sentry.dev/?transport=cli. This package remains for clients that launch the server through npx.
{
"command": "npx",
"args": ["-y", "@sentry/mcp-server@latest"]
}
Requires Node.js 22.15 or later.
Authentication
-
npx -y @sentry/mcp-server auth loginsigns in once. The login is shared with thesentryCLI, so an existingsentry auth loginworks too. -
To use a token instead, set
SENTRY_AUTH_TOKENin the client'senv. It wins over a stored login:{ "command": "npx", "args": ["-y", "@sentry/mcp-server@latest"], "env": { "SENTRY_AUTH_TOKEN": "sntryu_..." } } -
--access-token/SENTRY_ACCESS_TOKENare deprecated. They still work, asSENTRY_AUTH_TOKEN, and print a warning on stderr. -
Each server process uses one account. The package runs the CLI's own
authcommands, sonpx -y @sentry/mcp-server auth status|list|switch|logoutmanages the same login. -
npx -y @sentry/mcp-server cli defaultsandcli fixare the CLI's own commands too: they set the defaults (such asca-certfor a corporate TLS proxy) and repair the local database the server shares with the CLI.
Options
Starting the server is the default command, so npx -y @sentry/mcp-server
and npx -y @sentry/mcp-server mcp are the same. Run
for the flags and environment
variables. For self-hosted Sentry, set / (with
, only these scope the token to your server). See
.