Prometheus MCP Server

A Prometheus Model Context Protocol Server.

Local serverstdioGo

What is the Prometheus MCP server?

Connect Prometheus to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A Prometheus Model Context Protocol Server. The prometheus mcp server is what makes that connection.

What the server does

A Go-based MCP server that exposes Prometheus query capabilities via the Model Context Protocol.

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Flags — The Flags tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: AUTH_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Plenty of monitoring and observability servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Prometheus's toolset — Flags — is a fair guide to whether it matches your workflow. It is maintained by yshngg; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
FlagsThe Flags tool exposed by this server.

How to install the Prometheus MCP server

With Docker:

```json
{
  "mcpServers": {
    "prometheus": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "ghcr.io/yshngg/prometheus-mcp-server:latest",
        "--prom-addr",
        "http://host.docker.internal:9090"
      ]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
AUTH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Prometheus to Flags.

Frequently asked questions

Go 1.23+ and a running Prometheus server v2.x, plus a compatible MCP client.