loading…
Search for a command to run...
loading…
MCP server for controlling and querying Home Assistant via its REST API, exposing tools to get entity states, list all states, and call services.
MCP server for controlling and querying Home Assistant via its REST API, exposing tools to get entity states, list all states, and call services.
An open-source MCP server for controlling and querying Home Assistant.
Tools exposed:
ha_get_state — get state for an entityha_list_states — list all states (can be large)ha_call_service — call any servicepnpm install
pnpm build
export HASS_URL="http://homeassistant.local:8123"
export HASS_TOKEN="<your long-lived access token>"
pnpm start
Example (conceptual):
{
"mcpServers": {
"homeassistant": {
"command": "npx",
"args": ["-y", "hass-mcp"],
"env": {
"HASS_URL": "http://homeassistant.local:8123",
"HASS_TOKEN": "..."
}
}
}
}
MIT
Add this to claude_desktop_config.json and restart Claude Desktop.
{
"mcpServers": {
"hass-mcp": {
"command": "npx",
"args": []
}
}
}