Skip to main content
Glama
hny-mcp
by honeycombio

ハニカムMCP

Honeycombの可観測性データとやり取りするためのモデルコンテキストプロトコルサーバー。このサーバーにより、ClaudeのようなLLMは、複数の環境にまたがるHoneycombデータセットを直接分析およびクエリできるようになります。

ハニカムMCPロゴ

要件

  • Node.js 18歳以上

  • 完全な権限を持つ Honeycomb API キー:

    • 分析のためのクエリアクセス

    • SLO とトリガーの読み取りアクセス

    • データセット操作の環境レベルのアクセス

Honeycomb MCP は実質的に Honeycomb の完全な代替インターフェースであるため、API に対する広範な権限が必要です。

Related MCP server: MCP Database Server

ハニカムエンタープライズのみ

現在、これは Honeycomb Enterprise の顧客のみが利用できます。

仕組み

現在、これは単一のサーバープロセスであり**、ご自身のコンピュータ上で実行する必要があります**。認証は不要です。クライアントとサーバー間のすべての情報はSTDIOを介して送信されます。

インストール

pnpm install
pnpm run build

ビルド成果物は/buildフォルダーに保存されます。

構成

この MCP サーバーを使用するには、MCP 構成の環境変数を介して Honeycomb API キーを提供する必要があります。

{
    "mcpServers": {
      "honeycomb": {
        "command": "node",
        "args": [
          "/fully/qualified/path/to/honeycomb-mcp/build/index.mjs"
        ],
        "env": {
          "HONEYCOMB_API_KEY": "your_api_key"
        }
      }
    }
}

複数の環境の場合:

{
    "mcpServers": {
      "honeycomb": {
        "command": "node",
        "args": [
          "/fully/qualified/path/to/honeycomb-mcp/build/index.mjs"
        ],
        "env": {
          "HONEYCOMB_ENV_PROD_API_KEY": "your_prod_api_key",
          "HONEYCOMB_ENV_STAGING_API_KEY": "your_staging_api_key"
        }
      }
    }
}

重要:これらの環境変数は、MCP 構成のenvブロックで設定する必要があります。

EU構成

MCP はデフォルトで非 EU インスタンスに設定されるため、EU のお客様はHONEYCOMB_API_ENDPOINT構成も設定する必要があります。

# Optional custom API endpoint (defaults to https://api.honeycomb.io)
HONEYCOMB_API_ENDPOINT=https://api.eu1.honeycomb.io/

キャッシュ構成

MCPサーバーは、パフォーマンスの向上とAPI使用量の削減のため、クエリ以外のすべてのHoneycomb API呼び出しにキャッシュを実装しています。キャッシュは以下の環境変数で設定できます。

# Enable/disable caching (default: true)
HONEYCOMB_CACHE_ENABLED=true

# Default TTL in seconds (default: 300)
HONEYCOMB_CACHE_DEFAULT_TTL=300

# Resource-specific TTL values in seconds (defaults shown)
HONEYCOMB_CACHE_DATASET_TTL=900    # 15 minutes
HONEYCOMB_CACHE_COLUMN_TTL=900     # 15 minutes
HONEYCOMB_CACHE_BOARD_TTL=900      # 15 minutes
HONEYCOMB_CACHE_SLO_TTL=900        # 15 minutes
HONEYCOMB_CACHE_TRIGGER_TTL=900    # 15 minutes
HONEYCOMB_CACHE_MARKER_TTL=900     # 15 minutes
HONEYCOMB_CACHE_RECIPIENT_TTL=900  # 15 minutes
HONEYCOMB_CACHE_AUTH_TTL=3600      # 1 hour

# Maximum cache size (items per resource type)
HONEYCOMB_CACHE_MAX_SIZE=1000

クライアントの互換性

Honeycomb MCP は次のクライアントでテストされています。

他のクライアントでも動作する可能性が高いです。

特徴

  • 複数の環境にまたがる Honeycomb データセットのクエリ

  • 以下をサポートする分析クエリを実行します。

    • 複数の計算タイプ(COUNT、AVG、P95など)

    • 内訳とフィルター

    • 時間ベースの分析

  • SLO とそのステータスを監視する (エンタープライズのみ)

  • 列とデータパターンを分析する

  • トリガーの表示と分析

  • データセットのメタデータとスキーマ情報にアクセスする

  • すべての非クエリ API 呼び出しに対して TTL ベースのキャッシュによるパフォーマンスの最適化

