MCP Prometheus logo

MCP Prometheus

Connects AI clients to Prometheus for PromQL queries, Kubernetes diagnostics, resource analysis, and monitoring status.

Install MCP Prometheus

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-prometheus": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-prometheus@latest"
      ],
      "env": {
        "PROMETHEUS_URL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 11 tools correctly ().

Overview

The mcp-prometheus MCP server connects AI clients to Prometheus through PromQL and monitoring-focused diagnostic tools. It can use a direct Prometheus URL or connect through the Kubernetes API service proxy using kubeconfig or in-cluster configuration. Use it to investigate cluster health, inspect targets and rules, analyze resource consumers, or compare metrics across time periods.

Use cases

  • Run PromQL queries through an AI client
  • Diagnose Kubernetes nodes and namespaces
  • Investigate pod health and resource usage
  • Check Prometheus targets and alerting rules
  • Compare metrics across two time periods

Key features

  • PromQL instant and range queries
  • Kubernetes API proxy auto-connect
  • Cluster, node, namespace, and pod diagnostics
  • Scrape target and rule inspection
  • Top CPU, memory, and network consumer analysis
  • Metric comparison across time ranges

Tools11

What MCP Prometheus lets your agent do. Expand a tool for its parameters.

Verified live~695 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

19/19 checks healthy over the last 83d

What it can do

From the 11 tools this server returned when we ran it; 11 declare their own safety hints.

Runs commands · 2Makes network requests · 1Read-only tools · 9
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age335 days
Maintainers1

Observed 2026-11-04 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 8h ago via OSV.dev · mcp-prometheus@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads413Package downloads in the last 30 days.
Last commit23d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed11Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Prometheus works

What mcp-prometheus MCP server does

The mcp-prometheus MCP server exposes Prometheus monitoring functions to MCP clients. It supports both direct PromQL access and higher-level investigation workflows for Kubernetes and OpenShift environments. Developers can use it to ask for current or historical metrics, inspect monitoring configuration, and investigate infrastructure or workload health through an AI client.

The server includes tools for instant and range queries, scrape target status, alerting and recording rules, and Prometheus version and runtime information. Its diagnostic tools cover cluster overviews, individual nodes, namespaces, pods, top CPU or memory consumers, network consumers, and comparisons between two time periods.

How it works

The mcp-prometheus MCP server chooses its connection method from the available configuration. A direct URL supplied through the --url flag or PROMETHEUS_URL takes precedence. If neither is present, it attempts Kubernetes API proxy access using an automatically detected kubeconfig or in-cluster configuration.

For Kubernetes auto-connect, the default target is the prometheus-operated service in the openshift-monitoring namespace on port 9090. The service scheme defaults to HTTPS. This approach uses Kubernetes client-go connectivity and does not require kubectl or port-forwarding.

The server can be run through npx, as a downloaded or locally built Go binary, or as a container. It also includes a Helm chart for Kubernetes or OpenShift deployment. MCP client configuration examples are provided for VS Code, Cursor, and Windsurf.

Setup and configuration

The simplest direct configuration runs the package with npx and sets the Prometheus endpoint:

config.json
{
  "command": "npx",
  "args": ["-y", "mcp-prometheus@latest"],
  "env": {
    "PROMETHEUS_URL": "http://localhost:9090"
  }
}

The PROMETHEUS_URL environment variable overrides Kubernetes auto-connect. Equivalent command-line options include --url, --namespace, --service, --service-port, --service-scheme, and --kubeconfig. The default namespace is openshift-monitoring, the default service is prometheus-operated, and the default service port is 9090.

For deployment, the repository provides a container image at ghcr.io/jeanlopezxyz/mcp-prometheus:latest and a Helm chart. Helm values can select an image, enable OpenShift Routes, change the service port, set Prometheus service details, and configure the cluster-reader role.

Tools and capabilities

The mcp-prometheus MCP server provides 11 tools:

  • Run instant or time-range PromQL queries.
  • Review scrape target health and Prometheus rules.
  • Read Prometheus version and runtime status.
  • Generate cluster, node, and namespace health diagnostics.
  • Find leading CPU, memory, and network consumers.
  • Investigate a specific pod.
  • Compare metric values across two time ranges.

These tools support requests such as checking node CPU, finding memory-heavy pods, reviewing alerting rules, diagnosing a namespace, or comparing current usage with usage from 24 hours earlier.

Limitations and notes

The material documents Prometheus and Kubernetes connectivity but does not specify authentication options for a direct Prometheus URL. Kubernetes auto-connect depends on access to a suitable kubeconfig or in-cluster configuration and the relevant Kubernetes service. The default connection settings target an OpenShift monitoring service, so other installations may require the URL or service-related flags to be changed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Prometheus

mcp-prometheus is an MCP server that connects AI clients to Prometheus and exposes tools for PromQL instant and range queries, target and rule inspection, Prometheus status, Kubernetes diagnostics, resource analysis, pod investigation, and metric comparisons. It can use a direct URL or Kubernetes API service proxy connectivity.

Install it with `npx -y mcp-prometheus@latest`, download a release binary, build it with `make build`, or deploy the supplied container and Helm chart. Add the command to your MCP client configuration and provide `PROMETHEUS_URL` when using a direct Prometheus endpoint.

Run the server without a direct URL and let it use Kubernetes API proxy connectivity. It detects kubeconfig or in-cluster configuration and defaults to the `prometheus-operated` service in the `openshift-monitoring` namespace on port `9090`; use flags to change these settings.

Yes, mcp-prometheus can be configured in Cursor using the documented MCP command configuration. The example runs `npx -y mcp-prometheus@latest`; set `PROMETHEUS_URL` in the environment when connecting directly to Prometheus.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Prometheus AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-prometheus?style=directory)](https://allmcps.com/mcp/mcp-prometheus)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-prometheus"><img src="https://allmcps.com/api/badge/mcp-prometheus?style=directory" alt="MCP Prometheus on AllMCPs" /></a>