Skip to content

MCP Tools

The built-in MCP server gives Claude 120 tools for reading and changing your live Home Assistant. You never call them yourself. You ask, and Claude picks the tool:

You: "Why is the hallway light on?"
Claude: explain_change(entity_id="light.hallway")
→ turned on 19:42 by automation "Hallway motion", triggered by
binary_sensor.hallway_motion
You: "Turn it off and dim the kitchen to 30%"
Claude: control_light(entity_id="light.hallway", action="turn_off")
control_light(entity_id="light.kitchen", action="turn_on", brightness_pct=30)

These tools are Claude’s only route to the live home, so protected entities, Blocked services and voice limits are enforced in one place (how the layers fit). brain doctor verifies every tool on your install.

Who may use what

The Who column in every table uses these marks:

Mark Meaning
read Open to unattended runs: scheduled insight cards, the Resident’s investigations, study sessions, follow-up looks. Every tool without this mark is explicitly denied to them.
not on voice Not offered to a voice agent at the Voice assistant level.
exposed only On a Voice assistant agent, answers only about an entity that is named and exposed to Assist.
— Acts on the house. Open to the chat, the terminal and a Plan run you approved, through the checks below.

Voice agents set to Whole house or Full admin are not narrowed (voice). The chat, the terminal and an approved Plan run can use everything.

Read your home

Tool What it does Who
get_entity_state Current state and attributes of one entity read
get_all_states All entities, filterable by domain and name (capped at 300) read
get_areas Areas with their entity ids. Resolves “the kitchen lights” read
get_registry Registry listings: areas, floors, labels, devices, entities, integrations, users, with the ids Power Tools need. Entity rows narrowed to 100 or fewer carry device_class (a Show as somebody chose) and original_device_class (what the integration reports) read · not on voice
get_entity_counts How many entities there are, in total and per domain. The old name get_device_registry still works read · not on voice
get_device_details One device read whole: maker, model, firmware, its integrations, and a Z-Wave device’s configuration parameters read · not on voice
get_history State history for one entity, up to 7 days, with min/max for numerics read
get_statistics Long-term statistics. “How cold did it get last week?” A window that had to be cut says so read
get_weather_forecast Daily or hourly forecast read · exposed only
get_camera_snapshot Returns a camera image so Claude can describe it. Unattended runs get it only for a tripped sensor, at cameras you ticked exposed only
get_logbook The newest 50 logbook entries, each with what caused it read · exposed only
get_error_log Home Assistant’s logs from the Supervisor journal read · not on voice
get_ha_config / get_services / get_service_details / get_supervisor_info Config details, the service catalog, one domain’s field schema, system info read (get_supervisor_info not on voice)
list_dashboards / get_dashboard List dashboards; read one’s full config read · not on voice
explain_change What caused a change to an entity read · exposed only
get_activity The house’s recent activity as episodes read · not on voice
get_findings / get_health The findings list as rows, and brAIn’s verdict on itself read · not on voice
explain_decision What brAIn decided not to tell you about an entity or a check, and why: a mute, a correction, quiet hours, the budget. No rows means no record read · not on voice
notification_history brAIn’s own notifications and what happened to each read · not on voice
screenshot_panel A redacted picture of a brAIn or BRUH app screen, or any dashboard tab read · not on voice
assistant_exposure What Assist, Alexa, Google Assistant and each HomeKit Bridge can reach, and what is missing or dead read · not on voice

Read automations and scripts

Traces are read live from Home Assistant, so UI-made automations, package automations and runs since the last restart are all visible.

Tool What it does Who
get_automations Automations with their status and config id read · not on voice
get_automation_trace Why an automation or script did or did not do something: recent runs, how often a condition stopped it, and one run step by step read · not on voice
get_automation_config The definition of any automation or script: UI-made, YAML or package read · not on voice
search_related What a script or scene touches, what uses an entity, what is in an area. The same answer as Home Assistant’s Related tab read · not on voice

Read what brAIn has measured

One tool per measurement. A store that has not measured yet says so in a sentence instead of answering with a number.

