监控 · 开发者工具

MCP Grafana logo

MCP Grafana

grafana/mcp-grafana

Grafana MCP服务器提供对Grafana实例及其生态系统的访问,支持仪表盘搜索、数据源查询、事件管理等功能。

安装

uvx mcp-grafana

客户端配置

{
  "mcpServers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "<GRAFANA_URL>",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<GRAFANA_SERVICE_ACCOUNT_TOKEN>"
      }
    }
  }
}

环境变量

GRAFANA_URLGRAFANA_SERVICE_ACCOUNT_TOKENGRAFANA_USERNAMEGRAFANA_PASSWORDGRAFANA_ORG_IDGRAFANA_EXTRA_HEADERSGRAFANA_SOCKS5_PROXYOTEL_EXPORTER_OTLP_ENDPOINT
GitHub 星标
612
作者
@grafana
分类
监控, 开发者工具
许可证
Apache-2.0
更新于
2026年10月6日

工具(40)

  • list_teams

    List all teams

  • list_users_by_org

    List all users in an organization

  • list_all_roles

    List all Grafana roles

  • get_role_details

    Get details for a Grafana role

  • get_role_assignments

    List assignments for a role

  • list_user_roles

    List roles for users

  • list_team_roles

    List roles for teams

  • get_resource_permissions

    List permissions for a resource

  • get_resource_description

    Describe a Grafana resource type

  • user_info

    Current identity, capabilities, and accessible organizations

  • search_dashboards

    Search for dashboards by query, folder UID, tag, or starred

  • get_dashboard_by_uid

    Dashboard

  • list_dashboard_versions

    Dashboard

  • update_dashboard

    Dashboard

  • get_dashboard_panel_queries

    Dashboard

  • run_panel_query

    RunPanelQuery*

  • get_dashboard_property

    Dashboard

  • get_dashboard_summary

    Dashboard

  • list_datasources

    Datasources

  • get_datasource

    Datasources

  • get_query_examples

    Examples*

  • query_prometheus

    Prometheus

  • list_prometheus_metric_metadata

    Prometheus

  • list_prometheus_metric_names

    Prometheus

  • list_prometheus_label_names

    Prometheus

  • list_prometheus_label_values

    Prometheus

  • query_prometheus_histogram

    Prometheus

  • list_incidents

    List incidents in Grafana Incident, optionally with their custom field values

  • create_incident

    Create an incident in Grafana Incident, optionally setting custom fields

  • add_activity_to_incident

    Add an activity item to an incident in Grafana Incident

  • update_incident

    Update an incident in Grafana Incident (status, severity, title, or custom fields)

  • get_incident

    Get a single incident by ID, including its custom fields

  • list_incident_custom_fields

    List the custom fields configured for incidents, with their types and select options

  • query_loki_logs

    Query and retrieve logs using LogQL (either log or metric queries)

  • list_loki_label_names

    List all available label names in logs

  • list_loki_label_values

    List values for a specific log label

  • query_loki_stats

    Get statistics about log streams

  • query_loki_patterns

    Query detected log patterns to identify common structures

  • analyze_loki_labels

    Audit a Loki label strategy (live or static) and optionally diagnose query performance

  • suggest_loki_alloy_label_config

    Generate an Alloy loki.process snippet enforcing approved labels

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS
Cursor logo

Cursor

桌面端 · 免费增值 · Proprietary

首个代理式 IDE。Cursor 编辑器让开发者与 AI 的工作真正融合在一起,提供如魔法般的编码体验。

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

桌面端 · 免费增值 · MIT

VS Code 通过代理模式将 MCP 与 GitHub Copilot 集成,允许在你的代理编码工作流中直接与 MCP 提供的工具交互。在 Claude Desktop、工作区或用户设置中配置服务器,提供引导式 MCP 安装和安全处理输入变量中的密钥,避免泄露硬编码密钥。

WindowsMacOSLinuxWeb

相关 MCP 服务器

更多服务器
2344 logo

2344

comet-ml/opik

7k

Opik是一个开源的LLM评估框架,支持追踪、评估和监控LLM应用,帮助开发者构建更高效、更经济的LLM系统。

监控
Vite Plugin Vue MCP logo

Vite Plugin Vue MCP

webfansplz/vite-plugin-vue-mcp

407

Vite插件,为Vue应用提供MCP服务,支持组件树、状态、路由和Pinia的查看与编辑。

监控
api200 logo

api200

API-200/api200

169

API 200是一个开源API集成平台,提供第三方API的快速接入和管理功能,包含自动生成代码、文档、认证、缓存和错误处理等特性,支持自托管部署和MCP服务。

监控
WireMCP (Wireshark) logo

WireMCP (Wireshark)

0xkoda/wiremcp

98

WireMCP是一个为大型语言模型(LLM)提供实时网络流量分析能力的MCP服务器,通过Wireshark工具捕获和处理网络数据,支持威胁检测、网络诊断和异常分析。

监控
gospy logo

gospy

monsterxx03/gospy

90

Go进程检查工具,提供goroutine状态、内存统计和二进制信息分析,支持终端UI和HTTP API

监控
AWS Cost Explorer MCP Server logo

AWS Cost Explorer MCP Server

aarora79/aws-cost-explorer-mcp-server

86

一个通过MCP协议查询AWS成本数据和Bedrock使用日志的工具

监控