Atlas / MCP servers / tjhop / Prometheus

PrometheusCAUTION

mcp/tjhop/prometheus-6

MCP server for LLMs to interact with Prometheus

Verdict
CAUTION
Grade
B
Trust score
88 /100
Exposed tools
—
Transport
stdio · streamable-http
License
Apache-2.0
Stars
119
01

Overview

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

[](https://github.com/tjhop/prometheus-mcp-server/blob/master/LICENSE) [](https://goreportcard.com/report/github.com/tjhop/prometheus-mcp-server) [](https://github.com/tjhop/prometheus-mcp-server/actions/workflows/golangci-lint.yml) [](https://github.com/tjhop/prometheus-mcp-server/releases/latest) [](https://github.com/tjhop/prometheus-mcp-server/releases/latest)

About

This is an MCP server to allow LLMs to interact with a running Prometheus instance via the API to do things like generate and execute promql queries, list and analyze metrics, etc.

Demos and Examples

Asking Claude to Investigate Slow Queries

The prompt used was:

querying my metrics is slow, can you help me figure out why?

[](https://asciinema.org/a/8KxZgJxrXXX2zjwwDRSP4UtqL)

Investigate metrics produced by the MCP server itself and suggest recording rules for SLOs

The prompt used was:

use the tools from the prometheus mcp server to investigate the metrics from the mcp server and suggest prometheus recording rules for SLOs

[](https://asciinema.org/a/av3WhfD122A1HHOq2d4SEZgMn)

Summarize Prometheus metric/label naming best practices

The prom

Read from source at commit 9e60aa18b3c2OBSERVED · 2026-10-08
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.

claude-code (oci)
claude mcp add prometheus-mcp:v${VERSION} -- docker run -i --rm docker.io/prom/prometheus-mcp:v${VERSION}:None
03

Trust audit

CAUTIONgrade B · trust 88/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeWARN
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 (3 observation(s))
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (18)

MEDIUMInventory / provenance · inv.symlink · CWE-1104
assets
assets
Why it matters. link not followed
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
cmd/prometheus-mcp/main.go:95
).Default("http://127.0.0.1:9090").String()
LOWInventory / provenance · inv.hidden_file · CWE-1104
.envrc
.envrc
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.golangci.yml
.golangci.yml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.promu.yml
.promu.yml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
.yamllint
.yamllint
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
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
pkg/mcp/docs_updater_test.go:177
"docs/../../../etc/passwd":  "malicious",
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
pkg/mcp/docs_updater_test.go:189
_, err = fs.ReadFile(memFS, "../../../etc/passwd")
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
README.md:500
--prometheus.url="http://127.0.0.1:9090"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
pkg/mcp/server_test.go:43
PrometheusURL: "http://127.0.0.1:9090",
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
pkg/mcp/server_test.go:113
PrometheusURL: "http://127.0.0.1:9090",
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
AGENTS.md:47
- stdio, the in-memory `mcptest` harness, and the HTTP handler all negotiate the new revision by default; legacy clients that send `initialize` are still served on every transport. HTTP is stateless o
Why it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
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
INFOInventory / provenance · inv.oversize · CWE-1104
images/demo-usage-with-prometheus-demo-server.gif
images/demo-usage-with-prometheus-demo-server.gif
Why it matters. 4673488 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
images/gemini_docs_search.gif
images/gemini_docs_search.gif
Why it matters. 1801681 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
images/gemini_slo.gif
images/gemini_slo.gif
Why it matters. 2987748 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
images/logo.png
images/logo.png
Why it matters. 2944674 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 9e60aa18b3c2full audit observations/trust-audit/mcp-server/tjhop__prometheus-6.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-10-089e60aa18b3c2CAUTIONB88first audit
05

Questions

What is the Prometheus MCP server?

MCP server for LLMs to interact with Prometheus

Is Prometheus safe to connect to an agent?

With care. The audit graded it B (88/100) and found 18 things worth knowing before you trust this server, listed below with the exact line each was found on.

What credentials does Prometheus need?

No credential environment variables were found in its source, so it appears to need none.

How does Prometheus run?

It speaks stdio and streamable-http, so it runs as a local process your client starts.

How current is this page?

The grade is for one exact copy of the source (9e60aa18b3c2), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement