Skip to main content
Glama

Sentry MCP Server πŸ”

A TypeScript implementation of a Sentry MCP (Modern Context Protocol) tool that allows AI agents to access and analyze Sentry error data. πŸ€–

✨ Features

  • 🎯 Retrieve and analyze Sentry issues

  • πŸ“Š Get formatted issue details and metadata

  • πŸ”¬ View detailed stacktraces

  • πŸ› οΈ Support for both tool and prompt interfaces

  • πŸ›‘οΈ Robust error handling

  • πŸ”„ Real-time communication

Related MCP server: Sentry MCP Server

πŸ“¦ Installation

pnpm install

πŸ”§ Configuration

Create a .env file in the root directory with your Sentry auth token:

SENTRY_AUTH_TOKEN=your_sentry_auth_token
SENTRY_API_BASE=https://sentry.io/api/0/  # Optional, defaults to this value

πŸ“š Usage

Starting the Server πŸš€

pnpm build && pnpm start

The server will start on port 1337 by default.

Using with MCP πŸ› οΈ

The server provides two MCP interfaces:

  1. Tool Interface: get_sentry_issue

    {
      "issue_id_or_url": "12345"
    }
  2. Prompt Interface: sentry-issue

    {
      "issue_id_or_url": "https://sentry.io/organizations/your-org/issues/12345/"
    }

πŸ’‘ Integrating with Cursor IDE

The Sentry MCP Server can be integrated with Cursor IDE for enhanced development experience:

  1. πŸš€ Start the MCP server locally using pnpm start

  2. πŸ”§ Configure Cursor to use the local MCP server: image

  3. πŸŽ‰ Enjoy seamless Sentry issue analysis directly in your IDE!

🀝 Contributing

  1. πŸ”€ Fork the repository

  2. 🌿 Create your feature branch

  3. πŸ’Ύ Commit your changes

  4. πŸš€ Push to the branch

  5. πŸ“¬ Create a new Pull Request

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      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.
      2
      23
      -
    • A
      license
      B
      quality
      F
      maintenance
      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.
      11
      21
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      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.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A Model Context Protocol server that lets AI assistants interact with the Sentry API to retrieve and analyze error data, manage projects, and monitor application performance.
      11
      12
      ISC