Prometheus MCP Server
Prometheus MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server providing Prometheus metrics access and PromQL… It has 516 GitHub stars, is released under the MIT license and runs locally with docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2.
github.com/pab1it0/prometheus-mcp-server (opens in a new tab)
- Needs API key
- Cloud & DevOps
- MIT
- Actively maintained
Install Prometheus MCP Server
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"-e",
"PROMETHEUS_PASSWORD",
"-e",
"PROMETHEUS_TOKEN",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "your-value",
"PROMETHEUS_PASSWORD": "your-value",
"PROMETHEUS_TOKEN": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env PROMETHEUS_URL=your-value --env PROMETHEUS_PASSWORD=your-value --env PROMETHEUS_TOKEN=your-value --transport stdio prometheus-mcp-server -- docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2Cursor
{
"mcpServers": {
"prometheus-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"-e",
"PROMETHEUS_PASSWORD",
"-e",
"PROMETHEUS_TOKEN",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "your-value",
"PROMETHEUS_PASSWORD": "your-value",
"PROMETHEUS_TOKEN": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "prometheus_password",
"description": "PROMETHEUS_PASSWORD",
"password": true
},
{
"type": "promptString",
"id": "prometheus_token",
"description": "PROMETHEUS_TOKEN",
"password": true
}
],
"servers": {
"prometheus-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"-e",
"PROMETHEUS_PASSWORD",
"-e",
"PROMETHEUS_TOKEN",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "your-value",
"PROMETHEUS_PASSWORD": "${input:prometheus_password}",
"PROMETHEUS_TOKEN": "${input:prometheus_token}"
}
}
}
}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).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
PROMETHEUS_URL | Yes | Prometheus server URL (e.g., http://localhost:9090) |
PROMETHEUS_URL_SSL_VERIFY | No | Set to False to disable SSL verification |
PROMETHEUS_DISABLE_LINKS | No | Set to True to disable Prometheus UI links in query results (saves context tokens in MCP clients) |
PROMETHEUS_USERNAME | No | Username for Prometheus basic authentication |
PROMETHEUS_PASSWORDsecret | No | Password for Prometheus basic authentication |
PROMETHEUS_TOKENsecret | No | Bearer token for Prometheus authentication |
ORG_ID | No | Organization ID for multi-tenant Prometheus setups |
PROMETHEUS_CLIENT_CERT | No | Path to client certificate file for mutual TLS authentication |
PROMETHEUS_CLIENT_KEY | No | Path to client private key file for mutual TLS authentication |
PROMETHEUS_MCP_SERVER_TRANSPORT | No | MCP server transport type (stdio, http, or sse) |
PROMETHEUS_MCP_BIND_HOST | No | Host address for HTTP/SSE transport (default: 127.0.0.1) |
PROMETHEUS_MCP_BIND_PORT | No | Port number for HTTP/SSE transport (default: 8080) |
PROMETHEUS_MCP_STATELESS_HTTP | No | Enable stateless HTTP mode for multi-replica support (default: false) |
PROMETHEUS_CUSTOM_HEADERS | No | Custom headers as JSON string to include in Prometheus requests |
Tools (6)
Parsed from the Tools section of the README; check the repository for the current list.
health_checkSystem
execute_queryQuery
execute_range_queryQuery
list_metricsDiscovery
get_metric_metadataDiscovery
get_targetsDiscovery
About Prometheus MCP Server
Give AI assistants the power to query your Prometheus metrics. A [Model Context Protocol][mcp] (MCP) server that provides access to your Prometheus metrics and queries through standardized MCP interfaces, allowing AI assistants to execute PromQL queries and analyze your metrics data.
- ai
- devops
- llm
- mcp
- prometheus
- model-context-protocol
Similar MCP servers
More cloud & devops MCP servers
Worldmonitor
koala73/worldmonitor
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface.
Cloud & DevOpsTypeScriptNetdata
netdata/netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Cloud & DevOpsGoopenstatus
openstatusHQ/openstatus
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
OfficialCloud & DevOpsTypeScriptMCP Server Cloudflare
cloudflare/mcp-server-cloudflare
Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems.
OfficialCloud & DevOpsTypeScriptDagu
dagucloud/dagu
Self-hostable workflow orchestrator for teams whose main work isn't orchestration.
Cloud & DevOpsGoAzure MCP Server
microsoft/mcp
All Azure MCP tools to create a seamless connection between AI agents and Azure services.
OfficialCloud & DevOpsC#
What is Prometheus MCP Server?
Prometheus MCP Server is an MCP server that adds cloud and DevOps tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP server providing Prometheus metrics access and PromQL… It has 516 GitHub stars, is released under the MIT license and runs locally with docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2. The source code is at github.com/pab1it0/prometheus-mcp-server.
How do I install the Prometheus MCP Server MCP server?
Add the command docker run -i --rm -e PROMETHEUS_URL -e PROMETHEUS_PASSWORD -e PROMETHEUS_TOKEN ghcr.io/pab1it0/prometheus-mcp-server:1.6.2 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 MIT license, so running it is free. It needs credentials (PROMETHEUS_PASSWORD and PROMETHEUS_TOKEN) for the service it connects to, which may require a paid account.
Is Prometheus MCP Server actively maintained?
The most recent commit was on Oct 2, 2026. The latest release is v1.6.2, published Aug 3, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.