Skip to main content
Glama
prometheus

prometheus-mcp-server

Official
by prometheus

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PROMETHEUS_MCP_SERVER_HELPNoShow context-sensitive help (also try --help-long and --help-man).false
PROMETHEUS_MCP_SERVER_VERSIONNoShow application version.false
PROMETHEUS_MCP_SERVER_LOG_FILENoThe name of the file to log to (file rotation policies should be configured with external tools like logrotate)
PROMETHEUS_MCP_SERVER_LOG_LEVELNoOnly log messages with the given severity or above. One of: [debug, info, warn, error]info
PROMETHEUS_MCP_SERVER_MCP_TOOLSNoList of mcp tools to load. The target `all` can be used to load all tools. The target `core` loads only the core tools: docs_list,docs_read,docs_search,runbooks_list,runbooks_read,query,range_query,metric_metadata,label_names,label_values,series. Otherwise, it is treated as an allow-list of tools to load, in addition to the core tools. Please see project README for more information and the full list of tools.all
PROMETHEUS_MCP_SERVER_LOG_FORMATNoOutput format of log messages. One of: [logfmt, json]logfmt
PROMETHEUS_MCP_SERVER_HTTP_CONFIGNoPath to config file to set Prometheus HTTP client options
PROMETHEUS_MCP_SERVER_MCP_TRANSPORTNoThe type of transport to use for the MCP server [`stdio`, `http`].stdio
PROMETHEUS_MCP_SERVER_PROMETHEUS_URLNoURL of the Prometheus instance to connect tohttp://127.0.0.1:9090
PROMETHEUS_MCP_SERVER_WEB_CONFIG_FILENoPath to configuration file that can enable TLS or authentication. See: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md
PROMETHEUS_MCP_SERVER_DOCS_AUTO_UPDATENoEnable automatic documentation updates from the official prometheus/docs repository. Checks every 24h0m0s.false
PROMETHEUS_MCP_SERVER_WEB_MAX_REQUESTSNoMaximum number of parallel scrape requests. Use 0 to disable.40
PROMETHEUS_MCP_SERVER_PROMETHEUS_BACKENDNoCustomize the toolset for a specific Prometheus API compatible backend. Supported backends include: prometheus,thanosprometheus
PROMETHEUS_MCP_SERVER_PROMETHEUS_TIMEOUTNoTimeout for API calls to the Prometheus backend1m
PROMETHEUS_MCP_SERVER_WEB_LISTEN_ADDRESSNoAddresses on which to expose metrics and web interface. Repeatable for multiple addresses. Examples: `:9100` or `[::1]:9100` for http, `vsock://:9100` for vsock:8080
PROMETHEUS_MCP_SERVER_WEB_SYSTEMD_SOCKETNoUse systemd socket activation listeners instead of port listeners (Linux only).false
PROMETHEUS_MCP_SERVER_WEB_TELEMETRY_PATHNoPath under which to expose metrics./metrics
PROMETHEUS_MCP_SERVER_MCP_ENABLE_TOON_OUTPUTNoEnable Token-Oriented Object Notation (TOON) output for tools instead of JSONfalse
PROMETHEUS_MCP_SERVER_MCP_ENABLE_CLIENT_LOGGINGNoEnable sending log messages to connected MCP clients as protocol notifications. When enabled, tool execution logs are sent both to the server's primary log output and to the MCP client, allowing LLMs to observe server activity.false
PROMETHEUS_MCP_SERVER_PROMETHEUS_TRUNCATION_LIMITNoIf enabled, this controls the maximum query response size in number of lines/entries provided to the LLM from the API response. LLMs can override truncation limits if needed on a per-tool-call basis via tool request arguments on supported tools. To disable truncation limits, set to 0.0
PROMETHEUS_MCP_SERVER_DANGEROUS_ENABLE_TSDB_ADMIN_TOOLSNoEnable and allow using tools that access Prometheus' TSDB Admin API endpoints (`snapshot`, `delete_series`, and `clean_tombstones` tools). This is dangerous, and allows for destructive operations like deleting data. It is not the fault of this MCP server if the LLM you're connected to nukes all your data. Docs: https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apisfalse

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prometheus/prometheus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server