The Home Assistant MCP Server is a Model Context Protocol server that allows AI assistants to interact with Home Assistant, enabling control of smart home devices and management of automations using natural language.
From the registry: Comprehensive Model Context Protocol server for managing Home Assistant through AI assistants.

Please install the `ha-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install uv/uvx** — uv/uvx is used to run ha-mcp Run: `pip install uv` (https://docs.astral.sh/uv/)
- **Home Assistant instance** — A reachable Home Assistant instance and a long-lived access token (https://homeassistant-ai.github.io/ha-mcp/)
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["ha-mcp"]
- required environment variables:
- `HOMEASSISTANT_URL`: Base URL of your Home Assistant instance (example: `<your-homeassistant-url>`)
- `HOMEASSISTANT_TOKEN`: Home Assistant long-lived access token (example: `<your-homeassistant-token>`)
- optional environment variables:
- `HAMCP_ENABLE_FILESYSTEM_TOOLS`: Enable file system tools (requires companion HA custom component) (example: `false`)
- `ENABLE_YAML_CONFIG_EDITING`: Enable YAML editing tools (example: `false`)
- `HAMCP_ENABLE_CUSTOM_COMPONENT_INTEGRATION`: Enable the installer tool for the companion component (example: `false`)
Note: Also available as a Home Assistant add-on (no token/credential setup needed) and via install scripts for macOS/Windows. Remote access via Nabu Casa or webhook proxy is supported.
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.HOMEASSISTANT_URLrequiredThe URL of the Home Assistant instance.HAMCP_ENABLE_FILESYSTEM_TOOLSrequiredEnables file tools for accessing the file system.ENABLE_YAML_CONFIG_EDITINGrequiredEnables YAML editing capabilities.HAMCP_ENABLE_CUSTOM_COMPONENT_INTEGRATIONrequiredEnables the installation of the custom component integration.Manage UniFi Network devices, clients, firewall, VLANs, VPNs, and more via MCP.