ha-mcp

homeassistant-ai/ha-mcp

3.6

If you are the rightful owner of ha-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Unofficial and Awesome Home Assistant MCP Server is a comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with Home Assistant using natural language.

Tools
5
Resources
0
Prompts
0

The Unofficial and Awesome Home Assistant MCP Server


A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with Home Assistant.
Using natural language, control smart home devices, query states, execute services and manage your automations.



🚀 Get Started

Full guide to get you started with Claude Desktop (~10 min)

No paid subscription required. Click on your operating system:

    

Quick install (~5 min)

🍎 macOS
  1. Go to claude.ai and sign in (or create a free account)
  2. Open Terminal and run:
    curl -LsSf https://raw.githubusercontent.com/homeassistant-ai/ha-mcp/master/scripts/install-macos.sh | sh
    
  3. Download Claude Desktop (or restart: Claude menu → Quit)
  4. Ask Claude: "Can you see my Home Assistant?"

You're now connected to the demo environment! Connect your own Home Assistant →

🪟 Windows
  1. Go to claude.ai and sign in (or create a free account)
  2. Open Windows PowerShell (from Start menu) and run:
    irm https://raw.githubusercontent.com/homeassistant-ai/ha-mcp/master/scripts/install-windows.ps1 | iex
    
  3. Download Claude Desktop (or restart: File → Exit)
  4. Ask Claude: "Can you see my Home Assistant?"

You're now connected to the demo environment! Connect your own Home Assistant →

🧙 Setup Wizard for 15+ clients

Claude Code, Gemini CLI, ChatGPT, Open WebUI, VSCode, Cursor, and more.

Having issues? Check the FAQ & Troubleshooting


💬 What Can You Do With It?

Just talk to Claude naturally. Here are some real examples:

You SayWhat Happens
"Create an automation that turns on the porch light at sunset"Creates the automation with proper triggers and actions
"Add a weather card to my dashboard"Updates your Lovelace dashboard with the new card
"The motion sensor automation isn't working, debug it"Analyzes execution traces, identifies the issue, suggests fixes
"Make my morning routine automation also turn on the coffee maker"Reads the existing automation, adds the new action, updates it
"Create a script that sets movie mode: dim lights, close blinds, turn on TV"Creates a reusable script with the sequence of actions

Spend less time configuring, more time enjoying your smart home.


✨ Features

CategoryCapabilities
🔍 SearchFuzzy entity search, deep config search, system overview
🏠 ControlAny service, bulk device control, real-time states
🔧 ManageAutomations, scripts, helpers, dashboards, areas, zones, groups, calendars, blueprints
📊 MonitorHistory, statistics, camera snapshots, automation traces, ZHA devices
💾 SystemBackup/restore, updates, add-ons, device registry
🛠️ Complete Tool List (82 tools)
CategoryTools
Search & Discoveryha_search_entities, ha_deep_search, ha_get_overview, ha_get_state
Service & Device Controlha_call_service, ha_bulk_control, ha_get_operation_status, ha_get_bulk_status, ha_list_services
Automationsha_config_get_automation, ha_config_set_automation, ha_config_remove_automation
Scriptsha_config_get_script, ha_config_set_script, ha_config_remove_script
Helper Entitiesha_config_list_helpers, ha_config_set_helper, ha_config_remove_helper
Dashboardsha_config_list_dashboards, ha_config_get_dashboard, ha_config_set_dashboard, ha_config_update_dashboard_metadata, ha_config_delete_dashboard, ha_get_dashboard_guide, ha_get_card_types, ha_get_card_documentation
Areas & Floorsha_config_list_areas, ha_config_set_area, ha_config_remove_area, ha_config_list_floors, ha_config_set_floor, ha_config_remove_floor
Labelsha_config_list_labels, ha_config_get_label, ha_config_set_label, ha_config_remove_label, ha_manage_entity_labels
Zonesha_list_zones, ha_create_zone, ha_update_zone, ha_delete_zone
Groupsha_config_list_groups, ha_config_set_group, ha_config_remove_group
Todo Listsha_list_todo_lists, ha_get_todo_items, ha_add_todo_item, ha_update_todo_item, ha_remove_todo_item
Calendarha_config_get_calendar_events, ha_config_set_calendar_event, ha_config_remove_calendar_event
Blueprintsha_list_blueprints, ha_get_blueprint, ha_import_blueprint
Device Registryha_list_devices, ha_get_device, ha_update_device, ha_remove_device, ha_rename_entity
ZHA & Integrationsha_get_zha_devices, ha_get_entity_integration_source
Add-onsha_list_addons, ha_list_available_addons
Cameraha_get_camera_image
History & Statisticsha_get_history, ha_get_statistics
Automation Tracesha_get_automation_traces
System & Updatesha_check_config, ha_restart, ha_reload_core, ha_get_system_info, ha_get_system_health, ha_list_updates, ha_get_release_notes, ha_get_system_version
Backup & Restoreha_backup_create, ha_backup_restore
Utilityha_get_logbook, ha_eval_template, ha_get_domain_docs, ha_list_integrations

🤝 Contributing

For development setup, testing instructions, and contribution guidelines, see .

For comprehensive testing documentation, see .


🔒 Privacy

Ha-mcp runs locally on your machine. Your smart home data stays on your network.

  • Configurable telemetry — optional anonymous usage stats
  • No personal data collection — we never collect entity names, configs, or device data
  • User-controlled bug reports — only sent with your explicit approval

For full details, see our .


📄 License

This project is licensed under the MIT License - see the file for details.


🙏 Acknowledgments

👥 Contributors


💬 Community


⭐ Star History

Star History Chart