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
访问服务器

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选