homeassistant-gateway
Provides a safe, auditable MCP gateway for accessing and managing a Home Assistant installation, with observer (read-only) and operator (mutation) profiles.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@homeassistant-gatewaylist all switches and their states"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Home Assistant Gateway
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
Add this repository to the Home Assistant add-on store.
Install Home Assistant Gateway.
Open the interface through Open Web UI; the administration console is protected by Supervisor Ingress.
Keep
operator_enabled: falseunless 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:
open Clients;
create an independent client for each agent;
select the
observerprofile;grant only the required capabilities;
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.localUse 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:
/mcp/without a token → expected401;authenticated
initialize→ success;tools/list→ only the tools authorized for that client;one read operation → sanitized
ok,warningorerrorresult.
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_integrationsThe 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
Consumer guide — installation, surfaces, tools and minimum verification.
Configure an MCP client — endpoint, tokens, capabilities, rotation and revocation.
Troubleshooting — symptoms, causes and checks.
OpenClaw and Hermes integration — agent profiles and connectivity.
Product and architecture
Architecture — Clean Architecture boundaries, ports, adapters and composition.
Security model — threats, profiles, credentials, network and auditing.
Home Assistant platform contracts — APIs, WebSocket, Supervisor and Ingress.
Frontend design — shell, Ingress, accessibility, themes and i18n.
Development Console and operations
Development Console — operations, packs, jobs and results.
Automation inspection — bounded YAML rendering, static findings and read-only analysis.
Development Console traceability — evidence, failures, warnings, comparisons and export.
Frontend and credentials — UI boundaries and token handling.
Live smoke — verification against an authorized target.
Planning and releases
Roadmap — planned evolution and current boundaries.
Release 0.5.0 — historical architecture-hardening checklist.
ADR: Home Assistant as the primary target — product and deployment decision.
Local development
python -m pytest
.venv/bin/ruff check src tests scripts
pnpm --dir frontend run check
pnpm --dir frontend run buildRead the architecture and consumer guides before changing MCP contracts, profiles or security boundaries.
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
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
- Alicense-qualityDmaintenanceEnables control and monitoring of Home Assistant smart home devices through MCP protocol. Automatically manages authentication tokens and provides simplified tools for device discovery, switch control, and light brightness adjustment.Last updatedMIT
- FlicenseBquality-maintenanceEnables control and monitoring of Home Assistant smart home devices through MCP, allowing users to list entities, check device states, and call services to control lights, switches, sensors, and other connected devices.Last updated4
- Alicense-qualityBmaintenanceAn 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 updated605MIT
- AlicenseAqualityCmaintenanceMCP server for full Home Assistant control, enabling AI agents to manage dashboards, automations, files, apps, entities, and more via REST API, WebSocket, and SSH.Last updated66135MIT
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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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