Skip to main content
Glama

mcp-server-prometheus

by loglmhq

mcp-server-prometheus

Prometheus メトリックおよびデータと対話するための MCP サーバー。

これは、Prometheus APIインターフェースを実装したTypeScriptベースのMCPサーバーです。モデルコンテキストプロトコル(MCP)を介して、ClaudeとPrometheusサーバー間のブリッジを提供します。

デモ

デモ

特徴

リソース

  • Prometheus メトリック スキーマの一覧表示とアクセス
  • 各メトリック リソースは以下を提供します。
    • メトリック名と説明
    • Prometheusからの詳細なメタデータ
    • 統計情報(カウント、最小値、最大値)
  • 構造化データアクセス用の JSON MIME タイプ

現在の機能

  • 利用可能なすべての Prometheus メトリックを説明とともに一覧表示します
  • 以下の詳細なメトリック情報を読み取ります。
    • メタデータとヘルプテキスト
    • 現在の統計データ(カウント、最小値、最大値)
  • セキュアな Prometheus インスタンスの基本認証サポート

構成

サーバーには次の環境変数が必要です。

  • PROMETHEUS_URL : PrometheusインスタンスのベースURL

オプションの認証構成:

  • PROMETHEUS_USERNAME : 基本認証のユーザー名(必要な場合)
  • PROMETHEUS_PASSWORD : 基本認証のパスワード(必要な場合)

発達

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

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

インストール

Claude Desktop で使用するには、サーバー設定を追加します。

MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json Windows の場合: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "mcp-server-prometheus": { "command": "/path/to/mcp-server-prometheus/build/index.js", "env": { "PROMETHEUS_URL": "http://your-prometheus-instance:9090" } } } }

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

API構造

サーバーは、次の URI 構造を通じて Prometheus メトリックを公開します。

  • ベースURI: http://your-prometheus-instance:9090
  • メトリック URI: http://your-prometheus-instance:9090/metrics/{metric_name}

各メトリック リソースは、次の内容を含む JSON データを返します。

  • メトリック名
  • メタデータ(ヘルプテキスト、タイプ)
  • 現在の統計(カウント、最小、最大)
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Prometheus メトリックおよびデータと対話するための MCP サーバー。

  1. デモ
    1. 特徴
      1. リソース
      2. 現在の機能
    2. 構成
      1. 発達
        1. インストール
          1. デバッグ
        2. API構造

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            An MCP server that enables Large Language Models to retrieve, analyze, and query metric data from Prometheus databases through pre-defined routes.
            Last updated -
            24
            Python
            MIT License
            • Linux
            • Apple
          • A
            security
            F
            license
            A
            quality
            An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
            Last updated -
            39
            28
            • Apple
          • A
            security
            A
            license
            A
            quality
            Provides access to Prometheus metrics and queries through standardized Model Context Protocol interfaces, allowing AI assistants to execute PromQL queries and analyze metrics data.
            Last updated -
            5
            111
            Python
            MIT License
            • Linux
            • Apple
          • A
            security
            A
            license
            A
            quality
            A proof-of-concept Prometheus MCP server, which likely enables Claude AI to interact with Prometheus monitoring systems through the Model Context Protocol.
            Last updated -
            2
            Python
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/loglmhq/mcp-server-prometheus'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server