prometheus-mcp-server MCP Server

A Model Context Protocol (MCP) server for retrieving data from Prometheus databases. This MCP server enables Large Language Models (LLMs) to invoke tool functions that retrieve and analyze vast…

Local serverstdio

What is the prometheus-mcp-server MCP Server?

prometheus-mcp-server is an MCP project maintained in the caesaryangs/prometheus_mcp_server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server for retrieving data from Prometheus databases. This MCP server enables Large Language Models (LLMs) to invoke tool functions that…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using uv. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Configuration values

The example declares PROMETHEUS_HOST. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the prometheus-mcp-server MCP Server

{
  "mcpServers": {
    "prometheus": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/prometheus_mcp_server",
        "run",
        "server.py"
      ],
      "env": {
        "PROMETHEUS_HOST": "http://localhost:9090"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
PROMETHEUS_HOSTDeclared in the maintainer’s client configuration.Check documentation