What hamster-mcp does
hamster-mcp gives an AI assistant access to Home Assistant for troubleshooting and maintenance. It can inspect system health, review repairs and diagnostics, examine automation traces, investigate voice and conversation pipelines, inspect Matter networks, query logs, audit assistant entity exposure, and review Bluetooth scanner information.
Everyday Home Assistant operations are available too. An assistant can inspect entity states, list automations, turn on lights, and perform other service actions. The integration is designed to expose Home Assistant capabilities dynamically instead of limiting the assistant to a small fixed set of device-control tools.
How it works
The integration runs inside Home Assistant as a custom component. It publishes an MCP endpoint at /api/hamster_mcp, using Streamable HTTP. An MCP client connects to the Home Assistant host and authenticates through Home Assistant's normal login flow or with a long-lived access token.
Capabilities are grouped into Home Assistant services, WebSocket commands, and Supervisor operations. Services cover actions such as lights, climate, automations, and scripts. WebSocket access includes registries, history, system logs, configuration entries, diagnostics, repairs, Matter, Assist Pipeline, voice and conversation features, Cloud and Nabu Casa functions, authentication, automation traces, HACS, and other subsystems. Supervisor access covers Core, Supervisor, and host logs, add-ons, backups, and host or network information on Home Assistant OS.
The assistant discovers these capabilities through six meta-tools: search finds commands, explain describes them, schema returns parameter and selector details, call executes them, and list_resources plus read_resource provide guidance documents. When another Home Assistant integration adds services or WebSocket commands, they become available without updating hamster-mcp. Initial conversations may take longer while the assistant explores the available commands.
Setup and configuration
Home Assistant 2025.2 or later is required. HACS is the recommended installation route: add the repository as a custom Integration repository, install Hamster MCP, restart Home Assistant, and add the integration from Settings → Devices & Services. Manual installation is also supported by copying custom_components/hamster_mcp into the Home Assistant configuration directory before restarting and adding the integration.
Configure the MCP client with an endpoint such as:
https://<your-ha-host>:<port>/api/hamster_mcp
Select Streamable HTTP as the transport. Local clients must be able to reach the Home Assistant host on the same network. Cloud clients require Home Assistant to be reachable from the internet, for example through Nabu Casa or a reverse proxy. If a client does not provide an interactive Home Assistant login, create a long-lived access token in the Home Assistant profile and send it as a Bearer token. Treat that token as a password.
Tools and capabilities
The six MCP tools provide a compact interface to a broad, dynamic Home Assistant surface:
search locates commands across services, WebSocket operations, and Supervisor functions.
explain returns detailed command descriptions.
schema exposes parameter types and selector metadata.
call runs a selected Home Assistant command.
list_resources discovers available guidance documents.
read_resource reads a selected guidance document.
The underlying command coverage is suited to debugging voice assistants, checking Matter reachability, reviewing Supervisor and Core logs, tracing automations, examining repairs, and inspecting entity exposure for Alexa or Google Assistant.
Limitations and notes
Supervisor features require Home Assistant OS. The integration is intended primarily for debugging and maintenance, so its broad diagnostic coverage is more distinctive than its everyday device-control support. Access is governed by Home Assistant authentication, and the MCP endpoint must be network-accessible from the chosen client. The project is described as being in early release.