接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
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 還是本機指令? 兩種安裝方式的差異
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>" } } }}工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 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.