analytics
Prometheus MCP Gateway for AI Agents
Expose Prometheus tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.
7 functions 7 read 0 write API token auth
Prometheus MCP Gateway
Expose Prometheus to MCP clients with `kosmokrator mcp:serve --integration=prometheus`.
If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash kosmokrator mcp:gateway:install --integration=prometheus --write=deny --json {
"mcpServers": {
"kosmokrator-prometheus": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=prometheus",
"--write=deny"
]
}
}
} Serve Manually
kosmokrator mcp:serve --integration=prometheus --write=deny MCP Tool Names
KosmoKrator exposes integration tools through the gateway with stable names:
| MCP tool | Source function | Type |
|---|---|---|
integration__prometheus__prometheus_list_alerts | prometheus.prometheus_list_alerts | Read read |
integration__prometheus__prometheus_get_alert | prometheus.prometheus_get_alert | Read read |
integration__prometheus__prometheus_list_rules | prometheus.prometheus_list_rules | Read read |
integration__prometheus__prometheus_get_rule | prometheus.prometheus_get_rule | Read read |
integration__prometheus__prometheus_list_targets | prometheus.prometheus_list_targets | Read read |
integration__prometheus__prometheus_get_target | prometheus.prometheus_get_target | Read read |
integration__prometheus__prometheus_get_current_user | prometheus.prometheus_get_current_user | Read read |
Write Access
Start with --write=deny for read-only MCP clients. Use --write=ask or
--write=allow only when the client and workspace are trusted.