Home Assistant MCP Server
Overview
what is Hass-MCP?
Hass-MCP is a Model Context Protocol (MCP) server designed for integrating AI assistants like Claude with Home Assistant, enabling seamless interaction with smart home devices.
how to use Hass-MCP?
To use Hass-MCP, set up a Home Assistant instance with a Long-Lived Access Token, install the server via Docker or Python, and configure it within your AI assistant's settings.
key features of Hass-MCP?
- Entity Management: Control devices and query states.
- Domain Summaries: Get high-level information about entity types.
- Automation Support: Manage and control automations.
- Guided Conversations: Use prompts for common tasks.
- Smart Search: Efficiently find entities by various criteria.
- Token Efficiency: Minimized JSON responses to save on token usage.
use cases of Hass-MCP?
- Querying the state of smart home devices.
- Automating tasks like turning on lights at specific times.
- Troubleshooting issues with automations and entities.
- Creating guided conversations for user-friendly interactions with smart home systems.
FAQ from Hass-MCP?
- Can Hass-MCP work with any AI assistant?
Yes! It is designed to integrate with various AI assistants that support MCP.
- Is Hass-MCP free to use?
Yes! Hass-MCP is open-source and free to use.
- What are the prerequisites for using Hass-MCP?
You need a Home Assistant instance and either Docker or Python 3.13+.
Server Config
{
"mcpServers": {
"hass-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"HA_URL",
"-e",
"HA_TOKEN",
"voska/hass-mcp"
],
"env": {
"HA_URL": "http://homeassistant.local:8123",
"HA_TOKEN": "YOUR_LONG_LIVED_TOKEN"
}
}
}
}