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
: 基本認証のパスワード(必要な場合)
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
インストール
Claude Desktop で使用するには、サーバー設定を追加します。
MacOS の場合: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。MCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
API構造
サーバーは、次の URI 構造を通じて Prometheus メトリックを公開します。
- ベースURI:
http://your-prometheus-instance:9090
- メトリック URI:
http://your-prometheus-instance:9090/metrics/{metric_name}
各メトリック リソースは、次の内容を含む JSON データを返します。
- メトリック名
- メタデータ(ヘルプテキスト、タイプ)
- 現在の統計(カウント、最小、最大)
Related MCP Servers
- -securityAlicense-qualityAn MCP server that enables Large Language Models to retrieve, analyze, and query metric data from Prometheus databases through pre-defined routes.Last updated -24PythonMIT License
- AsecurityFlicenseAqualityAn MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.Last updated -3928
- AsecurityAlicenseAqualityProvides 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 -5111PythonMIT License
- AsecurityAlicenseAqualityA proof-of-concept Prometheus MCP server, which likely enables Claude AI to interact with Prometheus monitoring systems through the Model Context Protocol.Last updated -2PythonMIT License