Skip to content

Menu

Netdata MCP Server logo

Netdata MCP Server

Published

At a glance

GitHub repository
netdata/netdata
Watch out for
Access is read-only, and the assistant cannot read or change Netdata configuration.

Netdata ships its MCP server inside the Netdata Agent itself, so there is nothing extra to install. If you already run a recent Netdata, the server is there, listening on the same port as the dashboard (19999 by default). The code lives in the main netdata/netdata repository under src/web/mcp.

What the assistant can see depends on which node you point it at. A standalone or child node exposes only itself. A parent node exposes every child that streams to it, which is usually the better target. The README says Netdata Cloud support is planned but not yet available.

Transport is flexible. The agent serves Streamable HTTP at /mcp and Server-Sent Events at /mcp?transport=sse. For clients that only speak stdio, every Netdata install includes a small bridge called nd-mcp that forwards stdio to the agent over WebSocket, and the repo also carries Go, Node.js and Python versions of that bridge.

How it connects

Your AI app

An assistant or agent that supports MCP

Netdata MCP Server

Runs as

  • Remote (HTTP)

Gives the agent

  • Node and metric discovery
  • Time-series queries
  • Anomaly and correlation analysis
  • Alerts
  • Live system functions

Netdata

Signs in with

  • API key
Your AI app talks to Netdata MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Node and metric discovery
list_nodes and get_nodes_details describe connected nodes, hardware, OS and streaming setup, while list_metrics and get_metrics_details show which metric contexts exist and what dimensions and labels they carry.
Time-series queries
query_metrics pulls data with grouping by dimension, instance, node or label, plus aggregation and time-aggregation options.
Anomaly and correlation analysis
find_anomalous_metrics uses Netdata's ML anomaly rates, find_correlated_metrics compares an incident window with a baseline, and find_unstable_metrics flags metrics that fluctuate a lot.
Alerts
list_raised_alerts and list_running_alerts show current alert state, and list_alert_transitions returns the history of state changes with timestamps and values.
Live system functions
list_functions and execute_function reach live data such as processes, network connections, systemd units, mount points, block devices and journal logs. These need the API key and a claimed agent.

Setting it up

Find the API key the agent generates on first start with sudo cat /var/lib/netdata/mcp_dev_preview_api_key (static installs keep it under /opt/netdata/var/lib/netdata/). For Claude Code, run claude mcp add netdata /usr/bin/nd-mcp --bearer YOUR_API_KEY ws://IP_OF_YOUR_NETDATA:19999/mcp, or put the same command and args under mcpServers.netdata in a project .mcp.json, then check it with claude mcp list or /mcp. Claude Desktop and Cursor use the same JSON block in their MCP config files. The nd-mcp path varies by install: /usr/bin or /usr/sbin for native packages, /opt/netdata/usr/bin for static builds, /usr/local/netdata/usr/bin on macOS source installs. Clients that speak HTTP can skip the bridge and hit http://IP_OF_YOUR_NETDATA:19999/mcp with an Authorization: Bearer header.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Ask which metrics went anomalous across a parent's children during the last hour of an incident.
  • Pull alert transitions overnight to see what fired and cleared while nobody was watching.
  • List top CPU-consuming processes or failed systemd services on a set of servers.
  • Search systemd journal logs for authentication failures or out-of-memory kills.

Limitations and things to watch

  • Access is read-only, and the assistant cannot read or change Netdata configuration.
  • Logs and live functions such as processes and connections need the API key and a claimed agent, so an unclaimed node gives a reduced view.
  • The API key file is named mcp_dev_preview_api_key, and the docs still call the setup a dev preview.
  • Netdata Cloud as an MCP endpoint is not yet available, so visibility is limited to whatever node or parent you connect to.
  • Stdio clients need the nd-mcp bridge binary on the local machine, which means installing Netdata there too.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…