sre-toolkit-mcp
Allows running PromQL queries against a Prometheus instance to retrieve metrics, which can then be used in reliability calculations like error budgets and burn rates.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sre-toolkit-mcpCheck error budget for checkout service"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
sre-toolkit-mcp
An MCP server that gives LLM agents correct SRE reliability math instead of letting them eyeball it.
Language models are confident but bad at arithmetic, and reliability decisions are exactly where a confident wrong number is expensive. This server exposes deterministic, unit-tested tools for the calculations that actually gate a deploy — error budgets, burn rate, blast radius, and composite SLOs — so an agent asks a tool and gets an auditable verdict.
The design bias throughout is verification over autonomy: any change with real blast radius returns a confirmation gate rather than a green light.
Tools
Tool | What it answers |
| Given an SLO and traffic, how much budget is left and is it safe to ship? |
| How fast is the current error rate spending the budget, and does it warrant paging? |
| Does this change touch too much of the fleet to run without human approval? |
| What end-to-end availability do these dependent services actually deliver? |
| Run a PromQL query and get the real numbers instead of typing them in. |
| Search logs with LogQL over a time window. |
| What's already firing, before proposing a change or paging. |
| Emit Prometheus recording rules for an SLI error ratio, ready to commit. |
| Emit the standard multiwindow multi-burn-rate Prometheus alerts, ready to commit. |
burn_rate severities follow the multiwindow burn-rate guidance from the Google SRE Workbook: pass a short_window_error_rate alongside the primary rate and it only pages when both windows agree, which suppresses false pages from a short-lived spike. blast_radius applies a stricter fraction ceiling in prod than in lower environments and flips to a confirmation gate above it.
The observability tools turn the math from "type in your error count" into "compute the budget from the actual SLI" — an agent can call prometheus_query for a live error rate and feed it straight into error_budget or burn_rate. Each backend's URL is configurable via an env var, defaulting to a home-lab setup:
Tool | Env var | Default |
|
|
|
|
|
|
|
|
|
Beyond verdicts, the server also generates policy: slo_recording_rules and generate_burn_alerts turn an SLO target into the actual Prometheus rule YAML a team commits — the standard four-tier fast/slow burn page+ticket alerts from the Google SRE Workbook, wired to the recording rules by metric name so the pair stays consistent. Run slo_recording_rules first, then generate_burn_alerts with the same service name.
Related MCP server: P12 SRE Ops MCP Server
Install
git clone https://github.com/arpothireddy/sre-toolkit-mcp.git
cd sre-toolkit-mcp
pip install -e .Run
sre-toolkit-mcp # starts the MCP server over stdioUse it from Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"sre-toolkit": {
"command": "sre-toolkit-mcp"
}
}
}Then ask things like "We're at 99.9% on the checkout service with 3M requests this month and 4,200 errors — are we clear to ship?" and the agent will call error_budget and reason from the real number.
Example
from sre_toolkit_mcp import blast_radius
verdict = blast_radius(targeted=30, fleet_total=100, environment="prod")
print(verdict.severity) # "blocked"
print(verdict.requires_confirmation) # TrueDevelop
pip install -e ".[dev]"
pytestLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Deterministic runtime safety for AI agents: scan PII, gate tool actions, verify LLM output.
Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.
LLM Observability & Orchestration Agent
Precision math engine for AI agents. 203 exact methods. Zero hallucination.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI agents to query Prometheus metrics and Loki logs for intelligent alert investigation and troubleshooting. Provides service discovery, metric querying, log searching, and correlation tools to help identify root causes of issues.9-
- FlicenseNot gradedqualityDmaintenanceEnables SRE operations through natural language, providing tools to query SLO status, fetch runbooks, query alerts, and manage incidents with audit logging and latency tracking.-
- AlicenseAqualityBmaintenanceLets AI agents query, manage, and operate their LLM observability data directly from the conversation. Provides 87 tools for cost analysis, alerting, anomaly detection, and runtime control gates.87209 npmMIT
- AlicenseNot gradedqualityAmaintenanceProvides exact, deterministic tools for math, dates, units, validation, and more to AI agents, returning precise answers with explicit assumptions and warnings instead of model guesses.MIT