Home Assistant
Comprehensive Model Context Protocol server for managing Home Assistant through AI assistants.
What is Home Assistant?
Home Assistant is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to comprehensive model context protocol server for managing home assistant through ai assistants.
Comprehensive Model Context Protocol server for managing Home Assistant through AI assistants.
This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Comprehensive Model Context Protocol server for managing Hom
Use Cases
Maintainer
Works with
Installation
PIP
pip install ha-mcpManual Installation
pip install ha-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Home Assistant
The Home Assistant MCP Server provides comprehensive control of your Home Assistant smart home through Claude, enabling natural language commands to manage devices, automations, and system state. It allows you to query device status, trigger automations, and control your entire smart home ecosystem through conversational AI.
Prerequisites
- Home Assistant installed and running
- Home Assistant API token (long-lived access token)
- Python 3.8+ installed
- An MCP client such as Claude Desktop or Cursor
Install Home Assistant MCP Server
Install using pip: 'pip install ha-mcp' to enable Home Assistant control.
Generate API Token
In Home Assistant, go to your profile and create a long-lived access token. This token enables the MCP server to authenticate with your Home Assistant instance.
Configure Environment
Set the Home Assistant URL and API token as environment variables. Check the repository README for exact variable names (likely HA_URL and HA_TOKEN or similar).
Add to Claude Desktop Configuration
Configure the Home Assistant MCP server in your mcpServers with the required environment variables.
Test Device Control
Ask Claude to control a device in your Home Assistant setup. For example, 'Turn on the living room lights' to verify the connection works.
Use for Smart Home Automation
Ask Claude to manage your smart home. You can check device status, control devices, trigger automations, and query sensor data all through natural language.
Home Assistant Examples
Claude Desktop Configuration
Configure Home Assistant MCP server in mcpServers.
{
"mcpServers": {
"ha": {
"command": "python",
"args": ["-m", "ha_mcp"],
"env": {
"HA_URL": "http://localhost:8123",
"HA_TOKEN": "your-long-lived-token-here"
}
}
}
}Prompts to Try
Control your smart home with Claude.
"Turn on all the lights in the living room"
"What's the current temperature in the bedroom?"
"Set the thermostat to 72 degrees"
"Trigger the 'Movie Time' automation scene"Troubleshooting Home Assistant
Cannot authenticate with Home Assistant
Verify the API token is correct and has not expired. Confirm the Home Assistant URL is correct and accessible. Check that Home Assistant is running and you can access it through a web browser.
Device control commands failing
Verify the device exists in Home Assistant and is controllable. Check that the API token has sufficient permissions. Ensure the device is online and responding.
Status queries returning outdated information
Verify Home Assistant is updating device states correctly. Check network connectivity between the MCP server and Home Assistant. Ensure your automations are actually executing when triggered.
Frequently Asked Questions about Home Assistant
What is Home Assistant?
Home Assistant is a Model Context Protocol (MCP) server that comprehensive model context protocol server for managing home assistant through ai assistants. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Home Assistant?
Install via pip with: pip install ha-mcp. Then configure your AI client to connect to this MCP server.
Which AI clients work with Home Assistant?
Home Assistant works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Home Assistant free to use?
Yes, Home Assistant is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Home Assistant Alternatives — Similar Cloud Services Servers
Looking for alternatives to Home Assistant? Here are other popular cloud services servers you can use with Claude, Cursor, and VS Code.
Xiaozhi ESP32
★ 26.7k本项目为xiaozhi-esp32提供后端服务,帮助您快速搭建ESP32设备控制服务器。Backend service for xiaozhi-esp32, helps you quickly build an ESP32 device control server.
Webiny Js MCP Server
★ 8.0kOpen-source, self-hosted CMS platform on AWS serverless (Lambda, DynamoDB, S3). TypeScript framework with multi-tenancy, lifecycle hooks, GraphQL API, and AI-assisted development via MCP server. Built for developers at large organizations.
RikkaHub
★ 4.7kRikkaHub is an Android APP that supports for multiple LLM providers.
PeopleInSpace
★ 3.3kKotlin Multiplatform sample with SwiftUI, Jetpack Compose, Compose for Wear, Compose for Desktop, and Compose for Web clients along with Ktor backend.
Py Xiaozhi
★ 3.3kA Python-based Xiaozhi AI for users who want the full Xiaozhi experience without owning specialized hardware.
ESP32 NAT Router
★ 2.0kAn AI-enabled NAT Router/Firewall for the ESP32
Browse More Cloud Services MCP Servers
Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Home Assistant in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Home Assistant?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.