Claude Desktop
Configure Claude Desktop to access your Netdata infrastructure through MCP.
Prerequisites
- Claude Desktop installed - Download from claude.ai/download
- 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.
nd-mcp
program available on your desktop or laptop - This is the bridge that translatesstdio
towebsocket
, connecting your AI Client to your Netdata Agent or Parent. Find its absolute path- 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:
- Download from github.com/fsoft72/claude-desktop-to-appimage
- For best experience, install AppImageLauncher
Configuration
- Open Claude Desktop
- Navigate to Settings:
- Windows/Linux: File → Settings → Developer (or
Ctrl+,
) - macOS: Claude → Settings → Developer (or
Cmd+,
)
- Windows/Linux: File → Settings → Developer (or
- Click "Edit Config" button
- 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:
/usr/sbin/nd-mcp
- With your actual nd-mcp pathYOUR_NETDATA_IP
- IP address or hostname of your Netdata Agent/ParentNETDATA_MCP_API_KEY
- Your Netdata MCP API key
- Save the configuration
- Restart Claude Desktop (required for changes to take effect)
Verify Connection
- Click the "Search and tools" button (below the prompt)
- You should see "netdata" listed among available tools
- 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.