Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
PROMETHEUS_URL=<value> PROMETHEUS_URL_SSL_VERIFY=<value> PROMETHEUS_DISABLE_LINKS=<value> PROMETHEUS_USERNAME=<value> PROMETHEUS_PASSWORD=<secret> PROMETHEUS_TOKEN=<secret> ORG_ID=<value> PROMETHEUS_CLIENT_CERT=<value> PROMETHEUS_CLIENT_KEY=<value> PROMETHEUS_MCP_SERVER_TRANSPORT=<value> PROMETHEUS_MCP_BIND_HOST=<value> PROMETHEUS_MCP_BIND_PORT=<value> PROMETHEUS_MCP_STATELESS_HTTP=<value> PROMETHEUS_CUSTOM_HEADERS=<value> claude mcp add pab1it0-prometheus-mcp-server -- docker run -i --rm ghcr.io/pab1it0/prometheus-mcp-server:1.6.2รันในเทอร์มินัล
{ "mcpServers": { "pab1it0-prometheus-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/pab1it0/prometheus-mcp-server:1.6.2" ], "env": { "PROMETHEUS_URL": "<value>", "PROMETHEUS_URL_SSL_VERIFY": "<value>", "PROMETHEUS_DISABLE_LINKS": "<value>", "PROMETHEUS_USERNAME": "<value>", "PROMETHEUS_PASSWORD": "<secret>", "PROMETHEUS_TOKEN": "<secret>", "ORG_ID": "<value>", "PROMETHEUS_CLIENT_CERT": "<value>", "PROMETHEUS_CLIENT_KEY": "<value>", "PROMETHEUS_MCP_SERVER_TRANSPORT": "<value>", "PROMETHEUS_MCP_BIND_HOST": "<value>", "PROMETHEUS_MCP_BIND_PORT": "<value>", "PROMETHEUS_MCP_STATELESS_HTTP": "<value>", "PROMETHEUS_CUSTOM_HEADERS": "<value>" } } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดGive AI assistants the power to query your Prometheus metrics.
A Model Context Protocol (MCP) server that provides access to your Prometheus metrics and queries through standardized MCP interfaces, allowing AI assistants to execute PromQL queries and analyze your metrics data.
Add to your Claude Desktop configuration:
{
"mcpServers": {
"prometheus": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
],
"env": {
"PROMETHEUS_URL": "<your-prometheus-url>"
}
}
}
}
Install via the Claude Code CLI:
claude mcp add prometheus --env PROMETHEUS_URL=http://your-prometheus:9090 -- docker run -i --rm -e PROMETHEUS_URL ghcr.io/pab1it0/prometheus-mcp-server:latest
Add to your MCP settings in the respective IDE:
{
"prometheus": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
],
"env": {
"PROMETHEUS_URL": "<your-prometheus-url>"
}
}
}
The easiest way to run the Prometheus MCP server is through Docker Desktop:
Via MCP Catalog: Visit the Prometheus MCP Server on Docker Hub and click the button above
Via MCP Toolkit: Use Docker Desktop's MCP Toolkit extension to discover and install the server
Configure your connection using environment variables (see Configuration Options below)
Run directly with Docker:
# With environment variables
docker run -i --rm \
-e PROMETHEUS_URL="http://your-prometheus:9090" \
ghcr.io/pab1it0/prometheus-mcp-server:latest
# With authentication
docker run -i --rm \
-e PROMETHEUS_URL="http://your-prometheus:9090" \
-e PROMETHEUS_USERNAME="admin" \
-e PROMETHEUS_PASSWORD="password" \
ghcr.io/pab1it0/prometheus-mcp-server:latest
Deploy to Kubernetes using the Helm chart from the OCI registry:
helm install prometheus-mcp-server \
oci://ghcr.io/pab1it0/charts/prometheus-mcp-server \
--version 1.1.1 \
--set prometheus.url="http://prometheus:9090"
With authentication:
helm install prometheus-mcp-server \
oci://ghcr.io/pab1it0/charts/prometheus-mcp-server \
--version 1.1.1 \
--set prometheus.url="http://prometheus:9090" \
--set auth.username="admin" \
--set auth.password="secret"
With a custom values file:
helm install prometheus-mcp-server \
oci://ghcr.io/pab1it0/charts/prometheus-mcp-server \
--version 1.1.1 \
-f values.yaml
See the chart values for all available configuration options.
The list of tools is configurable, so you can choose which tools you want to make available to the MCP client. This is useful if you don't use certain functionality or if you don't want to take up too much of the context window.
Contributions are welcome! Please see our Contributing Guide for detailed information on how to get started, coding standards, and the pull request process.
This project uses uv to manage dependencies. Install uv following the instructions for your platform:
curl -LsSf https://astral.sh/uv/install.sh | sh
You can then create a virtual environment and install the dependencies with:
uv venv
source .venv/bin/activate # On Unix/macOS
.venv\Scripts\activate # On Windows
uv pip install -e .
The project includes a comprehensive test suite that ensures functionality and helps prevent regressions.
Run the tests with pytest:
# Install development dependencies
uv pip install -e ".[dev]"
# Run the tests
pytest
# Run with coverage report
pytest --cov=src --cov-report=term-missing
When adding new features, please also add corresponding tests.
MIT
A Model Context Protocol (MCP) server that enables AI agents and LLMs to query and analyze Prometheus metrics through standardized interfaces.
{ "mcpServers": { "pab1it0-prometheus-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/pab1it0/prometheus-mcp-server:1.6.2" ], "env": { "PROMETHEUS_URL": "<value>", "PROMETHEUS_URL_SSL_VERIFY": "<value>", "PROMETHEUS_DISABLE_LINKS": "<value>", "PROMETHEUS_USERNAME": "<value>", "PROMETHEUS_PASSWORD": "<secret>", "PROMETHEUS_TOKEN": "<secret>", "ORG_ID": "<value>", "PROMETHEUS_CLIENT_CERT": "<value>", "PROMETHEUS_CLIENT_KEY": "<value>", "PROMETHEUS_MCP_SERVER_TRANSPORT": "<value>", "PROMETHEUS_MCP_BIND_HOST": "<value>", "PROMETHEUS_MCP_BIND_PORT": "<value>", "PROMETHEUS_MCP_STATELESS_HTTP": "<value>", "PROMETHEUS_CUSTOM_HEADERS": "<value>" } } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ผู้เผยแพร่ระบุตัวแปรสภาพแวดล้อมเหล่านี้: PROMETHEUS_URL, PROMETHEUS_URL_SSL_VERIFY, PROMETHEUS_DISABLE_LINKS, PROMETHEUS_USERNAME, PROMETHEUS_PASSWORD, PROMETHEUS_TOKEN, ORG_ID, PROMETHEUS_CLIENT_CERT, PROMETHEUS_CLIENT_KEY, PROMETHEUS_MCP_SERVER_TRANSPORT, PROMETHEUS_MCP_BIND_HOST, PROMETHEUS_MCP_BIND_PORT, PROMETHEUS_MCP_STATELESS_HTTP, PROMETHEUS_CUSTOM_HEADERS
Prometheus ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-10-27 A Model Context Protocol (MCP) server that enables AI agents and LLMs to query and analyze Prometheus metrics through standardized interfaces.