Data & analytics / Prometheus MCP Server
Prometheus MCP Server
io.github.pab1it0/prometheus-mcp-server · v1.6.2
MCP server providing Prometheus metrics access and PromQL query execution for AI assistants
Description supplied by the publisher in the MCP Registry. We have not tested this server.
Ranks #368 of 435 Data & analytics servers on Socketlist by score, with 525 GitHub stars and a last code push 26d ago.
Install
docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.
Connect Prometheus MCP Server to Claude Code, Cursor or VS Code
Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.
Claude Code
Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Secret variables the publisher declares are included; drop any the README says are optional. Claude Code setup guide.
claude mcp add --env PROMETHEUS_URL=<prometheus_url> --env PROMETHEUS_PASSWORD=<prometheus_password> --env PROMETHEUS_TOKEN=<prometheus_token> --transport stdio prometheus-mcp-server -- docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2.mcp.json (Claude Code project scope, VS Code with Copilot)
Put this in a .mcp.json file at the project root. ${NAME} reads the value from your environment, so no secret is written to the file. VS Code and .mcp.json guide.
{
"mcpServers": {
"prometheus-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "${PROMETHEUS_URL}",
"PROMETHEUS_PASSWORD": "${PROMETHEUS_PASSWORD}",
"PROMETHEUS_TOKEN": "${PROMETHEUS_TOKEN}"
}
}
}
}Cursor
Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "${env:PROMETHEUS_URL}",
"PROMETHEUS_PASSWORD": "${env:PROMETHEUS_PASSWORD}",
"PROMETHEUS_TOKEN": "${env:PROMETHEUS_TOKEN}"
}
}
}
} Configuration the publisher declares
| Environment variable | Required | Secret | Publisher's note |
|---|---|---|---|
PROMETHEUS_URL | Yes | No | Prometheus server URL (e.g., http://localhost:9090) |
PROMETHEUS_URL_SSL_VERIFY | No | No | Set to False to disable SSL verification |
PROMETHEUS_DISABLE_LINKS | No | No | Set to True to disable Prometheus UI links in query results (saves context tokens in MCP clients) |
PROMETHEUS_USERNAME | No | No | Username for Prometheus basic authentication |
PROMETHEUS_PASSWORD | No | Yes | Password for Prometheus basic authentication |
PROMETHEUS_TOKEN | No | Yes | Bearer token for Prometheus authentication |
ORG_ID | No | No | Organization ID for multi-tenant Prometheus setups |
PROMETHEUS_CLIENT_CERT | No | No | Path to client certificate file for mutual TLS authentication |
PROMETHEUS_CLIENT_KEY | No | No | Path to client private key file for mutual TLS authentication |
PROMETHEUS_MCP_SERVER_TRANSPORT | No | No | MCP server transport type (stdio, http, or sse) |
PROMETHEUS_MCP_BIND_HOST | No | No | Host address for HTTP/SSE transport (default: 127.0.0.1) |
PROMETHEUS_MCP_BIND_PORT | No | No | Port number for HTTP/SSE transport (default: 8080) |
2 more are listed in the registry entry; see the README for the full set.
"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.
Allowlist entry
If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together.
{
"allowedMcpServers": [
{
"serverCommand": [
"docker",
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
]
}
]
} How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.
Signals
| GitHub stars | 525 |
| npm weekly downloads | - |
| Last push | 26d ago |
| Licence | MIT |
| Open issues | 0 |
| SECURITY.md | No |
| Language | Python |
| Latest version published | 2026-08-03 |
Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.
Similar servers
SigNoz MCP Server
Score 80SigNoz MCP server: access metrics, traces, logs, alerts, and dashboards via AI assistants
Duplicacy MCP
Score 76MCP server for Duplicacy: backup health, status and Prometheus metrics from duplicacy-exporter
Five MCP servers worth your time, every week
The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.