ha-mcp provides a Home Assistant MCP server enabling AI agents (like Claude, Cursor) to control Home Assistant devices, read sensors, and execute automations via the Model Context Protocol. The current version 7.6.0 requires Python 3.13+ (up to 3.14). Released regularly, it is the primary tool for integrating Home Assistant with MCP-compatible AI assistants.
pip install ha-mcpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal async server setup. Set HA_BASE_URL and HA_ACCESS_TOKEN environment variables.
Upgrade to Python 3.13+ or use an older ha-mcp version (though not recommended).
Set ha_version to your Home Assistant version string if auto-detection fails.
Migrate to from ha_mcp import MCPServer and run server with MCPServer(...).run().
Set HA_BASE_URL instead of HA_HOST.
No dependency data recorded yet.