selfhosted-sentry-mcp
Supports debug symbol (dSYM) checks for iOS crashes to help diagnose and resolve issues in iOS applications.
Supports debug symbol (dSYM) checks for macOS crashes to help diagnose and resolve issues in macOS applications.
Provides tools for querying and triaging issues and events in self-hosted Sentry instances, including issue management, event inspection, release tracking, and raw API access.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@selfhosted-sentry-mcplist recent issues in project my-app"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
selfhosted-sentry-mcp
MCP server for self-hosted Sentry instances with debugging-focused tools.
Overview
This server provides MCP tools for querying and triaging issues and events in self-hosted Sentry.
Key capabilities:
Issue and project listing with pagination and search.
Event inspection with stack frame extraction.
Grouping analysis via issue hashes.
Debug symbol (dSYM) checks for iOS/macOS crashes.
Raw Sentry API access for edge cases.
Related MCP server: MCP Sentry
Quickstart
Prerequisites
Node.js 20+
Self-hosted Sentry instance
Getting Sentry Credentials
You need 3 environment variables from your Sentry instance:
1. SENTRY_URL
https://your-sentry-instance.comThe base URL of your self-hosted Sentry.
2. SENTRY_AUTH_TOKEN
Go to Settings > Auth Tokens
Click Create New Token
Select scopes:
issue:read,project:read,event:read,issue:write,comment:writeCopy the token
3. SENTRY_ORG_SLUG
Go to Settings > General in your organization
Find Organization Slug (e.g.,
my-org)Or check the URL:
https://your-sentry.com/organizations/[slug]/
Install
Option 1: Install from npm (recommended)
npm install -g selfhosted-sentry-mcpOption 2: Install from source
git clone https://github.com/HieuAnh87/sentry-selfhosted-mcp.git
cd sentry-selfhosted-mcp
npm install
npm run buildTools
24 tools available across 6 categories:
Issue Tools
Tool | Purpose | Input |
| Issue details by ID or URL |
|
| List all projects in org |
|
| List issues in a project |
|
| Search issues with Sentry query syntax |
|
| Update issue status |
|
| Add issue comment |
|
| Get fingerprint hashes |
|
| Bulk resolve/ignore issues |
|
Event Tools
Tool | Purpose | Input |
| Event details with entry filtering |
|
| List events for an issue |
|
| Search error events in a project |
|
| Extract structured stack frames |
|
| Check missing dSYM symbols |
|
| Extract breadcrumbs from event |
|
Release Tools
Tool | Purpose | Input |
| List releases in org |
|
| Release details with health stats |
|
Organization Tools
Tool | Purpose | Input |
| List all teams in org |
|
| List all tags for an issue |
|
| Get tag value distribution |
|
| Issue activity log |
|
Advanced Tools
Tool | Purpose | Input |
| Distributed trace with spans |
|
| Fingerprinting rules |
|
| Merge issues by hash |
|
Raw API
Tool | Purpose | Input |
| Any Sentry API endpoint |
|
Configuration
Set environment variables:
SENTRY_URL: Base URL of your self-hosted Sentry instance.SENTRY_AUTH_TOKEN: Sentry API token (recommended scopes:issue:read,project:read,event:read,issue:write,comment:write).SENTRY_ORG_SLUG: Organization slug.
Claude Code / Cursor Configuration
Add to your MCP client configuration file:
Claude Code:
~/.claude/settings.jsonor project-level.claude/settings.jsonCursor:
~/.cursor/mcp.json(global) or.cursor/mcp.json(project-level)
Option 1: Using npx (recommended - simplest)
{
"mcpServers": {
"sentry-selfhosted-mcp": {
"command": "npx",
"args": ["-y", "selfhosted-sentry-mcp"],
"env": {
"SENTRY_URL": "https://your-sentry-instance.com",
"SENTRY_AUTH_TOKEN": "your-auth-token",
"SENTRY_ORG_SLUG": "your-org-slug"
}
}
}
}Option 2: Using global npm install
{
"mcpServers": {
"sentry-selfhosted-mcp": {
"command": "selfhosted-sentry-mcp",
"args": [],
"env": {
"SENTRY_URL": "https://your-sentry-instance.com",
"SENTRY_AUTH_TOKEN": "your-auth-token",
"SENTRY_ORG_SLUG": "your-org-slug"
}
}
}
}Option 3: From local source
{
"mcpServers": {
"sentry-selfhosted-mcp": {
"command": "node",
"args": ["<full/path/to/sentry-selfhosted-mcp/build/index.js>"],
"env": {
"SENTRY_URL": "https://your-sentry-instance.com",
"SENTRY_AUTH_TOKEN": "your-auth-token",
"SENTRY_ORG_SLUG": "your-org-slug"
}
}
}
}Docker
Build:
docker build -t sentry-selfhosted-mcp:latest .Claude Code config:
{
"mcpServers": {
"sentry-selfhosted-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "SENTRY_URL",
"-e", "SENTRY_AUTH_TOKEN",
"-e", "SENTRY_ORG_SLUG",
"sentry-selfhosted-mcp:latest"
],
"env": {
"SENTRY_URL": "https://your-sentry-instance.com",
"SENTRY_AUTH_TOKEN": "your-auth-token",
"SENTRY_ORG_SLUG": "your-org-slug"
}
}
}
}Use env file:
SENTRY_URL=https://your-sentry-instance.com
SENTRY_AUTH_TOKEN=your-auth-token
SENTRY_ORG_SLUG=your-org-slug{
"mcpServers": {
"sentry-selfhosted-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"--env-file", "/path/to/.env",
"sentry-selfhosted-mcp:latest"
]
}
}
}Verify:
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | docker run -i --rm \
-e SENTRY_URL=https://example.com \
-e SENTRY_AUTH_TOKEN=test \
-e SENTRY_ORG_SLUG=test \
sentry-selfhosted-mcp:latestDevelopment
npm install
npm run buildRun MCP inspector:
npx @modelcontextprotocol/inspector build/index.jsSecurity
Use least-privilege Sentry API tokens.
Avoid logging sensitive data in MCP client logs.
Troubleshooting
Server not starting or tools not showing:
Verify
SENTRY_URL,SENTRY_AUTH_TOKEN, andSENTRY_ORG_SLUGare set correctly.Check the token has required scopes (
issue:read,project:read,event:read,issue:write,comment:write).Ensure Node.js 20+ is installed:
node --version.
"Unauthorized" or "403" errors:
Verify your Sentry API token is valid and not expired.
Check that the token has permissions for the organization specified in
SENTRY_ORG_SLUG.
"Project not found" errors:
Confirm the project slug exists in your Sentry organization.
Use
list_sentry_projectstool to see available projects.
Empty or truncated responses:
For event details, use
limitparameter to paginate through large events.For
raw_sentry_api, usegrep_patternto filter responses from large endpoints.
Docker container exits immediately:
Ensure all three environment variables are passed:
SENTRY_URL,SENTRY_AUTH_TOKEN,SENTRY_ORG_SLUG.Check Docker logs:
docker logs <container-id>.
FAQ
Q: Is this server self-hosted only? A: It is designed for self-hosted Sentry, but it should also work with Sentry SaaS if the API token and org slug are valid.
Q: Why use raw_sentry_api if other tools exist?
A: It exposes any API endpoint for edge cases not covered by typed tools. Use grep_pattern on event endpoints to keep responses small.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HieuAnh87/sentry-selfhosted-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server