MCP Catalogs
首页grafana-mcp-analyzer screenshot

grafana-mcp-analyzer

by SailingCoder·43·综合分 42

一个MCP服务器,能让AI助手通过自然语言直接分析Grafana监控数据。

monitoringdeveloper-toolsops-infra
11
Forks
9
活跃 Issue
10 个月前
最近提交
2 天前
收录于

概述

Grafana MCP Analyzer是一个专业的MCP服务器,连接AI助手与Grafana监控仪表板。它支持自然语言查询多种Grafana数据源,包括Prometheus、MySQL和Elasticsearch,改变了DevOps团队与监控数据交互的方式。该服务器实现了会话缓存机制,支持渐进式分析,允许基于先前上下文进行多轮对话,以获取更深入的洞察。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:AI驱动的实时系统性能分析
:通过自然语言查询实现自动化事件响应
:基于历史监控趋势进行容量规划
:支持哪些Grafana数据源?
:如何配置自定义查询?

什么时候选它

如果你的团队已经在使用Grafana进行监控,并且希望利用AI助手直接通过自然语言分析监控数据,无需额外的数据处理,请选择此服务器。

什么时候不要选它

如果你需要写入监控数据(此服务器只读)或者需要支持Grafana以外的监控系统,请避免使用此服务器。

此 server 暴露的工具

从 README 抽取出 8 个工具
  • analyze_query

    Query and analyze Grafana data with AI

  • analyze_existing_data

    Perform in-depth analysis of previously retrieved data

  • chunk_workflow

    Process large datasets by dividing them into manageable chunks

  • manage_cache

    Manage system cache including statistics, cleanup and optimization

  • list_queries

    List available data sources and queries

  • check_health

    Perform system health checks

  • list_data

    List historical data that has been stored

  • server_status

    Get server status and running information

可对比工具

prometheus-mcpinfluxdb-mcpgraphite-mcp

安装

安装

  1. 通过npm全局安装:npm install -g grafana-mcp-analyzer

配置

添加到Claude Desktop配置文件config.json:

{
  "mcpServers": {
    "grafana": {
      "command": "grafana-mcp-analyzer",
      "env": {
        "CONFIG_PATH": "path/to/your/grafana-config.js",
        "MAX_CHUNK_SIZE": "100"
      }
    }
  }
}

对于Cursor,在MCP部分添加到settings.json。

FAQ

支持哪些Grafana数据源?
该服务器支持通过Grafana API或curl请求访问的Prometheus、MySQL、Elasticsearch等多种数据源。
如何配置自定义查询?
创建一个配置文件,使用HTTP API格式或curl格式定义您的查询,然后将CONFIG_PATH环境变量设置为指向该文件的路径。

grafana-mcp-analyzer 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。