Official Home Assistant smart home control
## Home Assistant MCP Server: Open-Source Smart Home The **Home Assistant MCP Server** integrates Home Assistant into Google Antigravity, enabling AI-assisted smart home control, automation management, and device integration across hundreds of platforms. ### Why Home Assistant MCP? - **Integration Rich**: 2000+ integrations for every smart home platform - **Automation Engine**: Powerful YAML and visual automation builder - **Privacy Focused**: Local control without cloud dependency - **Active Community**: Large community with constant improvements - **Customizable**: Fully customizable dashboards and interfaces ### Key Features #### 1. Device Control ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Turn on all lights in the living room and set thermostat to 72F" }] ) ``` #### 2. Entity States ```python # Query states response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get status of all sensors and report any unusual readings" }] ) ``` #### 3. Automations ```python # Create automations response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create automation to turn off all lights when everyone leaves home" }] ) ``` #### 4. Scenes ```python # Manage scenes response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Activate movie night scene and dim all lights to 20%" }] ) ``` ### Configuration ```json { "mcpServers": { "home-assistant": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-home-assistant"], "env": { "HASS_URL": "http://homeassistant.local:8123", "HASS_TOKEN": "your-long-lived-access-token" } } } } ``` ### Use Cases **Smart Home Hub**: Central control for all smart home devices. **Energy Management**: Monitor and optimize energy usage. **Security**: Integrate cameras, locks, and sensors. **Automation**: Create sophisticated home automations. The Home Assistant MCP Server brings comprehensive smart home control into your workflow.
{
"mcpServers": {
"home-assistant": {
"mcpServers": {
"home-assistant": {
"url": "http://your-home-assistant:8123/mcp",
"type": "streamable-http"
}
}
}
}
}