Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HASS_URLNoBase URL of your Home Assistant instancehttp://localhost:8123
HASS_TOKENYesA long-lived access token

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 data.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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