A Model Context Protocol Server for Home Assistant
https://github.com/allenporter/mcp-server-home-assistantStop telling Claude what lights are on or asking it to guess your thermostat settings. This MCP server connects Home Assistant directly to your AI assistant, giving it live access to your entire smart home state.
You're building AI-powered home automation, but your assistant is flying blind. It can't see that your living room lights are already dimmed, doesn't know the current temperature, and has no idea your music is playing in the kitchen. You end up manually feeding context or building complex state-sharing systems.
This MCP server solves that by creating a direct bridge between Home Assistant and Claude Desktop. Your AI assistant gets real-time access to device states, sensor readings, and automation status through the Model Context Protocol.
Live State Access: Claude can see current device states, sensor readings, and automation status without you having to explain what's happening in your home.
Real-Time Updates: WebSocket integration means your assistant knows immediately when something changes - no polling, no stale data.
Structured Context: Instead of parsing natural language descriptions of your smart home, Claude gets clean, structured data about every entity in your Home Assistant instance.
Zero Additional Infrastructure: No databases, no message queues - just point it at your Home Assistant API and you're running.
Context-Aware Automation: "Turn off lights in rooms where no one's been for the last hour" - Claude can see motion sensor states and act accordingly.
Intelligent Troubleshooting: "Why is my energy bill high this month?" - Your assistant can analyze device usage patterns, HVAC runtime, and power consumption data.
Natural Home Status Queries: "What's the status of my house?" gets you a comprehensive overview instead of you manually checking each system.
Smart Scheduling: "Set the temperature based on tomorrow's weather and our usual schedule" - Claude can see current settings and adjust intelligently.
The server runs as a standard MCP server that Claude Desktop can connect to. You'll need:
Set your WebSocket URL and API token in the Claude config, and your assistant immediately gains awareness of your entire smart home ecosystem.
This repository is archived - the creator has moved the core functionality into Home Assistant Core itself (PR #134122). This means the integration approach is becoming standardized, but this implementation gives you immediate access to the capability while the official integration finalizes.
The MCP server approach demonstrated here shows exactly how to bridge smart home platforms with AI assistants, making it valuable for understanding the integration pattern even as the official implementation evolves.
GitHub: allenporter/mcp-server-home-assistant
Transform your AI assistant from a smart home controller into a smart home participant that understands what's actually happening in your space.