hass-mcp-server
by ganhammar·★ 34·Score 44
Home Assistant MCP server with HTTP transport for remote access via OAuth or long-lived tokens.
Overview
This MCP server enables AI assistants like Claude to interact with Home Assistant via HTTP transport, offering both OAuth and Long-Lived Token authentication. It provides comprehensive access to Home Assistant features including entity management, automation control, configuration file management, dashboard operations, and system administration. The server is designed specifically to support web-based AI clients that require OAuth 2.0 authentication, addressing a need not met by the official SSE-only integration.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you want remote access to Home Assistant via Claude.ai or any web-based AI assistant, especially when OAuth authentication is needed.
When NOT to choose this
Don't choose this if you only need local access to Home Assistant with SSE transport or if you prefer the official Home Assistant MCP integration.
Tools this server exposes
12 tools extracted from the READMEget_stateGet the current state of any entity
list_entitiesList all entities with optional domain filter
call_serviceCall any Home Assistant service
list_automationsList all automations with full configuration
get_automation_configGet full configuration of a single automation
create_automationCreate a new automation
list_dashboardsList all Lovelace dashboards with metadata
get_dashboard_configGet full dashboard configuration
list_config_filesList all YAML files in the config directory
get_system_statusGet system overview including version, domain counts, and entity totals
list_devicesList devices, optionally filtered by area
list_servicesList available services, optionally filtered by domain
Comparable tools
Installation
Installation
HACS (Recommended)
- Open HACS in Home Assistant
- Search for "MCP Server"
- Click "Download"
- Restart Home Assistant
- Configure the integration
Claude Desktop Integration
{
"mcpServers": {
"home-assistant": {
"command": "npx",
"args": ["@modelcontextprotocol/server-homeassistant"],
"env": {
"HOME_ASSISTANT_URL": "https://your-home-assistant.com",
"HOME_ASSISTANT_TOKEN": "your-long-lived-token"
}
}
}
}FAQ
- How do I list all automations, scenes, or scripts?
- Use the dedicated list tools: `list_automations()`, `list_scenes()`, or `list_scripts()` to get full configurations.
- What's the difference between OAuth and Long-Lived Token authentication?
- OAuth is for browser-based clients like Claude and requires hass-oidc-server integration. Long-Lived Tokens are for local clients and can be used without extra dependencies.
Compare hass-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.