Ermöglicht es KI-Assistenten, Fehler zu überwachen, Issues zu tracken und Debugging mithilfe von Sentry-Daten durchzuführen.
Auch bekannt als getsentry/toolkit, sentry-mcp, @sentry/mcp-server
- Stars
- 963
- Tools
- —
- Downloads, 30 Tage
- —
- Neueste Version
- 0.49.0
- Letzter Commit
- 15. Nov. 2026
- Lizenz
- —
Was ist Sentry MCP?
Ermöglicht es KI-Assistenten, Fehler zu überwachen, Issues zu tracken und Debugging mithilfe von Sentry-Daten durchzuführen.
Zusammenfassung generiert aus dem README des Projekts
Über Sentry MCP server
Mit diesem Sentry MCP server ist es möglich, Anwendungsfehler und Debugging-Probleme direkt über einen KI-Assistenten zu überwachen. Er erlaubt es Entwicklern, auf Sentry-Daten zuzugreifen, um Issues zu tracken und Bugs direkt in ihrem Chat-Interface zu untersuchen. Der Server funktioniert sowohl mit sentry.io als auch mit selbst gehosteten Sentry-Instanzen, indem du die Umgebungsvariablen SENTRY_HOST oder SENTRY_URL konfigurierst.
Nutzer können den Server über npx oder über das Sentry CLI mit dem Befehl sentry mcp einrichten. Die Authentifizierung erfolgt über einen Single-Sign-in-Prozess mittels sentry auth login, der die Anmeldedaten mit dem CLI teilt, oder indem du einen SENTRY_AUTH_TOKEN in der Client-Umgebung bereitstellst. Dieses Setup erfordert Node.js 22.15 oder neuer für Clients, die das Package über npx ausführen.
Dieses Tool ist einzigartig, da es tief in das Sentry CLI integriert ist, was eine gemeinsame Authentifizierung sowie die Verwaltung des Account-Status, das Wechseln von Accounts oder das Ausloggen ermöglicht. Es enthält zudem Utility-Commands wie cli defaults und cli fix, um Corporate TLS Proxies zu verwalten oder lokale Datenbanken zu reparieren.
Was du damit machen kannst
- 1Verbindung zu selbst gehosteten InstanzenLeite einen KI-Client an, über spezifische Host-Einstellungen mit einem privaten Sentry-Deployment zu kommunizieren.
- 2Konfiguration von Corporate-NetzwerkeinstellungenRichte CA-Zertifikate für Umgebungen ein, die einen Corporate TLS Proxy nutzen.
Geschrieben aus dem README des Projekts. Jeder Use Case wurde gegen ein Zitat daraus geprüft.
So installierst du Sentry MCP
Formate geprüft am 10. Nov. 2026Zu Cursor hinzufügenZu Goose hinzufügenSentry MCP in Claude Code installieren
$ claude mcp add --env 'SENTRY_AUTH_TOKEN=<YOUR_SENTRY_AUTH_TOKEN>' sentry-mcp -- npx -y @sentry/mcp-serverSentry MCP in Cursor installieren
~/.cursor/mcp.json
{
"mcpServers": {
"sentry-mcp": {
"command": "npx",
"args": [
"-y",
"@sentry/mcp-server"
],
"env": {
"SENTRY_AUTH_TOKEN": "<YOUR_SENTRY_AUTH_TOKEN>"
}
}
}
}Sentry MCP in VS Code installieren
.vscode/mcp.json
{
"servers": {
"sentry-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sentry/mcp-server"
],
"env": {
"SENTRY_AUTH_TOKEN": "<YOUR_SENTRY_AUTH_TOKEN>"
}
}
}
}Sentry MCP in VS Code CLI installieren
$ code --add-mcp '{"name":"sentry-mcp","type":"stdio","command":"npx","args":["-y","@sentry/mcp-server"],"env":{"SENTRY_AUTH_TOKEN":"<YOUR_SENTRY_AUTH_TOKEN>"}}'Sentry MCP in Claude Desktop installieren
claude_desktop_config.json
{
"mcpServers": {
"sentry-mcp": {
"command": "npx",
"args": [
"-y",
"@sentry/mcp-server"
],
"env": {
"SENTRY_AUTH_TOKEN": "<YOUR_SENTRY_AUTH_TOKEN>"
}
}
}
}Sentry MCP in Codex installieren
$ codex mcp add sentry-mcp --env 'SENTRY_AUTH_TOKEN=<YOUR_SENTRY_AUTH_TOKEN>' -- npx -y @sentry/mcp-serverSentry MCP in Codex config.toml installieren
~/.codex/config.toml
[mcp_servers.sentry-mcp] command = "npx" args = ["-y", "@sentry/mcp-server"] [mcp_servers.sentry-mcp.env] SENTRY_AUTH_TOKEN = "<YOUR_SENTRY_AUTH_TOKEN>"
Sentry MCP in Gemini CLI installieren
$ gemini mcp add -s user -e 'SENTRY_AUTH_TOKEN=<YOUR_SENTRY_AUTH_TOKEN>' sentry-mcp npx -- -y @sentry/mcp-serverSentry MCP in Gemini settings.json installieren
~/.gemini/settings.json
{
"mcpServers": {
"sentry-mcp": {
"command": "npx",
"args": [
"-y",
"@sentry/mcp-server"
],
"env": {
"SENTRY_AUTH_TOKEN": "<YOUR_SENTRY_AUTH_TOKEN>"
}
}
}
}Braucht vor dem Start einen Schlüssel
Am 16. Nov. 2026 ohne Schlüssel gestartet, hat er angehalten und nach einem gefragt; ein Client sieht also keine Tools, bis du die Variablen oben setzt.
Konfiguration
SENTRY_AUTH_TOKENSecretSentry auth token. Optional after `npx -y @sentry/mcp-server auth login`.
SENTRY_HOSTSelf-hosted Sentry hostname or URL. Takes precedence over SENTRY_URL. Defaults to sentry.io.
SENTRY_URLSelf-hosted Sentry URL, such as https://sentry.example.com. Defaults to sentry.io.
| Name | Beschreibung | Typ |
|---|---|---|
| SENTRY_AUTH_TOKEN | Sentry auth token. Optional after `npx -y @sentry/mcp-server auth login`. | Secret |
| SENTRY_HOST | Self-hosted Sentry hostname or URL. Takes precedence over SENTRY_URL. Defaults to sentry.io. | |
| SENTRY_URL | Self-hosted Sentry URL, such as https://sentry.example.com. Defaults to sentry.io. |
Automatisierte Checks
Geluften am 12. Nov. 2026Vollständiger Bericht →Unsere automatisierten Checks bestanden. Das ist kein Security-Audit: Lies den Code und gib dem Server nur den minimal notwendigen Zugriff. Wie die Checks funktionieren · Was du für mehr Punkte verbessern kannst
- Source Repository verknüpft und erreichbarBestanden
- Open Source Lizenz (OSI)No licenseBefund
- Commit oder Release im letzten JahrBestanden
- Package-Name ähnelt keinem populären PackageBestanden
- Remote Endpoint nutzt HTTPSBestanden
- Destruktive Tools sind markiertNicht geprüft
- Keine versteckten Anweisungen an das ModellBestanden
- Keine kritischen Advisories im Paket oder seinen AbhängigkeitenBestanden
README
Auf GitHub ansehen@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
npx -y @sentry/mcp-server mcp --help for the flags and environment
variables. For self-hosted Sentry, set SENTRY_HOST / SENTRY_URL (with
SENTRY_AUTH_TOKEN, only these scope the token to your server). See
stdio authentication.
Development
The source lives in packages/cli: packages/cli/src/mcp-server.ts runs the
CLI's runner with an application of four commands, mcp, auth, cli
(defaults and fix only), and help (packages/cli/src/mcp-server-app.ts).
pnpm run bundle builds dist/sentry-mcp.cjs from it, and
pnpm run test:bundle smoke-tests the result.
Sentry MCP Fragen
Wie füge ich Sentry MCP zu Claude Code hinzu?
Führe claude mcp add --env 'SENTRY_AUTH_TOKEN=<YOUR_SENTRY_AUTH_TOKEN>' sentry-mcp -- npx -y @sentry/mcp-server in deinem Terminal aus. Füge --scope user hinzu, damit der Server in jedem Projekt verfügbar ist.
Wie füge ich Sentry MCP zu Cursor hinzu?
Öffne ~/.cursor/mcp.json und füge den Server unter mcpServers hinzu, mit der Cursor-Config aus dem Installationsabschnitt oben.
Was sind die Node.js-Anforderungen?
Der Server benötigt Node.js Version 22.15 oder neuer.