LabStore
← All labs

Prometheus

by docker ✓ verified ✓ Packaged by Docker

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.

MCP server installable needs setup network: on runtime: sysbox

Monitoring & Uptime MCP Servers

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

Attribute Details
Docker Image ghcr.io/pab1it0/prometheus-mcp-server
Author pab1it0
Repository https://github.com/pab1it0/prometheus-mcp-server

Image Building Info

Attribute Details
Dockerfile https://github.com/pab1it0/prometheus-mcp-server/blob/219d4f0772cfb035d702e1d7c64643baf60b3479/Dockerfile
Commit 219d4f0772cfb035d702e1d7c64643baf60b3479
Docker Image built by pab1it0
Docker Scout Health Score Not available
Verify Signature Not available
Licence MIT License

Available Tools (6)

Tools provided by this Server Short Description
execute_query Execute PromQL Query
execute_range_query Execute PromQL Range Query
get_metric_metadata Get Metric Metadata
get_targets Get Scrape Targets
health_check Health Check
list_metrics List Available Metrics

Tools Details

Tool: execute_query

Execute a PromQL instant query against Prometheus

Parameters Type Description
query string
time string optional

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

Parameters Type Description
end string
query string
start string
step string

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

Parameters Type Description
metric string

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

Parameters Type Description
filter_pattern string optional
limit string optional
offset integer optional

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?