Prometheus MCP Server
prometheus-mcp-server is an MCP server that exposes summarized service health signals derived from Prometheus metrics for LLM-based analysis.
Installation
npx prometheus-mcp-serverAsk AI about Prometheus MCP Server
Powered by Claude ยท Grounded in docs
I know everything about Prometheus MCP Server. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
Prometheus MCP Server
Claude๋ Gemini ๊ฐ์ AI ๋ชจ๋ธ์ด Prometheus์ ์ ์ํ์ฌ ๋ฉํธ๋ฆญ์ ์กฐํํ๊ณ ๋ถ์ํ ์ ์๊ฒ ํด์ฃผ๋ MCP(Model Context Protocol) ์๋ฒ์ ๋๋ค.
๊ธฐ๋ฅ
- ํฌ์ค ์ฒดํฌ: ์๋ฒ ๋ฐ ํ๋ก๋ฉํ ์ฐ์ค ์ฐ๊ฒฐ ์ํ ํ์ธ
- ์ฟผ๋ฆฌ ์คํ: PromQL ์ฟผ๋ฆฌ ์คํ (Instant & Range)
- ๋ฉํธ๋ฆญ ํ์: ์ฌ์ฉ ๊ฐ๋ฅํ ๋ฉํธ๋ฆญ ๋ชฉ๋ก ๋ฐ ๋ฉํ๋ฐ์ดํฐ ์กฐํ
- ๊ด๋ฆฌ ๊ธฐ๋ฅ: ํ์ฑ ํ๊ฒ, ๊ฒฝ๊ณ (Alert), ์ค์ ํ์ธ
์ค์น ๋ฐ ์คํ
ํ์ ์๊ตฌ์ฌํญ
- Go 1.23+ (๋ก์ปฌ ๋น๋ ์)
- Docker (๋์ปค ์คํ ์)
- ์คํ ์ค์ธ Prometheus ์๋ฒ (์ฐ๊ฒฐ ๋์)
1. ๋ก์ปฌ์์ ์คํํ๊ธฐ
-
๋น๋
make buildprometheus-mcp.exeํ์ผ์ด ์์ฑ๋ฉ๋๋ค. -
MCP ์ค์ (
mcp_config.json){ "mcpServers": { "prometheus-mcp": { "command": "c:\\๊ฒฝ๋ก\\prometheus-mcp.exe", "args": [], "env": { "PROMETHEUS_URL": "http://localhost:9090" } } } }
2. Docker๋ก ์คํํ๊ธฐ
GitHub Container Registry(GHCR)์์ ์ต์ ์ด๋ฏธ์ง๋ฅผ ๋ฐ์ ์คํํ ์ ์์ต๋๋ค.
MCP ์ค์ (mcp_config.json)
{
"mcpServers": {
"prometheus-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "PROMETHEUS_URL=http://host.docker.internal:9090",
"ghcr.io/polyglot-k/prometheus-mcp-server:latest"
]
}
}
}
์ฐธ๊ณ : ์ง์ ๋น๋ํ๋ ค๋ฉด
make docker-build๋ฅผ ์คํํ์ธ์.
๋ฌธ์ (Documentation)
๋ ์์ธํ ์ฌ์ฉ๋ฒ๊ณผ ์ค์ ๋ฐฉ๋ฒ์ ์๋ ๋ฌธ์๋ฅผ ์ฐธ๊ณ ํ์ธ์.
- ๐จ ๋๊ตฌ ์์ธ ์ฌ์ฉ๋ฒ (Query, Admin ๋ฑ)
- โ๏ธ ํด๋ผ์ด์ธํธ๋ณ ์ค์ ๊ฐ์ด๋ (Claude Desktop, VSCode ๋ฑ)
์์ ํ๊ฒฝ ์คํ
ํ๋ก๋ฉํ
์ฐ์ค ์๋ฒ๊ฐ ์๋ค๋ฉด example ํด๋๋ฅผ ์ฌ์ฉํ์ฌ ํ
์คํธ ํ๊ฒฝ์ ๋์ธ ์ ์์ต๋๋ค.
cd example
docker-compose up -d
- Prometheus: http://localhost:9090
- Node Exporter: http://localhost:9100
