Skip to main content
OpenSRE connects to Sentry’s hosted Model Context Protocol (MCP) server, exposing Sentry’s products — issues, events, traces, replays, releases, monitors, and Seer AI root-cause analysis — as tools the agent can call while investigating an incident. This is distinct from the Sentry issue integration, which is a narrow REST client used for issue and event lookup. Use the MCP integration when you want the agent to explore Sentry data directly, including Seer-assisted debugging.

Tools

The agent typically calls list_sentry_tools first to discover what is available for your organization, then call_sentry_tool with the chosen tool name and arguments.

Prerequisites

  • A Sentry account (hosted SaaS, or self-hosted via the SENTRY_MCP_HOST override)
  • A Sentry user auth token created in your account settings. The required scopes depend on the skills you use:
    • org:read — read-only inspection of issues, events, traces, releases, monitors (default)
    • event:write, team:write, project:write — for triage and project-management skills

Setup

Option 1: Interactive CLI

Select Sentry (MCP) when prompted, then paste your user auth token. The setup uses the hosted Streamable HTTP transport; keep the default URL unless you run self-hosted Sentry. To run a local server instead, set SENTRY_MCP_MODE=stdio via environment variables (see below).

Option 2: Environment variables

Add to your .env:
To run a local Sentry MCP server instead of the hosted endpoint, use stdio mode:
The search_events and search_issues tools translate natural-language queries and require an OPENAI_API_KEY in the MCP server’s environment. The rest of the MCP server works without it, so you can skip this if you do not need those tools.

Option 3: Persistent store

Verify

A successful check connects to the MCP server and reports how many tools it discovered. If it fails, the most common cause is a missing or invalid user auth token — confirm the token has at least org:read scope and that outbound HTTPS to mcp.sentry.dev is allowed.