From 281cf291581915f0fedf3abd14daa36cb182985e Mon Sep 17 00:00:00 2001 From: Tevon Strand-Brown <19849533+tevonsb@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:56:35 -0800 Subject: [PATCH] Update README.md with Claude use --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index e02c638..55bcc84 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,30 @@ TEST_HASS_TOKEN=test_token # Test token 2. **Production**: Copy `.env.example` to `.env.production` 3. **Testing**: Copy `.env.example` to `.env.test` +### Adding to Claude Desktop (or other clients) + +To use your new Home Assistant MCP server, you can add Claude Desktop as a client. Add the following to the configuration. Note this will run the MCP within claude and does not work with the Docker method. + +``` +{ + "homeassistant": { + "command": "node", + "args": [] + "env": { + NODE_ENV=development + HASS_HOST=http://homeassistant.local:8123 + HASS_TOKEN=your_home_assistant_token + PORT=3000 + HASS_SOCKET_URL=ws://homeassistant.local:8123/api/websocket + LOG_LEVEL=debug + } + } +} + +``` + + + ## API Reference ### Device Control