Sentry MCP server

Integrations

  • Allows to retrieve and analyze issues from Sentry.io, including error reports, stacktraces, and debugging information from a Sentry account.

mcp-server-sentry: A Sentry MCP server

Overview

A Model Context Protocol server for retrieving and analyzing issues from Sentry.io. This server provides tools to inspect error reports, stacktraces, and other debugging information from your Sentry account.

Tools

  1. get_sentry_issue
    • Retrieve and analyze a Sentry issue by ID or URL
    • Input:
      • issue_id_or_url (string): Sentry issue ID or URL to analyze
    • Returns: Issue details including:
      • Title
      • Issue ID
      • Status
      • Level
      • First seen timestamp
      • Last seen timestamp
      • Event count
      • Full stacktrace

Prompts

  1. sentry-issue
    • Retrieve issue details from Sentry
    • Input:
      • issue_id_or_url (string): Sentry issue ID or URL
    • Returns: Formatted issue details as conversation context

Installation

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-sentry.

Using PIP

Alternatively you can install mcp-server-sentry via pip:

pip install mcp-server-sentry

After installation, you can run it as a script using:

python -m mcp_server_sentry

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

"mcpServers": { "sentry": { "command": "uvx", "args": ["mcp-server-sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } }
"mcpServers": { "sentry": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } }
"mcpServers": { "sentry": { "command": "python", "args": ["-m", "mcp_server_sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } }

Usage with VS Code

For quick installation, use one of the one-click installation buttons below...

For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing Ctrl + Shift + P and typing Preferences: Open Settings (JSON).

Optionally, you can add it to a file called .vscode/mcp.json in your workspace. This will allow you to share the configuration with others.

Note that the mcp key is needed when using the mcp.json file.

{ "mcp": { "inputs": [ { "type": "promptString", "id": "auth_token", "description": "Sentry Auth Token", "password": true } ], "servers": { "sentry": { "command": "uvx", "args": ["mcp-server-sentry"], "env": { "SENTRY_AUTH_TOKEN": "${input:auth_token}" } } } } }
{ "mcp": { "inputs": [ { "type": "promptString", "id": "auth_token", "description": "Sentry Auth Token", "password": true } ], "servers": { "sentry": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/sentry"], "env": { "SENTRY_AUTH_TOKEN": "${input:auth_token}" } } } } }

Usage with Zed

Add to your Zed settings.json:

"context_servers": [ "mcp-server-sentry": { "command": { "path": "uvx", "args": ["mcp-server-sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } } ],
"context_servers": { "mcp-server-sentry": { "command": "python", "args": ["-m", "mcp_server_sentry", "--auth-token", "YOUR_SENTRY_TOKEN"] } },

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-sentry --auth-token YOUR_SENTRY_TOKEN

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/servers/src/sentry npx @modelcontextprotocol/inspector uv run mcp-server-sentry --auth-token YOUR_SENTRY_TOKEN

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

This server provides tools to inspect error reports, stacktraces, and other debugging information from your Sentry account.

  1. Overview
    1. Tools
    2. Prompts
  2. Installation
    1. Using uv (recommended)
    2. Using PIP
  3. Configuration
    1. Usage with Claude Desktop
    2. Usage with VS Code
    3. Usage with Zed
  4. Debugging
    1. License

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A Model Context Protocol server that retrieves and analyzes Sentry.io issues, allowing users to inspect error reports, stacktraces, and debugging information from their Sentry account.
        Last updated -
        8
        Python
        • Apple
      • A
        security
        F
        license
        A
        quality
        A Model Context Protocol server that enables AI assistants to interact with Sentry for error tracking and monitoring, allowing retrieval and analysis of error data, project management, and performance monitoring through the Sentry API.
        Last updated -
        10
        3
        TypeScript
      • -
        security
        -
        license
        -
        quality
        A TypeScript implementation of a Model Context Protocol server that connects to Sentry error tracking service, allowing AI models to query and analyze error reports and events.
        Last updated -
        TypeScript
      • -
        security
        F
        license
        -
        quality
        An MCP server that connects to Sentry.io or self-hosted Sentry instances to retrieve and analyze error reports, stack traces, and debugging information.
        Last updated -
        2
        Python

      View all related MCP servers

      ID: 9wbwsn1sip