# homeassistant-assistant [Health: Active]

**Category:** 🏠 Home Automation  
**Repository:** https://github.com/calexandre/homeassistant-assistant  
**GitHub Stars:** 5  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/homeassistant-assistant

## Description
AI assistant for Home Assistant in Claude Code, GitHub Copilot CLI, and VS Code — grounded in your live entities (MCP) and the official docs.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "homeassistant-assistant": {
    "url": "https://YOUR-HOME-ASSISTANT/api/mcp"
  }
}
```

## Documentation

## What homeassistant-assistant does

homeassistant-assistant provides skills and a safety hook for Claude Code, GitHub Copilot CLI, and VS Code with GitHub Copilot. It is intended for working with an existing Home Assistant installation, not for developing Home Assistant Core.

The entry-point `homeassistant` skill checks live entity information before routing a request to a more specific skill. Supported workflows include generating Home Assistant automation, script, scene, and blueprint YAML; summarizing current states by area or function; troubleshooting configuration and runtime problems; authoring ESPHome device YAML; and reviewing Home Assistant release changes against the connected setup.

Answers can be grounded in the official Home Assistant and ESPHome documentation. The documentation lookup uses a sitemap to identify the relevant page and cites the section used.

## How it works

The agent connects to Home Assistant's Model Context Protocol Server integration at an `/api/mcp` endpoint. Requests begin with `GetLiveContext`, which supplies the devices and entities visible to the agent. Home Assistant's Device control tools only include entities exposed through **Settings → Voice assistants → Expose**.

The project also includes a read-only SSH workflow. When configured, it refreshes files in a local `ha-data/` directory, including automations, scripts, scenes, ESPHome YAML, Zigbee2MQTT data, and logs. Configuration snapshots older than 24 hours are refreshed, and troubleshooting refreshes them before debugging. A hook checks shell commands run through Bash or PowerShell and blocks destructive SSH commands aimed at the Home Assistant host.

## Setup and configuration

Home Assistant 2026.11 or later is required, with the Model Context Protocol Server integration enabled. Add the integration, expose the entities the agent should access, and use the Home Assistant URL followed by `/api/mcp`. The connection requires an HTTPS URL matching Home Assistant's configured internal or external URL. Authentication takes place in a browser through Home Assistant OAuth; the setup does not require manually creating or copying a token.

Install the plugin for Claude Code or GitHub Copilot CLI, then add the HTTP MCP server and sign in through the browser. For VS Code, clone the repository, open it as a workspace, and add the HTTP server through **MCP: Add Server**. Python 3 is required for the SSH read-only guard. SSH snapshots additionally require a passwordless `homeassistant` host alias in `~/.ssh/config`.

## Tools and capabilities

- Retrieve live Home Assistant entities and states through `GetLiveContext`.
- Use Home Assistant device-control tools for exposed entities.
- Produce automation, script, scene, and blueprint YAML with explanations and customization ideas.
- Inspect states by area or function.
- Walk through configuration validation, logs, traces, Developer Tools, and debug logging.
- Create ESPHome device YAML using the esphome.io documentation sitemap.
- Compare a Home Assistant release with the connected devices and configurations through `/ha-release-notes`.
- Refresh optional read-only snapshots over SSH.
- Block destructive SSH commands from supported shell environments.

## Limitations and notes

The MCP connection exposes live entity state, but it does not provide automation, script, or scene definitions, configuration files, or logs. Those require the optional SSH snapshot workflow. Only entities exposed in Home Assistant are visible to the default device-control tools. The SSH workflow depends on the exact `homeassistant` host alias and is read-only by design. The project targets existing Home Assistant installations rather than Home Assistant Core development.

_Full upstream README: https://allmcps.com/mcp/homeassistant-assistant/readme_

