Prometheus MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PROMETHEUS_URL | Yes | Prometheus server URL (e.g., http://prometheus:9090) | |
| PROMETHEUS_PASSWORD | No | Basic auth password | |
| PROMETHEUS_USERNAME | No | Basic auth username |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| test_connectionB | Test connection to Prometheus and verify it is accessible |
| list_targetsC | List all scrape targets and their health status (up/down) |
| get_target_healthB | Get health status of a specific target by job name and/or instance |
| query_instantA | Execute a PromQL instant query to get the current value of metrics |
| query_rangeB | Execute a PromQL range query to get time series data over a time range |
| query_windows_exporterB | Query common Windows metrics from windows_exporter (CPU, memory, disk, etc.) |
| query_blackbox_exporterC | Query probe results from blackbox_exporter for endpoint monitoring |
| query_node_exporterC | Query common Linux metrics from node_exporter (CPU, memory, disk, network, load) |
| list_metricsC | List all available metric names in Prometheus |
| get_metric_metadataA | Get metadata (type, help text) for a specific metric or all metrics |
| get_label_valuesA | Get all values for a specific label (e.g., all job names, all instances) |
| find_seriesC | Find time series matching a label selector |
| list_alertsC | List all currently firing or pending alerts |
| get_alert_rulesC | Get all alerting rules and their current states |
| get_alert_historyC | Query alert state changes over time using ALERTS metric |
| get_recording_rulesB | Get all recording rules (pre-computed queries) and their current states |
| get_prometheus_statusB | Get Prometheus server status including version, runtime info, and configuration |
| get_tsdb_statusB | Get Prometheus TSDB (Time Series Database) statistics including cardinality and memory usage |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 18 tools
Most tools target a distinct resource/action (targets, alerts, rules, TSDB, queries), and the exporter-specific helpers (node/windows/blackbox) are clearly labeled by domain. Minor overlap exists between list_targets and get_target_health, and between list_metrics, get_metric_metadata, find_series, and get_label_values, but descriptions clarify boundaries.
All snake_case with predictable verb_noun form (list_targets, get_alert_rules, query_range). The verb set varies (test/list/get/query/find) but each verb is used sensibly; query_instant and query_range are a slight outlier pairing versus the get_* family but remain readable and consistent with each other.
18 tools is on the heavier side but each maps to a concrete Prometheus concept (targets, alerts, rules, TSDB, status, query types, exporter shortcuts). The three exporter convenience wrappers duplicate what query_instant could do, which is slightly redundant, but overall the set is well scoped.
Covers the core lifecycle: connectivity, target/health discovery, instant and range PromQL queries, metric/label/series exploration, alerts and rule inspection, and server/TSDB status. Minor gaps exist (e.g., no label-name listing distinct from label values, no config reload or admin/series-deletion operations), but agents can work around them.