Atlas / MCP servers / pab1it0 / Prometheus

PrometheusSAFE

mcp/pab1it0/prometheus-1

A Model Context Protocol (MCP) server that enables AI agents and LLMs to query and analyze Prometheus metrics through standardized interfaces.

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
—
Transport
sse · stdio
License
MIT
Stars
517
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://github.com/users/pab1it0/packages/container/package/prometheus-mcp-server) [](https://github.com/pab1it0/prometheus-mcp-server/pkgs/container/charts%2Fprometheus-mcp-server) [](https://github.com/pab1it0/prometheus-mcp-server/releases) [](https://codecov.io/gh/pab1it0/prometheus-mcp-server) [](https://github.com/pab1it0/prometheus-mcp-server/blob/main/LICENSE)

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.

[mcp]: https://modelcontextprotocol.io

Getting Started

Prerequisites

  • Prometheus server accessible from your environment
  • MCP-compatible client (Claude Desktop, VS Code, Cursor, Windsurf, etc.)

Installation Methods

Claude Desktop

Add to your Claude Desktop configuration:

{
"mcpServers": {
"prometheus": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
],
"env": {
"PROMETHEUS_URL": ""
}
}
}
}

Claude Code

Install via the Claude Code CLI:

claude mcp add prometheus --env PROMETH
Read from source at commit b57fd679f4abOBSERVED · 2026-09-29
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (oci)
claude mcp add prometheus-mcp-server:1.6.2 --env PROMETHEUS_PASSWORD=${PROMETHEUS_PASSWORD} --env PROMETHEUS_TOKEN=${PROMETHEUS_TOKEN} -- docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2:None
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (4 observation(s))
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (8)

LOWInventory / provenance · inv.hidden_file · CWE-1104
.env.template
.env.template
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
charts/prometheus-mcp-server/.helmignore
.helmignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
charts/prometheus-mcp-server/README.md:229
The MCP endpoint will be available at `http://127.0.0.1:8080/sse`.
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
charts/prometheus-mcp-server/templates/NOTES.txt:30
http://127.0.0.1:{{ .Values.service.port }}/sse
LOWNetwork egress · net.tls_off · CWE-200, CWE-319
tests/test_server.py:267
config.url_ssl_verify = False  # Ensure SSL verification is disabled
Why it matters. certificate verification is disabled
Fix. leave verification on
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
CONTRIBUTING.md:79
curl -LsSf https://astral.sh/uv/install.sh | sh
LOWSupply chain · prompt.pipe_to_shell · CWE-829, CWE-1357
README.md:216
curl -LsSf https://astral.sh/uv/install.sh | sh
LOWInventory / provenance · mcp.no_tools_extracted · CWE-1104
server.json
Why it matters. the tool list is enumerated at runtime by tools/list, not declared in source
Fix. the page says so rather than showing an empty table

Gates applied: no_behavioural_pass.

Audited 2026-09-29 · audit v0.4.1 · source sha b57fd679f4abfull audit observations/trust-audit/mcp-server/pab1it0__prometheus-1.json · Report an issue / request a re-scan
04

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-29b57fd679f4abSAFEB89first audit
05

Questions

What is the Prometheus MCP server?

A Model Context Protocol (MCP) server that enables AI agents and LLMs to query and analyze Prometheus metrics through standardized interfaces.

Is Prometheus safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Prometheus need?

It reads PROMETHEUS_CLIENT_KEY, PROMETHEUS_PASSWORD and PROMETHEUS_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Prometheus run?

It speaks sse and stdio, so it runs as a local process your client starts. It is published on PyPI as prometheus_mcp_server.

How current is this page?

The grade is for one exact copy of the source (b57fd679f4ab), read on 2026-09-29. The repository is watched and re-audited when it changes.

Advertisement