prometheus-mcp-server
Verified Safeby pab1it0
Overview
A Model Context Protocol (MCP) server that enables AI assistants to query and analyze Prometheus metrics for monitoring and insights.
Installation
docker run -i --rm -e PROMETHEUS_URL="http://your-prometheus:9090" ghcr.io/pab1it0/prometheus-mcp-server:latestEnvironment Variables
- PROMETHEUS_URL
- PROMETHEUS_URL_SSL_VERIFY
- PROMETHEUS_DISABLE_LINKS
- PROMETHEUS_USERNAME
- PROMETHEUS_PASSWORD
- PROMETHEUS_TOKEN
- ORG_ID
- PROMETHEUS_MCP_SERVER_TRANSPORT
- PROMETHEUS_MCP_BIND_HOST
- PROMETHEUS_MCP_BIND_PORT
- PROMETHEUS_CUSTOM_HEADERS
- TOOL_PREFIX
Security Notes
The server's core function involves making HTTP requests to a user-defined Prometheus URL (`PROMETHEUS_URL`). If `PROMETHEUS_URL` points to an untrusted or internal network location, it could potentially be exploited for Server-Side Request Forgery (SSRF). The `PROMETHEUS_URL_SSL_VERIFY` option allows disabling SSL verification, which is insecure and explicitly warned against in the logs. Authentication credentials (username/password, bearer token) are passed via environment variables, which is standard for containerized applications but requires secure environment management. The `PROMETHEUS_CUSTOM_HEADERS` option allows arbitrary headers as a JSON string; while `json.loads` is generally safe, this could be a point of concern if not handled carefully in specific deployment scenarios. The Docker image runs as a non-root user (`app`), which is a good security practice.
Similar Servers
last9-mcp-server
A backend HTTP server likely used as a control plane or for data collection/processing within an observability or monitoring system.
lex
Provides a UK legal research API for AI agents, offering capabilities to search legislation, caselaw, amendments, and explanatory notes using semantic and keyword search, and includes a Micro-Copilot (MCP) server for integration with AI assistants.
prometheus-mcp
A Model Context Protocol (MCP) server that enables AI agents and CLI users to query and discover metrics from Prometheus, with built-in features like retries, caching, and an optional metrics exporter.
grafana-ui-mcp-server
This server provides AI assistants with comprehensive access to Grafana UI components, documentation, stories, design system tokens, and dependency analysis to aid in building observability interfaces, dashboards, and data visualization components.