nd-mcp add claude cli cmd for adding netdata mcp (#20440)
Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Andrew Maguire committed
Jul 14, 2025 at 12:12 UTC
e55a3748b8f4878067edea64569a8b6092e2c5b7
1 file changed
+7
-1
src/web/mcp/README.md
+7
-1
@@ -109,7 +109,13 @@ Once restarted, you should see "netdata" appear in Claude Desktop:
109
110
For [Claude Code](https://claude.ai/code), add to your project's root, the file `.mcp.json`, with the contents given above. This file will be automatically detected by Claude Code the next time it starts in that directory.
111
112
-Once configured correctly, issue the command `/mcp` to your Claude Code. It should show you the available MCP servers, including "netdata".
112
+Alternatively, you can add it using a Claude CLI command like this:
113
+
114
+```bash
115
+claude mcp add netdata /usr/bin/nd-mcp ws://IP_OF_YOUR_NETDATA:19999/mcp?api_key=YOUR_API_KEY
116
+```
117
+
118
+Once configured correctly, run `claude mcp list` or you can issue the command `/mcp` to your Claude Code. It should show you the available MCP servers, including "netdata".
119
120
### Cursor
121