Back to Home
kaichiachen icon

ha-mcp-server

Verified Safe

by kaichiachen

Overview

Connects AI assistants to Home Assistant, enabling them to control devices, query states, manage automations/scripts, and retrieve system information.

Installation

Run Command
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:latest

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens500
Stars0
Forks0
Last Update2026-01-17

Tags

Home AssistantSmart HomeAI IntegrationMCP ServerAutomation