A Model Context Protocol (MCP) server that enables AI assistants to query and analyze Prometheus metrics through standardized interfaces. Connect to your Prometheus instance to retrieve metrics, perform queries, and gain insights into your system's performance and health.
6 Tools
Version 4.43 or later needs to be installed to add the server automatically
Use cases
About
A Model Context Protocol (MCP) server that enables AI assistants to query and analyze Prometheus metrics through standardized interfaces. Connect to your Prometheus instance to retrieve metrics, perform queries, and gain insights into your system's performance and health.
Attribute | Details |
---|---|
Docker Image | ghcr.io/pab1it0/prometheus-mcp-server |
Author | pab1it0 |
Repository | https://github.com/pab1it0/prometheus-mcp-server |
Dockerfile | https://github.com/pab1it0/prometheus-mcp-server/blob/main/Dockerfile |
Docker Image built by | pab1it0 |
Docker Scout Health Score | Not available |
Verify Signature | Not available |
Licence | MIT License |
Tools provided by this Server | Short Description |
---|---|
execute_query | Execute a PromQL instant query against Prometheus |
execute_range_query | Execute a PromQL range query with start time, end time, and step interval |
get_metric_metadata | Get metadata for a specific metric |
get_targets | Get information about all scrape targets |
health_check | Health check endpoint for container monitoring and status verification |
list_metrics | List all available metrics in Prometheus |
execute_query
Execute a PromQL instant query against Prometheus
Parameters | Type | Description |
---|---|---|
query | string | |
time | string optional |
execute_range_query
Execute a PromQL range query with start time, end time, and step interval
Parameters | Type | Description |
---|---|---|
end | string | |
query | string | |
start | string | |
step | string |
get_metric_metadata
Get metadata for a specific metric
Parameters | Type | Description |
---|---|---|
metric | string |
get_targets
Get information about all scrape targets
health_check
Health check endpoint for container monitoring and status verification
list_metrics
List all available metrics in Prometheus
{
"mcpServers": {
"prometheus": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server"
],
"env": {
"PROMETHEUS_URL": "http://host.docker.internal:9090"
}
}
}
}
Manual installation
You can install the MCP server using:
Installation for