MCP server providing Prometheus metrics access and PromQL query execution for AI assistants
unavailable — the image reference already carries a tag
Docker
docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "<YOUR_PROMETHEUS_URL>",
"PROMETHEUS_PASSWORD": "<YOUR_PROMETHEUS_PASSWORD>",
"PROMETHEUS_TOKEN": "<YOUR_PROMETHEUS_TOKEN>"
}
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env PROMETHEUS_URL=<YOUR_PROMETHEUS_URL> --env PROMETHEUS_PASSWORD=<YOUR_PROMETHEUS_PASSWORD> --env PROMETHEUS_TOKEN=<YOUR_PROMETHEUS_TOKEN> prometheus-mcp-server -- docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "<YOUR_PROMETHEUS_URL>",
"PROMETHEUS_PASSWORD": "<YOUR_PROMETHEUS_PASSWORD>",
"PROMETHEUS_TOKEN": "<YOUR_PROMETHEUS_TOKEN>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "<YOUR_PROMETHEUS_URL>",
"PROMETHEUS_PASSWORD": "<YOUR_PROMETHEUS_PASSWORD>",
"PROMETHEUS_TOKEN": "<YOUR_PROMETHEUS_TOKEN>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"prometheus-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/pab1it0/prometheus-mcp-server:1.6.2"
],
"env": {
"PROMETHEUS_URL": "<YOUR_PROMETHEUS_URL>",
"PROMETHEUS_PASSWORD": "<YOUR_PROMETHEUS_PASSWORD>",
"PROMETHEUS_TOKEN": "<YOUR_PROMETHEUS_TOKEN>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
PROMETHEUS_URL required — Prometheus server URL (e.g., http://localhost:9090)PROMETHEUS_URL_SSL_VERIFY — Set to False to disable SSL verificationPROMETHEUS_DISABLE_LINKS — Set to True to disable Prometheus UI links in query results (saves context tokens in MCP clients)PROMETHEUS_USERNAME — Username for Prometheus basic authenticationPROMETHEUS_PASSWORD secret — Password for Prometheus basic authenticationPROMETHEUS_TOKEN secret — Bearer token for Prometheus authenticationORG_ID — Organization ID for multi-tenant Prometheus setupsPROMETHEUS_CLIENT_CERT — Path to client certificate file for mutual TLS authentication⭐ 518 stars · 最近更新于 32 天前 · MIT license
Prometheus MCP Server Give AI assistants the power to query your Prometheus metrics. A Model Context Protocol (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…
Summary from the project README — github.com/pab1it0/prometheus-mcp-server
Distributed as Docker, listed under Monitoring. Review our MCP security guide before granting access to real data.
Prometheus MCP Server Give AI assistants the power to query your Prometheus metrics. A Model Context Protocol (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
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/pab1it0/prometheus-mcp-server. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/prometheus-mcp-server/)
HTML
<a href="https://mcpnav.net/server/prometheus-mcp-server/"><img src="https://mcpnav.net/badge/prometheus-mcp-server.svg" alt="Listed on MCPNav" height="20"></a>