# Observability AIops [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/AIops-tools/Observability-AIops  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/observability-aiops

## Description
Governed Prometheus + Grafana ops: PromQL, alerts, dashboards, RCA; 30 tools.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "observability-aiops": {
    "command": "uvx",
    "args": ["observability-aiops"],
    "env": {
      "OBSERVABILITY_AIOPS_MASTER_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `OBSERVABILITY_AIOPS_MASTER_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/observability-aiops/readme_

