From Home Assistant
Connects Claude to your Home Assistant instance to read states, areas, and history, and run actions (with confirmation for locks). Needs a Home Assistant URL and a long-lived access token file.
Ships in Home Assistant. Installing the plugin adds it to Claude Code.
Copy this JSON into your .mcp.json to enable this server
Add to your .mcp.json:
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": [
"-y",
"@foreverworks/[email protected]"
],
"env": {
"HOME_ASSISTANT_URL": "${user_config.home_assistant_url}",
"HOME_ASSISTANT_TOKEN_FILE": "${user_config.home_assistant_token_file}",
"HOME_ASSISTANT_CONFIRM_DOMAINS": "${user_config.home_assistant_confirm_domains}"
}
}
}
}Environment variables set when the server starts
HOME_ASSISTANT_URL=${user_config.home_assistant_url}HOME_ASSISTANT_TOKEN_FILE=${user_config.home_assistant_token_file}HOME_ASSISTANT_CONFIRM_DOMAINS=${user_config.home_assistant_confirm_domains}Command-line arguments passed to the server process
Server configuration and connection parameters
npxnpx claudepluginhub foreverworks/mcps --plugin foreverworks-home-assistant