Sentry MCP - AI Error Monitoring for Agents avatar

Sentry MCP - AI Error Monitoring for Agents

Pricing

Pay per event + usage

Go to Apify Store
Sentry MCP - AI Error Monitoring for Agents

Sentry MCP - AI Error Monitoring for Agents

219 tools for AI agents that fix bugs. Wraps the Sentry PP CLI as an MCP server with PPE billing.

Pricing

Pay per event + usage

Rating

0.0

(0)

Developer

AutomateLab

AutomateLab

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Share

Sentry Error Events and Issues — MCP Server

Sentry Error Monitoring Data for AI Agents. This Actor wraps the Sentry CLI as an MCP server, giving AI agents programmatic access to error events, issues, releases, and project statistics across your Sentry workspace.

Sentry MCP exposes 219 tools that AI agents can call directly to monitor errors, investigate stack traces, track bug fixes, and query deployment data — without leaving the agent workflow. Connect via MCP protocol or REST API.

Features

  • Error Event Search: Query events by project, time range, severity, and custom filters using Sentry search syntax
  • Issue Management: Create, update, assign, resolve, and archive issues directly from AI agent workflows
  • Release Tracking: Query deployment data, release commits, and associated error signatures
  • Project Statistics: Fetch error rates, user impact counts, and trend data per project
  • Breadcrumb and Context Access: Retrieve full stack traces, local variables, and execution breadcrumbs
  • Organization and Team Data: List organizations, teams, and member access across your Sentry workspace
  • Event Aggregation: Run aggregate queries across event clusters for pattern detection
  • Cursor-based Pagination: Handle large result sets with efficient pagination
  • MCP Protocol Support: Serves the MCP JSON-RPC standard for AI agent integration
  • Pay-Per-Event Pricing: Apify PPE billing with per-tool pricing breakdown

Quick Start

# Connect to the MCP endpoint
https://api.apify.com/v2/acts/YOUR-USER-NAME~sentry-mcp/mcp
# Set SENTRY_AUTH_TOKEN as an Apify secret before connecting

REST API Direct Call

curl -X POST https://api.apify.com/v2/acts/YOUR-USER-NAME~sentry-mcp/runs \
-H "Content-Type: application/json" \
-d '{
"tool": "sentry_events_list",
"args": {
"project": "my-backend-service",
"first": 10,
"query": "is:unresolved level:error"
}
}'

Authentication Setup

  1. Generate a Sentry API token at https://sentry.io/settings/account/api/tokens/
  2. Required scopes: event:read, project:read, org:read, release:read
  3. Add SENTRY_AUTH_TOKEN as a secret in Apify Console > Actor > Secrets
  4. The token is never logged or exposed in output

Input

FieldTypeRequiredDescription
toolstringYesTool name (e.g., sentry_events_list, sentry_issues_list)
argsobjectNoTool arguments as key-value pairs. See tool documentation for supported parameters.
timeoutnumberNoPer-call timeout in seconds (default: 60)

Example input:

{
"tool": "sentry_issues_list",
"args": {
"project": "my-backend-service",
"first": 25,
"query": "is:unresolved",
"sort": "priority",
"statsPeriod": "14d"
}
}

Search syntax examples:

  • is:unresolved level:error — All unresolved errors
  • browser:Chrome — Errors from Chrome browser
  • release:1.2.3 — Errors in specific release
  • user.email:admin@example.com — Errors by user

Tools

Events

ToolDescriptionPrice
sentry_events_listList events for a project with optional filters$0.10
sentry_events_aggregateAggregate events by field (count, unique count, p75)$0.10
sentry_event_detailsGet full event details including stack trace$0.08
sentry_event_tagsGet event tag values$0.05

Issues

ToolDescriptionPrice
sentry_issues_listList issues with filter and sort options$0.08
sentry_issues_createCreate a new issue$0.05
sentry_issues_updateUpdate issue (status, assignee, attributes)$0.05
sentry_issues_deleteResolve or delete an issue$0.03
sentry_issue_activityGet issue activity stream and comments$0.05
sentry_issue_todosList and manage issue action items$0.05

