Prometheus MCP Server
A Go-based MCP server that exposes Prometheus query capabilities via the Model Context Protocol.
Installation
go install github.com/yshngg/prometheus-mcp-server@latestOr pull the Docker image:
docker pull ghcr.io/yshngg/prometheus-mcp-server:latestUsage
prometheus-mcp-server --prom-addr="http://localhost:9090"Flags
| Flag | Default | Description |
|---|---|---|
-prom-addr |
http://localhost:9090 |
Prometheus server URL |
-mcp-addr |
localhost:8080 |
MCP server listen address |
-transport |
stdio |
stdio or http |
-auth-token |
`` | Bearer token for MCP endpoint authentication (optional) |
-version |
Print version |
Environment Variables
All flags can be set via environment variables: PROM_ADDR, MCP_ADDR, TRANSPORT, AUTH_TOKEN.
MCP Client Configuration
Add the following config to your MCP client:
{
"mcpServers": {
"prometheus": {
"command": "prometheus-mcp-server",
"args": ["--prom-addr", "http://localhost:9090"]
}
}
}Заметка
Install the binary via
go install github.com/yshngg/prometheus-mcp-server@latestor pull the Docker image withdocker pull ghcr.io/yshngg/prometheus-mcp-server:latest.






