Sentry MCP Server

Sentry MCP servers enable AI models to interact with Sentry's error monitoring and performance tracking platform, providing capabilities for analyzing errors, tracking performance, and assisting in debugging applications.

GitHub starsnpm versionnpm downloads

Overview

The Sentry MCP Server enables AI models to interact directly with Sentry's error monitoring and performance tracking platform through the Model Context Protocol (MCP). It provides a standardized interface for error analysis, performance monitoring, and automated issue management while maintaining security and data privacy.

Official Server:

Developed and maintained by Sentry

Key Features

🐛

Error Tracking & Analysis

Access and analyze Sentry issues, errors, and stack traces.

🚀

Performance Monitoring

Monitor application performance data and identify bottlenecks.

🛠️

Issue Management

Manage and resolve issues, including creating projects and DSNs.

🤖

AI-Assisted Debugging

Leverage AI for root cause analysis and automated fixes via Seer integration.

Available Tools

Quick Reference

ToolPurposeCategory
get_sentry_issueRetrieve and analyze a Sentry issue by ID or URLRead
list_project_issuesList issues from a specific Sentry projectRead
list_projectsLists all accessible Sentry projectsDiscovery
create_projectCreates a new project in SentryWrite

Detailed Usage

get_sentry_issue

Retrieve and analyze a Sentry issue by ID or URL.

use_mcp_tool({
  server_name: "sentry",
  tool_name: "get_sentry_issue",
  arguments: {
    issue_id_or_url: "https://sentry.io/organizations/your-org/issues/12345/"
  }
});

Returns issue details including title, ID, status, level, timestamps, event count, and full stacktrace.

list_project_issues

Lists issues from a specific Sentry project.

use_mcp_tool({
  server_name: "sentry",
  tool_name: "list_project_issues",
  arguments: {
    organization_slug: "your-organization-slug",
    project_slug: "your-project-slug"
  }
});

Returns a list of issues with basic information.

create_project

Creates a new project in Sentry.

use_mcp_tool({
  server_name: "sentry",
  tool_name: "create_project",
  arguments: {
    organization_slug: "your-organization-slug",
    team_slug: "your-team-slug",
    name: "New Project Name",
    platform: "javascript"
  }
});

Returns details of the newly created project, including client keys.

Installation

{
  "mcpServers": {
    "sentry": {
      "command": "npx",
      "args": [
        "-y",
        "@sentry/mcp-server@latest",
        "--access-token",
        "YOUR_SENTRY_TOKEN"
      ],
      "env": {
        "SENTRY_HOST": "your_sentry_host" // Optional, for self-hosted Sentry
      }
    }
  }
}

Sentry Access Token:

Replace YOUR_SENTRY_TOKEN with a Sentry User Auth Token with appropriate scopes (org:read, project:read, project:write, team:read, team:write, event:write).

Sources