mcp server
aloha
πΊ An open-source AI agent for Home Assistant β like Claude Code, for your smart home. Chat to configure, debug, and run HA. 76 tools, skills, MCP, multi-provider.
Set up
Runs on your computer. Pick your agent and operating system.
Before you start
- uv (`curl -LsSf https://astral.sh/uv/install.sh | sh`)
{
"mcpServers": {
"aloha": {
"command": "uvx",
"args": [
"aloha"
]
}
}
}same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12
Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs
README
synced Oct 23, 2026πΊ Aloha
An AI agent for Home Assistant β like Claude Code, for your smart home.
Chat with your home in plain English. Aloha reads your entities, writes automations, edits config, debugs what's broken, and operates Home Assistant for you β with a curated library of HA skills and full MCP tool access.
Open source. Bring your own AI key β or use the managed aloha.pushbuild.com.
What is Aloha?
Home Assistant is the most powerful smart-home platform there is β and almost impossible for a non-technical person to configure. AI coding agents are fluent in HA's YAML, its automations, its quirks. Aloha glues them together: a baked-in agent that administers Home Assistant through a friendly chat UI.
- π οΈ 100+ tools β read/control entities, CRUD automations, edit config files, manage dashboards & HACS, read logs and traces. On Home Assistant OS it also manages the system (update Core/OS/Supervisor, add-ons, backups); on Docker it manages the container.
- π HA skills β curated playbooks the agent follows for real tasks: set up motion lighting, debug why an automation didn't fire, triage unavailable entities, run a health check, make safe config changes. Browse and add your own right in the UI.
- π MCP, both ways β Aloha exposes its tools as an MCP server and can consume external MCP servers. Point Claude, Cursor, ChatGPT β any MCP chatbot β at it and it can run your home.
- π Public MCP URL β behind home NAT? Aloha can give your MCP endpoint a public URL out of the box: a free Cloudflare tunnel, your own ngrok, or the stable Aloha relay ($1/mo).
- π Secure by key β protect the MCP endpoint with an OAuth key + secret (mint / regenerate / terminate in the UI).
- π€ Any AI β Anthropic Claude, OpenAI, Gemini, Ollama (local/offline), Groq, OpenRouter, or any OpenAI-compatible endpoint. Bring your own key.
- π‘οΈ Safe by default β every config change is shown as a diff for your approval before it's written. Nothing touches your setup without sign-off.
Two ways to run it
1. Self-host (open source, free)
Bring your own AI provider key (or run a local model with Ollama β fully offline, no account). You own everything; nothing phones home.
git clone https://github.com/sackio/aloha.git
cd aloha
docker compose up -d --build
- Aloha UI: http://your-host:7123 Β· Home Assistant: http://your-host:8123
Already running Home Assistant? Point Aloha at it instead of bundling one:
docker run -d --name aloha -p 7123:7123 \
-e ALOHA_MODE=standalone -e ALOHA_HA_URL=http://your-ha:8123 \
-v aloha-data:/data ghcr.io/sackio/aloha:latest
Also ships as a Home Assistant OS add-on (haos-addon/) β Supervisor injects
the HA token automatically.
2. Aloha managed (no setup, no API key)
Don't want to deal with API keys and billing? Use the hosted agent at aloha.pushbuild.com β pick "Aloha managed" in the setup wizard, sign in, and you're chatting with your home. Flat monthly with generous usage. (In active development.)
First run
Open the Aloha UI and the wizard walks you through picking an AI provider and connecting to Home Assistant. Then just ask:
"What lights are on right now?" "Create a bedtime routine that locks the doors and turns off the lights at 11pm." "Why didn't my away-mode automation fire yesterday?" "Set up motion-activated lighting in the hallway."
Power users: connect your IDE over MCP
Aloha exposes its full tool suite over the Model Context Protocol:
claude mcp add --transport sse aloha http://your-host:7123/mcp
Use Claude Code, Cursor, or any MCP client to manage your home from your editor. The setup UI generates the exact command/JSON for you β including your public URL and access-key header once you've set those up.
Protect the endpoint with an OAuth key + secret (mint one in the UI), sent as
HTTP Basic or exchanged at the OAuth2 token endpoint (POST /mcp/token,
grant_type=client_credentials).
How it works
βββββββββββββββββββββββββ one container βββββββββββββββββββββββββ
β Home Assistant (:8123) βββlocalhostββ Aloha agent (:7123) β
β FastAPI + React UI β
β agent loop β 100+ toolsβ
β skills Β· MCP client β
β shared volume: /data (HA config + Aloha settings/sessions) β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Provider-agnostic agent loop, multi-step tool use, and a diffβapprove safety gate.
Documentation
- User guide β install β first run β everyday use β skills β public MCP URL β connecting an IDE.
- Troubleshooting β common issues and fixes.
- MCP tool reference β all 104 tools (auto-generated).
- Beta guide β joining the closed beta + opt-in error reporting.
- Contributing Β· Changelog
Status
Aloha is a functional v0.1.0 pre-release. The agent, tools, skills, MCP
support, and every install path work today, and multi-arch images are published:
the Docker image (ghcr.io/sackio/aloha) and the HAOS add-on
(ghcr.io/sackio/{amd64,aarch64}-aloha-addon) β the add-on is verified
end-to-end on real Home Assistant OS. Still maturing: real-world soak across many
homes, real-hardware Raspberry Pi sign-off, and the managed tier's billing
go-live. See the beta guide to help.
Contributing
Issues and PRs welcome β see CONTRIBUTING.md. Skills are
just markdown files in aloha/skills/library/; adding one is a great first
contribution.
Contact
Questions, feedback, or interested in the managed tier? Reach us through the contact form at aloha.pushbuild.com, or open a GitHub issue.
License
MIT β see LICENSE.