リソース

Honeycomb データセットには、次の形式の URI を使用してアクセスします: honeycomb://{environment}/{dataset}

例えば:

  • honeycomb://production/api-requests

  • honeycomb://staging/backend-services

リソース応答には次のものが含まれます。

  • データセット名

  • 列情報(名前、タイプ、説明)

  • スキーマの詳細

ツール

  • list_datasets : 環境内のすべてのデータセットを一覧表示する

    { "environment": "production" }
  • get_columns : データセットの列情報を取得する

    {
      "environment": "production",
      "dataset": "api-requests"
    }
  • run_query : 豊富なオプションを備えた分析クエリを実行する

    {
      "environment": "production",
      "dataset": "api-requests",
      "calculations": [
        { "op": "COUNT" },
        { "op": "P95", "column": "duration_ms" }
      ],
      "breakdowns": ["service.name"],
      "time_range": 3600
    }
  • analyze_columns : 統計クエリを実行し、計算されたメトリックを返すことで、データセット内の特定の列を分析します。

  • list_slos : データセットのすべての SLO をリストします。

    {
      "environment": "production",
      "dataset": "api-requests"
    }
  • get_slo : 詳細なSLO情報を取得する

    {
      "environment": "production",
      "dataset": "api-requests",
      "sloId": "abc123"
    }
  • list_triggers : データセットのすべてのトリガーを一覧表示する

    {
      "environment": "production",
      "dataset": "api-requests"
    }
  • get_trigger : 詳細なトリガー情報を取得する

    {
      "environment": "production",
      "dataset": "api-requests",
      "triggerId": "xyz789"
    }
  • get_trace_link : Honeycomb UI 内の特定のトレースへのディープリンクを生成します。

  • get_instrumentation_help : OpenTelemetry計測のガイダンスを提供します

    {
      "language": "python",
      "filepath": "app/services/payment_processor.py"
    }

クロードとのクエリ例

クロードに次のような質問をしてください:

  • 「本番環境で利用できるデータセットは何ですか?」

  • 「過去 1 時間の API サービスの P95 レイテンシを表示してください」

  • 「サービス名別のエラー率はどれくらいですか?」

  • 「予算を超過しそうな SLO はありますか?」

  • 「ステージング環境内のすべてのアクティブなトリガーを表示する」

  • 「本番環境の API データセットではどのような列が利用できますか?」

最適化されたツール応答

すべてのツール応答は、重要な情報を維持しながらコンテキスト ウィンドウの使用を減らすように最適化されています。

  • データセットの一覧: 名前、スラッグ、説明のみを返します

  • 列を取得: 名前、タイプ、説明に焦点を当てた合理化された列情報を返します

  • クエリを実行:

    • 実際の結果と必要なメタデータが含まれています

    • 自動的に計算された要約統計を追加します

    • ヒートマップクエリのシリーズデータのみが含まれます

    • 詳細なメタデータ、リンク、実行の詳細を省略します

  • 分析列:

    • 上位の値、カウント、主要な統計を返します

    • 適切な場合に数値メトリックを自動的に計算します

  • SLO情報: 主要なステータス指標とパフォーマンス指標に合理化されています

  • トリガー情報: トリガーの状態、条件、通知対象に焦点を当てています

この最適化により、応答は簡潔でありながら完全となり、LLM はコンテキスト制限内でより多くのデータを処理できるようになります。

run_queryのクエリ仕様

