Skip to content
appsgit

Prometheus MCP Server

Prometheus MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server providing Prometheus metrics access and PromQL… It has 516 GitHub stars, is released under the MIT license and runs locally with docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2.

github.com/pab1it0/prometheus-mcp-server (opens in a new tab)

Install Prometheus MCP Server

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

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

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env PROMETHEUS_URL=your-value --env PROMETHEUS_PASSWORD=your-value --env PROMETHEUS_TOKEN=your-value --transport stdio prometheus-mcp-server -- docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2

Cursor

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

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "prometheus_password",
      "description": "PROMETHEUS_PASSWORD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "prometheus_token",
      "description": "PROMETHEUS_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "prometheus-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PROMETHEUS_URL",
        "-e",
        "PROMETHEUS_PASSWORD",
        "-e",
        "PROMETHEUS_TOKEN",
        "ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
      ],
      "env": {
        "PROMETHEUS_URL": "your-value",
        "PROMETHEUS_PASSWORD": "${input:prometheus_password}",
        "PROMETHEUS_TOKEN": "${input:prometheus_token}"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
PROMETHEUS_URLYesPrometheus server URL (e.g., http://localhost:9090)
PROMETHEUS_URL_SSL_VERIFYNoSet to False to disable SSL verification
PROMETHEUS_DISABLE_LINKSNoSet to True to disable Prometheus UI links in query results (saves context tokens in MCP clients)
PROMETHEUS_USERNAMENoUsername for Prometheus basic authentication
PROMETHEUS_PASSWORDsecretNoPassword for Prometheus basic authentication
PROMETHEUS_TOKENsecretNoBearer token for Prometheus authentication
ORG_IDNoOrganization ID for multi-tenant Prometheus setups
PROMETHEUS_CLIENT_CERTNoPath to client certificate file for mutual TLS authentication
PROMETHEUS_CLIENT_KEYNoPath to client private key file for mutual TLS authentication
PROMETHEUS_MCP_SERVER_TRANSPORTNoMCP server transport type (stdio, http, or sse)
PROMETHEUS_MCP_BIND_HOSTNoHost address for HTTP/SSE transport (default: 127.0.0.1)
PROMETHEUS_MCP_BIND_PORTNoPort number for HTTP/SSE transport (default: 8080)
PROMETHEUS_MCP_STATELESS_HTTPNoEnable stateless HTTP mode for multi-replica support (default: false)
PROMETHEUS_CUSTOM_HEADERSNoCustom headers as JSON string to include in Prometheus requests

Tools (6)

Parsed from the Tools section of the README; check the repository for the current list.

  • health_check

    System

  • execute_query

    Query

  • execute_range_query

    Query

  • list_metrics

    Discovery

  • get_metric_metadata

    Discovery

  • get_targets

    Discovery

About Prometheus MCP Server

Give AI assistants the power to query your Prometheus metrics. A [Model Context Protocol][mcp] (MCP) server that provides access to your Prometheus metrics and queries through standardized MCP interfaces, allowing AI assistants to execute PromQL queries and analyze your metrics data.

  • ai
  • devops
  • llm
  • mcp
  • prometheus
  • model-context-protocol

FAQ

Prometheus MCP Server FAQ

Still curious? Email info@appsgit.com.

What is Prometheus MCP Server?

Prometheus MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server providing Prometheus metrics access and PromQL… It has 516 GitHub stars, is released under the MIT license and runs locally with docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2. The source code is at github.com/pab1it0/prometheus-mcp-server.

How do I install the Prometheus MCP Server MCP server?

Add the command docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2 to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Prometheus MCP Server free?

The server is open source under the MIT license, so running it is free. It needs credentials (PROMETHEUS_PASSWORD and PROMETHEUS_TOKEN) for the service it connects to, which may require a paid account.

Is Prometheus MCP Server actively maintained?

The most recent commit was on Oct 2, 2026. The latest release is v1.6.2, published Aug 3, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.