Skip to main content
Glama
Sentry MCP Server

Sentry MCP Server

Official
by getsentry

Note - This has largely been superceded by the Sentry Remote-MCP Server which supports a lot more capabilities (auth, better tooling, etc...). This one exists for educational purposes as a standalone MCP server; but in all likelihood you'll want to use the remote. You can see it live at https://mcp.sentry.dev

Sentry MCP Server

A Model Context Protocol (MCP) server for interacting with Sentry. This MCP server provides tools to interact with the Sentry API, allowing AI assistants to retrieve and analyze error data, manage projects, and monitor application performance.

Requirements

  • Node.js (v14 or higher)

  • npm or yarn

  • Sentry account with API access

  • Sentry authentication token with appropriate permissions

Related MCP server: Sentry MCP Server

Setup

  1. Install dependencies:

    npm install

Using this within an IDE

This MCP has been verified to work against Cursor, Codeium Windsurf, and Claude Desktop.

Using with Claude

To use this MCP server with Claude, add the following configuration to your Claude settings:

{
    "mcpServers": {
        "sentry": {
            "command": "npx",
            "args": ["ts-node", "/Users/<your-user-directory>/sentry-mcp-ts/index.ts"],
            "env": {
                "SENTRY_AUTH": "<YOUR_AUTH_TOKEN>"
            }
        }
    }
}
  • Update with your directory path in the args field.

  • Replace <YOUR_AUTH_TOKEN> with your Sentry authentication token.

Available Tools

list_projects

Lists all accessible Sentry projects for a given organization.

Parameters:

  • organization_slug (string, required): The slug of the organization to list projects from

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

resolve_short_id

Retrieves details about an issue using its short ID.

Parameters:

  • organization_slug (string, required): The slug of the organization the issue belongs to

  • short_id (string, required): The short ID of the issue to resolve (e.g., PROJECT-123)

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

get_sentry_event

Retrieves and analyzes a specific Sentry event from an issue.

Parameters:

  • issue_id_or_url (string, required): Either a full Sentry issue URL or just the numeric issue ID

  • event_id (string, required): The specific event ID to retrieve

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_error_events_in_project

Lists error events from a specific Sentry project.

Parameters:

  • organization_slug (string, required): The slug of the organization the project belongs to

  • project_slug (string, required): The slug of the project to list events from

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

create_project

Creates a new project in Sentry and retrieves its client keys.

Parameters:

  • organization_slug (string, required): The slug of the organization to create the project in

  • team_slug (string, required): The slug of the team to assign the project to

  • name (string, required): The name of the new project

  • platform (string, optional): The platform for the new project

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_project_issues

Lists issues from a specific Sentry project.

Parameters:

  • organization_slug (string, required): The slug of the organization the project belongs to

  • project_slug (string, required): The slug of the project to list issues from

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_issue_events

Lists events for a specific Sentry issue.

Parameters:

  • organization_slug (string, required): The slug of the organization the issue belongs to

  • issue_id (string, required): The ID of the issue to list events from

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

get_sentry_issue

Retrieves and analyzes a Sentry issue.

Parameters:

  • issue_id_or_url (string, required): Either a full Sentry issue URL or just the numeric issue ID

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

list_organization_replays

Lists replays from a specific Sentry organization.

Parameters:

  • organization_slug (string, required): The slug of the organization to list replays from

  • project_ids (string[], optional): List of project IDs to filter replays by

  • environment (string, optional): Environment to filter replays by

  • stats_period (string, optional): Time period for stats (e.g., "24h", "7d")

  • start (string, optional): Start date for filtering replays

  • end (string, optional): End date for filtering replays

  • sort (string, optional): Field to sort replays by

  • query (string, optional): Search query to filter replays

  • per_page (number, optional): Number of replays per page

  • cursor (string, optional): Cursor for pagination

  • view (string, optional): View type, either "summary" or "detailed" (default: "detailed")

  • format (string, optional): Output format, either "plain" or "markdown" (default: "markdown")

Running the Server

npx ts-node index.ts

Authentication

This tool requires a Sentry authentication token with appropriate permissions to access the Sentry API. You can generate a token in your Sentry account settings under Settings -> User Settings -> Auth Tokens.

Available Tools

11 tools
create_projectB

Create a new project in Sentry. Track deployments, releases, and health metrics.

Inputs: organization_slug (required), team_slug (required), name (required), platform, +2 more.

get_sentry_eventB

Retrieve a specific Sentry event from an issue. Requires issue ID/URL and event ID.

Inputs: issue_id_or_url (required), event_id (required), organization_slug (required), view, +1 more.

get_sentry_issueC

Retrieve and analyze a Sentry issue. Accepts issue URL or ID.

Inputs: issue_id_or_url (required), organization_slug (required), view, format.

list_error_events_in_projectC

List error events from a specific Sentry project. View recent errors, frequency patterns, and occurrence timestamps.

Inputs: organization_slug (required), project_slug (required), view, format.

list_issue_eventsC

List events for a specific Sentry issue. Analyze event details, metadata, and patterns.

Inputs: organization_slug (required), issue_id (required), view, format.

list_organization_replaysC

List replays from a Sentry organization. Monitor user sessions, interactions, errors, and experience issues.

Inputs: organization_slug (required), project_ids, environment, stats_period, +8 more.

list_project_issuesC

List issues from a Sentry project. Monitor issue status, severity, frequency, and timing.

Inputs: organization_slug (required), project_slug (required), view, format.

list_projectsC

List accessible Sentry projects. View project slugs, IDs, status, settings, features, and organization details.

Inputs: organization_slug (required), view, format.

resolve_short_idC

Retrieve details about an issue using its short ID. Maps short IDs to issue details, project context, and status.

Inputs: organization_slug (required), short_id (required), format.

search_errors_in_fileC

Search for Sentry errors occurring in a specific file. Find all issues related to a particular file path or filename.

Inputs: organization_slug (required), project_slug (required), file_identifier (required), identifier_type (required), +2 more.

setup_sentryC

Set up Sentry for a project returning a dsn and instructions for setup.

Inputs: organization_slug (required), team_slug (required), project_name (required), environment, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some overlap between 'list_project_issues' and 'list_error_events_in_project'—both list issues/errors for a project, which could cause confusion. Other tools like 'get_sentry_event' and 'get_sentry_issue' are clearly differentiated by focusing on events vs. issues.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with underscores, such as 'create_project', 'list_projects', and 'get_sentry_event'. There are no deviations in naming conventions, making the set predictable and easy to understand.

    Tool Count5/5

    With 11 tools, the count is well-scoped for a Sentry integration, covering key operations like project management, issue/event retrieval, listing, and setup. Each tool appears to serve a specific purpose without being excessive or insufficient.

    Completeness4/5

    The toolset provides good coverage for monitoring and debugging in Sentry, including CRUD-like operations (create, list, get) for projects, issues, and events. A minor gap is the lack of update or delete tools for issues or projects, which agents might need for full lifecycle management, but core workflows are well-supported.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    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