Natural language smart home control
## Home Assistant Bridge MCP: Extended HA Integration The **Home Assistant Bridge MCP** provides enhanced Home Assistant connectivity for Google Antigravity, enabling advanced automation building, template rendering, and deep integration features. ### Why Home Assistant Bridge MCP? - **Template Support**: Render Jinja2 templates for dynamic values - **Service Calls**: Access any Home Assistant service directly - **Event Handling**: Subscribe to and trigger Home Assistant events - **History Access**: Query historical state data for analysis - **Advanced Automations**: Build complex automations programmatically ### Key Features #### 1. Service Calls ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Call media player service to play announcement on all speakers" }] ) ``` #### 2. Templates ```python # Render templates response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Render template to calculate average temperature of all sensors" }] ) ``` #### 3. Events ```python # Handle events response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Subscribe to motion sensor events and log activity" }] ) ``` #### 4. History ```python # Query history response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get energy usage history for the past week" }] ) ``` ### Configuration ```json { "mcpServers": { "home-assistant-bridge": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-ha-bridge"], "env": { "HASS_URL": "http://homeassistant.local:8123", "HASS_TOKEN": "your-long-lived-access-token" } } } } ``` ### Use Cases **Advanced Automation**: Build complex automations with AI assistance. **Data Analysis**: Analyze historical smart home data. **Custom Integrations**: Create custom Home Assistant integrations. **Voice Control**: Build natural language smart home control. The Home Assistant Bridge MCP brings advanced HA features into your workflow.
{
"mcpServers": {
"home-assistant-bridge": {
"mcpServers": {
"ha-bridge": {
"env": {
"HA_URL": "http://your-home-assistant:8123",
"HA_TOKEN": "YOUR_LONG_LIVED_TOKEN"
},
"args": [
"-y",
"homeassistant-mcp"
],
"command": "npx"
}
}
}
}
}