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 519 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)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
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
Watch Skill
oxbshw/watch-skill
Watch video and live sessions, keep timestamped evidence, and verify an agent's own work.
Active · last commit Sep 8, 2026
Cloud & DevOpsPythonCaura
caura-ai/caura
Caura (formerly MemClaw) — governed shared memory for AI agent fleets.
Active · last commit Oct 25, 2026
Cloud & DevOpsPythonmaintenant
kOlapsis/maintenant
Docker monitoring for AI agents: logs, history, alerts.
Active · last commit Oct 25, 2026
Cloud & DevOpsGoStudio
decocms/studio
Open-source control plane for your AI agents.
Active · last commit Oct 25, 2026
Cloud & DevOpsTypeScriptMCP Security
google/mcp-security
This repository contains Model Context Protocol (MCP) servers that enable MCP clients (like Claude Desktop or the cline.bot VS Code extension) to access Google's security products and services:.
Active · last commit Oct 16, 2026
OfficialCloud & DevOpsPythonMCP Server Azure DevOps
Tiberriver256/mcp-server-azure-devops
An MCP server for Azure DevOps.
Active · last commit Oct 24, 2026
Cloud & DevOpsTypeScript
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 11, 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.