hass-mcp
hass-mcp
Ein Open-Source MCP-Server zur Steuerung und Abfrage von Home Assistant.
Transport: stdio
Authentifizierung: Home Assistant Long-Lived Token
API: Home Assistant REST-API
Funktionen
Bereitgestellte Tools:
ha_get_state— Zustand einer Entität abrufenha_list_states— Alle Zustände auflisten (kann umfangreich sein)ha_call_service— Einen beliebigen Dienst aufrufen
Installation
pnpm install
pnpm buildAusführung
export HASS_URL="http://homeassistant.local:8123"
export HASS_TOKEN="<your long-lived access token>"
pnpm startKonfiguration in einem MCP-Client
Beispiel (konzeptionell):
{
"mcpServers": {
"homeassistant": {
"command": "npx",
"args": ["-y", "hass-mcp"],
"env": {
"HASS_URL": "http://homeassistant.local:8123",
"HASS_TOKEN": "..."
}
}
}
}Sicherheit
Behandle Token als Geheimnisse.
Bevorzuge den Betrieb dieses Servers im selben LAN wie Home Assistant.
Wenn sich dein HA hinter Cloudflare Access befindet, betreibe diesen MCP-Server auf der LAN-Seite.
Lizenz
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/TheWhykiki/hass-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server