About pab1it0/prometheus-mcp-server
pab1it0/prometheus-mcp-server is an MCP server published by pab1it0 in the Data category: a Model Context Protocol (MCP) server that enables AI agents and LLMs to query and analyze Prometheus metrics through standardized interfaces. Conduid read 6 tools from its source: execute_query, execute_range_query, get_metric_metadata, get_targets, health_check and list_metrics. No package is published for it, so it installs from a source checkout.
The repository has 526 stars and 106 forks, is licensed MIT, and its last commit was on 14 Nov 2026. The latest release is v1.6.2 (3 Aug 2026). It follows v1.6.1 (1 May 2026), and the 5 most recent releases go back to v1.5.2 (17 Dec 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include prometheus, monitoring and metrics.
Install
git clone https://github.com/pab1it0/prometheus-mcp-serverTools (6)
execute_queryExecute a PromQL instant query against Prometheus| Parameter | Type | Description |
|---|---|---|
| query * | string | PromQL query string |
| time | string | Optional RFC3339 or Unix timestamp (default: current time) |
execute_range_queryExecute a PromQL range query with start time, end time, and step interval| Parameter | Type | Description |
|---|---|---|
| end * | string | End time as RFC3339 or Unix timestamp |
| query * | string | PromQL query string |
| start * | string | Start time as RFC3339 or Unix timestamp |
| step * | string | Query resolution step width (e.g., '15s', '1m', '1h') |
get_metric_metadataGet metadata for one metric or bulk metadata with optional filtering| Parameter | Type | Description |
|---|---|---|
| filter_pattern | string | Optional substring filter on metric name and descriptions. |
| limit | integer | Maximum number of metrics to return in bulk mode. |
| metric | string | Optional metric name. If provided, returns legacy list format. |
| offset | integer | Number of metrics to skip in bulk mode. |
get_targetsGet scrape targets, with server-side `state`/`scrape_pool` filtering and optional pagination| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of targets to return per category (default: all) |
| offset | integer | Number of targets to skip for pagination (default: 0) |
| scrape_pool | string | Optional scrape pool name to restrict results to, applied server-side by Prometheus. |
| state | string | Which targets to request from Prometheus - "active" (default), "dropped", or "any". This is applied server-side by Prometheus. |
health_checkHealth check endpoint for container monitoring and status verificationlist_metricsList all available metrics in Prometheus with pagination and filtering support| Parameter | Type | Description |
|---|---|---|
| filter_pattern | string | Optional substring to filter metric names (case-insensitive) |
| limit | integer | Maximum number of metrics to return (default: all metrics) |
| offset | integer | Number of metrics to skip for pagination (default: 0) |
| refresh_cache | boolean | Force a cache refresh to pick up newly scraped metrics (default: False) |
Security checks
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.0K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 4 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/prometheus_mcp_server/server.py:764
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 2 callssrc/prometheus_mcp_server/server.py:204, src/prometheus_mcp_server/server.py:225
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 4 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.0K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README