Smart home MCP server for Home Assistant plus Local AI integration
Smart home MCP server for Home Assistant plus Local AI integration. That is what the mcp ha connect mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.
A production-ready Model Context Protocol (MCP) server for Home Assistant integration with AI assistants like Claude and LM Studio.
methods on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
The server publishes 14 tools. What each one is for:
getStates — Get all entity states (paginated, 50/page default). Use includeAttributes=true for full datagetState — Get the state of a specific entity by entity_idgetEntitiesByDomain — Get entities for a domain (paginated, 50/page default). Use includeAttributes=true for full datasearchEntities — Search entities by name/entity_id (paginated, 50/page default). Use includeAttributes=true for full datagetAllSensors — Get all sensors (paginated, 50/page default). Use includeAttributes=true for full datalistEntities — List entities with filtering (domain, state, search, limit). Use includeAttributes=true for full datagetDomainSummary — Get summary statistics for a domaingetHistory — Get historical data for an entitylistPersons — List all household members with location state (home/away)callService — Call any Home Assistant serviceentityAction — Simple turn_on/turn_off/toggle actionscontrolLight — Control lights with brightness, color, temperatureConfiguration is passed through the environment: HA_URL, HA_TOKEN, AI_PROVIDER, AI_URL, AI_MODEL, MCP_HTTP_PATH, MCP_HTTP_HEALTHCHECK_PATH, MCP_SSE_EVENTS_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP Ha Connect's toolset — getStates, getState, getEntitiesByDomain and 11 more — is a fair guide to whether it matches your workflow. It is maintained by coffeerunhobby; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| getStates | Get all entity states (paginated, 50/page default). Use includeAttributes=true for full data |
| getState | Get the state of a specific entity by entity_id |
| getEntitiesByDomain | Get entities for a domain (paginated, 50/page default). Use includeAttributes=true for full data |
| searchEntities | Search entities by name/entity_id (paginated, 50/page default). Use includeAttributes=true for full data |
| getAllSensors | Get all sensors (paginated, 50/page default). Use includeAttributes=true for full data |
| listEntities | List entities with filtering (domain, state, search, limit). Use includeAttributes=true for full data |
| getDomainSummary | Get summary statistics for a domain |
| getHistory | Get historical data for an entity |
| listPersons | List all household members with location state (home/away) |
| callService | Call any Home Assistant service |
| entityAction | Simple turn_on/turn_off/toggle actions |
| controlLight | Control lights with brightness, color, temperature |
| controlClimate | Control thermostats with temperature, HVAC mode |
| controlMediaPlayer | Control media players with playback, volume |
### Disable AI Features
```json
{
"mcpServers": {
"homeassistant": {
"command": "npx",
"args": ["-y", "@coffeerunhobby/mcp-ha-connect"],
"env": {
"HA_URL": "http://homeassistant.10.0.0.19.nip.io:8123",
"HA_TOKEN": "your_token",
"AI_PROVIDER": "none"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| HA_URL | Endpoint or connection string the server talks to. | Yes |
| HA_TOKEN | Credential the server authenticates with. | Yes |
| AI_PROVIDER | Configuration value read at startup. | Optional |
| AI_URL | Endpoint or connection string the server talks to. | Yes |
| AI_MODEL | Configuration value read at startup. | Optional |
| MCP_HTTP_PATH | Filesystem location the server is allowed to use. | Optional |
| MCP_HTTP_HEALTHCHECK_PATH | Filesystem location the server is allowed to use. | Optional |
| MCP_SSE_EVENTS_PATH | Filesystem location the server is allowed to use. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.