Releases

ToolDescriptionPrice
sentry_releases_listList releases for a project$0.05
sentry_releases_createCreate a new release$0.05
sentry_releases_deploysList deploys for a release$0.03
sentry_releases_commitsGet commits associated with a release$0.05

Projects and Teams

ToolDescriptionPrice
sentry_projects_listList all projects$0.05
sentry_teams_listList organization teams$0.03
sentry_org_listList organizations$0.03
sentry_project_statsGet project-level error rates and trends$0.05

Discovery

ToolDescriptionPrice
list_toolsList all available Sentry tools (free)$0.00

Output

Results are written to the default dataset in JSON format.

Example output:

{
"result": {
"data": [
{
"id": "1234567890abcdef",
"type": "error",
"message": "TypeError: Cannot read property 'foo' of undefined",
"culprit": "src/handlers/user.js in processUser",
"project": "my-backend-service",
"platform": "javascript",
"count": 42,
"userCount": 5,
"firstSeen": "2026-05-15T10:30:00Z",
"lastSeen": "2026-05-19T14:22:00Z"
}
],
"meta": {
"next": "https://api.sentry.io/api/0/projects/...",
"total": 147
}
},
"tool": "sentry_events_list",
"timestamp": "2026-05-19T20:00:00.000Z",
"billing": {
"eventType": "sentry_events_list",
"unitPrice": 0.10,
"units": 1
}
}

Download output in JSON, CSV, HTML, or Excel from the Apify Console dataset view.

Pricing

All pricing is Pay-Per-Event (PPE). You control costs by setting tool-specific prices or enabling/disabling tools in the Apify Console.

Event TypePriceNotes
list_tools$0.00Free discovery endpoint
sentry_events_list$0.10Primary read operation
sentry_events_aggregate$0.10Analytics queries
sentry_event_details$0.08Detail fetch
sentry_issues_list$0.08Issue queries
sentry_issues_create$0.05Write operations
sentry_issues_update$0.05Modifications
sentry_issues_delete$0.03Deletions
sentry_releases_list$0.05Release queries
sentry_projects_list$0.05Project listing
sentry_project_stats$0.05Statistics
Other tools$0.03 – $0.05Varies by complexity

Cost estimation: A typical bug investigation workflow (3 events_list + 1 issue_activity) costs approximately $0.35 per full stack trace retrieval.

Default events (actor start, heartbeat) are free. Set pricing per-tool in Apify Console > Actor > Pricing.

Troubleshooting

"Authentication failed" error

  • Verify SENTRY_AUTH_TOKEN is set as an Apify secret
  • Check token scopes: needs event:read, project:read, org:read minimum
  • Tokens expire — regenerate at sentry.io/settings/account/api/tokens/ if needed

"Project not found" response

  • Ensure project slug matches exact Sentry project name (case-sensitive)
  • Confirm the token has access to the project organization
  • Some enterprise Sentry instances use custom project paths

Rate limit errors (429)

  • Sentry API limits apply per token, typically 500 requests/minute
  • Implement exponential backoff: retry-after: seconds * 2
  • Consider batching multiple queries into single calls where possible

Empty results with no error

  • Verify the query syntax is correct (Sentry uses key:value, not key=value)
  • Check that events exist in the selected time window (statsPeriod defaults to 14d)
  • Ensure the project has events matching your filters

MCP client connection refused

  • The actor serves MCP on the standby port at /mcp endpoint
  • Verify the actor is running (not just built) — use apify run for local testing
  • Check firewall allows outbound port 443 to api.apify.com

Actor times out on large queries

  • Reduce first parameter (default may be high)
  • Add time-bound filters: age:>1h or statsPeriod:24h
  • Set higher timeout in input for expensive operations (stack trace retrieval)

Built on Apify — the platform for web scraping, data extraction, and browser automation.