Skip to main content
Glama

Home Assistant MCP

by hpohlmann

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HA_URLNoURL of your Home Assistant instancehttp://homeassistant.local:8123
HOME_ASSISTANT_TOKENYesYour Home Assistant Long-Lived Access Token

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
control_device

Control a Home Assistant entity by turning it on or off.

Args: entity_id: The Home Assistant entity ID to control (format: domain.entity) state: The desired state ('on' or 'off')
search_entities

Search for Home Assistant entities matching a natural language description.

Args: description: Natural language description of the entity (e.g., "office light", "kitchen fan") Returns: A list of matching entity IDs with their friendly names, or an error message
set_device_color

Set the color and optionally brightness of a light entity.

Args: entity_id: The Home Assistant entity ID to control (format: light.entity) red: Red component (0-255) green: Green component (0-255) blue: Blue component (0-255) brightness: Optional brightness level (0-255)

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/hpohlmann/home-assistant-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server