ha-mcp-server
Verified Safeby kaichiachen
Overview
Connects AI assistants to Home Assistant, enabling them to control devices, query states, manage automations/scripts, and retrieve system information.
Installation
docker run -d --name homeassistant-mcp-server -p 8000:8000 -e HA_URL="http://your-home-assistant-ip:8123" -e HA_TOKEN="your-long-lived-access-token" ghcr.io/kaichiachen/homeassistant-mcp-server:latestEnvironment Variables
- HA_URL
- HA_TOKEN
Security Notes
The server correctly handles Home Assistant API interactions via HTTPX and authentication with a bearer token. It reads the token from environment variables or a configuration file, avoiding hardcoding. Input parameters for service calls are parsed as JSON, which can lead to parsing errors but not arbitrary code execution. Error handling is present. The primary security consideration is the sensitivity of the HA_TOKEN, which grants broad control over the Home Assistant instance, but this is an inherent aspect of such an integration. No 'eval' or other highly dangerous patterns were observed in the truncated source.
Similar Servers
ha-mcp
Provides AI agents with complete control over Home Assistant via REST and WebSocket APIs, offering a comprehensive suite of tools for smart home management, automation, and debugging.
advanced-homeassistant-mcp
A powerful, secure, and extensible Model Context Protocol (MCP) server that enables AI assistants like Claude, GPT, and Cursor to seamlessly interact with Home Assistant. Control your lights, climate, automations, and more through natural language commands.
MCP-Agent
An autonomous AI agent designed to discover, connect to, and utilize tools and resources from various Model Context Protocol (MCP) servers to accomplish tasks.
openhab-mcp
This project provides an MCP (Model Context Protocol) server to enable AI assistants like Claude and Cline to interact with and manage a real openHAB smart home system via its REST API.