MCP server that provides tools for interacting with Home Assistant instances, enabling model context protocol clients to query and control Home Assistant entities, automations, services, and system state
hass-mcp demonstrates good tool design with clear action-verb naming, comprehensive descriptions, and well-structured schemas. All 12 tools have descriptions exceeding the 20-character minimum, and all input parameters include both type definitions and descriptions. The server excels at composability (tools chain well via entity_id references) and includes appropriate risk annotations (READ_ONLY, WRITE, IRREVERSIBLE). However, output schemas are not explicitly documented in the source code, only input schemas are visible. Error handling is present but generic ('Error calling service: %v'). Parameter validation lacks explicit constraints (enums, ranges) in most tools, relying on natural language descriptions instead. Domain knowledge is strong (entity_id, Home Assistant service architecture), but the rubric's 54-pattern baseline expects more machine-readable constraints and error recovery guidance.
Call any Home Assistant service (low-level API access). Examples: domain='light', service='turn_on', data={'entity_id': 'light.x', 'brightness': 255}
Get a summary of entities in a specific domain including state distribution, examples, and common attributes
Perform an action on a Home Assistant entity (on, off, toggle). Domain-specific params: lights (brightness 0-255, color_temp, rgb_color), covers (position 0-100), climate (temperature, hvac_mode), media_players (source, volume_level 0-1)
Get the state of a Home Assistant entity with optional field filtering
Get the Home Assistant error log for troubleshooting. Returns error/warning counts and integration mentions.
Get the history of an entity's state changes. Best for entities with discrete state changes rather than continuously changing sensors.
Output schemas not documented. Tool descriptions include examples of what they return (e.g., 'Returns structured results with domain counts' for search_entities), but formal output schemas are not visible in the source code. LLMs cannot reliably parse unstructured responses or chain tools without knowing response field names and types.
Entity action parameter constraints lack machine-readable enums. The entity_action tool description states 'Domain-specific params: lights (brightness 0-255, color_temp, rgb_color), covers (position 0-100), climate (temperature, hvac_mode), media_players (source, volume_level 0-1)' as natural language. These should be declared as enum constraints or conditional parameter groups in the schema so LLMs can validate inputs before calling.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 69 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 11 | - | v1 |
Get the Home Assistant version
Get a list of all automations from Home Assistant including their IDs, states, and friendly names
Get a list of Home Assistant entities with optional filtering by domain or search query
Restart Home Assistant. WARNING: This will temporarily disrupt all Home Assistant operations.
Search for entities matching a query string. Returns structured results with domain counts.
Get a comprehensive overview of the entire Home Assistant system including domain counts, samples, and area distribution. Use this as the first call when exploring an unfamiliar instance.
Error handling is generic and non-actionable. Code shows 'Error calling service: %v' pattern. Errors should categorize as retryable vs. fatal, include the invalid input that was rejected, and guide recovery (e.g., 'Entity light.living_room not found. Call list_entities(domain=light) to discover available lights.').
Destructive operations lack confirmation or dry-run support. restart_ha is marked IRREVERSIBLE but has no confirm_before_execute pattern or dry-run option. Agents can accidentally restart Home Assistant with no recovery path.
Parameter limit defaults not bounded. list_entities accepts 'limit' with default 100, search_entities defaults to 20, but no maximum is enforced. An LLM could pass limit=999999, exhausting memory or timing out the Home Assistant API.
call_service is a low-level escape hatch. While valid for advanced users, it bypasses tool-specific safety constraints and error handling. The description should warn agents: 'Use domain-specific tools (entity_action, restart_ha, etc.) when available. This is a low-level API and errors may be cryptic.'