PrometheusSAFE
A Model Context Protocol (MCP) server enabling LLMs to query, analyze, and interact with Prometheus databases through predefined routes.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@CaesarYangs/prometheusmcpserver)
A Model Context Protocol (MCP) server for retrieving data from Prometheus databases. This MCP server enables Large Language Models (LLMs) to invoke tool functions that retrieve and analyze vast amounts of metric data, search metric usage, execute complex queries, and perform other related tasks through pre-defined routes with enhanced control over usage.
- Data Retrieval: Fetch specific metrics or ranges of data from Prometheus.
- Metric Analysis: Perform statistical analysis on retrieved metrics.
- Usage Search: Find and explore metric usage patterns.
- Complex Querying: Execute advanced PromQL queries for in-depth data exploration.
Capibilites
✅ Retrieve comprehensive metric information, including names and descriptions, from Prometheus
✅ Fetch and analyze specific metric data using metric names
✅ Analyze metric data within custom time ranges
🚧 Filter and match data using specific labels (in development)
⏳ Additional features planned...
Getting Started
MCP runing requires a python virtual environment(venv), all packages should be installed into this venv so the MCP server can be automically started.
Installing via Smithery
To install Prometheus MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @CaesarYangs/prometheus_mcp_server --client claude
Manual Installation
Prepare python env
cd ./src/prometheus_mcp_server python3 -m venv .venv
# linux/macos: source .venv/bin/activate # windows: .venv\Scripts\activate
Then it is ready to be used as a dedicated python environment.
Install required packages
Make sure pip is properly isntalled. If your venv is installed without pip, then manually install it using:
wget https://boo
ec24c0e70af0OBSERVED · 2026-10-08Connect
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 mcp add prometheus_mcp_server -- uvx prometheus_mcp_server
{
"mcpServers": {
"prometheus_mcp_server": {
"command": "uvx",
"args": [
"prometheus_mcp_server"
]
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
fetch_metric | read | Fetches metric and returns its content |
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.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
url: str = "http://127.0.0.1:9090",
mcp, pydantic, requests, numpy, pandas
Gates applied: no_behavioural_pass.
ec24c0e70af0full audit observations/trust-audit/mcp-server/caesaryangs__prometheus.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | ec24c0e70af0 | SAFE | B | 89 | first audit |
Questions
What is the Prometheus MCP server?
A Model Context Protocol (MCP) server enabling LLMs to query, analyze, and interact with Prometheus databases through predefined routes.
What tools does Prometheus expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
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?
No credential environment variables were found in its source, so it appears to need none.
How does Prometheus run?
It speaks 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 (ec24c0e70af0), read on 2026-10-08. The repository is watched and re-audited when it changes.