Skip to main content
MCP server CX Codex

observability-mcp — Claude Code MCP server: setup guide

An observability gateway for AI agents that connects Prometheus, Loki, and topology tools through a single interface for incident triage.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env MCP_TRANSPORT=<MCP_TRANSPORT> --env PROMETHEUS_URL=<PROMETHEUS_URL> --env LOKI_URL=<LOKI_URL> --transport stdio observability-mcp -- npx -y @thotischner/observability-mcp
Open on GitHub

What observability-mcp does

The server acts as a middle layer connecting AI agents to monitoring platforms like Prometheus and Loki. Instead of returning raw log dumps, the gateway filters and aggregates data on the server side. The agent receives clean summaries.

Specialized inspection calls like get_topology and get_blast_radius resolve dependencies between pods and cluster nodes. Every tool runs in read-only mode. That prevents the model from altering runtime infrastructure.

At startup, the gateway has zero configured backends. You configure data sources either through the browser UI on port 3000 or with PROMETHEUS_URL and LOKI_URL environment variables. Without those backends in place, the gateway cannot collect incident metrics.

What it helps with

  • map co-located pods on a failing cluster node
  • query Prometheus metrics with server-side aggregation
  • calculate blast radius during a service outage
  • inspect infrastructure topology using read-only agent tools

Example prompts for the agent

  • Run get_blast_radius on payment-service to see what pods share the node.
  • Check get_topology to find dependent services before restarting the deployment.

How to install observability-mcp

Platform CLI

claude mcp add --env MCP_TRANSPORT=<MCP_TRANSPORT> --env PROMETHEUS_URL=<PROMETHEUS_URL> --env LOKI_URL=<LOKI_URL> --transport stdio observability-mcp -- npx -y @thotischner/observability-mcp

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about observability-mcp

How to install observability-mcp in Claude Code?

Run claude mcp add observability-mcp -- npx -y @thotischner/observability-mcp in your terminal.

What does observability-mcp do?

It routes queries across Prometheus and Loki into a normalized gateway, providing read-only topology and metric inspection tools for incident triage.

Does observability-mcp require preconfigured data sources?

The gateway boots with zero active sources. Connect Prometheus or Loki via the web UI on port 3000 or by setting the PROMETHEUS_URL and LOKI_URL variables.

Similar MCP servers

All MCP servers for DevOps and infrastructure →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor