# observability-mcp [Health: Active]

**Category:** 📊 Monitoring  
**Repository:** https://github.com/ThoTischner/observability-mcp  
**GitHub Stars:** 7  
**npm Downloads (last month):** 1992  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/observability-mcp

## Description
Unified observability gateway for AI agents — Prometheus, Loki & more, with anomaly detection.

## Tools
Capabilities this server exposes over MCP:

- **list_sources** — Discover configured backends and connection status
- **list_services** — Discover monitored services across all backends
- **query_metrics** — Query metrics with pre-computed summary stats
- **query_logs** — Query logs with error/warning counts and top patterns
- **get_service_health** — Health score combining metrics + logs (0–100)
- **detect_anomalies** — Cross-signal anomaly detection with robust (median/MAD + trend) analysis
- **get_topology** — Return the merged infrastructure graph (resources + edges) from every topology-capable connector, filterable by source/kind/scope
- **get_blast_radius** — Pivot on the universal `RUNS_ON` relation — "if this resource's host fails, who else fails?". Works for pod→node, vm→hypervisor, container→host

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

```json
"mcpServers": {
  "observability-mcp": {
    "command": "npx",
    "args": ["-y","@thotischner/observability-mcp"]
  }
}
```

## Documentation

## What observability-mcp does

observability-mcp provides a unified MCP interface for observability data. It is designed for teams that want an AI agent to work across multiple monitoring backends without exposing a separate MCP endpoint and query language for each system. Prometheus and Loki can be configured as sources, and the connector model supports additional backend types.

The server turns backend data into service-oriented responses. Agents can discover available sources and monitored services, retrieve summarized metrics and logs, assess service health, identify anomalies, and inspect relationships between infrastructure resources. All exposed tools are read-only, so the server is intended for investigation and analysis rather than making changes to monitored systems.

## How it works

The process starts with configured connectors. Source discovery reports the available backends and their connection status, while service discovery combines monitored services across those sources. Metric and log queries are processed server-side, including summary statistics, error and warning counts, and common log patterns.

Health scoring combines metric and log signals into a value from 0 to 100. Anomaly detection uses median and median absolute deviation analysis together with trend information, allowing the server to compare signals without requiring the agent to reconstruct the analysis from raw results.

Topology-capable connectors contribute resources and edges to a merged infrastructure graph. The topology tools can filter this graph by source, resource kind, or scope. Blast-radius analysis follows the common `RUNS_ON` relationship, supporting dependency questions such as which pods share a node, which virtual machines share a hypervisor, or which containers share a host.

## Setup and configuration

Run the package with npx:

```bash
npx @thotischner/observability-mcp
```

The default startup also provides the configuration UI on port 3000. The MCP endpoint is available at `http://localhost:3000/mcp` when using the documented local setup. Claude Code can connect with:

```bash
claude mcp add observability --transport http http://localhost:3000/mcp
```

Claude Desktop and Cursor can use the same streamable HTTP endpoint through an MCP server configuration. The server starts without configured sources. Add Prometheus and Loki connections in the web UI or set `PROMETHEUS_URL` and `LOKI_URL` before startup.

For interactive inspection, the package includes an `inspector-config` command that can be passed to the MCP Inspector. Container and Helm deployment options are also part of the project’s distribution materials.

## Tools and capabilities

The available read-only capabilities include:

- List configured sources and connection status.
- List monitored services across backends.
- Query metrics with precomputed summary statistics.
- Query logs with error, warning, and top-pattern summaries.
- Calculate a combined service health score from 0 to 100.
- Detect anomalies across signals using robust statistics and trend analysis.
- Merge and filter infrastructure topology data.
- Calculate `RUNS_ON`-based blast radius for hosts and their dependents.

## Limitations and notes

The server’s value depends on the connectors and sources configured for the deployment. A fresh installation has no sources until Prometheus, Loki, or another supported connector is added. Topology and blast-radius results require topology-capable connector data and relationships that use the `RUNS_ON` model.

The exposed tools are for reads and analysis; they do not mutate observability backends. Topology analysis is most relevant to graph-shaped dependency questions, while direct single-metric investigations use the metric query path instead. Optional access-control, audit, rate-limit, OIDC, and OPA configurations are available for multi-user deployments, but the basic local setup runs with those controls disabled.

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

