Sentry MCP Server
A stateless FastMCP server that enables interaction with multiple Sentry instances, including US, EU, and self-hosted versions, through a single deployment. It provides tools for searching issues, events, and traces, allowing users to monitor and debug applications using natural language.
README
Sentry MCP Server
A stateless FastMCP server for Sentry API integration, supporting multiple Sentry instances (US, EU, self-hosted) with a single deployment.
Architecture
┌─────────────────────────────────────────────────────────────┐
│ Customer VPC │
│ │
│ ┌──────────────┐ ┌─────────────────────────────┐ │
│ │ Satellite │ ──MCP──▶│ Sentry MCP Server │ │
│ └──────────────┘ │ ┌─────────┐ ┌─────────┐ │ │
│ │ │sentryUS │ │sentryEU │ │ │
│ │ └────┬────┘ └────┬────┘ │ │
│ └───────┼───────────┼─────────┘ │
└───────────────────────────────────┼───────────┼─────────────┘
│ │
▼ ▼
sentry.io de.sentry.io
(US) (EU)
Features
- Multi-instance support: Configure multiple Sentry accounts (US, EU, self-hosted)
- Base tools + instance parameter: 11 tools that work across all instances
- Stateless HTTP: Scales horizontally, no session state
- Secure: Auth tokens stored in K8s secrets, never exposed to Claude
Tools
| Tool | Description |
|---|---|
list_sentry_instances |
Discovery - list all configured Sentry accounts |
find_organizations |
List organizations accessible with the token |
find_teams |
List teams in an organization |
find_projects |
List projects in an organization |
find_releases |
List releases in an org/project |
get_issue_details |
Get detailed info about a specific issue |
search_issues |
Search for grouped issues in a project |
search_issue_events |
Search events within a specific issue |
search_events |
Search events and perform aggregations |
get_trace_details |
Get trace overview and span breakdown |
get_event_attachment |
Download attachments from an event |
Quick Start
1. Create Internal Integration in Sentry
For each Sentry organization you want to connect:
-
Go to Settings → Developer Settings → Internal Integrations
- US:
https://sentry.io/settings/{org}/developer-settings/ - EU:
https://de.sentry.io/settings/{org}/developer-settings/
- US:
-
Click Create New Internal Integration
-
Configure:
- Name:
Deeptrace MCP - Scopes (read-only):
org:readproject:readevent:readteam:readmember:read
- Name:
-
Click Save and copy the generated token (starts with
sntrys_...)
2. Create Kubernetes Secrets
# US Sentry
kubectl create secret generic sentry-us-creds \
--from-literal=auth_token="sntrys_eyJ..." \
-n deeptrace
# EU Sentry
kubectl create secret generic sentry-eu-creds \
--from-literal=auth_token="sntrys_eyJ..." \
-n deeptrace
3. Deploy with Helm
Create a values.yaml:
instances:
sentryUS:
enabled: true
region: "us"
orgSlug: "your-org-slug"
secretName: "sentry-us-creds"
labels:
dataResidency: "US"
description: "US customer data and services"
sentryEU:
enabled: true
region: "eu"
orgSlug: "your-org-slug-eu"
secretName: "sentry-eu-creds"
labels:
dataResidency: "EU"
description: "EU customer data (GDPR)"
Install:
helm install sentry-mcp ./helm/sentry-mcp \
-f values.yaml \
-n deeptrace
4. Configure Satellite
Add to your satellite's values.yaml:
mcpServers:
sentryMCP:
create: true
type: mcp
connection:
url: "http://sentry-mcp.deeptrace:8080/mcp"
transport: "streamable_http"
stateless: true
auditLogging: true
domainAllowlist:
- "sentry-mcp.deeptrace"
Configuration Reference
Instance Configuration
| Field | Required | Description |
|---|---|---|
enabled |
No | Enable/disable instance (default: true) |
region |
Yes | us, eu, or custom |
orgSlug |
Yes | Sentry organization slug |
baseUrl |
For custom | Full URL for self-hosted Sentry |
secretName |
Yes | K8s secret name with auth_token key |
labels.dataResidency |
No | Data residency label (e.g., "US", "EU") |
labels.description |
No | Human-readable description |
labels.team |
No | Team that owns this instance |
labels.environment |
No | Environment (production, staging) |
Self-Hosted Example
instances:
sentrySelfHosted:
enabled: true
region: "custom"
baseUrl: "https://sentry.internal.company.com"
orgSlug: "internal"
secretName: "sentry-internal-creds"
labels:
dataResidency: "On-Premise"
description: "Self-hosted Sentry for internal services"
How It Works
Claude's Workflow
- Discovery: Claude calls
list_sentry_instances()to see available Sentry accounts - Query: Claude uses the instance name when calling other tools
- Multi-region: Claude queries both instances when context is ambiguous
Example conversation:
User: "Find unresolved errors in the Platform team's Sentry"
Claude: I'll check the available Sentry instances first.
→ list_sentry_instances()
→ Returns: [sentryUS (US), sentryEU (EU)]
Claude: The Platform team uses the EU instance based on the labels.
→ search_issues(instance="sentryEU", query="is:unresolved level:error")
→ "Found 5 unresolved errors in the EU Sentry..."
Why Internal Integration?
| Auth Type | Tied To | Multi-Org? | Best For |
|---|---|---|---|
| Personal Token | User | Yes (user's orgs) | Personal scripts |
| Internal Integration | Organization | No (single org) | Automated systems |
| Public Integration | OAuth | Yes (via OAuth) | Third-party SaaS |
Internal Integration is correct because:
- Not tied to a person - survives employee departures
- Organization-scoped - clear access boundaries
- No OAuth complexity - simple bearer token
- Fine-grained scopes - request only what you need
Development
Local Setup
# Create virtual environment
python -m venv venv
source venv/bin/activate
# Install dependencies
pip install -e ".[dev]"
# Create local config
mkdir -p /tmp/sentry-mcp
cat > /tmp/sentry-mcp/config.yaml << EOF
instances:
sentryUS:
enabled: true
region: us
orgSlug: your-org
EOF
# Create local secret
mkdir -p /tmp/secrets/sentryUS
echo "sntrys_your_token" > /tmp/secrets/sentryUS/auth_token
# Run server
SENTRY_MCP_CONFIG=/tmp/sentry-mcp/config.yaml \
SENTRY_MCP_SECRETS=/tmp/secrets \
python -m sentry_mcp
Building Docker Image
docker build -t deeptrace/sentry-mcp:latest .
Running Tests
pytest
Troubleshooting
"Unknown Sentry instance" Error
The instance name in your tool call doesn't match any configured instance.
- Check
list_sentry_instances()output - Verify the instance is enabled in config
- Ensure the K8s secret exists and has
auth_tokenkey
"No auth token configured" Error
The secret for the instance wasn't found or is empty.
- Verify secret exists:
kubectl get secret <secretName> -n deeptrace - Check secret has
auth_tokenkey:kubectl get secret <secretName> -o yaml - Ensure secret is mounted correctly in deployment
API Rate Limiting
Sentry has rate limits. If you hit them:
- Reduce
limitparameter in search queries - Add delays between bulk operations
- Consider caching frequently-accessed data
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。