Brand New Claude.ai & ChatGPT integration (ha-mcp)

, ,

I don’t use labels for myself, so It was not tested properly. Sorry about that.

I will try to issue a fix tonight or tomorrow.

I will also check about the bug reports. I’m not happy about the format right now. I was attempting to automate the bug report process, but it still needs work.

If you have more feedback, it’s always appreciated.

1 Like

I didn’t use labels until I started using Claude and ChatGPT to help improve the efficiency of my system…so now I’m trying to clean it all up and get things better organized.

Pro Tip - do the make sweeping changes all at once. Slow changes via chunks is the smarter way to do this. :slight_smile:

This MCP is still awesome. I just wish I had found it during the Claude usage limit holiday bonus as I keep hitting my session limits.

I released a fix with a new tool. After updating, it should be available.

See this for details: feat!: Redesign label management with add/remove/set operations by julienld · Pull Request #397 · homeassistant-ai/ha-mcp · GitHub

I tested under load to make sure there is no weird thing going on: 5000 operations and it works fine.

If you are confortable with a CLI and their privacy policy, try it with the Gemini CLI. It has good free usage : Gemini CLI: Quotas and pricing | Gemini CLI

Same goes for Google Antigravity (but I think you can opt out for the privacy stuff for now and there is a decent UI).

Wow, that was fast!

Alright, dumb question time - how do I update it?

I did a manual install on MacOS with Claude Desktop…noticed my arguments were set at [email protected], so I changed it to 6.0.0 and closed/reopened Claude. Anything else? Forgive me if I missed this in the readme.

That should work. If you want auto-update, you set it to “@latest

to check if you have the right version, check if the tool “ha_manage_entity_labels” is available (old name was ha_assign_label)

you can ask do you see a “ha_manage_entity_labels” or an “ha_assign_label” tool?

1 Like

when you re-open Claude, make sure you use the menu to exit, not just close the window (Claude might still be open in the background).

I think we will need a Linux version or maybe a docker-compose we can install for this.

Looking forward to trying this. Thank you for the quick fix! I unfortunately hit my usage limit this week before getting a chance to test the update.

I do have ChatGPT, but I’m hesitant to configure this since it require remote access and I do not have Cloudflare or a reverse proxy currently configured. I do use Nabu Casa, so are there anyways to secure the connection through that? I’m trying to minimize security risks given how I’m currently using reverse proxy.

UPDATE - I started going down the Cloudflare route, but was unable to get quick tunnels to work with the HAOS add-on as described here. It seems like you now need a custom domain in order to use that method via the HAOS add-on.

UPDATE 2 - I got ChatGPT configured with HA-MCP, however it seems like it does not work in chats that are within ChatGPT Projects. Should it?

I’ve registered with Claude but have got a bunch of errors when installing the desktop on Windows 11.

Anyone able to offer a solution? Much of what is reported in the screenshot is language I don’t understand!!

Probably not surprising but whatever has been installed cannot see my Home Assistant installation.

This worked like a charm. I love it! Though im ok with in writing ymal and googling this is a game changer for me. And it helps me understand the coding and change it does and it saves me a whole lot of time when adding multiple entities in to a card. Thanks for your great work!

1 Like

There is a standalone linux container and an home assistant addon.

Check Packages at the right of the page: GitHub - homeassistant-ai/ha-mcp: The Unofficial and Awesome Home Assistant MCP Server

Check Home Assistant MCP Setup Wizard for “docker run” examples.

These can be converted to docker compose 1:1.

It does not work with Nabu Casa right now. It would involve a custom component. addons can’t do it directly. I’m planning to rewrite all of it as a custom component, but it would a least a week of work to do.
I use a custom proxy behind

The MCP support in ChatGPT.com is not great. You need to be in dev mode and it does not have your other context. Claude Desktop / Claude.ai or open source client are the best for that kind of mobile/web usage. For desktop usage. I usually use it with Gemini CLI, Claude Code or Codex.

Here is what I tried:

Claude.ai : Fantastic to manage Home assistant on the Go, right from your phone.
Gemini CLI : the context window is huge and you it can remember what you typed last week. works great.
Claude Code : best for complex automations work. If you struggle with Gemini, Claude Code will solve it. Sometimes automations can be frustrating to debug.
Codex : If you only have a ChatGPT subscription, it works too. Has a tendency to investigate a lot before doing. Very literal: won’t do anything you did not ask.
Happy : Can provide a mobile app for Claude Code and Codex. Works Ok.
Antigravity: A collegue of mine said to me that Antigravity worked well too with ha-mcp and provided an UI.

1 Like

You need git for Claude Code to work :

Install it from the URL they provide or use this command:
winget install --id Git.Git -e

1 Like

@jld Two questions for you re: HA-MCP:

1. Template sensors created in the UI
Should HA-MCP be able to retrieve the YAML for template sensors configured via the UI?

I often have to manually paste that into Claude for troubleshooting. Is this an HA API limitation or something HA-MCP could or should support?


2. Search by label (for system-level troubleshooting)
Is there a preferred way for HA-MCP to search by label and return all entities with that label?

I use labels to define logical “systems”, meaning collections of automations, entities, and helpers that should be discovered and debugged together. I’m curious if this is also an HA API limitation or something HA-MCP could or should support.

Thanks. git installed without any dramas, I’ll see how I go!