run_queryツールは包括的なクエリ仕様をサポートします。

  • 計算: 実行する演算の配列

    • サポートされている演算: COUNT、CONCURRENCY、COUNT_DISTINCT、HEATMAP、SUM、AVG、MAX、MIN、P001、P01、P05、P10、P25、P50、P75、P90、P95、P99、P999、RATE_AVG、RATE_SUM、RATE_MAX

    • COUNTやCONCURRENCYなどの一部の操作では列は必要ありません

    • 例: {"op": "HEATMAP", "column": "duration_ms"}

  • フィルター: フィルター条件の配列

    • サポートされている演算子: =、!=、>、>=、<、<=、starts-with、does-not-start-with、exists、does-not-exist、contains、does-not-contain、in、not-in

    • 例: {"column": "error", "op": "=", "value": true}

  • filter_combination : 「AND」または「OR」(デフォルトは「AND」)

  • 内訳: 結果をグループ化する列の配列

    • 例: ["service.name", "http.status_code"]

  • 順序: 結果の並べ替え方法を指定する配列

    • 内訳または計算から列を参照する必要があります

    • HEATMAP操作は注文では使用できません

    • 例: {"op": "COUNT", "order": "descending"}

  • time_range : 相対的な時間範囲(秒単位)(例:過去1時間の場合は3600)

    • start_time または end_time のいずれかと組み合わせることができますが、両方と組み合わせることはできません。

  • start_timeとend_time : 絶対時間範囲の UNIX タイムスタンプ

  • 有: 計算値に基づいて結果をフィルタリングする

    • 例: {"calculate_op": "COUNT", "op": ">", "value": 100}

クエリの例

実際のクエリの例を次に示します。

遅いAPI呼び出しを見つける

{
  "environment": "production",
  "dataset": "api-requests",
  "calculations": [
    {"column": "duration_ms", "op": "HEATMAP"},
    {"column": "duration_ms", "op": "MAX"}
  ],
  "filters": [
    {"column": "trace.parent_id", "op": "does-not-exist"}
  ],
  "breakdowns": ["http.target", "name"],
  "orders": [
    {"column": "duration_ms", "op": "MAX", "order": "descending"}
  ]
}

DBコールの分布(先週)

{
  "environment": "production",
  "dataset": "api-requests",
  "calculations": [
    {"column": "duration_ms", "op": "HEATMAP"}
  ],
  "filters": [
    {"column": "db.statement", "op": "exists"}
  ],
  "breakdowns": ["db.statement"],
  "time_range": 604800
}

例外と呼び出し元別の例外数

{
  "environment": "production",
  "dataset": "api-requests",
  "calculations": [
    {"op": "COUNT"}
  ],
  "filters": [
    {"column": "exception.message", "op": "exists"},
    {"column": "parent_name", "op": "exists"}
  ],
  "breakdowns": ["exception.message", "parent_name"],
  "orders": [
    {"op": "COUNT", "order": "descending"}
  ]
}

発達

pnpm install
pnpm run build

ライセンス

マサチューセッツ工科大学

Available Tools

14 tools
analyze_columnsA

Analyzes specific columns in a dataset by running statistical queries and returning computed metrics. This tool allows users to get statistical information about a specific column, including value distribution, top values, and numeric statistics (for numeric columns). Supports analyzing up to 10 columns at once by specifying an array of column names in the 'columns' parameter. When multiple columns are specified, they will be analyzed together as a group, showing the distribution of their combined values. Use this tool before running queries to get a better understanding of the data in your dataset.

Inputs: environment (required), dataset (required), columns (required), timeRange.

get_boardA

Retrieves a specific board (dashboard) from a Honeycomb environment. This tool returns a detailed object containing the board's ID, name, description, creation time, and last update time.

Inputs: environment (required), boardId (required).

get_instrumentation_helpA

Provides important guidance for how to instrument code with OpenTelemetry traces and logs. It is intended to be used when someone wants to instrument their code, or improve instrumentation (such as getting advice on improving their logs or tracing, or creating new instrumentation). It is BEST used after inspecting existing code and telemetry data to understand some operational characteristics. However, if there is no telemetry data to read from Honeycomb, it can still provide guidance on how to instrument code.

Inputs: language, filepath.

get_sloB

Retrieves a specific SLO (Service Level Objective) by ID with detailed information. This tool returns a detailed object containing the SLO's ID, name, description, time period, target per million, compliance, budget remaining, SLI alias, and timestamps.

Inputs: environment (required), dataset (required), sloId (required).

get_triggerA

Retrieves a specific trigger (alert) by ID with detailed information. This tool returns a detailed object containing the trigger's ID, name, description, threshold, frequency, alert type, triggered status, disabled status, recipients, evaluation schedule type, and timestamps.

