Prometheus MCP Server

v1.6.2
io.github.pab1it0/prometheus-mcp-server Checked 8 hours ago Published 3 months ago

MCP 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

ParameterTypeDescription
query *string
time

execute_range_query Execute PromQL Range Query

Execute a PromQL range query with start time, end time, and step interval

ParameterTypeDescription
end *string
query *string
start *string
step *string

list_metrics List Available Metrics

List all available metrics in Prometheus with optional pagination support

ParameterTypeDescription
filter_pattern
limit
offsetinteger
refresh_cacheboolean

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.

ParameterTypeDescription
filter_pattern
limit
metric
offsetinteger

get_targets Get Scrape Targets

Get scrape targets, with state/pool filtering and optional pagination

ParameterTypeDescription
limit
offsetinteger
scrape_pool
statestring