Prometheus MCP Server

Give AI assistants the power to query your Prometheus metrics.

Local serverstdio

What is the Prometheus MCP Server?

Prometheus MCP Server source profile. From the maintainer documentation: “Give AI assistants the power to query your Prometheus metrics.”

Local setup

The project provides a local client configuration using docker. 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_URL. 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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
health_checkSystem
execute_queryQuery
execute_range_queryQuery
list_metricsDiscovery
get_metric_metadataDiscovery
get_targetsDiscovery

How to install the Prometheus MCP Server

{
  "mcpServers": {
    "prometheus": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PROMETHEUS_URL",
        "ghcr.io/pab1it0/prometheus-mcp-server:latest"
      ],
      "env": {
        "PROMETHEUS_URL": "<your-prometheus-url>"
      }
    }
  }
}

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

Configuration

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