
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Grafana用MCPサーバー
概要
Grafana用のモデルコンテキストプロトコル(MCP)サーバーです。 これにより、Grafanaインスタンスや周辺のエコシステムへのアクセスが可能になります。 uvが必要です。MCPクライアント設定に以下のものを追加してください(例:Claude Desktop、カーソル): Grafana Cloudの場合は、GRAFANA_URLをインスタンスURLに置き換えてください(例:[[T0])。Docker、バイナリ、Helmなどのインストールオプションについては使用方法を参照してください。 - 完全な機能のために必要です。特にデータソース関連の操作は、APIエンドポイントがないため、以前のバージョンでは正しく動作しないことがあります。 以下の機能は現在MCPサーバーで利用可能です。このリストは情報提供のみを目的としており、ロードマップや将来の機能へのコミットメントを示すものではありません。 - タイトルやその他のメタデータでダッシュボードを検索 - 一意識別子を使ってダッシュボードの詳細を全て取得する。警告:大規模なダッシュボードはコンテキストウィンドウ空間をかなり消費することがあります。
概要(AI 翻訳)
Grafana用の[モデルコンテキストプロトコル]mcpサーバー。
これにより、Grafanaインスタンスや周辺のエコシステムへのアクセスが可能になります。
クイックスタート
uvが必要です。MCPクライアント設定に以下のものを追加してください(例:Claude Desktop、カーソル):
Grafana Cloudの場合は、GRAFANA_URLをインスタンスURLに置き換えてください(例:https://myinstance.grafana.net)。Docker、バイナリ、Helmなどの追加インストールオプションについては「使用」を参照してください。
要件
- Grafanaバージョン9.0以降が完全な機能のために必要です。特にデータソース関連の操作は、APIエンドポイントがないため、以前のバージョンでは正しく動作しないことがあります。
特徴
The以下の機能は現在MCPサーバーで利用可能です。このリストは情報提供のみを目的としており、ロードマップや将来のコミットメントを示すものではありませんfeatures.
ダッシュボード
- ダッシュボードを検索: タイトル、フォルダのUID、タグ、または星付きステータスでダッシュボードを検索
- UIDでダッシュボードを取得する: ダッシュボードの一意識別子を使って完全な詳細を取得する。現在のダッシュボードではなく保存済みスナップショットを読み込むためにオプションの
versionを通す。Warning:大規模なダッシュボードは大きなコンテキストウィンドウを消費するspace.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Grafana MCP server
A [Model Context Protocol][mcp] (MCP) server for Grafana.
This provides access to your Grafana instance and the surrounding ecosystem.
Quick Start
Requires uv. Add the following to your MCP client configuration (e.g. Claude Desktop, Cursor):
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": ["mcp-grafana"],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": ""
}
}
}
}
For Grafana Cloud, replace GRAFANA_URL with your instance URL (e.g. https://myinstance.grafana.net). See Usage for more installation options including Docker, binary, and Helm.
Requirements
- Grafana version 9.0 or later is required for full functionality. Some features, particularly datasource-related operations, may not work correctly with earlier versions due to missing API endpoints.
Features
The following features are currently available in MCP server. This list is for informational purposes only and does not represent a roadmap or commitment to future features.
Dashboards
- Search for dashboards: Find dashboards by title, folder UID, tag, or starred status
- Get dashboard by UID: Retrieve full dashboard details using its unique identifier. Pass optional
versionto load a saved snapshot instead of the current dashboard. Warning: Large dashboards can consume significant context window space. - List dashboard versions: List saved versions of a dashboard as compact metadata (version number, author, timestamp, save message)
- Get dashboard summary: Get a compact overview of a dashboard including title, panel count, panel types, variables, and metadata without the full JSON to minimize context window usage
- Get dashboard property: Extract specific parts of a dashboard using JSONPath expressions (e.g.,
$.title,$.panels[*].title) to fetch only needed data and reduce context window consumption
インストール
uvx mcp-grafana設定
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": ["mcp-grafana"],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
}
}
}
}