---
title: "Sentry MCP Server Setup Guide and Schema"
slug: "sentry"
category: "observability"
package: "mcp-server-sentry"
transport: "stdio"
canonical: "https://mcp-codex.com/servers/sentry"
source: "MCP Codex (https://mcp-codex.com)"
dateModified: "2026-09-28"
---

# Sentry MCP Server

> Query error reports, stack traces, crash events, and release telemetry.

## Overview
Connect AI agents to Sentry for error tracking and debugging. Query issues, view stack traces, analyze crash trends, and correlate errors with deployments. Essential for AI-assisted debugging workflows.

## Quick Install
```bash
uvx mcp-server-sentry --auth-token sntrys_xxxx
```

## Environment Variables

| Variable | Description | Required |
| :--- | :--- | :--- |
| `SENTRY_AUTH_TOKEN` | Sentry authentication token | **Yes** |

## Client Configurations

### Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "sentry": {
      "command": "uvx",
      "args": [
        "mcp-server-sentry",
        "--auth-token",
        "sntrys_xxxx"
      ]
    }
  }
}
```

### Cursor (`mcp.json`)
```json
{
  "mcpServers": {
    "sentry": {
      "command": "uvx",
      "args": [
        "mcp-server-sentry",
        "--auth-token",
        "sntrys_xxxx"
      ]
    }
  }
}
```

### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.sentry]
command = "uvx"
args = ["mcp-server-sentry", "--auth-token", "sntrys_xxxx"]
```

## Available Tools (4)

- `search_issues`
- `get_issue_details`
- `get_event`
- `list_projects`

## Documentation & Links
- Canonical Web Page: https://mcp-codex.com/servers/sentry
- Weekly Protocol Changelog: https://mcp-codex.com#newsletter
- GitHub Repository: https://github.com/getsentry/sentry-mcp
- Setup Tutorial Guide: https://mcp-codex.com/articles/sentry-mcp-server-setup

