pab1it0/prometheus-mcp-server

A Model Context Protocol (MCP) server that enables AI agents and LLMs to query and analyze Prometheus metrics through standardized interfaces.

What it solves

This project bridges the gap between AI assistants and your infrastructure monitoring. It allows AI models to directly query, explore, and analyze metrics stored in Prometheus, enabling them to assist with troubleshooting or performance analysis without manual data export.

How it works

It acts as a server implementing the Model Context Protocol (MCP). Once connected to an MCP-compatible client (like Claude Desktop, Cursor, or VS Code), it exposes a set of tools that the AI can trigger to interact with your Prometheus instance. These tools allow the AI to execute PromQL queries, list available metrics, inspect metadata, and check the status of scrape targets.

Who it’s for

This is for developers, SREs, and platform engineers who use AI assistants to manage infrastructure and want to provide those assistants with real-time access to system metrics.

Highlights

  • Execute instant and range PromQL queries directly from your AI chat interface.
  • Discover and explore metrics with built-in search, filtering, and metadata retrieval.
  • Supports secure connections, including Basic Auth, Bearer tokens, and mutual TLS.
  • Flexible deployment options via Docker, Kubernetes (Helm), or manual installation.
  • Configurable tool access to manage context window usage and security permissions.

Related

  • Project
  • Project
  • Project
  • Project
  • Project