Home Assistant MCP Server

v1.0.6
io.github.jarahkon/hass-mcp-server Checked 2 days ago Published 8 months ago

MCP server for full Home Assistant control — dashboards, files, automations, add-ons, and more

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ha_list_dashboards

List all Lovelace dashboards in Home Assistant

ha_create_dashboard

Create a new Lovelace dashboard

ParameterTypeDescription
title *stringDisplay title for the dashboard
url_path *stringURL path for the dashboard (e.g. 'tablet', 'kitchen'). Will be accessible at /lovelace-{url_path}/
iconstringMaterial Design icon (e.g. 'mdi:tablet')
require_adminbooleanWhether to require admin access
show_in_sidebarbooleanWhether to show in the sidebar

ha_update_dashboard

Update an existing Lovelace dashboard's properties (title, icon, etc.)

ParameterTypeDescription
dashboard_id *stringThe dashboard ID (numeric, from ha_list_dashboards)
iconstringNew icon (e.g. 'mdi:tablet')
require_adminbooleanWhether to require admin access
show_in_sidebarbooleanWhether to show in sidebar
titlestringNew display title

ha_delete_dashboard

Delete a Lovelace dashboard

ParameterTypeDescription
dashboard_id *stringThe dashboard ID (numeric, from ha_list_dashboards)

ha_get_dashboard_config

Get the full Lovelace configuration of a dashboard (all views, cards, etc.)

ParameterTypeDescription
url_pathstringDashboard URL path (e.g. 'tablet'). Omit for default dashboard.

ha_save_dashboard_config

Save/overwrite the full Lovelace configuration of a dashboard. Provide the complete config with views and cards.

ParameterTypeDescription
config *objectFull Lovelace configuration object with 'views' array. Example: { views: [{ title: 'Home', cards: [...] }] }
url_pathstringDashboard URL path (e.g. 'tablet'). Omit for default dashboard.

ha_list_files

List files and directories on the Home Assistant server. Path is relative to /config/ (e.g. 'www' lists /config/www/).

ParameterTypeDescription
pathstringDirectory path relative to /config/. Examples: 'www', 'custom_components', '' (root of /config/)

ha_read_file

Read a file from the Home Assistant server. Path is relative to /config/.

ParameterTypeDescription
path *stringFile path relative to /config/. Example: 'www/mirror.html'

ha_upload_file

Upload a file from the local machine to the Home Assistant server. Remote path is relative to /config/. Restricted to safe directories (www/, custom_components/, blueprints/, themes/).

ParameterTypeDescription
local_path *stringAbsolute path to the file on the local machine
remote_path *stringDestination path on HA relative to /config/. Example: 'www/mirror.html'

ha_upload_file_content

Create/overwrite a file on the Home Assistant server with the provided text content. Remote path is relative to /config/. Parent directories are created automatically.

ParameterTypeDescription
content *stringThe file content to write
remote_path *stringDestination path on HA relative to /config/. Example: 'www/my-panel.html'

ha_delete_file

Delete a file from the Home Assistant server. Path is relative to /config/. Restricted to safe directories.

ParameterTypeDescription
path *stringFile path relative to /config/. Example: 'www/old-file.html'

ha_mkdir

Create a directory on the Home Assistant server (recursively). Path is relative to /config/.

ParameterTypeDescription
path *stringDirectory path relative to /config/. Example: 'www/custom-panels'

ha_file_exists

Check if a file or directory exists on the Home Assistant server. Path is relative to /config/.

ParameterTypeDescription
path *stringPath relative to /config/. Example: 'www/mirror.html'

ha_list_automations

List all automations in Home Assistant with their IDs, aliases, and states

ha_get_automation

Get the full configuration of an automation by its ID

ParameterTypeDescription
automation_id *stringThe automation ID (from ha_list_automations)

ha_create_automation

Create a new automation in Home Assistant

ParameterTypeDescription
config *objectFull automation config object. Must include: alias, trigger, action. Optional: condition, mode, description.

ha_update_automation

Update an existing automation's configuration

ParameterTypeDescription
automation_id *stringThe automation ID to update
config *objectUpdated automation config (same format as create)

