MCP Server Sentry

MCP Server Sentry - TypeScript Implementation

This is a Model Context Protocol (MCP) server implemented in TypeScript for connecting to the Sentry error tracking service. This server allows AI models to query and analyze error reports and events on Sentry.

Features

  1. get_sentry_issue Tool
    • Retrieves and analyzes Sentry issues 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
      • Complete stack trace
  2. sentry-issue Prompt Template
    • Retrieves issue details from Sentry
    • Input:
      • issue_id_or_url (string): Sentry issue ID or URL
    • Returns: Formatted issue details as conversation context

Installation

# Install dependencies npm install # Build the project npm run build

Configuration

The server is configured using environment variables. Create a .env file in the project root directory:

# Required: Sentry authentication token SENTRY_AUTH_TOKEN=your_sentry_auth_token # Optional: Sentry organization name SENTRY_ORGANIZATION_SLUG=your_organization_slug # Optional: Sentry project name SENTRY_PROJECT_SLUG=your_project_slug # Optional: Sentry base url SENTRY_BASE_URL=https://sentry.com/api/0

Alternatively, you can set these environment variables at runtime.

Running

Run the server via standard IO:

node dist/index.js

Debug with MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

Environment Variables Description

  • SENTRY_AUTH_TOKEN (required): Your Sentry API access token
  • SENTRY_PROJECT_SLUG (optional): The slug of your Sentry project
  • SENTRY_ORGANIZATION_SLUG (optional): The slug of your Sentry organization

The latter two variables can be omitted if project and organization information are provided in the URL.

License

This project is licensed under the MIT License.

-
security - not tested
-
license - not tested
-
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.

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.

  1. Features
    1. Installation
      1. Configuration
        1. Running
          1. Environment Variables Description
            1. License

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                Provides a Model Context Protocol interface for accessing Linear's issue tracking system, enabling users to query and search issues with TypeScript type safety and robust error handling.
                Last updated -
                9
                16
                30
                TypeScript
                MIT License
                • Apple
                • Linux
              • -
                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
                F
                license
                -
                quality
                A TypeScript server that allows AI agents to access, retrieve, and analyze Sentry error data through the Modern Context Protocol.
                Last updated -
                2
                TypeScript

              View all related MCP servers

              ID: crxk6jhf1u