Back to Home
pab1it0 icon

prometheus-mcp-server

Verified Safe

by pab1it0

Overview

A Model Context Protocol (MCP) server that enables AI assistants to query and analyze Prometheus metrics for monitoring and insights.

Installation

Run Command
docker run -i --rm -e PROMETHEUS_URL="http://your-prometheus:9090" ghcr.io/pab1it0/prometheus-mcp-server:latest

Environment 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

Stats

Interest Score74
Security Score7
Cost ClassMedium
Avg Tokens1000
Stars340
Forks72
Last Update2026-01-10

Tags

PrometheusMetricsMonitoringAI IntegrationMCP