Prometheus MCP Server
v1.6.2MCP server providing Prometheus metrics access and PromQL query execution for AI assistants
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
health_check Health Check
Health check endpoint for container monitoring and status verification
execute_query Execute PromQL Query
Execute a PromQL instant query against Prometheus
| Parameter | Type | Description |
|---|---|---|
query * | string | |
time |
execute_range_query Execute PromQL Range Query
Execute a PromQL range query with start time, end time, and step interval
| Parameter | Type | Description |
|---|---|---|
end * | string | |
query * | string | |
start * | string | |
step * | string |
list_metrics List Available Metrics
List all available metrics in Prometheus with optional pagination support
| Parameter | Type | Description |
|---|---|---|
filter_pattern | ||
limit | ||
offset | integer | |
refresh_cache | boolean |
get_metric_metadata Get Metric Metadata
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.
| Parameter | Type | Description |
|---|---|---|
filter_pattern | ||
limit | ||
metric | ||
offset | integer |
get_targets Get Scrape Targets
Get scrape targets, with state/pool filtering and optional pagination
| Parameter | Type | Description |
|---|---|---|
limit | ||
offset | integer | |
scrape_pool | ||
state | string |