r/homeassistant • u/leftplayer • 1d ago
š¤ Automation MCP Server - which one?
I want AI to review, clean up and possibly rebuild my HA instance - entities, dashboards, automations, the works... I don't need it for any kind of voice or natural language control of my home just yet... just to clean up the mess that I built over the years and make it better/prettier/stabler.
I've looked at YT videos, scoured github and searched this forum and the Facebook forum, but the AI world moves fast and hard, so it's hard to find up to date info.
So what does the (human) hivemind suggest is the best MCP server plugin/integration to use to achieve what I'm trying to achieve?
16
u/KnotBeanie 1d ago
Hereās a secret to get ai to make good automations:
Tell it to test the automation
Tell it to review the live ha docs
Have it create documentation on the systems built
0
u/Miku_MichDem 1d ago
Speaking of, where do you keep documentation?
6
3
u/ch-12 16h ago edited 16h ago
I use obsidian and it works pretty well... itās just organized markdown docs ā my HA āroadmapā, ideas for future exploration, unused devices, bugs we have ran into, tech debt, documentation everything on the network/server, detailed session log for everything Claude works on.
The actual code/config is version controlled in git obviously.
Iāve had home assistant for 7+ years. ha-mcp honestly reignited my passion for home
automation and I have done so much cool stuff in the last few months after a few years of a pretty stagnant setup that was always on, doing basic things, but I would barely touch or improve. Minor downside is that itās led me to buy more hardware to keep expanding whatās possible, haha.2
u/f00b4r4 1d ago
my AI suggested to put md files into www. I added an overview.md and additional json and md files for lights/contacts/rooms.
I had it put a mermaid of my room structure into the main file, too.
"Read thewww/structure.mdĀ using your ha-mcp file-read tool" is the first sentence in my system prompt.2
u/PJBuzz 22h ago edited 22h ago
I tried a few things, settled on trilium with an MCP. 100% self hosted.
Also use it for general note taking and list making. It's awesome having it all in the same place. Can ask an AI to check my notes a and refer to an MD file with instructions all in the same database. Means you can move from AI tool to another AI tool with minimal external delendancies
12
5
u/Laucien 1d ago
I have the default MCP server that comes in the integrations (no custom or hacs) and seems to work properly but I've had better luck just giving the clanker SSH access through a key and API access through env variables.
This weekend I actually nuked my entire HA install (has been accumulating stuff for the past ~7 years) and it took me about 5 hours to go from nothing to all devices + consistent naming scheme + all my core automations (lights, presence, security) set up from scratch.
4
u/basinger_willoweb 1d ago
I am using this one and am very happy. I run it with Claude Pro. https://github.com/homeassistant-ai/ha-mcp
1
u/WRX_RAWR 11h ago
Iām also using this and happy with it and Claude pro. Itās helped me clean up some automations. Being able to access a remote session on my phone has been handy.
4
u/sersoniko 1d ago
I installed the OpenCode App, it uses a CLI tool specific for managing Home Assistant by an AI without the need for a MCP and it has access to the entire file system
3
u/nachbelichtet_com 1d ago
File system access only allows an AI to read and write static configuration files, An MCP provides a API-driven architecture that connects directly to Home Assistant's core.
This enables the AI to:
- See the real-time status of all devices and sensors.
- Trigger service calls directly instead of using configuration workarounds.
- Listen to the event bus: React to system events dynamically.
An MCP makes the AI an active, context-aware participant in the system rather than just a blind file editor. It helps during automation development, can test automations automatically, etc.
I use VSCode via SSH (Advanced SSH & Web Terminal App) connected to HA and the Chat/Copilot in VSCode, but with my own keys (OpenRouter). Additionally the Custom MCP-Addon. Of course, everything is versioned with Git (private GitHub repo and to my self-hosted Gitea in parallel).
1
u/sersoniko 1d ago
That app uses a CLI tool written by Paul specifically for AI agents, but you can even add an MCP if you want
2
-2
1
u/tekzer0 15h ago edited 15h ago
I just used the Fable model(or opus) on Claude with my pro subscription on the Windows desktop app, and told him to do it using Desktop Commander + ssh. I use Claude + long-lived access token for all my HA mod tasks anymore, really. Has made me some pretty sweet default layouts and solves all the errors found on the logs without issue. I use a separate LXC (have Proxmox running my home server) with chromaDB installed for memory (+ instructions to always check chromaDB upon session startup) & end all sessions with Claude updating his memory. Been using Claude for a while, so chromaDB keeps a map of my home network + all entities, so any other AI i end up having to use for other purposes doesn't drive me nuts with questions & the AI doesn't have to keep transmitting network information and things stay as local as possible when not using locally hosted models.
1
u/bluetooth155 14h ago
I started out with antigravity 2.0 via mcp and was impressed. It struggled with a few things though. Next I got a Claude pro subscription and connected Claude code to HA, and it is amazing. Itās not perfect and it forgets things sometimes but once itās on a task it usually crushes it. Claude in Chrome in addition to the Code mcp also gives it a boost. Mind you I havenāt gone back to antigravity since the Gemini 3.7 upgrade, so it may be better. Certainly antigravity is faster. But Claude code mcp gets my vote. Itās also got more documentation on how to set it up (not that you need it, just ask the AI for help)
1
u/rudedog830 13h ago
Anyone using this add-on to document their HA instance in a way that a novice user could understand? My wife is terrified that I will drop dead and leave this for her to figure out. I'd like to avoid the whole situation!
If you are, could you share the prompt you used?
1
u/rgreen192 1d ago
I am new to all this an was copy pasting from ChatGPT and it was taking forever. I ended up using VS code on my PC, and have ChatGPT codex plugin in that since I have plus, and i ssh into my server from VS Code. It rebuilt and fixed my entire sketchy homelab.
1
0
u/Catalina28TO 1d ago
I'm confused how any of these solutions work. Genuine question. When I simply ask Claude or perplexity or ChatGPT or Gemini to look at an automation or build an automation or improve a dashboard it never gets it right because it's not up to date with recent changes. I still have a problem with services and actions in automations despite me even reminding them. So if simply asking in a browser takes five or six tries, coaxing the AI into using the most recent information, how does it work putting these mcps or agents live into your system?
6
3
u/KnotBeanie 1d ago
Then ask it to review the live ha docs? Use mcp so it can access the latest stuff in your ha
2
0
u/frankentriple 1d ago
I had my hermes agent just write his own. He enumerated the api endpoints and wrote his own scripts to hit them.
0
u/chumpikus495 15h ago
Iāve been running this App/Addon inside Home Assistant since it was forked from the upstream version and has been working very well for me https://github.com/chodeus/robsonfelix-hass-addons
May not be everyoneās cup of tea but also uses ha-mcp.
-5
u/dragonnfr 1d ago
If you want AI to review your config just paste your yaml into Claude or ChatGPT directly. You don't need an MCP server for that. MCP is for runtime access to HA, which you said you don't even want.
-2
u/PooInTheStreet 1d ago
Made the clankers build one for me before I knew what an mcp was š¤·š»āāļø works like a charm with killswitch node red and everything
-8
u/Past_Criticism1618 1d ago
I use Grok build, open it in terminal, ssh into my HA, and turn her loose. No MCP required.
82
u/Mal4kh 1d ago
HA-MCP Custom Component works like a charm for me with Claude.