Skip to main content
Glama
vypdev

homeassistant-gateway

by vypdev

Home Assistant Gateway

CI Release

Home Assistant Gateway is a Home Assistant add-on that provides a secure, bounded and auditable MCP interface for clients such as Hermes and OpenClaw to query a Home Assistant installation.

The default surface is observer/read-only: inventory, states, registries, history, logbook, diagnostics and metadata. Administration is served through Home Assistant Ingress, while direct MCP transport is protected by a host allowlist, Bearer token, client identity and capabilities.

Current status: v0.5.13. Operator provisioning follows the effective add-on flag, but no operator mutation is enabled yet. No MCP write tools are registered.

How to use it

1. Install the add-on

  1. Add this repository to the Home Assistant add-on store.

  2. Install Home Assistant Gateway.

  3. Open the interface through Open Web UI; the administration console is protected by Supervisor Ingress.

  4. Keep operator_enabled: false unless you intentionally want to provision operator-profile clients. Mutation execution remains disabled even when the profile flag is enabled.

2. Create an observer client

From the Ingress console:

  1. open Clients;

  2. create an independent client for each agent;

  3. select the observer profile;

  4. grant only the required capabilities;

  5. save the token when it is shown: it cannot be retrieved later.

Tokens are independent per client. For a lost or exposed token, use Rotate or Revoke.

3. Connect an MCP client

Configure mcp_allowed_hosts with the destination hosts used in the URL, without a port and without a global *. For example:

localhost,127.0.0.1,[::1],homeassistant,homeassistant.local

Use the port published by the add-on and the /mcp/ path:

http://<home-assistant-host>:18099/mcp/

The client must send its token as:

Authorization: Bearer <observer-client-token>

The minimum verification sequence is:

  1. /mcp/ without a token → expected 401;

  2. authenticated initialize → success;

  3. tools/list → only the tools authorized for that client;

  4. one read operation → sanitized ok, warning or error result.

The direct MCP endpoint does not publish the administration console. Use the Development Console through Ingress to verify connectivity, empty results, failures and read traceability.

Related MCP server: Home Assistant MCP Server

What it exposes

The observer profile can expose the following read-only tools, depending on the client's capabilities:

gateway_diagnostics  ha_inventory       ha_states
ha_automations       ha_automation_config ha_configuration
ha_history           ha_logbook           ha_services
ha_events             ha_devices           ha_areas
ha_floors             ha_labels            ha_entity_registry
ha_scripts            ha_scenes            ha_helpers
ha_integrations

The effective list is always verified with tools/list; connectivity does not prove that a client has every permission.

Security and boundaries

  • Home Assistant services are not called, and automations or configuration are not modified.

  • The gateway does not provide arbitrary shell, Docker socket, SSH, network scanning or transparent API proxying.

  • Secrets are excluded from prompts, MCP results, logs, audit records, snapshots and Git.

  • Results are bounded and distinguish successful reads, empty collections (warning/empty_result) and upstream or transport failures.

  • Development Console jobs are process-local, bounded and non-durable; they are lost when the add-on restarts.

Documentation index

Consumer guides

Product and architecture

Development Console and operations

Planning and releases

Local development

python -m pytest
.venv/bin/ruff check src tests scripts
pnpm --dir frontend run check
pnpm --dir frontend run build

Read the architecture and consumer guides before changing MCP contracts, profiles or security boundaries.

License

MIT. See LICENSE.

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
60Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    B
    maintenance
    An MCP server and Home Assistant add-on that enables AI assistants to manage smart homes by creating automations, designing dashboards, and interacting with entities. It features native access to Home Assistant APIs, built-in Git versioning for safe rollbacks, and full management of HACS integrations.
    Last updated
    605
    MIT

View all related MCP servers

Related MCP Connectors

  • Remote MCP for A2A caller identity, scope policy, verdict receipts, and audit history.

  • Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.

  • MCP Hub: AI service discovery, per-user OAuth, and multi-service workflow orchestration

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vypdev/homeassistant-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server