Skip to main content
Glama
Sentry MCP Server

Sentry MCP Server

Official
by getsentry

注:これは、より多くの機能(認証、より優れたツールなど)をサポートするSentry Remote-MCP Serverにほぼ置き換えられました。これは教育目的でスタンドアロンのMCPサーバーとして提供されていますが、おそらくリモートサーバーを使用することになるでしょう。ライブサーバーはhttps://mcp.sentry.devでご覧いただけます。

Sentry MCP サーバー

Sentryと連携するためのモデルコンテキストプロトコル(MCP)サーバー。このMCPサーバーは、Sentry APIと連携するためのツールを提供し、AIアシスタントによるエラーデータの取得と分析、プロジェクトの管理、アプリケーションパフォーマンスの監視を可能にします。

要件

  • Node.js (v14以上)

  • npmまたはyarn

  • APIアクセス可能なSentryアカウント

  • 適切な権限を持つ Sentry 認証トークン

Related MCP server: Sentry MCP Server

設定

  1. 依存関係をインストールします:

    npm install

IDE内でこれを使用する

この MCP は、Cursor、Codeium Windsurf、Claude Desktop に対して動作することが検証されています。

クロードと一緒に使う

この MCP サーバーを Claude で使用するには、Claude 設定に次の構成を追加します。

{
    "mcpServers": {
        "sentry": {
            "command": "npx",
            "args": ["ts-node", "/Users/<your-user-directory>/sentry-mcp-ts/index.ts"],
            "env": {
                "SENTRY_AUTH": "<YOUR_AUTH_TOKEN>"
            }
        }
    }
}
  • argsフィールドにディレクトリ パスを更新します。

  • <YOUR_AUTH_TOKEN> Sentry 認証トークンに置き換えます。

利用可能なツール

プロジェクト一覧

特定の組織でアクセス可能なすべての Sentry プロジェクトを一覧表示します。

パラメータ:

  • organization_slug (文字列、必須): プロジェクトを一覧表示する組織のスラッグ

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

解決短いID

短い ID を使用して問題の詳細を取得します。

パラメータ:

  • organization_slug (文字列、必須): 問題が属する組織のスラッグ

  • short_id (文字列、必須): 解決する問題の短縮ID(例:PROJECT-123)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

get_sentry_event

問題から特定の Sentry イベントを取得して分析します。

パラメータ:

  • issue_id_or_url (文字列、必須): Sentry の問題 URL 全体、または数値の問題 ID のみ

  • event_id (文字列、必須): 取得する特定のイベントID

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

プロジェクト内のエラーイベントのリスト

特定の Sentry プロジェクトからのエラー イベントを一覧表示します。

パラメータ:

  • organization_slug (文字列、必須): プロジェクトが属する組織のスラッグ

  • project_slug (文字列、必須): イベントを一覧表示するプロジェクトのスラッグ

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

プロジェクトを作成

Sentry に新しいプロジェクトを作成し、そのクライアント キーを取得します。

パラメータ:

  • organization_slug (文字列、必須): プロジェクトを作成する組織のスラッグ

  • team_slug (文字列、必須): プロジェクトを割り当てるチームのスラッグ

  • name (文字列、必須): 新しいプロジェクトの名前

  • platform (文字列、オプション): 新しいプロジェクトのプラットフォーム

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

プロジェクトの問題一覧

特定の Sentry プロジェクトの問題を一覧表示します。

パラメータ:

  • organization_slug (文字列、必須): プロジェクトが属する組織のスラッグ

  • project_slug (文字列、必須): 問題を一覧表示するプロジェクトのスラッグ

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

問題イベント一覧

特定の Sentry の問題に関するイベントを一覧表示します。

パラメータ:

  • organization_slug (文字列、必須): 問題が属する組織のスラッグ

  • issue_id (文字列、必須): イベントを一覧表示する問題のID

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

get_sentry_issue

Sentry の問題を取得して分析します。

パラメータ:

  • issue_id_or_url (文字列、必須): Sentry の問題 URL 全体、または数値の問題 ID のみ

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

リスト組織リプレイ

特定の Sentry 組織からのリプレイを一覧表示します。

パラメータ:

  • organization_slug (文字列、必須): リプレイを一覧表示する組織のスラッグ

  • project_ids (文字列[], オプション): リプレイをフィルタリングするプロジェクトIDのリスト

  • environment (文字列、オプション):リプレイをフィルタリングする環境

  • stats_period (文字列、オプション): 統計の期間 (例: "24h"、"7d")

  • start (文字列、オプション): リプレイのフィルタリングの開始日

  • end (文字列、オプション): リプレイのフィルタリングの終了日

  • sort (文字列、オプション): リプレイを並べ替えるフィールド

  • query (文字列、オプション): リプレイをフィルタリングするための検索クエリ

  • per_page (数値、オプション): ページあたりのリプレイ数

  • cursor (文字列、オプション):ページ区切りのカーソル

  • view (文字列、オプション): ビューの種類。「summary」または「detailed」のいずれか (デフォルト: 「detailed」)

  • format (文字列、オプション): 出力形式。「plain」または「markdown」のいずれか (デフォルト:「markdown」)

サーバーの実行

npx ts-node index.ts

認証

このツールを使用するには、Sentry APIにアクセスするための適切な権限を持つSentry認証トークンが必要です。トークンは、Sentryアカウント設定の「設定」->「ユーザー設定」->「認証トークン」で生成できます。

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

    ActivityInactive
    ResponsivenessNo recent community issues

    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