MCP Server for Prometheus monitoring - query metrics, alerts, targets via natural language
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"prom-mcp-server","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Prometheus MCP Server 一个独立的 MCP Server,提供 Prometheus 监控指标的查询能力,支持通过自然语言与 AI 助手交互。 PyPI: https://pypi.org/project/prom-mcp-server/ ## ✨ 功能特性 - 📊 **即时查询** - 查询当前指标值(`/api/v1/query`) - 📈 **范围查询** - 查询历史数据趋势(`/api/v1/query_range`) - 🔍 **序列发现** - 查找匹配的时间序列,无需计算值(`/api/v1/series`) - 🚨 **告警管理** - 查看告警规则和当前活动告警 - 📡 **Alertmanager** - 查看 Alertmanager 实例及连接状态 - 🎯 **目标状态** - 查看 scrape targets 的健康状态 - 📖 **指标元数据** - 了解指标类型、帮助文本和单位 - 🏷️ **标签查询** - 发现标签的可能值 - ⚙️ **运行时配置** - 查看 Prometheus 运行时 YAML 配置 - 🚩 **启动参数** - 查看 Prometheus 命令行启动参数 - 💻 **运行时信息** - 查看 goroutine、GOMAXPROCS、内存分配等内部状态 - 🗄️ **TSDB 统计** - 查看 head series、WAL、compaction 等存储状态 - 🎯 **目标元数据** - 查看特定 target 暴露的指标信息 - 🔐 **多环境支持** - 同时管理多个 Prometheus 实例 - 🔒 **认证兼容** - 支持无认证、Basic Auth、Bearer Token ## 🏗️ 架构 ### stdio 模式(推荐) ``` ┌─────────────┐ stdio (stdin/stdout) ┌─────────────────────┐ │ AI Agent │ ◄──────────────────────────► │ prom-mcp-server │ │ (Hermes, │ │ (子进程) │ │ Claude..) │ └────────┬────────────┘ └─────────────┘ │ ┌─────────┴─────────┐ │ Config File │ │ (~/.prometheus- │ │ mcp/config.yaml) │ └────────────────────┘ ``` ### HTTP 模式(独立服务) ``` ┌─────────────┐ HTTP/StreamableHTTP ┌─────────────────────┐ │ AI Agent │ ◄────────────────────────► │ prom-mcp-server │ │ │ MCP Protocol │ (独立服务) │ └─────────────┘ └────────┬────────────┘ │ ┌─────────┴─────────┐ │ Config File │ │ (~/.promet…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.