The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Prometheus listing page.
A Model Context Protocol (MCP) server for Prometheus integration. Native Go binary with built-in Kubernetes connectivity via client-go.
Add to your MCP client configuration (VS Code, Cursor, Windsurf, etc.):
Automatically connects to Prometheus running in OpenShift/Kubernetes via the K8S API service proxy. Uses native kubeconfig/in-cluster config via client-go. No kubectl or port-forwarding required.
Default: openshift-monitoring/prometheus-operated:9090
Download from GitHub Releases or build from source:
| Variable | Description |
|---|---|
PROMETHEUS_URL | Direct Prometheus API URL (overrides K8S auto-connect) |
| Flag | Description | Default |
|---|---|---|
--url | Direct Prometheus URL | - |
--namespace | Kubernetes namespace | openshift-monitoring |
--service | Kubernetes service name | prometheus-operated |
--service-port | Kubernetes service port | 9090 |
--service-scheme | Service scheme (http/https) | https |
--kubeconfig | Path to kubeconfig file | auto-detect |
Precedence: --url / PROMETHEUS_URL > K8S auto-connect
Connection strategy:
--url or PROMETHEUS_URL is set)| Tool | Description |
|---|---|
query | Execute a PromQL instant query |
queryRange | Execute a PromQL range query over time |
getTargets | Get scrape targets status |
getRules | Get alerting and recording rules |
getPrometheusStatus | Get server version and runtime info |
| Tool | Description |
|---|---|
getClusterHealthOverview | Comprehensive cluster health overview |
diagnoseNode | Diagnose a specific node's health |
diagnoseNamespace | Diagnose a namespace's health |
| Tool | Description |
|---|---|
getTopResourceConsumers | Top CPU/memory/network consumers |
investigatePod | Deep investigation of a specific pod |
compareTimeRanges | Compare metrics between two time periods |
The container image is available on GitHub Container Registry:
Deploy using the included Helm chart:
| Parameter | Description | Default |
|---|---|---|
image.registry | Container registry | ghcr.io |
image.repository | Image repository | jeanlopezxyz/mcp-prometheus |
image.version | Image tag | latest |
openshift | Enable OpenShift Routes | false |
service.port | Service port | 8080 |
prometheus.namespace | Prometheus namespace | openshift-monitoring |
prometheus.service | Prometheus service name | prometheus-operated |
rbac.useClusterReader | Use cluster-reader role | true |