Tool What it does Who
get_house_model Every measurement’s state in one call (ready, collecting, stale, not available) and one line per ready one read · not on voice
get_baseline / what_is_normal A numeric entity’s normal by hour of the week; what_is_normal places the current reading inside that band read · exposed only
room_physics A room’s heat-loss and gain rates, its time constant, and how long it takes to warm read · not on voice
appliance_status Whether a washer, dryer or dishwasher is idle, running or finished, by its measured power shape read · exposed only
house_rhythm When the house gets up and settles, weekdays and weekends apart read
door_habits How much of each hour of the week a door, window, lock or cover is usually open read · exposed only
habits What you do by hand with an entity often enough to be a habit, with the overrides against it read · exposed only
simulate_automation Replay an automation config over the recorder’s last weeks and grade it against what you did. Calls nothing read · not on voice
recall Search the facts store: what brAIn knows, who taught it and when read

Act on the house

Tool What it does Who
call_service Any Home Assistant service. With return_response: true it returns the service’s response data, which is how Claude gets the area_id back from brain.create_area —
control_light / control_climate / control_media_player / control_cover / control_fan / control_switch / control_lock / control_alarm / control_vacuum Device control for each major domain —
activate_scene / run_script / send_notification Scenes, scripts (with variables), notifications —
timed_action Do something now and undo it later, or after a delay, with no automation written (“water the garden for 90 minutes”). Each step is listed and stoppable not on voice
fire_event / reload_config Custom events, config reloads not on voice
render_template Render Jinja2, to test a template before it goes in an automation. On voice, only templates that name exposed entities literally —
remember_fact Store a household fact in the memory inbox, tagged with its subject and the face that taught it —
offer_resolutions In a finding discussion, put the ways it could end on your screen as buttons. Changes nothing; your press is the consent. Chat only not on voice
edit_dashboard Change part of a storage dashboard as a list of operations on paths not on voice
set_assistant_exposure Change what the assistants can reach, in bulk. Protected entities are refused not on voice
note_personality_change Record a change to how the assistant speaks or behaves that you settled with it not on voice
report_bug File a bug in brAIn or another BRUH app through the development loop not on voice

Change what a device shows as

Ask in the chat or the terminal: “show the back door sensor as a door”, “show the fan plug as a fan”. Each tool is a Power Tool called through call_service, so every check applies.

Tool What it does Who
set_device_class Home Assistant’s Show as: a binary sensor as a door, window, garage door, motion or leak sensor; a cover as a garage, blind, shutter, curtain or gate; a switch as an outlet. Empty restores the integration’s own not on voice
show_switch_as Show a switch (a smart plug running a fan or lamp) as a light, fan, lock, cover, siren or valve. Returns the new entity id not on voice
stop_showing_switch_as Undo it. Lists what used the entity that goes away, with a dry run not on voice
set_sensor_display A sensor’s decimal places and, where Home Assistant can convert it, its unit (°C to °F, W to kW) not on voice

A smoke, gas, CO or leak sensor keeps its type unless you say yes, because brAIn’s safety alerts go by it.

Drive your other BRUH apps

What each lets you ask for: brAIn and the BRUH apps. The Bambu, garden, cooking and browser tools are listed only where that app is installed. A spoken player name is matched against who is online, and a name that could be two people is asked about.

Tool What it does Who
bruh_addon_status How each other BRUH app is doing: version, running, update waiting, log errors read · not on voice
minecraft_status Whether BRUH Minecraft is answering, who is online, the world, version and TPS read
minecraft_teleport Teleport a player to another player or to coordinates; everyone means all players —
minecraft_player Game mode or give an item. Also op, deop, kick, ban, pardon and the whitelist admin actions not on voice
minecraft_world Time of day, weather, or a chat message to everyone —
minecraft_command Any server console command, with the server’s reply not on voice
minecraft_server Back up the world now, restart or stop the server not on voice
minecraft_addons Search, list, install and remove server-side plugins, data packs and mods from Modrinth not on voice
minecraft_job A companion job’s progress not on voice
label_printer_status BRUH Print’s printer, the stock in each roll, the saved templates and their fields read
print_label Print text fitted as large as it will go, or a saved template with its fields. Voice prints at most 10 at once —
bright_status What BRight is doing, the saved sets, and the tracks with a show ready read
bright_show Start a saved party, party mode, or one track’s show. Or stop and put the room back —
bambu_status BRUH Bambu Studio’s printers: state, progress, temperatures, AMS trays, jobs and files read
bambu_print Start a file or a model link; pause, resume or stop stop and links not on voice
bambu_control Speed, chamber light, temperatures, home, G-code G-code and home not on voice
bambu_slice Slice a file with Bambu Studio’s command line not on voice
bambu_design Design a printable part from a sentence, change it, print it —
cooking_status BRUH Cooking’s appliances: state, temperatures, time left, presets read
cooking_control Start a cook by preset or temperature and time, stop it, say the food is in or out —
garden_status GardenRX: this season’s harvest, sprays, intervals running, low stock read
garden_harvests What was picked, per crop, between two dates read
garden_log_harvest / garden_log_spray / garden_log_note Log a pick, a spray or a note —
garden_queue_spray / garden_adjust_inventory / garden_add_crop Queue a spray, change stock, add a crop not on voice
browser_task Start a BRUH Browser errand, such as a grocery cart. Never buys —
browser_status How an errand is going, and the cart read
browser_answer Answer a question a paused errand asked —
browser_stop Stop an errand not on voice
browser_purchase Buy a cart the person heard and approved. Always asked, at every permission level short of No limits not on voice