ha_delete_automation

Delete an automation

ParameterTypeDescription
automation_id *stringThe automation ID to delete

ha_list_scripts

List all scripts in Home Assistant

ha_create_script

Create a new script in Home Assistant

ParameterTypeDescription
config *objectScript config. Must include: alias, sequence. Optional: mode, description, icon, fields.
object_id *stringUnique script ID (e.g. 'morning_routine')

ha_update_script

Update an existing script's configuration

ParameterTypeDescription
config *objectUpdated script config (same format as create)
object_id *stringThe script ID to update

ha_delete_script

Delete a script

ParameterTypeDescription
object_id *stringThe script ID to delete

ha_list_scenes

List all scenes in Home Assistant

ha_create_scene

Create a new scene in Home Assistant

ParameterTypeDescription
config *objectScene config. Must include: name, entities (map of entity_id to state/attributes).

ha_update_scene

Update an existing scene's configuration

ParameterTypeDescription
config *objectUpdated scene config (same format as create)
scene_id *stringThe scene ID to update

ha_delete_scene

Delete a scene

ParameterTypeDescription
scene_id *stringThe scene ID to delete

ha_list_helpers

List all input helpers (input_boolean, input_number, input_text, input_select, input_datetime, input_button, counter, timer)

ParameterTypeDescription
domainstringFilter by domain (e.g. 'input_boolean'). Omit to list all helper types.

ha_create_helper

Create a new input helper (input_boolean, input_number, input_text, input_select, input_datetime, input_button, counter, timer)

ParameterTypeDescription
config *objectHelper config. Varies by domain. input_boolean: {name, icon}. input_number: {name, min, max, step, unit_of_measurement, mode}. input_text: {name, min, max, pattern, mode}. input_select: {name, options…
domain *stringHelper domain (e.g. 'input_boolean', 'input_number', 'counter')

ha_update_helper

Update an existing input helper's configuration

ParameterTypeDescription
config *objectUpdated config fields
domain *stringHelper domain (e.g. 'input_boolean')
helper_id *stringThe helper ID to update

ha_delete_helper

Delete an input helper

ParameterTypeDescription
domain *stringHelper domain (e.g. 'input_boolean')
helper_id *stringThe helper ID to delete

ha_list_addons

List all installed Home Assistant add-ons with their status

ha_addon_info

Get detailed information about a specific add-on

ParameterTypeDescription
slug *stringAdd-on slug (e.g. 'a0d7b954_ssh', 'core_configurator'). Get slugs from ha_list_addons.

ha_install_addon

Install a Home Assistant add-on by slug

ParameterTypeDescription
slug *stringAdd-on slug to install

ha_start_addon

Start a Home Assistant add-on

ParameterTypeDescription
slug *stringAdd-on slug to start

ha_stop_addon

Stop a running Home Assistant add-on

ParameterTypeDescription
slug *stringAdd-on slug to stop

ha_restart_addon

Restart a Home Assistant add-on

ParameterTypeDescription
slug *stringAdd-on slug to restart

ha_uninstall_addon

Uninstall a Home Assistant add-on

ParameterTypeDescription
slug *stringAdd-on slug to uninstall

ha_addon_options

Get or set configuration options for an add-on

ParameterTypeDescription
slug *stringAdd-on slug
optionsobjectNew options to set. Omit to get current options.

ha_system_info

Get Home Assistant system information (core version, OS, supervisor, host info)

ha_check_config

Validate the Home Assistant configuration. Run this before reloading to catch errors.

ha_create_backup

Create a Home Assistant backup

ParameterTypeDescription
addonsarrayFor partial backup: add-on slugs to include
foldersarrayFor partial backup: folders to include (e.g. ['config', 'share'])
namestringBackup name. Defaults to timestamp.
partialbooleanCreate a partial backup instead of full backup

ha_list_backups

List all Home Assistant backups

ha_restart_core

Restart the Home Assistant core. This will briefly make HA unavailable.

ha_check_api

Check if the Home Assistant API is accessible and responding

ha_get_config

Get the Home Assistant configuration (location, unit system, version, components, etc.)

ha_update_core_config

Update Home Assistant core configuration (internal_url, external_url, location, etc.)

ParameterTypeDescription
external_urlstringExternal URL for Home Assistant
internal_urlstringInternal URL for Home Assistant (e.g. http://homeassistant.local:8123)

ha_get_components

List all currently loaded Home Assistant integrations/components

ha_get_error_log

Get the Home Assistant error log contents

ha_get_states

Get the current state of all entities, optionally filtered by domain (e.g. 'light', 'switch', 'sensor')

ParameterTypeDescription
domainstringFilter by entity domain (e.g. 'light', 'sensor', 'automation'). Omit for all entities.

ha_get_entity

Get the full state and attributes of a specific entity

ParameterTypeDescription
entity_id *stringEntity ID (e.g. 'light.living_room', 'sensor.temperature')

ha_call_service

Call a Home Assistant service (e.g. turn on a light, lock a door, send a notification)

ParameterTypeDescription
domain *stringService domain (e.g. 'light', 'switch', 'notify', 'automation')
service *stringService name (e.g. 'turn_on', 'turn_off', 'toggle', 'trigger')
dataobjectService data (e.g. {brightness: 255, color_name: 'blue'})
targetobjectTarget entities/areas/devices. Example: {entity_id: 'light.living_room'} or {area_id: 'living_room'}

ha_list_services

List all available services, optionally filtered by domain

ParameterTypeDescription
domainstringFilter by domain (e.g. 'light'). Omit for all domains.

ha_render_template

Render a Jinja2 template using Home Assistant's template engine

ParameterTypeDescription
template *stringJinja2 template string. Example: '{{ states("sensor.temperature") }}'

ha_list_entity_registry

List all entities from the entity registry with their IDs, names, platforms, and areas

ParameterTypeDescription
domainstringFilter by domain (e.g. 'light')

ha_list_devices

List all devices from the device registry

ha_list_areas

List all areas (rooms) in Home Assistant

ha_create_area

Create a new area (room) in Home Assistant

ParameterTypeDescription
name *stringArea name (e.g. 'Living Room')
iconstringMaterial Design icon (e.g. 'mdi:sofa')

ha_get_history

Get the state history for an entity over a time period

ParameterTypeDescription
entity_id *stringEntity ID to get history for
end_timestringISO 8601 end time. Defaults to now.
start_timestringISO 8601 start time (e.g. '2025-01-01T00:00:00Z'). Defaults to 1 day ago.

ha_get_logbook

Get logbook entries (activity log) for a time period, optionally filtered by entity

ParameterTypeDescription
end_timestringISO 8601 end time. Defaults to now.
entity_idstringFilter by entity ID. Omit for all entries.
start_timestringISO 8601 start time. Defaults to 1 day ago.

ha_get_events

List all available event types in Home Assistant

ha_fire_event

Fire a custom event in Home Assistant to trigger automations or integrations

ParameterTypeDescription
event_type *stringEvent type to fire (e.g. 'custom_event', 'guest_arrived')
event_dataobjectOptional event data payload

ha_set_state

Set or create the state of an entity. Useful for creating virtual sensors or overriding states.

ParameterTypeDescription
entity_id *stringEntity ID to set (e.g. 'sensor.my_custom_sensor')
state *stringThe state value to set
attributesobjectOptional attributes to set on the entity

ha_delete_state

Delete an entity state from Home Assistant

ParameterTypeDescription
entity_id *stringEntity ID to delete

ha_get_calendars

List all calendar entities in Home Assistant

ha_get_calendar_events

Get events from a specific calendar entity

ParameterTypeDescription
entity_id *stringCalendar entity ID (e.g. 'calendar.my_calendar')
endstringISO 8601 end time. Defaults to 7 days from now.
startstringISO 8601 start time. Defaults to now.

ha_handle_intent

Handle a conversation/voice intent in Home Assistant (e.g. natural language commands)

ParameterTypeDescription
name *stringIntent name (e.g. 'HassLightSet', 'HassTurnOn')
dataobjectIntent data/slots