Sentry MCP Server
Query issues, events, and project data from your Sentry error-tracking organisation.
claude_desktop_config.json
{
"mcpServers": {
"server-sentry": {
"command": "npx",
"args": [
"-y",
"@sentry/mcp-server"
],
"env": {
"SENTRY_AUTH_TOKEN": "your-auth-token-here"
}
}
}
} Environment Variables
| Variable | Required | Description |
|---|---|---|
SENTRY_AUTH_TOKEN | ✓ Required | Sentry auth token with project:read and org:read scopes. |
SENTRY_ORG | Optional | Your Sentry organisation slug (optional — scopes requests to one org). |
SENTRY_PROJECT | Optional | Your Sentry project slug (optional — scopes requests to one project). |
Setup Instructions
- Ensure Node.js 18+ is installed on your system.
-
Copy the config block above into your
claude_desktop_config.jsonfile (typically at~/.config/claude/claude_desktop_config.jsonon macOS/Linux or%APPDATA%\Claude\claude_desktop_config.jsonon Windows). - Set the
SENTRY_AUTH_TOKENenvironment variable: Sentry auth token with project:read and org:read scopes. - Restart your AI client to apply the config.