Loading...
{
"mcpServers": {
"prometheus": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
],
"env": {
"PROMETHEUS_URL": "<your-prometheus-url>"
}
}
}
}health_checkVerifies the server's health status for monitoring purposes.
Read-only endpoint with no side effects.
execute_queryExecutes a PromQL instant query against the Prometheus server.
Executes read-only queries; no data modification.
execute_range_queryExecutes a PromQL range query with specified start, end times, and step interval.
Executes read-only queries; no data modification.
list_metricsLists all available metrics in the Prometheus server with pagination and filtering.
Read-only operation; no data modification.
get_metric_metadataRetrieves metadata for a specific metric from the Prometheus server.
Read-only operation; no data modification.
get_targetsRetrieves information about all scrape targets configured in Prometheus.
Read-only operation; no data modification.
The Prometheus MCP server provides a relatively safe way to expose Prometheus metrics to AI assistants. However, it's crucial to properly configure authentication and monitor query performance to prevent potential security risks and performance issues. Disabling SSL verification is strongly discouraged.