Server data from the Official MCP Registry
Home Assistant and ESPHome for coding agents: states, services, automations, dashboards, flashing.
About
Home Assistant and ESPHome for coding agents: states, services, automations, dashboards, flashing.
Security Report
This is a Home Assistant MCP server with token-based auth (VOMEHOME_TOKEN or HA_TOKEN from the environment), a centralized write-guard, and permissions that fit its purpose. The main concerns are the local file-read paths in ha_upload_file and ha_speech_to_text, and brokered mode defaulting write flags to permissive and relying on remote API key scopes. Much of the tool implementation and the plugin file is truncated, so those areas could not be fully verified. Supply chain analysis found 11 known vulnerabilities in dependencies (2 critical, 5 high severity). Package verification found 1 issue.
9 files analyzed · 16 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: HA_URL
Environment variable: HA_TOKEN
Environment variable: HA_ALLOW_WRITE
Environment variable: VOMEHOME_TOKEN
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"home-assistant-mcp": {
"command": "npx",
"args": [
"-y",
"@vortitron/home-assistant-mcp@0.17.4"
],
"env": {
"HA_URL": "your-ha-url-here",
"HA_TOKEN": "your-ha-token-here",
"HA_ALLOW_WRITE": "your-ha-allow-write-here",
"VOMEHOME_TOKEN": "your-vomehome-token-here"
}
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
home-assistant-mcp
A Model Context Protocol (MCP) server that lets coding agents — Cursor, VS Code (Copilot), Claude Desktop and anything else that speaks MCP — talk directly to Home Assistant and (optionally) the ESPHome dashboard.
Instead of copy-pasting entity ids, YAML and current values into your agent, the agent can discover entities, read live state, render templates, call services and edit automations itself — and iterate until the code actually works.

In Claude Code, four side panes show what Claude is doing to your home as it happens: the automation it is working on, the ESPHome device it is building, the home's health score and a dashboard that works. One command installs all four (below).
Part of the Vome family and an open-source companion to VomeHome (managed Home Assistant). It is useful stand-alone for any Home Assistant user.
Why
A typical "change an automation" loop today looks like: you tell the agent which entities exist, paste their current values, paste the YAML, apply the change, then manually check whether it worked. With this server the agent does all of that:
- See — list entities/areas/devices, read exact states and attributes, pull history and the logbook.
- Experiment — render Jinja templates against live state, check configuration, read the error log.
- Change — call services, create/update/delete/trigger automations, and (for ESPHome) edit, validate, compile and flash device firmware.
All write operations are off by default and gated behind an explicit safety policy (see Safety).
Tools
Home Assistant — read
| Tool | Description |
|---|---|
ha_get_config | Core config: version, location, time zone, loaded components. |
ha_list_entities | List entities (filter by domain, free-text search, area). |
ha_get_state | Full state + attributes for one or more entities. |
ha_get_history | Historical state changes over a time window. Given only a start time, it runs up to now (Home Assistant alone stops 24 hours after the start); ha_get_logbook does the same. |
ha_list_services | Available services (and their fields for a given domain). |
ha_list_areas | Areas (rooms/zones). |
ha_list_devices | Device registry (filter by area / search). |
ha_get_entity_registry | Registry metadata: platform, area, device, disabled/hidden. |
ha_render_template | Render a Jinja2 template against live state. |
ha_list_helpers | List stored helpers (input_boolean, input_number, counter, timer, …). |
ha_list_automations | Automations with entity_id, unique id, state, last-triggered. |
ha_get_automation | Full automation config (triggers/conditions/actions) for an automation made in the editor. One written in a YAML package or included file is named as such, with what to search for to find its file. |
ha_check_config | Validate the configuration (Check configuration). |
ha_wait_until_running | Wait (up to 120 s) for Home Assistant to finish restarting, checking its core state every 5 s. While it restarts, the other tools say "Home Assistant is restarting (core state: …)" or "not answering — it may be restarting" instead of a raw 502, nginx 404 or WebSocket error. When the home is a CHAP pair's main and its standby is running the home (failover), they say that instead, name the standby and how to reach it (instance_id on the call, or vomehome_use_instance); the CHAP status is asked once per half minute at most, and only for restart-shaped failures. |
ha_get_system_log | Deduplicated, structured errors — level, logger, source, count, first/last seen. Start here. |
ha_get_error_log | Tail of the raw Home Assistant error log. |
ha_get_supervisor_log | Add-on / Core / Supervisor / host logs (HAOS or Supervised). |
ha_list_media_files / ha_read_media_file | Read-only look into /media: a saved camera snapshot comes back as an image (needs ha:files, and Vome add-on 0.3.66 / integration 0.9.51 on the home). |
ha_camera_image | A camera's current still, as an image the agent can see. Via VomeHome the key needs Cameras ticked. |
ha_camera_frame | A camera still decoded and shrunk to a small grid of RGB pixels, for clients that draw pictures in text. |
ha_view_snapshot | Everything a dashboard view shows in one call: states, rendered templates, history in few points, camera frames. For dashboard clients. |
ha_watch_states | Wait for state changes instead of polling: the home's Vome component sends them as they happen (through VomeHome). Where no component is connected (a hosted home without the Vome add-on, a direct connection) it reads the states every ~3 s for the same wait and answers in the same shape with mode: "polling"; a 401/403 is never papered over. |
ha_get_logbook | Human-readable logbook entries, filtered by entity_id, contains (message, name or entity_id), name (e.g. Vome) and domain. At most limit (default 500) come back, the newest, with count_before_limit, truncated and older_entries_end_time to read further back. A window longer than a day is read a day at a time, newest first, stopping as soon as limit entries match (at most 31 days per call), so Home Assistant is never asked for more than 24 hours at once. |
ha_get_energy_prefs | The Energy dashboard's setup (grid, solar, battery, gas, water, tracked devices) with the dashboard's own validation. |
ha_list_traces | Recent automation/script runs and how each one stopped. |
ha_get_trace | Step-by-step detail for one run, with failed_at naming the blocking step. |
Home Assistant — write (write-gated)
Write-gating depends on the mode. In direct mode the MCP is the only guard, so these refuse until
HA_ALLOW_WRITE=true. In brokered mode your VomeHome API key carries the per-instanceha:write/ha:configscopes and the server enforces them, so the client flags are optional local-only restrictions.
| Tool | Description |
|---|---|
ha_call_service | Call any service (turn_on, set_temperature, …). A service that can return a response (shell_command's stdout/stderr/returncode, script, weather.get_forecasts …) is asked for it, and it comes back as service_response. |
ha_speech_to_text | Run a WAV (16-bit PCM, at most 30 s) through one of the home's speech-to-text engines (stt.*) and get back the words it heard, to test an assistant's hearing without speaking to a device. audio_path reads a local file (npx servers only); audio_base64 sends the bytes (the hosted MCP). Language defaults to the home's own. Engines want 16 kHz mono (ffmpeg -i in.wav -ar 16000 -ac 1 -sample_fmt s16 out.wav). A write because some engines (Vome Hearing, cloud ones) charge per request: needs HA_ALLOW_WRITE / ha:write; not for external homes through VomeHome. |
ha_list_assist_pipelines | List the voice assistants (Assist pipelines): conversation agent, speech-to-text, text-to-speech, wake word, which is preferred and which satellites use each. |
ha_set_assist_pipeline | Change a voice assistant's fields (e.g. stt_engine: stt.vome_hearing), by id or name; the rest are kept, since the pipeline is read and sent back whole. make_preferred makes it the preferred one. Needs HA_ALLOW_CONFIG_WRITE / ha:config. |
ha_clear_system_log | Empty the structured error store (only needs HA_ALLOW_WRITE). |
ha_set_log_level | Change logging for one integration at runtime (only needs HA_ALLOW_WRITE). |
ha_set_automation | Create or update an automation (also needs HA_ALLOW_CONFIG_WRITE). |
ha_set_helper | Create or update a helper — no configuration.yaml, no restart. |
ha_read_config_file | Read a file under the config directory — text by default, or encoding: 'base64' for a binary asset (needs ha:files). |
ha_write_config_file | Replace a file under the config directory — text by default, or encoding: 'base64' for a binary asset; checks the config and restores the file if it fails (needs ha:files). |
ha_upload_file | Copy a file already on disk (a web page, an image, a package) into the config directory: read from the MCP server's own filesystem, sent as text or base64 as it needs, at most 2 MiB, written and checked like ha_write_config_file. Local (npx) servers only — the hosted MCP can't see your files and answers with the equivalent curl upload (needs ha:files). |
ha_delete_config_file | Delete one file under the config directory. Never a directory, and never configuration.yaml, secrets.yaml or Home Assistant's database. Names its target home like a write (needs ha:files, and Vome add-on 0.3.55 / integration 0.9.39 on the home). |
ha_edit_config_file | Change part of a text file in place: exact find-and-replace edits that must each match once, then the same check-and-restore as a write. For a three-line change to a large file (needs ha:files). |
ha_list_config_files | List a directory under the config directory, folders first: glob filters by name (*.yaml) or path (**/*.html), offset/limit page (default 200), and the reply gives total_entries, total_bytes (this folder's own files, not subfolders) and truncated when the home stopped at its 500-entry cap (needs ha:files). |
ha_move_config_file | Move or rename one file under the config directory, creating folders on the way; never overwrites unless asked. Names its target home like a write (needs ha:files, and Vome add-on 0.3.66 / integration 0.9.51). |
ha_delete_helper | Delete a stored helper. Refuses when the id looks shared with a configuration.yaml helper, because Home Assistant would take that entity down with it. |
ha_delete_automation | Delete an automation (also needs HA_ALLOW_CONFIG_WRITE). |
ha_get_script / ha_set_script / ha_delete_script | Scripts by id, the same way as automations: put a step several automations share in one script. Writes need HA_ALLOW_CONFIG_WRITE. |
ha_update_entity | Rename, re-id, move, re-icon, disable or hide an entity in the registry (needs HA_ALLOW_CONFIG_WRITE). |
ha_update_device | Rename a device, move it to an area, disable it or set its labels (needs HA_ALLOW_CONFIG_WRITE). |
ha_expose_entities | List or change what Assist, Alexa and Google Assistant can see and control; listing needs only read (changing needs HA_ALLOW_CONFIG_WRITE). |
ha_set_energy_prefs | Change the Energy dashboard's setup; each list passed replaces that list whole, then it is validated (needs HA_ALLOW_CONFIG_WRITE). |
ha_get_statistics | Read long-term statistics (what the Energy dashboard draws) per 5 minutes to month; largest_changes lists the biggest buckets, like the Outliers button. |
ha_adjust_statistic | Correct one 5-minute bucket of a statistic, by new value or by adjustment, as Developer Tools → Statistics does (needs HA_ALLOW_CONFIG_WRITE). |
ha_remove_entity | Remove an orphaned registry entry (needs HA_ALLOW_CONFIG_WRITE). |
ha_matter_reinterview | The Matter device page's Re-interview, for a device whose endpoints changed after a firmware update (needs HA_ALLOW_CONFIG_WRITE). |
ha_trigger_automation | Manually run an automation now. |
ha_reload_automations | Reload automations without restarting. |
Lovelace dashboards (direct HA or VomeHome brokered)
| Tool | What it does |
|---|---|
ha_list_dashboards | List dashboards (url_path, title, mode, sidebar). |
ha_get_dashboard | Read one dashboard's full config (views, cards, …). |
ha_save_dashboard | Save/replace a dashboard config (needs HA_ALLOW_CONFIG_WRITE). |
ha_create_dashboard | Register a new storage-mode dashboard (needs HA_ALLOW_CONFIG_WRITE). |
ha_update_dashboard | Change a dashboard's title, icon, sidebar or admin setting, keeping its cards (needs HA_ALLOW_CONFIG_WRITE). |
ha_delete_dashboard | Delete a dashboard by id, cards and all (needs HA_ALLOW_CONFIG_WRITE). |
Dashboards use Home Assistant's WebSocket API. In brokered mode VomeHome proxies an allowlisted subset via
POST /api/v1/instances/<id>/ha/ws/command. |ha_fire_event| Fire a custom event on the event bus. |
ESPHome (brokered to a relay-connected HA)
| Tool | Description |
|---|---|
esphome_dashboard_info | How ESPHome is reached, and whether flashing/logs are available right now. |
esphome_list_devices | List dashboard configurations/devices as compact rows (name, friendly name, configuration, address/ip, versions, state); filter (substring of name, friendly name, filename or address/ip), limit (default 50, max 500), full: true for the dashboard's own rows. Says total, matched and truncated; flags configs needing renames. |
esphome_list_migrations | ESPHome spellings a config still uses that have been renamed. |
esphome_get_config | Read a configuration's YAML. |
esphome_save_config | Write a configuration's YAML, whole: for a new file or a large rewrite (write-gated). Inline as yaml, or yaml_path, a file on the MCP's own machine (npx / stdio; UTF-8, at most 2 MiB) so a long config is not pasted into the call. The hosted MCP cannot read your disk and answers with the REST upload into esphome/ instead. |
esphome_edit_config | Change part of a configuration in place with exact find-and-replace edits, so a long file is not resent (write-gated). For a large rewrite, use esphome_save_config with yaml_path rather than huge edits. |
vome_health_report | Vome's health score for the home and every finding, with severity, evidence, a recommendation and the entities involved. |
vome_health_check | Run a fresh health check, to re-score after fixes (write-gated). |
esphome_validate | Validate a configuration. |
esphome_compile | Compile firmware. |
esphome_upload | Compile + flash a device over the air; validates first (write-gated). |
esphome_logs | Read a device's live logs — boot, wifi, sensors, crashes. |
esphome_clean | Delete cached build files after a stale-build compile failure (write-gated). |
There is nothing to configure. Every command — builds and logs included — goes through the VomeHome relay, so ESPHome works wherever brokered Home Assistant does, with no port to open.
There is also no second way in. The ESPHome add-on is host-networked with its web
port disabled, behind an ingress that admits only the Supervisor and localhost,
so the Vome component on the home is the only thing that can reach the dashboard
at all. A direct-dashboard mode existed once (ESPHOME_DASHBOARD_URL) and was
removed in 0.6.0: it spoke a protocol ESPHome has since deleted, and on a default
install it could not connect anyway.
Node-RED (NODERED_URL)
Node-RED is the flow-based editor that ships as a Home
Assistant add-on. It is powerful but fiddly to edit by hand — so let the agent
read and write the flow JSON for you. Flows are stored as a JSON array of nodes
grouped into tabs; these tools work a tab at a time (safe) or on the whole
config (deliberate). Writes are gated behind the same switches as editing HA
automations (HA_ALLOW_WRITE + HA_ALLOW_CONFIG_WRITE).
| Tool | Description |
|---|---|
nodered_get_flows | Get the full flow config (all tabs) plus the current revision. |
nodered_get_flow | Get one flow (tab) and its nodes by id. |
nodered_list_nodes | List installed node modules/types (the palette). |
nodered_create_flow | Add a new tab without disturbing existing flows (write-gated). |
nodered_update_flow | Replace one tab by id, leaving others untouched (write-gated). |
nodered_delete_flow | Delete a tab and its nodes (write-gated). |
nodered_set_flows | Replace the entire flow config and deploy (write-gated). |
VomeHome (require VOMEHOME_TOKEN)
VomeHome is managed Home Assistant hosting. Log in to the portal with GitHub, mint a personal access token under Account → API tokens, and the agent can manage your instances from the editor. Advanced management stays behind a full browser login on the portal.
| Tool | Description |
|---|---|
vomehome_list_instances | List your HA instances with kind (hosted, relay, external), status, tier, URL, live health, the active instance and per-instance client write/config access. One the portal cannot reach right now (a disconnected relay, a retired home) is marked offline: true with a note. |
vomehome_get_instance | Details + live status for one instance. |
vomehome_use_instance | Switch which instance the ha_* tools target (multi-instance — see Several instances from one token). |
vomehome_reboot_instance | Reboot an instance's VM (write-gated). |
vomehome_create_instance | Create a throwaway test/sandbox instance (needs the create scope on your API key; the creating key is granted full HA access on the new instance, which becomes the active target). |
vomehome_get_login_url | Mint a one-click HA login URL to open in a new tab. |
vomehome_list_backups | Backups in the home's Vome backup location (needs ha:files). |
vomehome_backup_download_link | A link to download one backup's .tar, good for about 15 minutes (needs ha:files). |
vomehome_create_guest_link | Create a non-admin HA user + one-click login URL for sharing (needs HA_ALLOW_CONFIG_WRITE). Vome-hosted instances only. |
vomehome_list_guest_links | List guest links for an instance, revoked ones included. |
vomehome_revoke_guest_link | Revoke a guest link immediately. |
vomesync_create_switch | Make a VomeSync switch owned by the home (its Vome integration): name, description, category, link, pictures, public or not. Write-gated. |
vomesync_update_switch | Change a VomeSync switch's details, or make it public or private (Vome integration 0.9.68+). Write-gated. |
VomeSync switches. Making a switch public can need a CAPTCHA, which an
agent can't solve. When the home's owner pays for Vome (a plan, Connect or a
package from Vome), vomesync_create_switch and vomesync_update_switch ask
the portal for a single-use pass and send it instead. Without one they still
try, and say why if VomeSync refuses.
Guest links are self-serve, revocable sharing: a non-admin (unless you
pass admin: true) Home Assistant account plus a one-click login URL, minted
and torn down on demand, without handing out the owner's own credentials.
They only work for Vome-hosted instances — minting a token for someone
other than the owner needs direct network access to the VM, which a
self-hosted/relay-linked instance doesn't offer the portal.
Home Assistant's permission model is coarse. A non-admin guest is locked
out of Settings and Developer Tools, but can still call services on any
entity the dashboard shows them — there is no per-entity guest scoping in
Home Assistant itself. A guest link is safe on a dedicated demo/sandbox
instance built to be poked at. It is not a substitute for real access control
on somebody's actual house — don't point one at one. The link auto-expires
(expires_in, default 24h, capped at 30 days — Home Assistant's own
long-lived tokens never expire on their own, so Vome enforces this) and can
be revoked early at any time.
Integrations & config entries
| Tool | Description |
|---|---|
ha_list_config_entries | List installed integrations (config entries). Optional domain filter. |
ha_list_config_subentries | List one config entry's subentries (Supernotify's recipients and transports, MQTT devices, AI agents): id, type, title, unique_id, and a count per type. Home Assistant doesn't expose their settings; use the integration's own read action for those. |
ha_list_repairs | List Settings → Repairs in the UI's own words (title, description), worst first, with severity, integration, fixable, breaks-in version and learn-more link. domain filter; ignored ones hidden unless include_ignored. |
ha_ignore_repair | Ignore a repair (or ignore: false to bring it back). Hides it; fixes nothing. Needs HA_ALLOW_CONFIG_WRITE. |
ha_delete_config_entry | Delete a config entry by id — the fix for an orphaned/duplicate entry left behind after a device was removed, which is otherwise why a re-added device's entities pick up a _2 suffix. Needs HA_ALLOW_CONFIG_WRITE. |
ha_list_discovery_flows | List integrations Home Assistant has discovered on the network but not yet added. |
ha_config_flow | Start (handler), reconfigure an existing entry (entry_id) or continue (flow_id + user_input) an integration's config flow. Needs HA_ALLOW_CONFIG_WRITE. |
ha_config_entry_options | Read or set an integration's options — including ESPHome's allow_service_calls. |
ha_integration_setup_vome | Add the Vome (vomesync) config entry with default settings, idempotently. |
Supervisor / Vome add-on (HAOS / Supervised)
| Tool | Description |
|---|---|
ha_supervisor_api | Call a Supervisor endpoint via supervisor/api (store, add-ons, …). A …/logs read is served from the log route, since supervisor/api cannot carry plain text, and add-on start/stop/restart wait 50 s instead of Home Assistant's 10. |
ha_addon_install_vome | Add https://github.com/Vortitron/VomeSync to the store, install Vome, and start it. |
Community store: the Marketplace (2026.11+) or HACS
The ha_hacs_* names predate Home Assistant 2026.11, which built HACS into
Core as the Marketplace. Each tool asks marketplace/info first and uses
the Marketplace's own commands when it is there, falling back to HACS's
hacs/* on older Home Assistants. The names stayed so existing permission
rules and prompts keep working.
| Tool | Description |
|---|---|
ha_hacs_info | Which store this home has (marketplace or hacs) and its status; for the Marketplace, whether GitHub is connected and whether an admin has accepted its warning. |
ha_hacs_list_repositories | List repositories the store knows about. Installed ones only by default, trimmed to id, name, category, installed/available version and pending_update; installed_only: false or search looks through the catalogue, categories and limit (default 100) narrow it, full: true returns raw rows. |
ha_hacs_add_repository | Add a custom repository by owner/repo and category. The Marketplace only adds one once GitHub is connected in Settings → Marketplace. Confirms by re-listing, since HACS acks even a failed add. Needs ha:config (HA_ALLOW_CONFIG_WRITE in direct mode). |
ha_hacs_download_repository | Install (or update) a tracked repository — the step that actually writes its files. Needs ha:config (HA_ALLOW_CONFIG_WRITE in direct mode). |
ha_hacs_remove_repository | Uninstall a repository's files and stop tracking it. Needs ha:config (HA_ALLOW_CONFIG_WRITE in direct mode). |
There is no REST API or service call for managing repositories — these go
over the store's WebSocket commands, the same way as the Supervisor tools
above. Adding a repository only registers it; call
ha_hacs_download_repository afterwards to install it. With HACS, restart
Home Assistant before setting up a new integration; the Marketplace loads a
first install straight away and raises a repair when an update needs a
restart. Nothing installs through the Marketplace until an admin has accepted
its warning in Settings → Marketplace, and there is deliberately no tool for
that.
People
| Tool | Description |
|---|---|
ha_list_people | List the people (Settings → People): linked user, device trackers, and whether each can be edited here (not if defined in configuration.yaml). |
ha_set_person | Create or change a person: name, linked user, picture and device trackers. add_device_trackers / remove_device_trackers swap one tracker at a time, such as an old phone for a new one. Needs HA_ALLOW_CONFIG_WRITE. |
ha_delete_person | Delete a person; its user and trackers stay. Needs HA_ALLOW_CONFIG_WRITE. |
Users
| Tool | Description |
|---|---|
ha_list_users | List every user: id, name, username, role, active/owner status. |
ha_create_user | Create a user with a role (admin / user / read_only) but no login yet. Needs HA_ALLOW_CONFIG_WRITE. |
ha_update_user | Change a user's name, role, active state, or local-only restriction. Needs HA_ALLOW_CONFIG_WRITE. |
ha_delete_user | Permanently delete a user and its login. Needs HA_ALLOW_CONFIG_WRITE. |
ha_set_user_credentials | Give a user with no login yet a username/password. Needs HA_ALLOW_CONFIG_WRITE. |
ha_change_user_password | Reset the password for a user that already has a login. Needs HA_ALLOW_CONFIG_WRITE. |
ha_remove_user_credentials | Remove a login without deleting the user. Needs HA_ALLOW_CONFIG_WRITE. |
ha_provision_service_login | Give a program (an MQTT client, a Zigbee bridge, an ESPHome device) its own non-admin login and write the password straight into its add-on options or a secrets file. The password is generated here and never returned. Needs HA_ALLOW_CONFIG_WRITE, plus ha:files for secrets files. |
A user + password these tools create is a standing Home Assistant login,
independent of any VomeHome API key. Revoking the key that created it does
not remove the account — unlike everything else in this server, which acts
through the calling key and stops working the moment it's revoked. Treat
granting ha:config on an instance as equivalent to trusting the holder with
permanent account creation on that home. role has no default on
ha_create_user; it must be chosen explicitly rather than silently landing
on admin.
Logins for programs: ha_provision_service_login. Wiring a device into a
home usually stops at one step: someone invents a password and types it into
two places. ha_set_user_credentials makes the caller choose it, which an
agent should not be doing. This tool generates it instead (128 bits), writes it
into the consumer's add-on options (e.g. mqtt.user / mqtt.password) and/or a
secrets file, and replies with where it went, never what it is. The Mosquitto
add-on accepts Home Assistant logins, so one call wires an MQTT client. It
checks every target before creating anything, deletes a new login that could
be delivered nowhere, never makes an admin, is local-only by default, and with
rotate=true re-issues only logins it created itself (marked
(service login) in the user's name), never a person's account. Programs
outside Home Assistant, with neither add-on options nor a secrets file, are out
of its reach.
ha_config_entry_options reaches settings that exist nowhere else in the API.
The one people ask for is ESPHome's "allow the device to perform Home
Assistant actions" (allow_service_calls): a device cannot call HA services
without it, and it is several clicks deep in the UI, so it is routinely
forgotten. Get the entry id from ha_list_config_entries with domain=esphome,
call with entry_id alone to read the form, then again with user_input.
Submitting sets every field on the form, so send the values you read back with
only what you meant to change altered.
Needs a Supervised/HAOS target (e.g. a VomeHome sandbox from vomehome_create_instance, or the ha-plc-sandbox MCP entry). In brokered mode the API key's scopes decide — no HA_ALLOW_WRITE / VOMEHOME_ALLOW_CREATE env flags required. Container-only HA has no add-on store — use HACS for the integration there.
Typical developer flow: vomehome_create_instance → wait until running → ha_addon_install_vome → restart Core → add the Vome integration.
Install
Requires Node.js ≥ 20. There is nothing to install
by hand — your editor launches the server on demand with npx, so the same
config works on every machine (no absolute paths).
One‑click (Cursor)
Click it, then edit the pre‑filled HA_URL and HA_TOKEN. (If the button does
nothing, copy the cursor:// link from the source of this section into your
browser's address bar.)
One‑line config
Add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one
project) and fill in your token — that's the whole install:
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"HA_URL": "http://homeassistant.local:8123",
"HA_TOKEN": "paste-your-long-lived-token",
"HA_ALLOW_WRITE": "false"
}
}
}
}
Verify / from source
npx -y @vortitron/home-assistant-mcp doctor # one-off connectivity check
# or hack on it:
git clone https://github.com/Vortitron/home-assistant-mcp.git
cd home-assistant-mcp && npm install && npm run build
LAN TCP tunnels (RDP, etc.)
npx -y @vortitron/home-assistant-mcp tunnel --token <jwt> --local-port 3390
Opens a local listener on 127.0.0.1:<local-port> and forwards it, over the
same outbound relay Vome already uses (no port-forwarding on your router), to
a tcp-scheme LAN route on a Vome-linked Home Assistant — e.g. an RDP host.
Point mstsc/Remmina/any TCP client at that local address. Get a token from
Home Assistant: Developer Tools → Actions → vomesync.mint_lan_tcp_token
(or the Vome App's ingress panel → LAN tunnels → "Get tunnel token"). Tokens
are short-lived and scoped to one instance + one route.
Configuration
Configuration is via environment variables (a local .env is also read). Copy
.env.example to .env and fill it in, or set the variables in your editor's MCP
config.
| Variable | Default | Description |
|---|---|---|
HA_URL | — (required) | Base URL, e.g. http://homeassistant.local:8123. |
HA_TOKEN | — (required) | Long-lived access token (Profile → Security). |
HA_ALLOW_WRITE | off (direct) / permissive (brokered) | Local write guard. In brokered mode the API key's per-instance scope decides (server-enforced); setting false only adds a local restriction. In direct mode this is the master switch and defaults off. |
HA_DENY_DOMAINS | lock,alarm_control_panel,cover,valve,camera (direct) / empty (brokered) | Domains that can never be written. In brokered mode the API key's Sensitive devices setting decides, server-side; set this only to add a local restriction. |
HA_ALLOW_DOMAINS | (any) | If set, only these domains may be written. |
HA_ALLOW_CONFIG_WRITE | off (direct) / permissive (brokered) | Local guard for editing automation config. Same semantics as HA_ALLOW_WRITE. |
NODERED_URL | (disabled) | Node-RED editor/admin base URL, e.g. http://homeassistant.local:1880. Enables the nodered_* tools. |
NODERED_TOKEN | — | Bearer token if Node-RED adminAuth is enabled. |
NODERED_USERNAME / NODERED_PASSWORD | — | Credentials exchanged for a token via /auth/token, if you prefer not to mint one by hand. |
VOMEHOME_API_URL | https://vome.io | VomeHome portal base URL. |
VOMEHOME_TOKEN | (disabled) | VomeHome personal access token; enables the vomehome_* tools. |
VOMEHOME_INSTANCE_ID | (direct mode) | The active/default instance to broker HA calls to. With a token and no HA_TOKEN, HA tools route through VomeHome (see Brokered mode). What it may do is set by your token's per-instance scopes in the portal (server-enforced). |
VOMEHOME_INSTANCES | (none) | Optional JSON registry to make multiple instances known at startup, e.g. [{"id":"rly-house","label":"home"},{"id":"sbx"}]. Per-instance write/config here are optional local restrictions (omit to defer to the server). Switch between them with vomehome_use_instance. See Several instances from one token. |
VOMEHOME_ALLOW_CREATE | (defer to key) | Optional local guard for creating an instance. The real authority is the account-wide create scope on your API key; set false to block creation locally regardless. Instances you create are granted full HA access on that key and become the active target for the session. |
HA_TIMEOUT_MS | 15000 | HTTP/WebSocket request timeout. |
MAX_RESULTS | 500 | Max items a list tool returns before truncating. |
LOG_LEVEL | info | error | warn | info | debug (logs go to stderr). |
Getting a token
In Home Assistant: click your user (bottom-left) → Security tab → Long-lived access tokens → Create token.
Editor setup
This is a standard stdio MCP server, so the same binary works everywhere.
Cursor
Use the one‑click button above, or create .cursor/mcp.json
in your project (or ~/.cursor/mcp.json for all projects). See
examples/cursor.mcp.json:
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"HA_URL": "http://homeassistant.local:8123",
"HA_TOKEN": "paste-your-long-lived-token",
"HA_ALLOW_WRITE": "false"
}
}
}
}
VS Code
Create .vscode/mcp.json (see examples/vscode.mcp.json).
VS Code can prompt for the token so it is not stored in the file:
{
"inputs": [
{ "id": "ha_token", "type": "promptString", "description": "Home Assistant token", "password": true }
],
"servers": {
"home-assistant": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"HA_URL": "http://homeassistant.local:8123",
"HA_TOKEN": "${input:ha_token}"
}
}
}
}
Claude Desktop
Add the same block under mcpServers in claude_desktop_config.json.
Claude Code: the side panes
Claude Code takes the same block in .mcp.json, or one server at a time with
claude mcp add-json <name> '<entry>'. Through Vome it is two commands, with a
key from the Vome app's Agent tab:
/plugin install vome-connect --marketplace Vortitron/home-assistant-mcp
/plugin install vome-panes --marketplace Vortitron/home-assistant-mcp
The first connects your home (it asks for the key), the second installs all four panes. Or pick them one at a time:

The vome-automation pane shows the automation Claude is working on, what a save changed and which steps the latest run took:
/plugin install vome-automation --marketplace Vortitron/home-assistant-mcp
That needs Claude Code 2.1.275 or newer; its README has the two-command form for older versions, how to turn on updates, and the read-only tools to allow in auto mode.
For the home's health, vome-health shows Vome's score and what its check found, marked as Claude fixes each, and re-scored with a roll and fireworks:
/plugin install vome-health --marketplace Vortitron/home-assistant-mcp
For a dashboard that works, vome-dash puts one of yours in a pane: live states, controls that switch and dim, cameras in half blocks, and the cards Claude changes lit up:
/plugin install vome-dash --marketplace Vortitron/home-assistant-mcp
For ESPHome, vome-esphome adds a pane with a map of the device Claude is working on, drawn from its YAML, and the build it runs as it happens:
/plugin install vome-esphome --marketplace Vortitron/home-assistant-mcp
And for fun, vome-doom is house.wad in a pane: your home as a Doom level, where shooting a lamp turns it off for real:
/plugin install vome-doom --marketplace Vortitron/home-assistant-mcp
And just for fun, dont-panic
adds the Guide: a pane that animates whatever the agent is doing and files a
live, irreverent Guide entry on it. Its README has the price levels; /guide canned costs nothing:
/plugin install dont-panic --marketplace Vortitron/home-assistant-mcp
To connect Claude Code to a home through Vome without any of the config above, install vome-connect from the same marketplace; it asks for one key, which the Vome app's Agent tab in Home Assistant gives you without signing up:
/plugin install vome-connect --marketplace Vortitron/home-assistant-mcp
Multiple Home Assistants
Each entry under mcpServers is its own server process with its own
environment, so to control several Home Assistants — each with a different
token — add one entry per instance and give each a distinct name. The name
prefixes the tool names in your editor (e.g. ha-home: ha_list_entities), so
the agent always knows which house it is talking to. See
examples/cursor.multi.mcp.json:
{
"mcpServers": {
"ha-home": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"VOMEHOME_TOKEN": "vh_token-for-home",
"VOMEHOME_INSTANCE_ID": "rly-aaaaaaaaaaaa"
}
},
"ha-cottage": {
"command": "npx",
"args": ["-y", "@vortitron/home-assistant-mcp"],
"env": {
"VOMEHOME_TOKEN": "vh_token-for-cottage",
"VOMEHOME_INSTANCE_ID": "rly-bbbbbbbbbbbb"
}
}
}
}
Brokered and direct entries mix freely (e.g. a brokered home plus a direct
HA_URL/HA_TOKEN lab instance), and each entry can carry its own safety
flags — a read-only token for the family home, writes enabled for the test
bench.
Several instances from one token
Documentation truncated — see the full README on GitHub.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
