Ha MCP Server

Read-only MCP (Model Context Protocol) server for Home Assistant. Gives AI assistants (Claude Desktop, LibreChat, Cline) full observability into your

Local serverstdioPython

What is the Ha MCP Server?

Read-only MCP (Model Context Protocol) server for Home Assistant. Gives AI assistants (Claude Desktop, LibreChat, Cline) full observability into your smart home —

Configuration and credentials

  • Python 3.11+ (for local use) or Docker - A Home Assistant instance with a long-lived access token - Create one in your HA profile: Settings → Security → Long-Lived Access Tokens - Access to your Home Assistant config directory (for filesystem tools)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
CategoryKey tools
Statesget_entity_state, get_states_grouped, search_entities, get_domains_summary, get_system_overview
Automationslist_automations, get_automation_code, get_automation_file_location, diagnose_automation, search_automations_by_entity, get_automation_conflicts, get_automation
Blueprintslist_blueprints, get_blueprint_code, get_blueprint_instances, get_blueprint_usage_summary, resolve_blueprint_automation
Integrationsget_integration_entities, get_integration_summary
Diagnosticsdiagnose_system_health, get_unavailable_entities_grouped, get_integration_health, diagnose_person_tracking
Logsget_log_insights, analyze_log_errors, get_startup_errors, get_log_timeline, search_logs
Historyget_entity_state_history_summary, get_recent_state_changes
Contextentity_get_context_tree, get_entity_dependencies, get_entity_consumers, get_context_chain
Configget_main_configuration, search_in_config, validate_yaml_syntax, read_config_file
Storagesearch_registries_batch, get_entity_registry, get_device_registry, get_area_registry, get_template_entity_code, get_cache_stats
Lovelaceget_lovelace_dashboards, get_lovelace_config, get_lovelace_resources, search_lovelace_config, get_lovelace_config_summary, diagnose_lovelace_setup
Batchbulk_search_entities, compare_entities_state, validate_yaml_batch, get_automation_codes_batch
Compositeinvestigate_entity, get_area_diagnostic, get_entity_with_automations, audit_config_orphans
Graphgraph_build_index, graph_find_references, graph_entity_impact, graph_get_neighbors, graph_detect_ghost_references, graph_detect_orphans, graph_export_mermaid

How to install the Ha MCP Server

{
  "mcpServers": {
    "ha-mcp-readonly": {
      "command": "ha-mcp-readonly",
      "env": {
        "HA_URL": "http://homeassistant.local:8123",
        "HA_TOKEN": "YOUR_HA_TOKEN",
        "HA_CONFIG_PATH": "/path/to/home-assistant/config"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Python 3.11+ (for local use) or Docker - A Home Assistant instance with a long-lived access token - Create one in your HA profile: Settings → Security → Long-Lived Access Tokens - Access to your Home Assistant config directory (for filesystem tools)
VariableDescriptionRequired
HA_URLDeclared in the maintainer’s client configuration.Check documentation
HA_TOKENDeclared in the maintainer’s client configuration.Check documentation
HA_CONFIG_PATHDeclared in the maintainer’s client configuration.Optional

Example prompts to try

  • “Use Ha to Category.”
  • “Use Ha to States.”
  • “Use Ha to Automations.”

Frequently asked questions

Read-only MCP (Model Context Protocol) server for Home Assistant. Gives AI assistants (Claude Desktop, LibreChat, Cline) full observability into your smart home — Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.