The Home Assistant MCP Server is a Model Context Protocol server that connects MCP-enabled applications to your Home Assistant instance. It provides tools for controlling and monitoring your smart home devices.
To get started, clone the repository and install its dependencies. After building the project, configure it with your Home Assistant URL and a long-lived access token. You can then interact with your smart home by using the server's MCP tools in your application code.
Key features include the ability to query and get_device_states, control_device_states (like turning devices on or off), trigger_automations, and list_entities available in your setup.
Common use cases are monitoring the status of connected devices, automating light management based on conditions, and triggering predefined smart home routines programmatically.
The server can control any device integrated with your Home Assistant. It is free and open-source. For security, always use HTTPS, safeguard your access tokens, and rotate them periodically.