ha-mcp
Verified Safeby homeassistant-ai
Overview
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.
Installation
python -m ha_mcp webEnvironment Variables
- HOMEASSISTANT_URL
- HOMEASSISTANT_TOKEN
- MCP_PORT
- MCP_HOST
- LOG_LEVEL
- FUZZY_THRESHOLD
- HAMCP_ENABLE_FILESYSTEM_TOOLS
- HAMCP_ENABLE_CUSTOM_COMPONENT_INTEGRATION
Security Notes
The server securely handles Home Assistant API tokens via environment variables and uses encryption for OAuth credentials. Filesystem access tools are explicitly feature-flagged and operate within a well-defined sandbox, blocking path traversal. Jinja2 template evaluation is delegated to Home Assistant's core, offloading potential security risks. The primary 'risk' is the extensive control granted to AI agents over a smart home environment, which is the intended functionality.
Similar Servers
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.
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.
photons
A comprehensive demonstration MCP server showcasing various functionalities of the Photon runtime, including basic data handling, streaming responses, progress reporting, in-memory state management, and interactive UI elements. It serves as a reference for developers building new photons.
mq-mcp
Acts as a Model Context Protocol (MCP) server for AI assistants, enabling them to query and process Markdown and HTML content using the mq query language.