This repository provides a Model Context Protocol (MCP) server for Prometheus, enabling AI assistants to query and analyze Prometheus metrics through standardized interfaces. It supports PromQL execution, metric discovery, and authentication.
A Model Context Protocol (MCP) server for Prometheus, enabling AI assistants to interact with and analyze Prometheus metrics data through standardized MCP interfaces.
Configure the server with Prometheus URL and optional authentication credentials via environment variables. Integrate with MCP clients like Claude Desktop by specifying the server command and arguments, including the path to the main.py
file. Docker usage is supported, with options for direct docker run
or docker-compose
deployment.
Contributions are welcome. The project uses uv
for dependency management. Set up a virtual environment, install dependencies, and run tests using pytest
. The project structure includes a src
directory containing the server implementation and main application logic.
pab1it0/prometheus-mcp-server
March 19, 2025
March 28, 2025
Python