Prometheus

Prometheus

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

Requires Configuration
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

Prometheus MCP Server

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.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imageghcr.io/pab1it0/prometheus-mcp-server
Authorpab1it0
Repositoryhttps://github.com/pab1it0/prometheus-mcp-server
Dockerfilehttps://github.com/pab1it0/prometheus-mcp-server/blob/main/Dockerfile
Docker Image built bypab1it0
Docker Scout Health ScoreNot available
Verify SignatureNot available
LicenceMIT License

Available Tools (6)

Tools provided by this ServerShort Description
execute_queryExecute a PromQL instant query against Prometheus
execute_range_queryExecute a PromQL range query with start time, end time, and step interval
get_metric_metadataGet metadata for a specific metric
get_targetsGet information about all scrape targets
health_checkHealth check endpoint for container monitoring and status verification
list_metricsList all available metrics in Prometheus

Tools Details

Tool: execute_query

Execute a PromQL instant query against Prometheus

ParametersTypeDescription
querystring
timestringoptional

Tool: execute_range_query

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

ParametersTypeDescription
endstring
querystring
startstring
stepstring

Tool: get_metric_metadata

Get metadata for a specific metric

ParametersTypeDescription
metricstring

Tool: get_targets

Get information about all scrape targets

Tool: health_check

Health check endpoint for container monitoring and status verification

Tool: list_metrics

List all available metrics in Prometheus

Use this MCP Server

{
  "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"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers