Skip to main content

MCP server for retrieving issues from sentry.io

Project description

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

Using uv (recommended)

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:

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

Usage with Zed

Add to your Zed settings.json:

Using uvx
"context_servers": [
  "mcp-server-sentry": {
    "command": {
      "path": "uvx",
      "args": ["mcp-server-sentry", "--auth-token", "YOUR_SENTRY_TOKEN"]
    }
  }
],
Using pip installation
"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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_sentry_xhs-0.6.4.tar.gz (31.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_sentry_xhs-0.6.4-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_sentry_xhs-0.6.4.tar.gz.

File metadata

File hashes

Hashes for mcp_server_sentry_xhs-0.6.4.tar.gz
Algorithm Hash digest
SHA256 2f95f021642809b1a4ea448084a17a6971963a92c68bc8e12c735de160c1e90c
MD5 8c5d23f9e8697564b6a01c7cf54ae92f
BLAKE2b-256 39c6b2bcf73821a50c609d5dbb0aee4a751beb3b86f648582fc53f15fea142cd

See more details on using hashes here.

File details

Details for the file mcp_server_sentry_xhs-0.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_sentry_xhs-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2e5b58886344088890fec9ff1631f08fefe6836ac7f89856ee55c800f1d670ed
MD5 a810c9ecc86d45f893f1bfe1d5a51096
BLAKE2b-256 c99f67490bb08c03a648958388861542c7ce5c634f9b7957b96d37bda3ffaf4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page