Observability AIops logo

Observability AIops

Governed MCP operations for Prometheus, Alertmanager, Grafana, and Loki, including RCA, bounded log queries, audits, and reversible writes.

Install Observability AIops

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "observability-aiops": {
      "command": "uvx",
      "args": [
        "observability-aiops"
      ],
      "env": {
        "OBSERVABILITY_AIOPS_MASTER_PASSWORD": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Observability AIops connects Prometheus, Alertmanager, Grafana, and Loki through one governed MCP server. It provides read tools for PromQL, targets, rules, alerts, dashboards, datasources, bounded LogQL queries, and cross-signal RCA analyses. Write tools can manage silences, annotations, dashboards, and Prometheus config reloads with audit records, dry runs, risk labels, and undo support where applicable. Reach for it when an agent needs operational access to a self-hosted observability stack without hiding the actions it takes.

Use cases

  • Query Prometheus metrics and investigate firing alerts
  • Analyze scrape failures and noisy alert patterns
  • Correlate Prometheus incidents with Loki log streams
  • Review Grafana resources and datasource health
  • Apply audited observability changes with undo records

Key features

  • PromQL queries and Prometheus health inspection
  • Alertmanager alerts and time-boxed silences
  • Grafana dashboard, datasource, and folder operations
  • Bounded Loki LogQL reads and log RCA
  • Audited, risk-labeled, dry-run-capable writes
  • Before-state capture and undo operations

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/23 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · observability-aiops (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Observability AIops works

What Observability AIops does

Observability AIops exposes a 39-tool MCP surface for self-hosted Prometheus, Alertmanager, Grafana, and Grafana Loki deployments. Its read operations cover PromQL instant and range queries, label and series metadata, scrape targets, dropped targets, rule health, alerts, silences, dashboards, datasources, folders, and Prometheus status. Loki access is limited to bounded log reads and analysis.

The server also includes operational analyses. It can connect firing alerts to their rule expressions, rank scrape failures, identify noisy or repeated alerts, detect Loki error bursts, summarize log volume and cardinality warnings, and correlate Prometheus alerts with Loki streams. These analyses expose the numbers behind their conclusions rather than presenting an opaque result.

Write operations cover creating and expiring Alertmanager silences, creating Grafana annotations, updating or deleting Grafana dashboards, and reloading Prometheus configuration. Reversible writes record the fetched before-state so an undo operation can be created.

How it works

Every MCP and CLI call passes through a governance harness. Calls are written to ~/.observability-aiops/audit.db with parameters, an outcome summary, status, duration, risk tier, and optional operator-supplied approval or rationale. The audit location can be changed with OBSERVABILITY_AIOPS_HOME.

Real writes require a committed pending audit row before the external platform is contacted. If audit storage is unavailable, the write stops. Reads and previews can continue with a warning. Tools expose descriptive none, confirm, or review risk labels; these labels appear in audit records but do not act as an approval policy or permission gate.

Write permissions remain controlled by the connected Prometheus, Alertmanager, or Grafana account. Loki is intentionally read-only. Log queries are bounded by lookback and line limits, and Loki targets can use basic or bearer authentication and optional X-Scope-OrgID tenancy headers.

Setup and configuration

Install the package with uv tool install observability-aiops or use pipx. Run observability-aiops init to select a platform target and store its token in encrypted configuration. observability-aiops doctor checks configuration, secrets, and connectivity.

Start the standalone stdio server with:

server.ts
export OBSERVABILITY_AIOPS_MASTER_PASSWORD=...
observability-aiops mcp

The master password supports non-interactive secret unlocking. An interactive prompt or short-lived secret-manager injection is safer than leaving it in shell history or exposing it to child processes.

Claude Code can install the bundled plugin from the AIops-tools marketplace. An OpenClaw plugin is also published through ClawHub; after installation, the OpenClaw gateway must be restarted. Both plugin paths use uv to fetch the MCP server. The CLI can also run convenience commands such as overview, PromQL queries, bounded error-log reads, and firing-alert RCA.

Tools and capabilities

  • Query Prometheus metrics, labels, metadata, targets, rules, alerts, configuration status, and TSDB status.
  • Inspect Alertmanager alerts and silences.
  • List and retrieve Grafana dashboards, datasources, datasource health, and folders.
  • Read Loki labels, label values, bounded LogQL ranges, and error tails.
  • Run alert, scrape-health, alert-noise, log-burst, log-volume, and alert-to-log analyses.
  • Create or expire silences, create annotations, update or delete dashboards, and reload Prometheus configuration.
  • Review audit rows and apply recorded undo operations.

Limitations and notes

The server is designed for self-hosted observability APIs rather than a vendor monitoring service. Loki has no write tools. The governance harness records and labels operations but does not decide whether a write is permitted; platform credentials and server-side permissions determine that outcome. Destructive dashboard deletion is marked high risk, while other writes use their declared risk tiers. Prometheus, Alertmanager, Grafana, and Loki endpoints must be configured as targets, with credentials appropriate to each platform.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Observability AIops

Observability AIops is an MCP server that connects agents to self-hosted Prometheus, Alertmanager, Grafana, and Loki. Its main tools query metrics and logs, inspect alerts and dashboards, run RCA analyses, and perform audited observability writes such as silences, annotations, dashboard changes, and Prometheus config reloads.

Install it with `uv tool install observability-aiops` or `pipx install observability-aiops`, then run `observability-aiops init` to configure platform targets and encrypted credentials. Start the stdio MCP process with `observability-aiops mcp` after supplying the master password for non-interactive secret unlocking.

Yes, Observability AIops provides a Claude Code plugin. Add the `AIops-tools/marketplace` marketplace and install `observability-aiops@aiops-tools`; the bundled plugin supplies the skill and MCP server, while credentials are configured separately with `observability-aiops init`.

Yes, it can update or delete Grafana dashboards and create annotations. These writes pass through the audit harness, support `dry_run`, carry descriptive risk labels, and capture the fetched before-state for reversible operations; permissions still come from the connected Grafana account.

No, Loki access is read-only. The server supports bounded LogQL reads, label enumeration, error-tail queries, log error-burst RCA, log-volume analysis, and alert-to-log correlation, but it provides no Loki write operations.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewObservability AIops AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/observability-aiops?style=directory)](https://allmcps.com/mcp/observability-aiops)
HTML Embed
<a href="https://allmcps.com/mcp/observability-aiops"><img src="https://allmcps.com/api/badge/observability-aiops?style=directory" alt="Observability AIops on AllMCPs" /></a>