P

Prometheus MCP Server

MCP server · by pab1it0

Monitoring Docker v1.6.2

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

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

unavailable — the image reference already carries a tag

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

Setup by client

Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.

claude_desktop_config.json

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

Format verified against the official Claude Desktop docs ↗.

Environment variables

Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.

  • PROMETHEUS_URL required — Prometheus server URL (e.g., http://localhost:9090)
  • PROMETHEUS_URL_SSL_VERIFY — Set to False to disable SSL verification
  • PROMETHEUS_DISABLE_LINKS — Set to True to disable Prometheus UI links in query results (saves context tokens in MCP clients)
  • PROMETHEUS_USERNAME — Username for Prometheus basic authentication
  • PROMETHEUS_PASSWORD secret — Password for Prometheus basic authentication
  • PROMETHEUS_TOKEN secret — Bearer token for Prometheus authentication
  • ORG_ID — Organization ID for multi-tenant Prometheus setups
  • PROMETHEUS_CLIENT_CERT — Path to client certificate file for mutual TLS authentication

GitHub

⭐ 518 stars · 最近更新于 32 天前 · MIT license

About this server

Prometheus MCP Server Give AI assistants the power to query your Prometheus metrics. A Model Context Protocol (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…

Summary from the project README — github.com/pab1it0/prometheus-mcp-server

Distributed as Docker, listed under Monitoring. Review our MCP security guide before granting access to real data.

Frequently asked questions

What does the Prometheus MCP Server MCP server do?

Prometheus MCP Server Give AI assistants the power to query your Prometheus metrics. A Model Context Protocol (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

How do I install Prometheus MCP Server?

Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.

Is Prometheus MCP Server free to use?

The MCP server itself is free to install. The source is public on https://github.com/pab1it0/prometheus-mcp-server. Any third-party service it calls may require its own API key and account.

Which clients support Prometheus MCP Server?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/prometheus-mcp-server.svg)](https://mcpnav.net/server/prometheus-mcp-server/)

HTML

<a href="https://mcpnav.net/server/prometheus-mcp-server/"><img src="https://mcpnav.net/badge/prometheus-mcp-server.svg" alt="Listed on MCPNav" height="20"></a>