MCP server exposing Home Assistant 2026.4.1 REST API functionality.
From the registry: MCP server exposing Home Assistant REST API functionality
$ pip install mcp-homeassistanthttps://pypi.org/project/mcp-homeassistant/Please install the `mcp-homeassistant` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Home Assistant long-lived access token** — Create a long-lived access token in your Home Assistant profile.
- **Install mcp-homeassistant** — Install from PyPI Run: `pip install mcp-homeassistant` (https://pypi.org/project/mcp-homeassistant/)
Canonical MCP server config (stdio transport):
- command: `mcp-homeassistant`
- args: []
- required environment variables:
- `HA_URL`: Home Assistant URL (example: `http://homeassistant:8123`)
- `HA_TOKEN`: Home Assistant long-lived access token (example: `<your-access-token>`)
Note: Exposes Home Assistant 2026.4.1 REST API as MCP tools.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.HA_URLHome Assistant URL (default: http://localhost:8123)HA_TOKENrequiredLong-Lived Access TokenManage UniFi Protect cameras, events, recordings, and smart detections via MCP.