Data & analytics / Prometheus MCP Server

Prometheus MCP Server

io.github.pab1it0/prometheus-mcp-server · v1.6.2

MCP server providing Prometheus metrics access and PromQL query execution for AI assistants

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #368 of 435 Data & analytics servers on Socketlist by score, with 525 GitHub stars and a last code push 26d ago.

Install

docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Connect Prometheus MCP Server to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.

claude mcp add --env PROMETHEUS_URL=<prometheus_url> --env PROMETHEUS_PASSWORD=<prometheus_password> --env PROMETHEUS_TOKEN=<prometheus_token> --transport stdio prometheus-mcp-server -- docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "prometheus-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
      ],
      "env": {
        "PROMETHEUS_URL": "${PROMETHEUS_URL}",
        "PROMETHEUS_PASSWORD": "${PROMETHEUS_PASSWORD}",
        "PROMETHEUS_TOKEN": "${PROMETHEUS_TOKEN}"
      }
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "prometheus-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
      ],
      "env": {
        "PROMETHEUS_URL": "${env:PROMETHEUS_URL}",
        "PROMETHEUS_PASSWORD": "${env:PROMETHEUS_PASSWORD}",
        "PROMETHEUS_TOKEN": "${env:PROMETHEUS_TOKEN}"
      }
    }
  }
}

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
PROMETHEUS_URLYesNoPrometheus server URL (e.g., http://localhost:9090)
PROMETHEUS_URL_SSL_VERIFYNoNoSet to False to disable SSL verification
PROMETHEUS_DISABLE_LINKSNoNoSet to True to disable Prometheus UI links in query results (saves context tokens in MCP clients)
PROMETHEUS_USERNAMENoNoUsername for Prometheus basic authentication
PROMETHEUS_PASSWORDNoYesPassword for Prometheus basic authentication
PROMETHEUS_TOKENNoYesBearer token for Prometheus authentication
ORG_IDNoNoOrganization ID for multi-tenant Prometheus setups
PROMETHEUS_CLIENT_CERTNoNoPath to client certificate file for mutual TLS authentication
PROMETHEUS_CLIENT_KEYNoNoPath to client private key file for mutual TLS authentication
PROMETHEUS_MCP_SERVER_TRANSPORTNoNoMCP server transport type (stdio, http, or sse)
PROMETHEUS_MCP_BIND_HOSTNoNoHost address for HTTP/SSE transport (default: 127.0.0.1)
PROMETHEUS_MCP_BIND_PORTNoNoPort number for HTTP/SSE transport (default: 8080)

2 more are listed in the registry entry; see the README for the full set.

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "docker",
        "run",
        "-i",
        "--rm",
        "ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
      ]
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars525
npm weekly downloads-
Last push26d ago
LicenceMIT
Open issues0
SECURITY.mdNo
LanguagePython
Latest version published2026-08-03

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers

SigNoz MCP Server

Score 80

SigNoz MCP server: access metrics, traces, logs, alerts, and dashboards via AI assistants

★ 132Apache-2.0pushed 18d ago
Data & analyticsCloud & infra

Duplicacy MCP

Score 76

MCP server for Duplicacy: backup health, status and Prometheus metrics from duplicacy-exporter

★ 2↓ 56/wkGPL-3.0pushed 24d ago
Data & analyticsCloud & infra

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free