src/web/mcp/bridges/README.md
This directory contains bridge programs that convert MCP stdio communication to Netdata's MCP over WebSocket. These bridges allow you to use standard I/O based AI models and tools with Netdata's Model Context Protocol.
Three implementations are provided to accommodate different environments, each in its own subdirectory:
stdio-python/ - Python implementationstdio-nodejs/ - JavaScript (Node.js) implementationstdio-golang/ - Go implementationEach subdirectory contains:
All bridges follow the same usage pattern, accepting a WebSocket URL as their only parameter:
<bridge-program> ws://<ip>:19999/mcp
Where <ip> is either localhost or the IP address where a Netdata instance is listening.
The bridge reads from standard input and writes to standard output, allowing you to pipe AI model output through it to connect with Netdata MCP.
To use Claude Desktop with Netdata's MCP, you can configure it to use one of these bridges. Here's how to set it up:
localhost with the appropriate IP addressThis configuration allows Claude Desktop to communicate directly with your Netdata instance, providing it with contextual information from your monitoring environment.
For detailed instructions specific to each implementation, refer to the README.md in the corresponding subdirectory.
All bridge implementations include robust connection handling features:
These features ensure that temporary network issues or Netdata server restarts don't disrupt your AI model's integration, providing a resilient connection that automatically recovers from failures.
Netdata MCP implements the JSON-RPC 2.0 protocol for communication. The bridges pass messages directly between the AI model's standard I/O and the WebSocket connection without modification.
Important compatibility notes: