Loading languages...
ET

etruong42/prometheus-mcp

@etruong421

MCP server to connect LLMs with Prometheus HTTP API

prometheus
llm
monitoring
tool

Prometheus MCP

Proof-of-concept Prometheus MCP server.

Prerequisites

Install uv: https://docs.astral.sh/uv/getting-started/installation/

Using uv, you can also install python.

How to run

Clone this repo.

Update the .env file

uv add "mcp[cli]" pillow google-auth matplotlib requests python-dotenv

Integrating with Claude

You can run the server with

uv --directory "/directory/to/prometheus-mcp" run server.py

So you may add this MCP server to your Claude MCP server configuration

{
  "mcpServers": {
      "Prometheus MCP": {
          "command": "/path/to/uv",
          "args": [
              "--directory",
              "/directory/to/prometheus-mcp",
              "run",
              "server.py"
          ]
      }
  }
}

See MCP Quickstart for more details for Claude specific instructions.

Demo

Demo gif

Link to shared Claude chat in demo

# mcpServer Config

{
  "mcpServers": {
    "Prometheus MCP": {
      "command": "/path/to/uv",
      "args": [
        "--directory",
        "/directory/to/prometheus-mcp",
        "run",
        "server.py"
      ]
    }
  }
}

# stdio

uv --directory /directory/to/prometheus-mcp run server.py
Transport:
stdio
Language:
Python
Created: 4/16/2025
Updated: 2/4/2026