How to Install and Use HA MCP Server with Claude (Tutorial)
Step-by-step tutorial: install HA MCP Server via HACS, connect your MCP client, and control lights, sensors, and automations using plain language with Claude.
π Want to deploy HA MCP Server yourself?
Docker configs, system requirements, and installation guides β all on one page.
View HA MCP Server Tool Page βIn this tutorial, you will connect Claude (or any MCP-capable assistant) to your Home Assistant using the HA MCP Server β and start controlling your smart home with natural language in under 15 minutes.
Step 1: Install the Integration via HACS
The easiest path is the Home Assistant Community Store. Open HACS in your Home Assistant, add the homeassistant-ai/ha-mcp repository, and install the HA MCP Server integration. It is also fully documented at homeassistant-ai.github.io/ha-mcp if you prefer a manual setup.
Step 2: Configure Your MCP Client
Once the integration is running, point your AI assistant at the MCP endpoint. For example, in Claude Desktop or any MCP-compatible client, register the server URL and token that the integration exposes. Then verify the connection with the built-in MCP Inspector β a handy tool that lists every entity and service your assistant can reach.
β οΈ Tip: Start with read-only queries (e.g., "What is the temperature in the bedroom?") before granting your assistant control over switches and automations.
Step 3: Control Your Home with Plain Language
Now the fun part. With the server connected, you can say things like:
- "Turn off the living room lights" β the assistant calls the
light.turn_offservice. - "What's the energy usage today?" β the assistant reads your energy sensors.
- "Set the thermostat to 21 degrees" β climate entities respond instantly.
Step 4: Run It in Docker (Optional)
Prefer a containerized setup? The project ships Docker support. A ready-made image (zorak1103/ha-mcp) is available, and Run This Ai provides a validated docker-compose.yml that starts the server with persistent storage and automatic restarts β ideal for a dedicated home-lab host.
| Requirement | Minimum | Recommended |
|---|---|---|
| CPU | 1 core | 2 cores |
| RAM | 512 MB | 2 GB |
Once connected, your Home Assistant stops being a dashboard you click and becomes a home that understands you. Give HA MCP Server a try β your AI assistant is already waiting.
π Deploy HA MCP Server in minutes
System requirements, Docker compose, and full docs β all on one page.
View HA MCP Server Tool Page β