prometheus-mcp
Verified Safeby brenoepics
Overview
Provides a Model Context Protocol (MCP) server and CLI tools to query Prometheus, offering features like retries, caching, and an optional metrics exporter.
Installation
docker run --rm -it brenoepics/prometheus-mcp:latest --mcp --prometheus-url http://host.docker.internal:9090Environment Variables
- PROMETHEUS_URL
- PROMETHEUS_TIMEOUT
- PROMETHEUS_RETRIES
- PROMETHEUS_RETRY_BACKOFF_MS
- PROMETHEUS_MIN_INTERVAL_MS
- PROMETHEUS_CACHE_TTL_SECS
- PROMETHEUS_USERNAME
- PROMETHEUS_PASSWORD
Security Notes
The server implements robust API interaction with Prometheus, including retries and configurable timeouts. Basic authentication is supported via environment variables or CLI flags, preventing hardcoded credentials. It explicitly states it does not provide its own authentication and recommends running on localhost or securely managed environments. Debug logs to `/tmp/mcp.jsonl` could contain sensitive query data, requiring careful handling in production. No 'eval' or direct arbitrary code execution from user input was found.
Similar Servers
mcpm.sh
This server provides a command-line interface to manage Model Context Protocol (MCP) servers, allowing users to discover, install, configure, run, share, and monitor them.
mcp-k8s
A Kubernetes MCP (Model Control Protocol) server that enables natural language interaction with Kubernetes clusters and Helm for resource and release management.
k8s-mcp-server
Provides a standardized interface (MCP) for interacting with Kubernetes clusters and managing Helm releases.
mcp-use-cli
An interactive command-line interface (CLI) tool for connecting to and interacting with Model Context Protocol (MCP) servers using natural language, acting as an AI client that orchestrates LLM responses with external tools.