Observability Agent MCP

Observability Agent MCP

A portable, read-only Model Context Protocol server for turning observability data into bounded evidence that AI agents can inspect safely.

Category
Visit Server

README

Observability Agent MCP

A portable, read-only Model Context Protocol server for turning observability data into bounded evidence that AI agents can inspect safely.

Status

Runnable provider-backed MCP. The TypeScript server exposes seven bounded, read-only tools over stdio and authenticated Streamable HTTP. It includes VictoriaMetrics/Prometheus-compatible metrics and alert adapters, allowlisted Grafana PNG rendering, deterministic local fixtures, npm packaging, and a non-root OCI runtime. Private deployment configuration remains outside this public repository.

Product Boundary

This project provides deterministic tools for observability evidence. It does not run an LLM, receive chat messages, execute shell commands, deploy workloads, or remediate production systems.

AI client
  | stdio (implemented)
  v
Observability Agent MCP
  - strict tool schemas
  - query and response limits
  - label and value redaction
  - normalized evidence bundles
  |
  +--> deterministic fake provider
  +--> allowlisted Grafana render API
  +--> named-query Prometheus-compatible API
       +--> VictoriaMetrics alert API
       - Prometheus
       - VictoriaMetrics

The model and agent loop remain in the client. This server only returns structured evidence.

First Tool Set

Tool Purpose
observability.capabilities Describe configured providers and safe limits.
observability.health_snapshot Return bounded service and target health.
observability.active_alerts Return normalized active alert metadata.
observability.query_metrics Run a bounded instant or range metrics query.
observability.render_panel Return one allowlisted Grafana panel as PNG evidence.
observability.render_dashboard Return one allowlisted Grafana dashboard as PNG evidence.
observability.incident_context Build a compact evidence bundle for one alert or service.

Version 1 is read-only. It will not create dashboards, modify alert rules, silence alerts, restart services, run scripts, or trigger deployments.

Portability

The server can be consumed through:

  • stdio for local desktop and CLI agents;
  • an authenticated Streamable HTTP endpoint on a private network;
  • a non-root OCI image;
  • the package CLI produced by npm pack.

The implemented HTTP mode uses a file-injected Bearer credential and a strict Host allowlist for a private, single-operator deployment. It is not a public or multi-tenant OAuth deployment. No package or image has been published yet.

Remote HTTP deployment requires authentication. Publishing this repository does not imply that an MCP endpoint should be exposed without OAuth, network policy, rate limits, and audience-bound scopes.

Run Locally

Node.js 22 and npm are required.

npm ci
npm run build
node dist/cli.js

The process speaks MCP over stdio, so launch it from an MCP client rather than typing into the terminal. A client command definition is:

{
  "command": "node",
  "args": ["/absolute/path/to/observability-agent-mcp/dist/cli.js"]
}

Inspect tool discovery and run every local gate with:

npm run inspector:list
npm run validate

Build and run the non-root OCI image over stdio with:

npm run container:build
docker run --rm -i observability-agent-mcp:local

Production HTTP mode requires a strict YAML provider policy and two 0600 runtime credential files. See Client Compatibility and Security Model before deploying it.

Relationship To Grafana MCP

The official Grafana MCP server is the preferred reference and fast path for broad Grafana capabilities. This project will not duplicate its dashboard and administration surface.

Capability Grafana MCP This project
Broad Grafana dashboards and administration Primary owner Not implemented
Grafana datasource queries Supported Narrow adapter only
Direct Prometheus-compatible backend without Grafana Not the primary path Supported goal
Provider-neutral incident evidence Provider-specific Primary owner
Conservative read-only public contract Configurable broad surface Required default

The unique scope here is:

  • compact incident-context evidence;
  • conservative read-only defaults;
  • direct Prometheus-compatible operation when Grafana is absent;
  • provider-neutral schemas;
  • predictable limits and redaction for agent use.

Grafana visuals are first-class evidence. Rendering tools return an MCP ImageContent PNG plus structured metadata for the source, observation window, dimensions, byte size, freshness, truncation, and warnings. Visuals are opt-in; normal metric queries do not spend rendering resources or image context.

There is no automatic delegation between the two servers. Use Grafana MCP when an agent needs Grafana-native dashboards, incidents, administration, or its existing query tools. Use this project's namespace when the client needs the same bounded evidence contract across Grafana and direct Prometheus-compatible backends. active_alerts and incident_context are normalized here rather than forwarded to Grafana MCP; query_metrics selects one configured adapter and never calls another MCP server. Deployments may offer both namespaces, but each request has one explicit owner.

Read Next

License

Apache License 2.0. See LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured