原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Grafana

✓ Brand-named GitHub · github.com/grafana✓ 已收录在 Claude 连接器目录

作者:grafana版本 v2.3.0i★ 3,683i电脑或云端官方网站 ↗
注册名称io.github.grafana/mcp-grafana

安装方法

What it does

An MCP server giving access to Grafana dashboards, data and more.

  • Connects 电脑或云端
  • Account or key Cloud: Needs X-Grafana-URL · Local: Needs GRAFANA_SERVICE_ACCOUNT_TOKEN, GRAFANA_PASSWORD · 1 setting to fill in (GRAFANA_URL)
  • Category 开发者工具

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

作者:morluto★ 468,7331 个 skill

Skill · 操作手册

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

作者:multica-ai★ 234,3321 个 skill

Skill · 操作手册未注明许可证

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

作者:Graphify-Labs★ 150,2871 个 skill

Skill · 操作手册

为什么排在这里

此项在“连接 AI 的应用”标签中,该标签不使用星标,按以下顺序排列

1. 在 Claude 连接器目录中是目录热度 15,487
2. 团队实测过否
3. 适合泰国用户否
4. 不计星标的使用量20/100热度 0 · 新鲜度 12 · 仍在响应 8 · 用户喜欢 +0
5. 登记日期2026-11-10

用户喜欢: 0 · 最多加 5 分(每人 1 分),不能用钱买。

质量: 基础检查通过 5/5 项(仅展示,不用于排序)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Grafana。按照 https://mcp.popnx.com/i/grafana-mcp-grafana.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 5/5 项检查 · 你的提问会经过开发者的服务器(mcp.grafana.com) · ✓ 命令已检查 2026年11月14日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

在 Claude 应用里直接安装,无需自己设置

Grafana Cloud 已在 Claude 精选的列表中,点击下方按钮即可添加 · 检查于 2026年11月16日

  1. 在 Claude 中打开 Grafana Cloud 页面

    在 claude.ai 打开 · 未登录时页面会先显示“Sign in to add”

  2. 点击“Connect to Claude”,如有提示请登录 Grafana Cloud 账户

    如果出现“Failed to add the connector”,请稍等后再试,或使用下面的其他方式

  3. 试一试

    用 Grafana 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Grafana,或回答中出现 Grafana 的工具名称,就表示连接成功

链接打不开?改用菜单
  1. 打开网页版 Claude (claude.ai) 或 Claude Desktop 应用

  2. 点击左侧栏的“Customize”

    Customize

  3. 选择“Connectors”标签,然后点击 Connectors 旁边的“+”按钮

    CustomizeConnectors+

  4. 在搜索框输入“Grafana Cloud”或在列表中查找,然后点击它

  5. 点击“Connect”(有些显示为“Install”)

  6. 如有提示,登录该服务的账户

  7. 在对话中启用:点击对话框左下角的“+” → “Connectors” → 打开 Grafana Cloud 的开关

菜单名称为英文,与 Claude 界面一致

菜单名称已于 2026年11月13日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

其他方式:自己用地址添加(custom connector)

可连接 Claude · 约 5 分钟

需要 Grafana 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 注册并创建 Grafana 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Grafana 网站 ↗

  2. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  3. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称Grafana
    Remote MCP server URL · 地址https://mcp.grafana.com/mcp

    在 Request headers 下添加这个名称和值

    Header 名称X-Grafana-URL
    值<在这里粘贴你的密钥>

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  4. 在聊天中开启

    +ConnectorsGrafana

  5. 试一试

    用 Grafana 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Grafana,或回答中出现 Grafana 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Grafana

Grafana 连接时需要你自己的密钥,但 OpenAI 帮助页面只说明了 OAuth 登录,没有我们能核实的填密钥方式

你可以改用这些方式

A · 使用能连接 Grafana 的应用

  • 需要 Grafana 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加
  • 需要 Grafana 的密钥(在开发者网站创建)
  • 需要 Grafana 的密钥(在开发者网站创建)
  • 需要 Grafana 的密钥(在开发者网站创建)

B · 开发者工具 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code · 约 5 分钟

需要 Grafana 的密钥(在开发者网站创建)

  1. 注册并创建 Grafana 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Grafana 网站 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user grafana https://mcp.grafana.com/mcp --header 'X-Grafana-URL: your-value'

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Claude Code 中输入 /mcp

    应能看到 Grafana 在列表中并显示已连接

  5. 试一试

    用 Grafana 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Grafana,或回答中出现 Grafana 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 5 分钟

需要 Grafana 的密钥(在开发者网站创建)

  1. 注册并创建 Grafana 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Grafana 网站 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Grafana 的设置中,X-Grafana-URL 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Cursor 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Grafana 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Grafana,或回答中出现 Grafana 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 5 分钟

需要 Grafana 的密钥(在开发者网站创建)

  1. 注册并创建 Grafana 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Grafana 网站 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Grafana 的设置中,X-Grafana-URL 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 VS Code 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Grafana 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Grafana,或回答中出现 Grafana 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://mcp.grafana.com/mcp

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Grafana 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user grafana https://mcp.grafana.com/mcp --header 'X-Grafana-URL: your-value'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "grafana": {
      "url": "https://mcp.grafana.com/mcp",
      "headers": {
        "X-Grafana-URL": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "grafana": {
      "type": "http",
      "url": "https://mcp.grafana.com/mcp",
      "headers": {
        "X-Grafana-URL": "your-value"
      }
    }
  }
}

安装在电脑上

Claude Code

claude mcp add --scope user grafana --env GRAFANA_URL=your-value --env GRAFANA_SERVICE_ACCOUNT_TOKEN=your-value --env GRAFANA_PASSWORD=your-value -- docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN -e GRAFANA_PASSWORD docker.io/grafana/mcp-grafana:2.3.0

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "grafana": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GRAFANA_URL",
        "-e",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN",
        "-e",
        "GRAFANA_PASSWORD",
        "docker.io/grafana/mcp-grafana:2.3.0"
      ],
      "env": {
        "GRAFANA_URL": "your-value",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "your-value",
        "GRAFANA_PASSWORD": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "grafana": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GRAFANA_URL",
        "-e",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN",
        "-e",
        "GRAFANA_PASSWORD",
        "docker.io/grafana/mcp-grafana:2.3.0"
      ],
      "env": {
        "GRAFANA_URL": "your-value",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "your-value",
        "GRAFANA_PASSWORD": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "grafana": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GRAFANA_URL",
        "-e",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN",
        "-e",
        "GRAFANA_PASSWORD",
        "docker.io/grafana/mcp-grafana:2.3.0"
      ],
      "env": {
        "GRAFANA_URL": "your-value",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "your-value",
        "GRAFANA_PASSWORD": "your-value"
      }
    }
  }
}

需要你填写的值

  • GRAFANA_URL 必填 env
    您的 Grafana 实例的 URL
    查看英文原文URL to your Grafana instance
  • GRAFANA_SERVICE_ACCOUNT_TOKEN 机密 必填 env
    用于向您的 Grafana 实例进行身份验证的服务账户令牌
    查看英文原文Service account token used to authenticate with your Grafana instance
  • GRAFANA_USERNAME env
    用于向您的 Grafana 实例进行身份验证的用户名
    查看英文原文Username to authenticate with your Grafana instance
  • GRAFANA_PASSWORD 机密 必填 env
    用于向您的 Grafana 实例进行身份验证的密码
    查看英文原文Password to authenticate with your Grafana instance
  • GRAFANA_ORG_ID env
    用于多组织支持的组织 ID。也可以在 SSE/streamable HTTP 传输中通过 X-Grafana-Org-Id 标头进行设置。
    查看英文原文Organization ID for multi-org support. Can also be set via X-Grafana-Org-Id header in SSE/streamable HTTP transports.
  • GRAFANA_EXTRA_HEADERS env
    要随所有 Grafana API 请求一起发送的额外 HTTP 标头的 JSON 对象
    查看英文原文JSON object of additional HTTP headers to send with all Grafana API requests
  • GRAFANA_FORWARD_HEADERS env
    以逗号分隔的 HTTP 标头名称列表,将从传入请求转发到 Grafana(仅限 SSE/streamable-http)。示例:Cookie,X-Session-Id
    查看英文原文Comma-separated list of HTTP header names to forward from the incoming request to Grafana (SSE/streamable-http only). Example: Cookie,X-Session-Id
  • X-Grafana-URL HTTP header
    您的 Grafana Cloud 实例的 URL
    查看英文原文URL of your Grafana Cloud instance

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
不在 npm/PyPI 上
许可证i
Apache-2.0
连接方式
电脑或云端
传输方式
stdio, streamable-http
最新版本i
v2.3.0
发布到注册中心i
2026年11月11日
代码最后更新i
2026年11月19日
最近检查
2026年11月18日
作者
grafana
软件包
oci: docker.io/grafana/mcp-grafana:2.3.0
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

服务器要求先登录,才会列出它的工具。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 grafana 验证,该账户拥有此仓库

  • ✓ 通过

    仍在维护

    代码最后更新于今天

  • ✓ 通过

    有许可证

    使用 Apache-2.0

  • ✓ 通过

    端点有响应

    在 198 毫秒内响应(HTTP 401)

  • ✓ 通过

    使用 OAuth 登录

    声明支持 OAuth 登录,你的 AI 应用可以带你去登录

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

