This repository provides a Model Context Protocol server for Home Assistant, enabling integration with Claude Desktop by using a custom component and a long-lived access token for communication.
A Model Context Protocol Server for Home Assistant, adhering to the Model Context Protocol specification.
The custom component required by this integration is being integrated into Home Assistant Core in https://github.com/home-assistant/core/pull/134122
/Users/allen/Development/mcp-server-home-assistant
.claude_desktop_config.json
file, adding a "Home-assistant" entry under "mcpServers"
. This entry should specify the command to execute the server (using uv
), the path to the cloned repository, and arguments for running mcp-server-home-assistant
with verbose logging (-v -v
). The environment variables HOME_ASSISTANT_WEB_SOCKET_URL
(e.g., "http://localhost:8123/api/websocket"
) and HOME_ASSISTANT_API_TOKEN
must be set with your Home Assistant URL and API token, respectively.~Library/Logs/Claude/mcp-server-Home-assistant.log
for debugging and operational insights.allenporter/mcp-server-home-assistant
November 27, 2024
March 28, 2025
Python