Enables natural language interaction with Home Assistant entities using the Model Context Protocol.
Enables natural language interaction with Home Assistant entities using the Model Context Protocol. The home assistant mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 10 defined tools rather than through you.
Create a .env file in your current directory with the following variables:
Everything the assistant can do here goes through one of these:
states — Query entity stateslights — List lightslight — Control a lightservice — Call Home Assistant serviceshistory — Retrieve historical entity dataservices — List available servicesconfig — Get Home Assistant configurationdomains — List available domainserror_log — Get Home Assistant error logdevices — Get all devices in Home AssistantSetup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
You will need 3 environment variables: HASS_URL, HASS_TOKEN, HASS_MOCK. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Home Assistant's toolset — states, lights, light and 7 more — is a fair guide to whether it matches your workflow. It is maintained by oleander; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| states | Query entity states |
| lights | List lights |
| light | Control a light |
| service | Call Home Assistant services |
| history | Retrieve historical entity data |
| services | List available services |
| config | Get Home Assistant configuration |
| domains | List available domains |
| error_log | Get Home Assistant error log |
| devices | Get all devices in Home Assistant |
| Variable | Description | Required |
|---|---|---|
| HASS_URL | Endpoint or connection string the server talks to. | Yes |
| HASS_TOKEN | Credential the server authenticates with. | Yes |
| HASS_MOCK | Configuration value read at startup. | 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.