McpMux
Back to Registry

Prometheus (Docker) MCP Server

Community

Contributed by pab1it0

Query Prometheus metrics and monitoring data via Docker. Run instant and range PromQL queries, discover metrics, inspect metadata, and check scrape targets through a standardized MCP interface.

About the Prometheus (Docker) MCP Server

The Prometheus (Docker) MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Query Prometheus metrics and monitoring data via Docker. Run instant and range PromQL queries, discover metrics, inspect metadata, and check scrape targets through a standardized MCP interface. This is a community-contributed MCP server by pab1it0.

Install the Prometheus (Docker) MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires authentication — McpMux securely stores your credentials with AES-256-GCM encryption.

Transport Configuration

Transport Configuration
{
  "type": "stdio",
  "command": "docker",
  "args": [
    "run",
    "-i",
    "--rm",
    "-e",
    "PROMETHEUS_URL",
    "-e",
    "PROMETHEUS_USERNAME",
    "-e",
    "PROMETHEUS_PASSWORD",
    "-e",
    "PROMETHEUS_TOKEN",
    "-e",
    "ORG_ID",
    "ghcr.io/pab1it0/prometheus-mcp-server:latest"
  ],
  "env": {
    "PROMETHEUS_URL": "${input:PROMETHEUS_URL}",
    "PROMETHEUS_USERNAME": "${input:PROMETHEUS_USERNAME}",
    "PROMETHEUS_PASSWORD": "${input:PROMETHEUS_PASSWORD}",
    "PROMETHEUS_TOKEN": "${input:PROMETHEUS_TOKEN}",
    "ORG_ID": "${input:ORG_ID}"
  },
  "metadata": {
    "inputs": [
      {
        "id": "PROMETHEUS_URL",
        "label": "Prometheus URL",
        "description": "Base URL of your Prometheus server. Use host.docker.internal instead of localhost to reach a Prometheus running on your host machine.",
        "type": "url",
        "required": true,
        "placeholder": "https://your-prometheus:9090",
        "obtain": {
          "url": "https://prometheus.io/docs/prometheus/latest/getting_started/",
          "instructions": "1. Use the address where your Prometheus server is reachable\n2. For a local Prometheus, use http://host.docker.internal:9090\n3. Include the scheme and port (default 9090)",
          "button_label": "Prometheus Docs"
        }
      },
      {
        "id": "PROMETHEUS_USERNAME",
        "label": "Username (Basic Auth)",
        "description": "Username for HTTP Basic authentication. Optional — only set this if your Prometheus is protected with basic auth. Leave blank when using a bearer token instead.",
        "type": "text",
        "required": false,
        "placeholder": "admin"
      },
      {
        "id": "PROMETHEUS_PASSWORD",
        "label": "Password (Basic Auth)",
        "description": "Password for HTTP Basic authentication. Required when a username is provided. Leave blank when using a bearer token instead.",
        "type": "text",
        "required": false,
        "secret": true,
        "placeholder": "********************"
      },
      {
        "id": "PROMETHEUS_TOKEN",
        "label": "Bearer Token",
        "description": "Bearer token for token-based authentication (e.g. Grafana Cloud, Cortex, Thanos). Optional — use this instead of username/password.",
        "type": "text",
        "required": false,
        "secret": true,
        "placeholder": "********************"
      },
      {
        "id": "ORG_ID",
        "label": "Organization ID",
        "description": "Organization / tenant ID for multi-tenant Prometheus setups (e.g. Cortex, Mimir, Thanos). Optional — sent as the X-Scope-OrgID header when set.",
        "type": "text",
        "required": false,
        "placeholder": "tenant-1"
      }
    ]
  }
}
Details
TransportLocal (stdio)
Hostinglocal
Authoptional_api_key
Capabilities
Tools

Categories

Tags

prometheusmonitoringmetricsobservabilitypromqldocker

Supported AI Clients

The Prometheus (Docker) MCP server works with all MCP-compatible AI clients through McpMux:

CursorClaude DesktopClaude CodeVS CodeChatGPTWindsurfJetBrainsZedClineGemini CLIAmazon Q

Related MCP Servers

Install Prometheus (Docker) with McpMux

One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.