{
  "$schema": "https://mcpkg.dev/schemas/install-manifest/v1.json",
  "name": "io.github.mshegolev/prometheus-mcp",
  "slug": "io.github.mshegolev.prometheus-mcp",
  "title": "prometheus-mcp",
  "summary": "Prometheus MCP — query metrics, inspect alerts, and explore scrape targets (read-only).",
  "version": "0.1.0",
  "serverKey": "prometheus-mcp",
  "pageUrl": "https://mcpkglabs.com/tool/io.github.mshegolev.prometheus-mcp",
  "installMdUrl": "https://mcpkglabs.com/tool/io.github.mshegolev.prometheus-mcp/install.md",
  "trust": {
    "score": 82,
    "grade": "B",
    "smokeStatus": "works",
    "status": "active",
    "verifiedAt": "2026-12-03T16:47:55.979817885Z"
  },
  "methods": [
    {
      "id": "pypi",
      "label": "PyPI (uvx)",
      "transport": "stdio",
      "command": "uvx",
      "args": [
        "--with",
        "mcp<2",
        "prometheus-mcp==0.1.0"
      ],
      "clients": [
        {
          "client": "claude-code",
          "label": "Claude Code",
          "kind": "cli",
          "content": "claude mcp add prometheus-mcp -e 'PROMETHEUS_URL=<PROMETHEUS_URL>' -- uvx --with 'mcp<2' prometheus-mcp==0.1.0"
        },
        {
          "client": "claude-desktop",
          "label": "Claude Desktop",
          "kind": "json",
          "location": "claude_desktop_config.json",
          "content": "{\n  \"mcpServers\": {\n    \"prometheus-mcp\": {\n      \"args\": [\n        \"--with\",\n        \"mcp<2\",\n        \"prometheus-mcp==0.1.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"PROMETHEUS_URL\": \"<PROMETHEUS_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "cursor",
          "label": "Cursor",
          "kind": "json",
          "location": "~/.cursor/mcp.json",
          "content": "{\n  \"mcpServers\": {\n    \"prometheus-mcp\": {\n      \"args\": [\n        \"--with\",\n        \"mcp<2\",\n        \"prometheus-mcp==0.1.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"PROMETHEUS_URL\": \"<PROMETHEUS_URL>\"\n      }\n    }\n  }\n}"
        },
        {
          "client": "vscode",
          "label": "VS Code",
          "kind": "json",
          "location": ".vscode/mcp.json",
          "content": "{\n  \"inputs\": [\n    {\n      \"description\": \"PROMETHEUS_URL\",\n      \"id\": \"prometheus-url\",\n      \"password\": true,\n      \"type\": \"promptString\"\n    }\n  ],\n  \"servers\": {\n    \"prometheus-mcp\": {\n      \"args\": [\n        \"--with\",\n        \"mcp<2\",\n        \"prometheus-mcp==0.1.0\"\n      ],\n      \"command\": \"uvx\",\n      \"env\": {\n        \"PROMETHEUS_URL\": \"${input:prometheus-url}\"\n      },\n      \"type\": \"stdio\"\n    }\n  }\n}"
        },
        {
          "client": "codex",
          "label": "Codex CLI",
          "kind": "toml",
          "location": "~/.codex/config.toml",
          "content": "[mcp_servers.prometheus-mcp]\ncommand = \"uvx\"\nargs = [\"--with\", \"mcp<2\", \"prometheus-mcp==0.1.0\"]\nenv = { \"PROMETHEUS_URL\" = \"<PROMETHEUS_URL>\" }"
        }
      ],
      "requires": [
        "uv (https://docs.astral.sh/uv/)"
      ]
    }
  ],
  "env": [
    {
      "name": "PROMETHEUS_URL",
      "required": true,
      "secret": false,
      "description": "Prometheus server URL, e.g. https://prometheus.example.com (no trailing slash)",
      "help": "Prometheus server URL, e.g. https://prometheus.example.com (no trailing slash)",
      "placeholder": "<PROMETHEUS_URL>"
    },
    {
      "name": "PROMETHEUS_TOKEN",
      "required": false,
      "secret": true,
      "description": "Bearer token for authentication. Takes priority over Basic auth.",
      "help": "Bearer token for authentication. Takes priority over Basic auth.",
      "placeholder": "<PROMETHEUS_TOKEN>"
    },
    {
      "name": "PROMETHEUS_USERNAME",
      "required": false,
      "secret": false,
      "description": "HTTP Basic auth username. Used only when PROMETHEUS_TOKEN is not set.",
      "help": "HTTP Basic auth username. Used only when PROMETHEUS_TOKEN is not set.",
      "placeholder": "<PROMETHEUS_USERNAME>"
    },
    {
      "name": "PROMETHEUS_PASSWORD",
      "required": false,
      "secret": true,
      "description": "HTTP Basic auth password.",
      "help": "HTTP Basic auth password.",
      "placeholder": "<PROMETHEUS_PASSWORD>"
    },
    {
      "name": "PROMETHEUS_SSL_VERIFY",
      "required": false,
      "secret": false,
      "description": "Verify SSL certificates (true/false). Set to 'false' for self-signed certs.",
      "help": "Verify SSL certificates (true/false). Set to 'false' for self-signed certs.",
      "default": "true",
      "placeholder": "true"
    }
  ],
  "expectedTools": [
    "prometheus_list_metrics",
    "prometheus_query",
    "prometheus_query_range",
    "prometheus_list_alerts",
    "prometheus_list_targets"
  ],
  "agentSteps": [
    "Ask the user for: PROMETHEUS_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.",
    "Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).",
    "Restart or reload the client so it starts the server.",
    "Verify: the server should expose these tools: prometheus_list_metrics, prometheus_query, prometheus_query_range, prometheus_list_alerts, prometheus_list_targets.",
    "If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set."
  ],
  "warnings": [
    "Starts only with mcp<2 (written for an older SDK); the install commands pin it."
  ],
  "generatedAt": "2026-12-03T16:47:55.979817885Z"
}
