three.ws Home
v0.1.0Read and safely act on a real Home Assistant house: rooms, live state, scenes, gated actions.
Values you need
| Variable | What it is | |
|---|---|---|
HOME_ASSISTANT_URL | required | Base URL of the Home Assistant instance, e.g. https://abc123.ui.nabu.casa. It has to be a URL this process can actually reach: a server outside the house cannot route to 192.168.x.x, so a LAN-only home needs Home Assistant Cloud or the household's own reverse proxy. |
HOME_ASSISTANT_TOKEN | required secret | A Home Assistant long-lived access token (Home Assistant, your profile, Security, Long-lived access tokens, Create token). It carries the full rights of the account that minted it, so mint it from an account with only the access this agent should have. |
HOME_ALLOWED_ENTITIES | optional | Comma-separated entity ids the person running this server has pre-approved for guarded actions, e.g. lock.office_door. This is the ONLY way an action that opens the house runs over stdio, and it is deliberately a human, out-of-band decision: no tool can add to it. Per entity, never per domain. Leave |
npm (npx) verified
Requires Node.js 18+
Run in a terminal
claude mcp add home-mcp -e 'HOME_ASSISTANT_TOKEN=<HOME_ASSISTANT_TOKEN>' -e 'HOME_ASSISTANT_URL=<HOME_ASSISTANT_URL>' -- npx -y @three-ws/home-mcp@0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"home-mcp": {
"args": [
"-y",
"@three-ws/home-mcp@0.1.0"
],
"command": "npx",
"env": {
"HOME_ASSISTANT_TOKEN": "<HOME_ASSISTANT_TOKEN>",
"HOME_ASSISTANT_URL": "<HOME_ASSISTANT_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"home-mcp": {
"args": [
"-y",
"@three-ws/home-mcp@0.1.0"
],
"command": "npx",
"env": {
"HOME_ASSISTANT_TOKEN": "<HOME_ASSISTANT_TOKEN>",
"HOME_ASSISTANT_URL": "<HOME_ASSISTANT_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "HOME_ASSISTANT_TOKEN",
"id": "home-assistant-token",
"password": true,
"type": "promptString"
},
{
"description": "HOME_ASSISTANT_URL",
"id": "home-assistant-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"home-mcp": {
"args": [
"-y",
"@three-ws/home-mcp@0.1.0"
],
"command": "npx",
"env": {
"HOME_ASSISTANT_TOKEN": "${input:home-assistant-token}",
"HOME_ASSISTANT_URL": "${input:home-assistant-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.home-mcp]
command = "npx"
args = ["-y", "@three-ws/home-mcp@0.1.0"]
env = { "HOME_ASSISTANT_TOKEN" = "<HOME_ASSISTANT_TOKEN>", "HOME_ASSISTANT_URL" = "<HOME_ASSISTANT_URL>" }For AI agents
- Ask the user for: HOME_ASSISTANT_URL, HOME_ASSISTANT_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: home_overview, list_entities, list_macros, call_service, run_macro.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json