Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"prometheus": {
"env": {
"PROMETHEUS_URL": "http://localhost:9090"
},
"args": [
"-y",
"mcp-prometheus@latest"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A Model Context Protocol (MCP) server for Prometheus integration. Native Go binary with built-in Kubernetes connectivity via client-go.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'mcp-prometheus' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked mcp-prometheus against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in devops / analytics
MCP server for using the GitLab API
MCP Server for GCP environment for interacting with various Observability APIs.
Enhanced MCP server for GitLab: group projects listing and activity tracking
Yunxiao MCP Server provides AI assistants with the ability to interact with the Yunxiao platform. It provides a set of tools that interact with Yunxiao's API, allowing AI assistants to manage Codeup repository, Project, Pipeline, Packages etc.
MCP Security Weekly
Get CVE alerts and security updates for Prometheus MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A Model Context Protocol (MCP) server for Prometheus integration. Native Go binary with built-in Kubernetes connectivity via client-go.
npx -y mcp-prometheus@latest
Add to your MCP client configuration (VS Code, Cursor, Windsurf, etc.):
{
"mcpServers": {
"prometheus": {
"command": "npx",
"args": ["-y", "mcp-prometheus@latest"],
"env": {
"PROMETHEUS_URL": "http://localhost:9090"
}
}
}
}
code --add-mcp '{"name":"prometheus","command":"npx","args":["-y","mcp-prometheus@latest"],"env":{"PROMETHEUS_URL":"http://localhost:9090"}}'
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
{
"mcpServers": {
"prometheus": {
"command": "npx",
"args": ["-y", "mcp-prometheus@latest"]
}
}
}
Download from GitHub Releases or build from source:
make build
./mcp-prometheus
| 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 |
"What's the current CPU usage across all nodes?"
"Show me the cluster health overview"
"Which pods are using the most memory?"
"Diagnose node worker-1"
"Are all scrape targets healthy?"
"Compare CPU usage now vs 24 hours ago"
"Investigate pod my-app in namespace production"
"What alerting rules are defined?"
make build # Build for current platform
make build-all-platforms # Cross-compile for all platforms
`