MCP ScannerCustom audit
All servers

pab1it0/prometheus-mcp-server

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

Packageprometheus_mcp_server
Version1.6.2 in pyproject.toml
Publisherpab1it0 community
MCP Registryio.github.pab1it0/prometheus-mcp-server
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 525Forks 106Last push 2026-11-14
Python 100.0%by source files the scanner reads
Code safety10.0Exposure10.0Promptsnot analysedSupply chain6.0Secrets10.0Transparency10.0
Analysis confidence97%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetynothing published yet10.0/10

Paths from tool input into commands, SQL, files and URLs

Capability Exposure10.0/10Good

How much power the tools give an agent over the machine

Prompt Integritynot analysed—

Hidden instructions and poisoning in text for the model

Supply Chain6.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

Prompt Integrity is not analysed and has no number.

  • Prompt Integrity: no tool description could be read from the code

Top risks in plain words

  • HIGH2 production dependencies have known vulnerabilities (worst: high).

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Update its vulnerable packages

    Use dnspython 2.9.2 or later, opentelemetry-api 1.45.2 or later.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 6 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

None of the tools reaches any of these in the code the scanner could trace.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

No tool was seen returning text from outside the server to the model.

Tool annotations

6 of 6 tools declare annotations. readOnlyHint 6, idempotentHint 6, openWorldHint 6.

Each declaration matches what the traced code does.

Tools, prompts and resources (6: 6 tools)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

execute_querytool Execute a PromQL instant query against Prometheusread-only (declared)
Execute a PromQL instant query against Prometheus
execute_range_querytool Execute a PromQL range query with start time, end time, and step intervalread-only (declared)
Execute a PromQL range query with start time, end time, and step interval
get_metric_metadatatool Get metadata (type, help, unit) for metrics. Returns all metric metadata when no metric name is provided. Use filter_pattern to search metric names and descriptread-only (declared)
Get metadata (type, help, unit) for metrics. Returns all metric metadata when no metric name is provided. Use filter_pattern to search metric names and descriptions.
get_targetstool Get scrape targets, with state/pool filtering and optional paginationread-only (declared)
Get scrape targets, with state/pool filtering and optional pagination
health_checktool Health check endpoint for container monitoring and status verificationread-only (declared)
Health check endpoint for container monitoring and status verification
list_metricstool List all available metrics in Prometheus with optional pagination supportread-only (declared)
List all available metrics in Prometheus with optional pagination support

Text the model reads (6)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

health_check tool
Health check endpoint for container monitoring and status verification
execute_query tool
Execute a PromQL instant query against Prometheus
execute_range_query tool
Execute a PromQL range query with start time, end time, and step interval
list_metrics tool
List all available metrics in Prometheus with optional pagination support
get_metric_metadata tool
Get metadata (type, help, unit) for metrics. Returns all metric metadata when no metric name is provided. Use filter_pattern to search metric names and descriptions.
get_targets tool
Get scrape targets, with state/pool filtering and optional pagination

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safety10.0
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure10.0
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 6 tool handlers traced
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 6 tool handlers traced
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 6 tool handlers traced
  • Requests any address
    No tool sends a request to an address the caller supplies — 6 tool handlers traced
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 6 tool handlers traced
  • Tools that start processes
    Not seen in the traced code of 6 capabilities; 6 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    Not seen in the traced code of 6 capabilities; 6 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    Not seen in the traced code of 6 capabilities; 6 more call code the scanner could not follow, where it may happen
Where the code is: 6 handlers in 1 file at commit 3075d504c543
Prompt Integritynot analysed
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Not checked: no tool description could be read from the code
Supply Chain6.0
  • Dependency manifests
    1 manifest: pyproject.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies HIGH
    2 production packages with known advisories
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    fastmcp >=3.1.0
Secrets & Credentials10.0
  • 2 checks: undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Credential harvesting
    Not checked: no tool description could be read from the code
  • Tools that read credentials
    Not seen in the traced code of 6 capabilities; 6 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (2 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

PackageInstalledWorstAdvisoriesFixed in
dnspythonPyPI 2.7.0 HIGH 2 advisories 2.9.02.9.2
opentelemetry-apiPyPI 1.45.1 MEDIUM 1 advisory 1.45.2
  • MEDIUMGHSA-mf5v-w3w3-f6cg CVE-2026-126360OpenTelemetry Python API: Denial of service through quadratic-time traceparent parsing

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportnot stated in the code the scanner read; most local servers talk over stdio
Sign-innot checked needs the live server
MCP SDKfastmcp >=3.1.0

The project's own security

Security policynone no SECURITY.md in the repository: report issues privately through GitHub if it is enabled
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-14
Signed releasesnot checked yet

Where it is published

MCP Registryio.github.pab1it0/prometheus-mcp-server
Listed in11 catalogs (awesome_habitoai, awesome_mobinx, awesome_punkpeye, awesome_rohitg00, awesome_tensorblock, docker_catalog, github_search, glama, mcp_registry, mcp_toplist, mcpservers_org)
LicenseMIT
Created2025-03-19
Topicsai devops llm mcp model-context-protocol prometheus

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.