Back to Home
brenoepics icon

prometheus-mcp

Verified Safe

by 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

Run Command
docker run --rm -it brenoepics/prometheus-mcp:latest --mcp --prometheus-url http://host.docker.internal:9090

Environment 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

Stats

Interest Score41
Security Score9
Cost ClassMedium
Avg Tokens750
Stars12
Forks0
Last Update2025-12-02

Tags

PrometheusMCPCLIMetricsObservabilityRust