云端地址最近 4 次检查中有 4 次响应 · 最近一次 198 ms · 检查于 2026年11月18日

已公开的漏洞(OSV.dev)

未检查:只能检查标明版本的 npm 和 PyPI 包

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/grafana-mcp-grafana.svg)](https://mcp.popnx.com/en/servers/grafana-mcp-grafana)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“开发者工具”中的其他服务器比较i

  • 星标数多于此分类中其他 6136 个服务器的 99%
  • 发布到注册中心的时间比此分类中其他 6136 个服务器的 83% 更新
  • 基础检查结果等于或优于此分类中其他 6136 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Grafana 安全吗?

它在 5 项适用的基础检查中通过了 5 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:X-Grafana-URL, GRAFANA_SERVICE_ACCOUNT_TOKEN, GRAFANA_PASSWORD

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于今天,最新版本(v2.3.0)于8天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004广泛使用★ 1.9万2个月前更新

在云端运行✓ 服务方 · gitdiagram.comPopNx 团队已实际试用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama广泛使用★ 52303个月前更新

在云端运行✓ 服务方 · appllama.io

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai广泛使用★ 34172个月前更新

在云端运行✓ 服务方 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev广泛使用↓ 6506/周★ 8180 整个仓库的星标6天前更新

电脑或云端✓ 服务方 · repowise.dev
与相似项目对比
本项
Grafana
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
运行位置云端或安装在电脑上都可以在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装云端或安装在电脑上都可以
需要密钥是否否否否否
可在 Claude 中按 + 添加是否否是否否
基础检查5/54/44/44/44/45/5
许可证Apache-2.0MITMITApache-2.0Apache-2.0AGPL-3.0
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Grafana MCP server

A Model Context Protocol (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 version to 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
  • Update or create a dashboard: Modify existing dashboards or create new ones. _Warning: Requires full dashboard JSON which can consume large amounts of context window space._
  • Patch dashboard: Apply specific changes to a dashboard without requiring the full JSON, significantly reducing context window usage for targeted modifications
  • Get panel queries and datasource info: Get the title, query string, and datasource information (including UID and type, if available) from every panel in a dashboard
Run Panel Query

Note: Run panel query tools are disabled by default. To enable them, add runpanelquery to your --enabled-tools flag.

  • Run panel query: Execute a dashboard panel's query with custom time ranges and variable overrides. Infinity panels run when the query uses the backend or jq-backend parser (Google Sheets queries always do); the default simple parser and the UQL and GROQ parsers work only in the browser. Neo4j panels on the kniepdennis-neo4j-datasource plugin run their Cypher query through the plugin, which opens read-only sessions. Elasticsearch panels interpolate variables in the Lucene query with the lucene format, as Grafana does, and auto date histograms use the same interval as $__interval.
Context Window Management

The dashboard tools now include several strategies to manage context window usage effectively (issue #101):

  • Use `get_dashboard_summary` for dashboard overview and planning modifications
  • Use `get_dashboard_property` with JSONPath when you only need specific dashboard parts
  • Avoid `get_dashboard_by_uid` unless you specifically need the complete dashboard JSON
Datasources
  • List and fetch datasource information: View all configured datasources and retrieve detailed information about each.
  • _Supported datasource types: Prometheus, Loki, ClickHouse, CloudWatch, Elasticsearch, OpenSearch, Snowflake, Athena._
  • Datasource resources: Each datasource you can access is also exposed as an MCP resource at grafana://datasources/{uid}, so you can attach one to a conversation directly (for example with @ in Claude Code) instead of the model looking it up. Disabled along with the datasource tools.
Query Examples

Note: Query examples tools are disabled by default. To enable them, add examples to your --enabled-tools flag.

  • Get query examples: Retrieve example queries for different datasource types to learn query syntax.
Prometheus Querying
  • Query Prometheus: Execute PromQL queries (supports both instant and range metric queries) against Prometheus datasources.
  • Query Prometheus metadata: Retrieve metric metadata, metric names, label names, and label values from Prometheus datasources.
  • Query histogram percentiles: Calculate histogram percentile values (p50, p90, p95, p99) using histogram_quantile.
Loki Querying
  • Query Loki logs and metrics: Run both log queries and metric queries using LogQL against Loki datasources.
  • Query Loki metadata: Retrieve label names, label values, and stream statistics from Loki datasources.
  • Query Loki patterns: Retrieve log patterns detected by Loki to identify common log structures and anomalies.
InfluxDB Querying

Note: InfluxDB tools are disabled by default. To enable them, add influxdb to your --enabled-tools flag.

  • Query InfluxDB: Execute queries against InfluxDB datasources using either InfluxQL (v1.x) or Flux (v2.x). The dialect is inferred from the datasource configuration, or can be set explicitly via the dialect parameter.
SQL Datasource Querying

Note: SQL tools are disabled by default. To enable them, add sql to your --enabled-tools flag. Back-compat aliases clickhouse, snowflake, and athena also work.

Unified SQL tools support ClickHouse, Snowflake, Athena, MySQL, PostgreSQL, MSSQL, and BigQuery through a single set of tools. Queries go through Grafana's datasource plugins, so authentication is handled by datasource configuration — credentials are never seen by the MCP server.

  • List databases/schemas/catalogs: Discover organizational units for a SQL datasource. For Athena, omit catalog to list catalogs, or pass a catalog to list databases.
  • List tables: List tables in a database or schema with metadata (row counts, sizes where available).
  • Describe table schema: Get column names, types, nullability, defaults, and comments.
  • Query SQL: Execute SQL queries with datasource-specific macro substitution ($__timeFilter(col), $__from/$__to, $__interval, ${varname}), automatic limit enforcement, and template variable support.

For BigQuery, configure the grafana-bigquery-datasource plugin in Grafana. Discovery uses database for the project and schema for the dataset. If database is omitted, the project defaults to datasource defaultProject, then the plugin's /defaultProjects endpoint (including GCE project discovery). Metadata is fetched through APIs only, without query jobs or table scans. Column descriptions and nested types are included; the plugin omits table descriptions/types, column nullability, and defaults.

BigQuery queries require qualified table references such as `my-project.my_dataset.fct_events` and use the datasource's billing project. Optional location defaults to datasource processingLocation. Use ${name:sqlstring} for escaped string variables. Row limits do not limit bytes scanned or query costs.

CloudWatch Querying

Note: CloudWatch tools are disabled by default. To enable them, add cloudwatch to your --enabled-tools flag.

  • List CloudWatch namespaces: Discover available AWS CloudWatch namespaces.
  • List CloudWatch metrics: List metrics available in a specific namespace.
  • List CloudWatch dimensions: Get dimensions for filtering metric queries.
  • Query CloudWatch: Execute CloudWatch metric queries with time range support.
  • List CloudWatch log groups: Discover log groups, optionally filtered by name prefix.
  • List CloudWatch log group fields: Discover the fields available in a log group.
  • Query CloudWatch Logs: Run CloudWatch Logs Insights queries across one or more log groups.
Google Cloud Logging Querying

Note: Google Cloud Logging tools are disabled by default. To enable them, add cloudlogging to your --enabled-tools flag. Requires the Google Cloud Logging datasource plugin (googlecloud-logging-datasource) version 1.8.0 or later, which needs Grafana 11.2+. Older plugin versions return a different response layout and query_cloud_logging reports an error asking for an upgrade.

  • List Cloud Logging projects: Discover the GCP project IDs the datasource can read logs from.
  • List Cloud Logging buckets and views: Discover log buckets and log views to scope a query.
  • Query Cloud Logging: Run Cloud Logging query language filters (e.g. resource.type="k8s_container" AND severity>=ERROR) with time range and limit; returns entries newest-first with severity, body, labels, and trace ID. GCP authentication is handled by the datasource configuration.
Azure Monitor Querying

Note: Azure Monitor tools are disabled by default. To enable them, add azuremonitor to your --enabled-tools flag. They query through an Azure Monitor datasource (grafana-azure-monitor-datasource); Azure authentication is handled by the datasource configuration.

  • Query Azure Log Analytics: Run KQL against one or more Log Analytics workspaces or resources with time range and limit; returns columns and rows.
  • Query Azure Resource Graph: Run Resource Graph KQL to inventory Azure resources and their current state across subscriptions.
Graphite Querying

Note: Graphite tools are disabled by default. To enable them, add graphite to your --enabled-tools flag.

  • Query Graphite: Execute Graphite render API queries against a Graphite datasource.
  • List Graphite metrics: Browse and discover Graphite metric paths.
  • List Graphite tags: List available Graphite tags and tag values.
  • Query Graphite density: Query Graphite metric density for a given pattern.
Elasticsearch/OpenSearch Querying

Note: Elasticsearch/OpenSearch tools are disabled by default. To enable them, add elasticsearch to your --enabled-tools flag.

  • Query Elasticsearch/OpenSearch: Execute search queries against Elasticsearch or OpenSearch datasources using either Lucene query syntax or Elasticsearch Query DSL. Supports filtering by time range and retrieving logs, metrics, or any indexed data. Returns documents with their index, ID, source fields, and optional relevance score.
Quickwit Querying

Note: Quickwit tools are disabled by default. To enable them, add quickwit to your --enabled-tools flag.

  • Query Quickwit: Execute search queries against Quickwit datasources using Lucene query syntax or partial Elasticsearc

只显示了开头部分;其余内容请在仓库中阅读