MCPSERV.CLUB
yshngg

PMCP

MCP Server

Golang MCP server for natural language Prometheus queries and management

Active(76)
3stars
0views
Updated 17 days ago

About

PMCP is a Go-based Model Context Protocol server that bridges MCP clients with Prometheus, providing full HTTP API compatibility and enabling natural language interactions for querying metrics, managing targets, rules, and TSDB operations.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

PMCP – Prometheus Model Context Protocol Server

PMCP is a Go‑based implementation of the Model Context Protocol (MCP) that turns a standard Prometheus instance into a natural‑language friendly data source. By exposing the full Prometheus HTTP API through MCP, it allows AI assistants such as Claude Desktop to ask questions like “What was the CPU usage of two hours ago?” or “Show me a 15‑minute trend for memory usage on host .” The server translates those conversational queries into the appropriate Prometheus endpoints, fetches the results, and returns them in a format that MCP clients can ingest instantly.

The server solves a key pain point for developers and operators who want to embed observability insights directly into AI‑driven workflows. Rather than writing Grafana dashboards or crafting PromQL queries manually, an assistant can interpret user intent, generate the correct query string, and deliver actionable metrics—all while maintaining full type safety and API fidelity. This removes the need for custom adapters or SDKs, letting teams focus on higher‑level problem solving instead of boilerplate integration work.

PMCP’s core capabilities mirror the entire Prometheus HTTP API: instant and range queries, metadata discovery (label names/values), target and rule inspection, alerting configuration checks, and even TSDB administration commands like snapshots or series deletion. It supports multiple transport layers—HTTP for webhooks, Server‑Sent Events (SSE) for real‑time streaming, and stdio for local desktop clients—so it can fit into a variety of deployment topologies. The Go implementation ensures low latency, strong typing, and comprehensive error handling, which is critical when chaining multiple AI calls in a single workflow.

In practice, PMCP shines in scenarios such as automated incident response, where an AI assistant can answer “What alerts are firing for ?” and then drill down into historical trends to surface root causes. It also powers conversational monitoring dashboards, allowing users to request “Show the average disk I/O on over the last week” without leaving the chat interface. Because it keeps a one‑to‑one mapping with Prometheus’s API, developers can confidently rely on the same query semantics and data models they already use in Grafana or PromQL scripts.

Overall, PMCP offers a clean, type‑safe bridge between AI assistants and Prometheus observability data. Its comprehensive feature set, transport flexibility, and strict API compatibility make it a standout tool for any team that wants to bring real‑time metrics into natural language conversations without reinventing the wheel.