Prometheus MCP Server
JSON →A Prometheus MCP server with full API support for comprehensive management and deep interaction with Prometheus beyond basic query support. Written in go, it is a single binary install that is capable of STDIO, SSE, and HTTP transports for complex deployments.
Tools · 28
- alertmanagers Get overview of Prometheus Alertmanager discovery
- build_info Get Prometheus build information
- config Get Prometheus configuration
- docs_list List of Official Prometheus Documentation Files
- docs_read Read the named markdown file containing official Prometheus documentation from the prometheus/docs repo
- docs_search Search the markdown files containing official Prometheus documentation from the prometheus/docs repo
- exemplar_query Performs a query for exemplars by the given query and time range
- flags Get runtime flags
- healthy Management API endpoint that can be used to check Prometheus health
- label_names Returns the unique label names present in the block in sorted order by given time range and matchers
- label_values Performs a query for the values of the given label, time range and matchers
- list_alerts List all active alerts
- list_rules List all alerting and recording rules that are loaded
- list_targets Get overview of Prometheus target discovery
- metric_metadata Returns metadata about metrics currently scraped by the metric name
- query Execute an instant query against the Prometheus datasource
- quit Management API endpoint that can be used to trigger a graceful shutdown of Prometheus
- range_query Execute a range query against the Prometheus datasource
- ready Management API endpoint that can be used to check Prometheus is ready to serve traffic (i.e. respond to queries)
- reload Management API endpoint that can be used to trigger a reload of the Prometheus configuration and rule files
- runtime_info Get Prometheus runtime information
- series Finds series by label matchers
- targets_metadata Returns metadata about metrics currently scraped by the target
- tsdb_stats Get usage and cardinality statistics from the TSDB
- wal_replay_status Get current WAL replay status
- clean_tombstones Removes the deleted data from disk and cleans up the existing tombstones
- delete_series deletes data for a selection of series in a time range
- snapshot creates a snapshot of all current data into snapshots/<datetime>-<rand> under the TSDB's data directory and returns the directory as response
Environment variables
PROMETHEUS_MCP_SERVER_PROMETHEUS_URL
Links
★ 46 GitHub stars