ha-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| HASS_URL | No | Base URL of your Home Assistant instance | http://localhost:8123 |
| HASS_TOKEN | Yes | A long-lived access token |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ha_get_statesA | List Home Assistant entity states. Optionally filter by domain (e.g. 'light', 'sensor') and/or area (room name or area_id). |
| ha_get_entityB | Get the full state and attributes of one entity by entity_id (e.g. 'light.kitchen_lights'). |
| ha_call_serviceB | Call any Home Assistant service. Examples: light.turn_on, climate.set_temperature, automation.trigger, scene.turn_on, media_player.play_media. Pass extra params (brightness, temperature, etc.) in |
| ha_get_historyA | Get state-change history for an entity over the last N hours (default 24). |
| ha_render_templateB | Render a Home Assistant Jinja2 template and return the result. Example: "{{ states('sensor.outside_temperature') }}". |
| ha_get_configA | Get Home Assistant configuration: version, location, unit system, time zone, loaded components. |
| ha_get_error_logA | Get the Home Assistant error log (plain text) for troubleshooting. |
| ha_list_areasA | List all areas/rooms defined in Home Assistant. |
| ha_get_entities_by_areaA | List the entity_ids in a given area/room (by name or area_id), resolving device→area inheritance. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qubit999/ha-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server