Prometheus MCP Server
PromQL queries, metric and target discovery against a Prometheus server.
By defaultRead-only
With our presetSame: read-only is built in
Labels are provisional (from the project README/docs, checked Oct 27, 2026). Not yet tested in our sandbox.
Read-only switch
Query and discovery tools only.
Preset
Read-onlyThe docs say it only reads, so there's no flag to add. Not sandbox-tested yet.
- Matched by name only. Prometheus MCP Server is documented as read-only, but a fork or another server with the same name might not be. So Codex still prompts and Claude Code asks.
Claude Code
.mcp.json
{
"mcpServers": {
"prometheus": {
"command": "docker",
"args": [
"run", "-i", "--rm", "-e", "PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
],
"env": {
"PROMETHEUS_URL": "http://your-prometheus:9090"
}
}
}
}.claude/settings.json
{
"permissions": {
"ask": ["mcp__prometheus"]
}
}ask makes Claude Code prompt before every tool from this server.
Codex
~/.codex/config.toml
# Generated by redpresets.dev on 2026-11-03. Unverified preset. Also use a read-only credential. Not a security guarantee.
[mcp_servers.prometheus]
command = "docker"
args = ["run", "-i", "--rm", "-e", "PROMETHEUS_URL", "ghcr.io/pab1it0/prometheus-mcp-server:latest"]
default_tools_approval_mode = "prompt"
[mcp_servers.prometheus.env]
PROMETHEUS_URL = "http://your-prometheus:9090"default_tools_approval_mode = "prompt" asks before every tool call.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"prometheus": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm", "-e", "PROMETHEUS_URL",
"ghcr.io/pab1it0/prometheus-mcp-server:latest"
],
"env": {
"PROMETHEUS_URL": "http://your-prometheus:9090"
}
}
}
}Don't add write tools to mcpAllowlist in .cursor/permissions.json. Leave them on approval. Cursor's docs say the allowlist is not a security boundary.
Credential layer
Point it at a Prometheus endpoint without admin APIs enabled.
Facts
- Vendor
- pab1it0 (community)
- License
- MIT
- GitHub stars
- 520
- Latest release
- v1.6.2 (Aug 3, 2026)
- Last push
- Oct 27, 2026
- Status
- Active
- Last checked
- Oct 27, 2026
Sources
- README · checked Oct 27, 2026
Spotted something wrong? Labels change when vendors change. Suggest a correction