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?

MCP Info

Image Building Info

AttributeDetails
Dockerfilehttps://github.com/pab1it0/prometheus-mcp-server/blob/219d4f0772cfb035d702e1d7c64643baf60b3479/Dockerfile
Commit219d4f0772cfb035d702e1d7c64643baf60b3479
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 PromQL Query
execute_range_queryExecute PromQL Range Query
get_metric_metadataGet Metric Metadata
get_targetsGet Scrape Targets
health_checkHealth Check
list_metricsList Available Metrics

Tools Details

Tool: execute_query

Execute a PromQL instant query against Prometheus

ParametersTypeDescription
querystring
timestringoptional

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


Tool: execute_range_query

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

ParametersTypeDescription
endstring
querystring
startstring
stepstring

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


Tool: get_metric_metadata

Get metadata for a specific metric

ParametersTypeDescription
metricstring

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


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 with optional pagination support

ParametersTypeDescription
filter_patternstringoptional
limitstringoptional
offsetintegeroptional

This tool is read-only. It does not modify its environment.

This tool interacts with external entities.


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?

Related servers