Build ESPHome devices

Ask in the chat or the terminal. Editing files needs nothing extra; building, installing and logs go through the ESPHome dashboard. See ESPHome. None of these is on a Voice assistant agent.

Tool What it does Who
esphome_list_devices Every device file: node and friendly name, chip and board, online, firmware versions, its Home Assistant device read
esphome_get_config / esphome_write_config Read or save a device’s YAML. A save is snapshotted for brain undo and refused if the file changed since it was read read / —
esphome_create_device A new device file as the dashboard’s wizard writes one: fresh encryption key, OTA password and fallback hotspot —
esphome_delete_device Move a device file into archive/ —
esphome_validate Validate a device’s YAML with ESPHome itself read
esphome_compile / esphome_install / esphome_clean Compile; compile and flash over the air; clear build files —
esphome_update_firmware Install the update Home Assistant says is waiting, through its update entity —
esphome_logs / esphome_job Read a device’s live log for a few seconds; follow a build by its job id read
esphome_set_secret Set one key in secrets.yaml. The value is never read back —

Run Music Assistant

Ask in the chat or the terminal. See Music Assistant. None of these is on a Voice assistant agent, which plays music through music_assistant.play_media on an exposed speaker.

Tool What it does Who
music_assistant_status Whether brAIn can reach the server and as whom, every player and provider, and the stale players read
music_assistant_search Search the library and every music provider read
music_assistant_query Any read-only Music Assistant API command read
music_assistant_player / music_assistant_play One action on a player (play, pause, volume, power); play a search result or a name on a player —
music_assistant_remove_players Forget stale players. A dry run unless told otherwise —
music_assistant_command Any Music Assistant API command: players, queues, groups, the library, playlists, providers, server settings —

The checks every acting tool passes

  • One chokepoint. Every tool that acts goes through call_service, so per-agent Blocked services and protected entities cover all of them. homeassistant.* meta-calls are resolved to their targets’ domains. A target that cannot be resolved is refused. fire_event is refused while anything is protected.
  • The whole request is read. An entity named anywhere in a call is checked: a scene’s entities map, snapshot_entities, group_members, a speaker field, a script variable. Running a scene, script or automation is checked by what Home Assistant says it references.
  • Voice is scoped by service as well as entity. On a Voice assistant agent, a request naming no entity is refused unless it is a notification or a BRUH play service. A request naming entities may use only those entities’ own services. update.install is always refused.
  • Unattended runs have two lists. An allow-list of the read tools and a deny-list of every other tool. Every tool is in exactly one, so a new acting tool cannot reach an unattended run.
  • The action gate. In the chat and the terminal, a gate in front of every acting tool decides from your own words, never from text brAIn read. With Let brAIn act without asking on it stops asking; the tripwire, the deny-list, your house rules and protected entities still decide (reference).
  • Outside text is data. A media title, a calendar event or a logbook message is handed to Claude marked as data, not instructions.
  • Power Tools check again. brain.* services enforce admin access and validate ids inside the service, whoever calls.

The full order of checks: What every action passes.

Generated context

With auto_generate_context on (the default), brAIn rewrites /config/CLAUDE.md at startup: your entities by domain, rooms, automations and their states, add-ons, integrations, a directory guide, and how to use the MCP tools and Power Tools. Claude reads it at the start of every session, so it already knows what sensor.lumi_lumi_weather_temperature_3 is doing in your kitchen. Regenerate it any time with ha context.