clr-sentry-mcp
v1.0.0MCP server for Sentry performance insights, monitors, and alerts
MCP server extending Sentry with performance insights, cron monitors, alerts, and smart issue lookup. Companion to the third-party selfhosted-sentry-mcp — this server adds capabilities that the base server doesn't support (Discover API with array fields, short ID resolution, monitor/alert CRUD). Alternatively, create ~/.config/sentry/credentials.json:
Summary extracted from the README.
clr-sentry-mcp
MCP server extending Sentry with performance insights, cron monitors, alerts, and smart issue lookup.
Companion to the third-party selfhosted-sentry-mcp — this server adds capabilities that the base server doesn't support (Discover API with array fields, short ID resolution, monitor/alert CRUD).
Features
- Smart issue lookup — auto-detects numeric IDs, short IDs (e.g.
MYPROJECT-1W), and full Sentry URLs - Performance insights — top transactions, slow DB queries, slow HTTP requests, queue performance
- Custom Discover queries — proper array field support (
field[]as repeated params) - Events timeseries — trend visualization over time
- Cron monitor CRUD — list, get, create, update, delete
- Issue alert CRUD — project-scoped alert rules
- Metric alert CRUD — org-scoped metric alert rules
- Read-only mode — hide all write tools with
SENTRY_READ_ONLY=true - Response trimming — strips bloated fields (activity, participants) and truncates long SQL strings
Installation
uvx clr-sentry-mcp
Or from source:
uv run --directory ~/mcp-work/clr-sentry-mcp clr-sentry-mcp
Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
SENTRY_URL |
Yes | Sentry instance URL (e.g. https://sentry.io) |
SENTRY_AUTH_TOKEN |
Yes | API auth token (Bearer) |
SENTRY_ORG_SLUG |
Yes | Organization slug |
SENTRY_READ_ONLY |
No | Set to true to hide write tools |
Credentials File
Alternatively, create ~/.config/sentry/credentials.json:
{
"url": "https://sentry.example.com",
"auth_token": "your-token",
"org_slug": "your-org"
}
Config file values override environment variables.
Tools (25)
Issues (4)
| Tool | Description |
|---|---|
get_issue |
Get issue by numeric ID, short ID, or URL (auto-detects) |
list_issues |
List/search issues, optionally per project (paginated) |
update_issue |
Resolve, ignore, reopen or assign an issue |
add_issue_comment |
Comment on an issue |
Performance Insights (6)
| Tool | Description |
|---|---|
top_transactions |
Slowest endpoints by p95 response time |
slow_db_queries |
Slowest database queries |
slow_http_requests |
Slowest outbound HTTP requests |
queue_performance |
Queue/task worker performance |
discover_query |
Custom Discover query (any fields/dataset) |
events_timeseries |
Events over time for trend visualization |
Cron Monitors (5)
| Tool | Description |
|---|---|
list_monitors |
List all cron monitors |
get_monitor |
Get monitor details |
create_monitor |
Create a cron monitor |
update_monitor |
Update a cron monitor |
delete_monitor |
Delete a cron monitor |
Issue Alerts (5)
| Tool | Description |
|---|---|
list_issue_alerts |
List issue alerts for a project |
get_issue_alert |
Get issue alert details |
create_issue_alert |
Create an issue alert rule |
update_issue_alert |
Update an issue alert rule |
delete_issue_alert |
Delete an issue alert rule |
Metric Alerts (5)
| Tool | Description |
|---|---|
list_metric_alerts |
List all metric alert rules |
get_metric_alert |
Get metric alert details |
create_metric_alert |
Create a metric alert rule |
update_metric_alert |
Update a metric alert rule |
delete_metric_alert |
Delete a metric alert rule |
License
MIT