Prometheus MCP Server

MIT License
65
  • Linux
  • Apple

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ORG_IDNoOptional: Organization ID for multi-tenant setups like Cortex, Mimir or Thanos
PROMETHEUS_URLYesRequired: URL of your Prometheus server
PROMETHEUS_TOKENNoOptional: Bearer token for authentication to Prometheus
PROMETHEUS_PASSWORDNoOptional: Password for basic auth authentication to Prometheus
PROMETHEUS_USERNAMENoOptional: Username for basic auth authentication to Prometheus

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
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

list_metrics

List all available metrics in Prometheus

get_metric_metadata

Get metadata for a specific metric

get_targets

Get information about all scrape targets

ID: rwxokujcu0