Skip to content
appsgit

Prometheus MCP Server

Prometheus MCP Server is an MCP server that manages Prometheus-compatible backends. It has 117 GitHub stars, is released under the Apache-2.0 license and runs locally with docker run -i --rm ghcr.io/tjhop/prometheus-mcp-server:0.18.0. It works with Claude Desktop, Claude Code, Cursor and VS Code.

github.com/prometheus/prometheus-mcp (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-prometheus": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/tjhop/prometheus-mcp-server:0.18.0"
      ]
    }
  }
}

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

Claude Code

claude mcp add --transport stdio prometheus-mcp-server-prometheus -- docker run -i --rm ghcr.io/tjhop/prometheus-mcp-server:0.18.0

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "prometheus-mcp-server-prometheus": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/tjhop/prometheus-mcp-server:0.18.0"
      ]
    }
  }
}

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

VS Code

.vscode/mcp.json
{
  "servers": {
    "prometheus-mcp-server-prometheus": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/tjhop/prometheus-mcp-server:0.18.0"
      ]
    }
  }
}

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).

Tools (31)

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

  • alertmanagers

    Get overview of Prometheus Alertmanager discovery

  • build_info

    Get Prometheus build information

  • config

    Get Prometheus configuration

  • docs_list

    List of Official Prometheus Documentation Files

  • docs_read

    Read the named markdown file containing official Prometheus documentation from the prometheus/docs repo

  • docs_search

    Search the markdown files containing official Prometheus documentation from the prometheus/docs repo

  • exemplar_query

    Performs a query for exemplars by the given query and time range

  • flags

    Get runtime flags

  • healthy

    Management API endpoint that can be used to check Prometheus health

  • label_names

    Returns the unique label names present in the block in sorted order by given time range and matchers

  • label_values

    Performs a query for the values of the given label, time range and matchers

  • list_alerts

    List all active alerts

  • list_rules

    List all alerting and recording rules that are loaded

  • list_targets

    Get overview of Prometheus target discovery

  • metric_metadata

    Returns metadata about metrics currently scraped by the metric name

  • query

    Execute an instant query against the Prometheus datasource, returning one value per series at a single point in time

  • quit

    Management API endpoint that can be used to trigger a graceful shutdown of Prometheus

  • range_query

    Execute a range query against the Prometheus datasource, returning values over a time window

  • ready

    Management API endpoint that can be used to check Prometheus is ready to serve traffic (i.e. respond to queries

  • reload

    Management API endpoint that can be used to trigger a reload of the Prometheus configuration and rule files

  • runbooks_list

    List the runbooks embedded in this server: guided workflows (Agent Skills) for common Prometheus tasks

  • runbooks_read

    Read the named runbook by skill name (e.g. check-system-health)

  • runtime_info

    Get Prometheus runtime information

  • series

    Finds series by label matchers

  • targets_metadata

    Returns metadata about metrics currently scraped by the target

  • tsdb_stats

    Get usage and cardinality statistics from the TSDB

  • wal_replay_status

    Get current WAL replay status

  • clean_tombstones

    Removes the deleted data from disk and cleans up the existing tombstones

  • delete_series

    deletes data for a selection of series in a time range

  • snapshot

    creates a snapshot of all current data into snapshots/- under the TSDB's data directory and returns the directory as…

  • prometheus

    n/a

About Prometheus MCP Server

The prompt used was: querying my metrics is slow, can you help me figure out why? The prompt used was: use the tools from the prometheus mcp server to investigate the metrics from the mcp server and suggest prometheus recording rules for SLOs

FAQ

Prometheus MCP Server FAQ

Still curious? Email info@appsgit.com.

What is Prometheus MCP Server?

Prometheus MCP Server is an MCP server that manages Prometheus-compatible backends. It has 117 GitHub stars, is released under the Apache-2.0 license and runs locally with docker run -i --rm ghcr.io/tjhop/prometheus-mcp-server:0.18.0. It works with Claude Desktop, Claude Code, Cursor and VS Code. The source code is at github.com/prometheus/prometheus-mcp.

How do I install the Prometheus MCP Server MCP server?

Add the command docker run -i --rm ghcr.io/tjhop/prometheus-mcp-server:0.18.0 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 Apache-2.0 license, so running it is free. It does not declare any required API key.

Is Prometheus MCP Server actively maintained?

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