Inputs: environment (required), dataset (required), triggerId (required).

list_boardsA

Lists available boards (dashboards) for a specific environment with pagination, sorting, and search support. Returns board IDs, names, descriptions, creation times, and last update times.

Inputs: environment (required), page, limit, sort_by, +3 more.

list_columnsA

Lists all columns available in the specified dataset, including their names, types, descriptions, and hidden status. Supports pagination, sorting by type/name/created_at, and searching by name/description. Note: all is NOT supported as a dataset name.

Inputs: environment (required), dataset (required), page, limit, +4 more.

list_datasetsB

Lists available datasets for the active environment with pagination, sorting, and search support. Returns dataset names, slugs, descriptions, and timestamps.

Inputs: environment (required), page, limit, sort_by, +3 more.

list_markersC

Lists available markers (deployment events) for a specific dataset or environment with pagination, sorting, and search support. Returns IDs, messages, types, URLs, creation times, start times, and end times.

Inputs: environment (required), page, limit, sort_by, +3 more.

list_recipientsC

Lists available recipients for notifications in a specific environment. This tool returns a list of all recipients available in the specified environment, including their names, types, targets, and metadata.

Inputs: environment (required), page, limit, sort_by, +3 more.

list_slosA

Lists available SLOs (Service Level Objectives) for a specific dataset. This tool returns a list of all SLOs available in the specified environment, including their names, descriptions, time periods, and target per million events expected to succeed. NOTE: all is NOT supported as a dataset name -- it is not possible to list all SLOs in an environment.

Inputs: environment (required), dataset (required).

list_triggersA

Lists available triggers (alerts) for a specific dataset. This tool returns a list of all triggers available in the specified dataset, including their names, descriptions, thresholds, and other metadata. NOTE: all is NOT supported as a dataset name -- it is not possible to list all triggers in an environment.

Inputs: environment (required), dataset (required).

run_queryA

Executes a Honeycomb query, returning results with statistical summaries.

CRITICAL RULE: For COUNT operations, NEVER include a "column" field in your calculation, even as null or undefined. Example: Use {"op": "COUNT"} NOT {"op": "COUNT", "column": "anything"}.

Additional Rules:

  1. All parameters must be at the TOP LEVEL (not nested inside a 'query' property)

  2. Field names must be exact - use 'op' (not 'operation'), 'breakdowns' (not 'group_by')

  3. Only use the exact operation names listed in the schema (e.g., use "P95" for 95th percentile, not "PERCENTILE")

  4. For all operations EXCEPT COUNT and CONCURRENCY, you must specify a "column" field

Inputs: environment (required), dataset (required), calculations (required), breakdowns, +9 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific Honeycomb resources (e.g., get_board vs. get_slo vs. get_trigger), but analyze_columns overlaps somewhat with run_query as both involve data analysis. The descriptions help clarify that analyze_columns is for statistical summaries of columns while run_query is for general query execution, but an agent might still confuse them when seeking data insights.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case (e.g., list_boards, get_slo, run_query). The verbs 'list', 'get', 'analyze', and 'run' are used predictably across the set, making it easy to understand the action each tool performs.

    Tool Count5/5

    With 14 tools, this server is well-scoped for Honeycomb's observability domain, covering dashboards, SLOs, triggers, datasets, queries, and instrumentation guidance. Each tool has a clear role, and the count is typical for a comprehensive API surface without being overwhelming.

    Completeness4/5

    The tool set provides strong coverage for retrieving and listing Honeycomb resources (e.g., boards, SLOs, triggers, datasets) and includes key operations like run_query and analyze_columns. Minor gaps exist, such as no tools for creating or updating resources (e.g., create_board, update_slo), but agents can still perform many workflows with the available read-oriented tools.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      This server enables Claude to directly interact with SQLite, SQL Server, PostgreSQL, and MySQL databases through the Model Context Protocol, allowing for query execution, table management, and data export capabilities.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to interact with Google BigQuery by inspecting database schemas, listing tables, and executing SQL queries. This server facilitates seamless data analysis and management through natural language via the Model Context Protocol.
      MIT