About sentry-mcp-server
sentry-mcp-server connects AI assistants to Sentry for error and project data. It supports issue investigation and status changes, alongside access to releases, teams, and members.
Key features
- 01Browse organizations and projects
- 02Filter and inspect issues
- 03View issue events and stack traces
- 04List releases and commit details
- 05Manage issue status and comments
- 06Inspect teams and organization members
Use cases
- 01Find unresolved issues by environment or project
- 02Review an issue’s latest event and stack trace
- 03Resolve or ignore an issue with a comment
- 04Check release authors or organization members
MCP support
Exposes Sentry organization, project, issue, event, release, team, and member operations as tools for MCP clients. Issue status can also be changed through the server.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y sentry-mcp-serverSENTRY_AUTH_TOKENSecretSentry auth token from Settings → Auth Tokens. Needs org:read, project:read, event:read, issue:read, issue:write scopes.SENTRY_BASE_URLSentry API base URL. Defaults to https://sentry.io/api/0/. Override for self-hosted Sentry.Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
12Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| cursor | string | No | Pagination cursor from a previous response's 'next' link. Omit for first page. |
Details
From the project READMESentry MCP Server
Connect AI assistants to Sentry — error tracking, issues, releases, events, and project management through the Model Context Protocol.
Works with Claude Desktop, Cursor, Windsurf, Cline, Continue, and any MCP-compatible client.
Features
| Tool | Description |
|---|---|
list_organizations | List all Sentry organizations you have access to |
list_projects | List projects in an organization with slug, platform, and team info |
list_issues | List issues with filters (environment, status, level, query, project) |
get_issue | Get full details of a specific issue — title, culprit, metadata, tags |
list_issue_events | List all events (occurrences) for a specific issue |
get_event | Get full event details — exception, stacktrace, breadcrumbs, tags |
list_releases | List releases in an organization with version, date, and authors |
get_release | Get details of a specific release with commit info and file changes |
list_teams | List teams in an organization with member counts and slugs |
list_members | List organization members with role and email |
get_issue_hashes | Get the grouping hashes (fingerprint) for an issue |
update_issue_status | Resolve, ignore, or unresolve an issue (and add a comment) |
Quick Start
1. Get a Sentry Auth Token
Go to Sentry → Settings → Auth Tokens and create a token with the scopes you need (org:read, project:read, event:read, event:write, issue:read, issue:write).
Or visit: https://sentry.io/settings/auth-tokens/
2. Configure your MCP client
Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"sentry": {
"command": "npx",
"args": ["-y", "sentry-mcp-server"],
"env": {
"SENTRY_AUTH_TOKEN": "sntrys_YOUR_TOKEN_HERE"
}
}
}
}
Cursor — add to MCP settings (.cursor/mcp.json):
{
"mcpServers": {
"sentry": {
"command": "npx",
"args": ["-y", "sentry-mcp-server"],
"env": {
"SENTRY_AUTH_TOKEN": "sntrys_YOUR_TOKEN_HERE"
}
}
}
}
3. Run manually (for testing)
git clone https://github.com/friendlygeorge/sentry-mcp-server.git
cd sentry-mcp-server
npm install
npm run build
# Run
SENTRY_AUTH_TOKEN=sntrys_xxx node dist/index.js
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
SENTRY_AUTH_TOKEN | ✅ | — | Your Sentry auth token (sntrys_...) |
SENTRY_BASE_URL | ❌ | https://sentry.io/api/0/ | Sentry API base URL. Override for self-hosted Sentry. |
Self-hosted Sentry
If you run your own Sentry instance, set SENTRY_BASE_URL:
SENTRY_BASE_URL=https://sentry.yourcompany.com/api/0/
Example Queries
"List my Sentry organizations"
"Show me unresolved errors in the production environment for org
acmeprojectweb"
"Get details of issue
1234567890and show me the latest event's stack trace"
"Resolve issue
1234567890and add a comment that it's fixed in v1.2.3"
"List the last 10 releases for
acme"
"Who are the members of
acmeorg and their roles?"
API Coverage
This server covers the most-used endpoints of the Sentry Web API:
- Organizations (
/organizations/) - Projects (
/organizations/{org}/projects/) - Issues (
/organizations/{org}/issues/,/issues/{id}/) - Events (
/issues/{id}/events/,/projects/{org}/{project}/events/{id}/) - Releases (
/organizations/{org}/releases/) - Teams (
/organizations/{org}/teams/) - Members (
/organizations/{org}/members/)
For the full Sentry API, see docs.sentry.io/api.
License
MIT © 2026 Nova
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.