home / mcp / mcp home assistant extended server
Provides an MCP bridge to manage Home Assistant automations via MCP clients with list, create, update, delete, trigger, and enable/disable capabilities.
Configuration
View docs{
"mcpServers": {
"rios0rios0-mcp-home-assistant-extended": {
"command": "pdm",
"args": [
"run",
"python",
"-m",
"mcp_ha_extended.server"
],
"env": {
"HA_URL": "YOUR_HOME_ASSISTANT_URL",
"HA_TOKEN": "YOUR_LONG_LIVED_TOKEN"
}
}
}
}MCP HA Extended is a server that lets you manage Home Assistant automations from any MCP-compatible client. You can list, inspect, create from YAML, update, delete, trigger, and enable or disable automations, all through a unified MCP interface. This makes automations easier to manage from external tools and scripts while keeping Home Assistant in sync.
You connect your MCP client to the MCP HA Extended server and perform common automation actions through dedicated endpoints. Typical workflows include listing all automations to see what exists, inspecting a specific automation to review its YAML and metadata, creating a new automation from YAML, updating an existing automation, deleting an automation you no longer need, and triggering or toggling automations on and off.
Prerequisites you need before you begin:
Use the MCP HA Extended addon to simplify installation and updates. Follow these steps to install the addon and configure it to talk to your Home Assistant instance.
1. Add repository: https://github.com/rios0rios0/mcp-home-assistant-extended
2. Install "MCP HA Extended" from the addon store
3. Configure with your Home Assistant URL and access token
4. Use with any MCP-compatible client (like Cursor IDE)If you prefer running outside of Home Assistant, you can run the server as a standalone Python app. Use the following steps to set up and start the server.
1. Install dependencies
pdm install
2. Set environment variables
HA_URL=your_home_assistant_url
HA_TOKEN=your_long_lived_token
3. Run the server
pdm run python -m mcp_ha_extended.server
4. Configure your MCP client to use the serverOnce the server is running, point your MCP client to the server and start using the tools to manage automations. You can list automations, view details, create new automations from YAML, update existing ones, delete automations, and trigger or enable/disable automations as needed.
List all automations available in Home Assistant via the MCP bridge.
Retrieve detailed information about a specific automation by its identifier.
Create a new automation using YAML content supplied by the MCP client.
Update an existing automation with new YAML or metadata.
Remove an automation from Home Assistant via MCP.
Manually trigger an automation on demand.
Enable an automation that has been disabled.
Disable an automation without deleting it.