
Observability AIops
io.github.AIops-toolsPublished by GitHub account AIops-toolsv0.13.0Updated Oct 30, 2026
Governed Prometheus + Grafana ops: PromQL, alerts, dashboards, RCA; 39 tools.
Overview
Governed MCP server for self-hosted Prometheus, Alertmanager, Grafana and Loki: queries, alerts, dashboards, RCA analyses and audited writes.
- What you can do
- Run PromQL instant and range queries, list label values and series metadata, and inspect scrape targets, dropped targets, rules and Prometheus status.
- Read firing and pending alerts, Alertmanager's routed alerts and silences, and Grafana dashboards, datasources, health and folders.
- Read bounded LogQL logs from Loki, including label enumeration and an error tail.
- Run heuristic analyses: firing-alert RCA, scrape-health ranking, alert noise/flap detection, log error-burst and volume analysis, and alert-to-log correlation.
- Perform governed writes: create or expire silences, create annotations, update or delete dashboards, reload Prometheus config, and list or apply undo records.
- When to use it
- Useful for SRE or on-call work on a self-hosted Prometheus/Grafana stack, where an assistant should answer repeated operational questions, correlate alerts with logs, and make small audited changes such as silences or dashboard edits. Not intended for hosted SaaS monitoring suites.
- Requirements
- Runs locally over stdio as the PyPI package observability-aiops (uv or pipx). Needs reachable Prometheus, Alertmanager, Grafana and optionally Loki endpoints with per-target credentials, configured via the observability-aiops init wizard. Non-interactive MCP startup needs OBSERVABILITY_AIOPS_MASTER_PASSWORD to unlock stored secrets; audit data lives in ~/.observability-aiops/audit.db, relocatable via OBSERVABILITY_AIOPS_HOME.
Installation
In SourceWeft
- Open Observability AIops in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
Observability AIops
Audit availability: Real writes require a committed
pendingaudit row and stop before contacting the platform if storage is unavailable. Reads and previews may continue with a warning; new audit rows store outcome summaries rather than full responses.
Disclaimer: Community-maintained open-source project. Not affiliated with, endorsed by, or sponsored by the Prometheus or Grafana projects, Grafana Labs, or the Cloud Native Computing Foundation. Prometheus, Alertmanager and Grafana are trademarks of their respective owners. MIT licensed.
Governed AI-ops for a self-hosted observability stack in one server —
Prometheus (HTTP API, PromQL, targets, rules, alerts), Alertmanager
(alerts + silences), Grafana (dashboards, datasources, folders), and
Grafana Loki (bounded LogQL log reads + log RCA) — with a built-in
governance harness: unified audit log, token/runaway budget
guard, undo-token recording, and descriptive risk-tier labels. One config can
span your whole stack; each target names its own platform.
Beyond the mock test suite, the Prometheus/Alertmanager/Grafana reads, the RCAs,
and the governed silence + dashboard write paths (with undo) have been exercised against a live Prometheus 3.x + Alertmanager + Grafana 13 stack — see
docs/VERIFICATION.md.
This is the self-hosted-observability complement to enterprise monitoring suites: it speaks the open Prometheus/Grafana APIs an SRE actually runs, not a vendor NMS.
What it does
Answers the questions an SRE actually repeats over a Prometheus/Grafana stack, and guards the writes that follow:
- PromQL + metadata — instant and range queries, label-value enumeration, and series metadata, all read-only and result-capped.
- Scrape-target & rule health — which targets are up/down (and why, from
lastError), which were dropped by relabeling, and which recording/alerting rules are erroring. - Alerts & silences — firing/pending Prometheus rule alerts, Alertmanager's post-routing view, and its silences.
- Grafana — dashboards, datasources (+ health), and folders.
- Loki logs — bounded LogQL reads (label + label-value enumeration, a
validation-gated
query_range, and a canned error-tail), all read-only with a hard lookback + line cap, optional multi-tenantX-Scope-OrgID, and basic/bearer auth per target. - Flagship analyses — transparent heuristics that show their numbers:
firing_alert_rca(join each firing alert to its rule expr → cause + action),target_scrape_health_analysis(rank down/erroring scrapes → likely cause),alert_noise_and_flap_analysis(frequently-repeated / duplicate alerts → dedup/rollup recommendation), plus two log analyses —log_error_burst_rca(per-stream error burst vs baseline → new-signature / volume-spike / single-instance / no-baseline) andlog_volume_analysis(top streams + high-cardinality label warnings + retention hint) — andalert_log_context, which correlates a firing Prometheus alert to its Loki streams. - Governed writes — create/expire Alertmanager silences (time-boxed), create
Grafana annotations, update/delete dashboards, and hot-reload the Prometheus
config — each audited, risk-tiered,
dry_run-able, and the reversible ones capture the real fetched before-state for undo.
What this tool does, and does not, decide
It delivers Prometheus + Grafana operations — reads and writes — accurately and efficiently, and records every one of them. It does not decide whether a write is allowed to happen. That is the agent's judgement, or the permission of the account you connect it with: give it a Grafana token with only Viewer scope, and a Prometheus/Alertmanager reached without the admin/write API, and the writes fail at the server — the place that actually owns the permission.
So there is no read-only switch, no policy file, no approval gate to configure. The one thing the
tool guarantees is that nothing is silent: every call, over MCP and over the CLI alike, lands
an audit row in ~/.observability-aiops/audit.db, and destructive writes still capture their
before-state and record an inverse where one exists.
Each tool declares a
risk_level, carried into the audit row as a descriptive tier (none/confirm/review) — so a reviewer can see at a glance that a row was a high-risk delete. It is a label, not a gate.
Capability matrix (39 MCP tools)
Loki is read-only — Loki exposes no safe operational write surface (no silence/annotation analogue), so this tool deliberately ships no Loki writes.
The CLI exposes a convenience subset (query, logs, alert, overview, …);
the full 39-tool surface is via the MCP server.
Quick start
As a Claude Code plugin
One install gives an agent both the skill and the MCP server:
The MCP server is fetched with uv and pinned to the
package version this plugin declares, so an audit row can be traced back to the
code that wrote it. Credentials are still configured with observability-aiops init — see below.
As an OpenClaw plugin
The same bundle is published on ClawHub, where one install delivers the skill and its MCP server together:
Restart the OpenClaw gateway afterwards so it loads the plugin. The MCP server is
fetched with uv, pinned to this exact release, so
uvx has to be on PATH — without it the skill still installs but reports
Visible to model: no. Credentials are configured exactly as below.
As a CLI or standalone MCP server
Run as an MCP server (stdio):
Where that password then lives: an exported variable is readable by every process this shell starts and is recorded by shell history. On a shared or long-lived host, prefer the interactive prompt, or inject it from a secret manager for the life of the one command that needs it.
Governance
Every MCP tool passes through the bundled @governed_tool harness:
- Audit — every call (params, outcome summary, status, duration, risk tier, and any operator-supplied
approver/rationale) is logged to
~/.observability-aiops/audit.db(relocatable viaOBSERVABILITY_AIOPS_HOME). The CLI writes the same row the MCP path does — there is no unaudited entry point. - Runaway guard — a safety backstop, not an authorization gate: the same call hammered in a
tight loop trips a circuit breaker. Disable with
OBSERVABILITY_RUNAWAY_MAX=0; optional hard ceilings viaOBSERVABILITY_MAX_TOOL_CALLS/OBSERVABILITY_MAX_TOOL_SECONDS. - Undo recording — reversible writes record an inverse descriptor built from the fetched
before-state (
create_silence→expire,update_dashboard/delete_dashboard→restore the captured prior model). - Risk tier — a descriptive label on the audit row derived from
risk_level; it gates nothing.
Supported scope & limitations
- Platforms: Prometheus HTTP API (+ a companion Alertmanager), Grafana HTTP API, and Grafana Loki HTTP API (read-only). Hosted/SaaS monitoring suites (Datadog, New Relic, enterprise NMS) are deliberately out of scope for this tool.
- Verification. The mock suite covers all four platforms; in addition the
Prometheus, Alertmanager and Grafana surfaces have been exercised against a live Prometheus 3.x + Alertmanager + Grafana 13 stack (RCAs, the
silence and dashboard governed writes, and undo replay). The Loki surface
has not yet been exercised live. All four are free and open-source and trivial
to stand up in a lab (
docker run prom/prometheus,grafana/grafana,grafana/loki), soobservability-aiops doctoris the fastest live check (Prometheus/api/v1/status/buildinfo, Grafana/api/health, Loki/ready+/loki/api/v1/status/buildinfo). Seedocs/VERIFICATION.md.
Missing a capability?
Want another read, an analysis tuned, or a platform capability that isn't here? Open an issue or a PR — feedback and contributions are welcome.
Source: README.md at commit d2b57e9
Tools
0Version history
5- v0.13.0LatestOct 30, 2026
- v0.12.0Oct 15, 2026
- v0.11.0Oct 15, 2026
- v0.10.4Sep 17, 2026
- v0.10.3Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts