Get the current state of a specific Home Assistant entity
Control a Home Assistant entity by changing its state
Search for entities in Home Assistant by name, type, or state
Get a summary of entities in a specific domain (like lights, switches, etc.)
Get a high-level overview of the Home Assistant system
List all automations in the Home Assistant system
Start a guided conversation for common Home Assistant tasks
Home Assistant Integration enables AI assistants like Claude to interact directly with your Home Assistant instance. This powerful integration allows you to query device states, control smart home entities, get system summaries, and troubleshoot automations through natural language conversations. With token-efficient responses and guided conversation flows, it makes managing your smart home through AI assistants seamless and intuitive.
This MCP server connects AI assistants like Claude to your Home Assistant smart home system, enabling natural language control and querying of your devices, automations, and sensors.
Make sure you have Docker installed on your system
You'll need a Home Assistant long-lived access token:
Configure your AI assistant to use the MCP server by adding the appropriate configuration to your settings.
If you prefer not to use Docker:
git clone https://github.com/voska/hass-mcp
cd hass-mcp
cp .env.example .env
.env
file to add your Home Assistant URL and tokenuv pip install -e .
python -m app.main
When setting up the MCP server, you'll need to provide:
HA_URL
: The URL of your Home Assistant instance (e.g., http://homeassistant.local:8123
)HA_TOKEN
: Your Home Assistant long-lived access tokenIf running Home Assistant on the same machine as the MCP server in Docker:
http://host.docker.internal:8123
for Mac/Windows--network host
in Docker args or use your machine's IP addressOnce configured, you can ask your AI assistant questions like:
The MCP server handles translating these natural language requests into Home Assistant API calls and formatting the responses in a way that's both informative for you and token-efficient for the AI.