Skip to main content

Claude Desktop

Configure Claude Desktop to access your Netdata infrastructure through MCP.

Prerequisites

  1. Claude Desktop installed - Download from claude.ai/download
  2. The IP and port (usually 19999) of a running Netdata Agent - Prefer a Netdata Parent to get infrastructure level visibility. Currently the latest nightly version of Netdata has MCP support (not released to the stable channel yet). Your AI Client (running on your desktop or laptop) needs to have direct network access to this IP and port.
  3. nd-mcp program available on your desktop or laptop - This is the bridge that translates stdio to websocket, connecting your AI Client to your Netdata Agent or Parent. Find its absolute path
  4. Optionally, the Netdata MCP API key that unlocks full access to sensitive observability data (protected functions, full access to logs) on your Netdata. Each Netdata Agent or Parent has its own unique API key for MCP - Find your Netdata MCP API key

Platform-Specific Installation

Windows & macOS

Download directly from claude.ai/download

Linux

Use the community AppImage project:

  1. Download from github.com/fsoft72/claude-desktop-to-appimage
  2. For best experience, install AppImageLauncher

Configuration

  1. Open Claude Desktop
  2. Navigate to Settings:
    • Windows/Linux: File → Settings → Developer (or Ctrl+,)
    • macOS: Claude → Settings → Developer (or Cmd+,)
  3. Click "Edit Config" button
  4. Add the Netdata configuration:
{
"mcpServers": {
"netdata": {
"command": "/usr/sbin/nd-mcp",
"args": [
"ws://YOUR_NETDATA_IP:19999/mcp?api_key=NETDATA_MCP_API_KEY"
]
}
}
}

Replace:

  1. Save the configuration
  2. Restart Claude Desktop (required for changes to take effect)

Verify Connection

  1. Click the "Search and tools" button (below the prompt)
  2. You should see "netdata" listed among available tools
  3. If not visible, check your configuration and restart

Usage Examples

Simply ask Claude about your infrastructure:

What's the current CPU usage across all my servers?
Show me any anomalies in the last 4 hours
Which processes are consuming the most memory?
Are there any critical alerts active?
Search the logs for authentication failures

Multiple Environments

Claude Desktop has limitations with multiple MCP servers. Options:

Option 1: Toggle Servers

Add multiple configurations and enable/disable as needed:

{
"mcpServers": {
"netdata-production": {
"command": "/usr/sbin/nd-mcp",
"args": ["ws://prod-parent:19999/mcp?api_key=PROD_KEY"]
},
"netdata-staging": {
"command": "/usr/sbin/nd-mcp",
"args": ["ws://stage-parent:19999/mcp?api_key=STAGE_KEY"]
}
}
}

Use the toggle switch in settings to enable only one at a time.

Option 2: Single Parent

Connect to your main Netdata Parent that has visibility across all environments.

Troubleshooting

Netdata Not Appearing in Tools

  • Ensure configuration file is valid JSON
  • Restart Claude Desktop after configuration changes
  • Check the bridge path exists and is executable

Connection Errors

  • Verify Netdata is accessible from your machine
  • Test: curl http://YOUR_NETDATA_IP:19999/api/v3/info
  • Check firewall rules allow connection to port 19999

"Bridge Not Found" Error

  • Verify the nd-mcp path is correct
  • Windows users: Include the .exe extension
  • Ensure Netdata is installed on your local machine (for the bridge)

Limited Access to Data

  • Verify API key is included in the connection string
  • Ensure the API key file exists on the Netdata server
  • Check that functions and logs collectors are enabled

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.