Skip to main content

Home Assistant MCP Server - Complete control of Home Assistant through MCP

Project description

Home Assistant MCP Server Logo

The Unofficial and Awesome Home Assistant MCP Server

95+ Tools Release E2E Tests License
Activity Built with FastMCP Python Version GitHub Sponsors

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.


Demo with Claude Desktop


🚀 Get Started

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

No paid subscription required. Click on your operating system:

Setup Guide for macOS    Setup Guide for Windows

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.

Open Setup Wizard

Having issues? Check the FAQ & Troubleshooting


💬 What Can You Do With It?

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

You Say What 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

Category Capabilities
🔍 Search Fuzzy entity search, deep config search, system overview
🏠 Control Any service, bulk device control, real-time states
🔧 Manage Automations, scripts, helpers, dashboards, areas, zones, groups, calendars, blueprints
📊 Monitor History, statistics, camera snapshots, automation traces, ZHA devices
💾 System Backup/restore, updates, add-ons, device registry
🛠️ Complete Tool List (97 tools)
Category Tools
Search & Discovery ha_search_entities, ha_deep_search, ha_get_overview, ha_get_state
Service & Device Control ha_call_service, ha_bulk_control, ha_get_operation_status, ha_get_bulk_status, ha_list_services
Automations ha_config_get_automation, ha_config_set_automation, ha_config_remove_automation
Scripts ha_config_get_script, ha_config_set_script, ha_config_remove_script
Helper Entities ha_config_list_helpers, ha_config_set_helper, ha_config_remove_helper
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 & Floors ha_config_list_areas, ha_config_set_area, ha_config_remove_area, ha_config_list_floors, ha_config_set_floor, ha_config_remove_floor
Labels ha_config_get_label, ha_config_set_label, ha_config_remove_label, ha_manage_entity_labels
Zones ha_get_zone, ha_create_zone, ha_update_zone, ha_delete_zone
Groups ha_config_list_groups, ha_config_set_group, ha_config_remove_group
Todo Lists ha_get_todo, ha_add_todo_item, ha_update_todo_item, ha_remove_todo_item
Calendar ha_config_get_calendar_events, ha_config_set_calendar_event, ha_config_remove_calendar_event
Blueprints ha_list_blueprints, ha_get_blueprint, ha_import_blueprint
Device Registry ha_get_device, ha_update_device, ha_remove_device, ha_rename_entity
ZHA & Integrations ha_get_zha_devices, ha_get_entity_integration_source
Add-ons ha_get_addon
Camera ha_get_camera_image
History & Statistics ha_get_history, ha_get_statistics
Automation Traces ha_get_automation_traces
System & Updates ha_check_config, ha_restart, ha_reload_core, ha_get_system_info, ha_get_system_health, ha_get_updates
Backup & Restore ha_backup_create, ha_backup_restore
Utility ha_get_logbook, ha_eval_template, ha_get_domain_docs, ha_get_integration

🧠 Better Results with Agent Skills

This server gives your AI agent tools to control Home Assistant. For better configurations, pair it with Home Assistant Agent Skills — domain knowledge that teaches the agent Home Assistant best practices.

An MCP server can create automations, helpers, and dashboards, but it has no opinion on how to structure them. Without domain knowledge, agents tend to over-rely on templates, pick the wrong helper type, or produce automations that are hard to maintain. The skills fill that gap: native constructs over Jinja2 workarounds, correct helper selection, safe refactoring workflows, and proper use of automation modes.


🧪 Dev Channel

Want early access to new features and fixes? Dev releases (.devN) are published on every push to master.

Dev Channel Documentation — Instructions for pip/uvx, Docker, and Home Assistant add-on.


🤝 Contributing

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

For comprehensive testing documentation, see tests/README.md.


🔒 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 Privacy Policy.


📄 License

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


🙏 Acknowledgments

👥 Contributors

  • @julienld — Project maintainer & core contributor.
  • @kingbear2 — Windows UV setup guide.
  • @sergeykad — Dashboard card-level CRUD operations, better changelogs and removed the dependency to textdistance/numpy.
  • @konradwalsh — Financial support via GitHub Sponsors. Thank you! ☕
  • @cj-elevate — Integration & entity management tools (enable/disable/delete).
  • @kingpanther13 — Dev channel documentation, bulk control validation, OAuth 2.1 docs, tool consolidation, error handling improvements, and native solutions guidance.
  • @Danm72 — Entity registry tools (ha_set_entity, ha_get_entity) for managing entity properties.
  • @Raygooo — SOCKS proxy support.

💬 Community


⭐ Star History

Star History Chart

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_homeassistant_ai_ha_mcp-6.6.1.tar.gz (223.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_homeassistant_ai_ha_mcp-6.6.1.tar.gz.

File metadata

  • Download URL: iflow_mcp_homeassistant_ai_ha_mcp-6.6.1.tar.gz
  • Upload date:
  • Size: 223.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_homeassistant_ai_ha_mcp-6.6.1.tar.gz
Algorithm Hash digest
SHA256 d5d76cd2f6e5a9647d371a75c4f9b3ac22211049106a84925a80399c64777986
MD5 b3dab6f34e5bc948f068675cfef626c0
BLAKE2b-256 cd9deb272103b33961b602fff59175a73b497be9d22ba81749c50981f373a8c2

See more details on using hashes here.

File details

Details for the file iflow_mcp_homeassistant_ai_ha_mcp-6.6.1-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_homeassistant_ai_ha_mcp-6.6.1-py3-none-any.whl
  • Upload date:
  • Size: 253.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_homeassistant_ai_ha_mcp-6.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e93a99a6b7db9f9b03fb45474be12e22ed2f11da9987d4dbbef3de67007788c8
MD5 2017f5e2985a17eaca6074e23ed9837e
BLAKE2b-256 b7285c32af1fbd72ad93b24ee56899d70baa271cbd4aa103584ccda6c7171b34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page