Repository navigation
Can HA's core MCP integration & ha-mcp co-exist? #2874
|
I am using Kiosk Satellite's Realtime assistant with the Gemini LLM, which in turn uses HA's core MCP integration to control HA devices. Works great and I have no interest in using my voice and Gemini to build and maintain automations, scripts, or dashboards. It is simply for getting sensor info and turning off and off devices. For helping build automations, scripts, or dashboards, I would like to use Claude Code and ha-mcp. So, I'm wondering... To keep the permissions separate and clean between my Gemini-powered voice assistant and my Claude-powered "scripting helper" I was thinking of installing ha-mcp on the same HA instance that hosts HA's core MCP. I would then point Gemini at the core MCP and Claude at ha-mcp (assuming that's possible). QUESTIONS:
|
Replies: 2 comments 2 replies
|
Yes, they can co-exist. They are two separate MCP servers with separate endpoints, so pointing Gemini at HA's core MCP integration and Claude Code at ha-mcp is a normal setup. I did not find anything in the ha-mcp custom component that registers HA's core MCP path ( On whether it's a good idea: the core MCP integration is built on Assist, so Gemini can only read and control entities you have exposed to Assist. It has no way to create or edit automations, scripts or dashboards. The README's comparison table says this directly: Lines 273 to 289 in 1aaf2ad So Gemini on the core MCP can't create an automation, as long as you keep it pointed there and don't also hand it the ha-mcp URL. To keep the voice assistant tame, limit what you expose to Assist. That is the only permission lever on that side. ha-mcp is the "everything in Home Assistant" side, so keep its URL or secret away from the Gemini setup. If you also want Claude to be less able to break things while it helps with scripts, ha-mcp has a Read Only Mode, and you can append Lines 389 to 404 in 1aaf2ad Note that (I looked this up in the code with help from an AI assistant; the links are to the lines I checked.) |
|
In principle they shouldn't conflict: both are just clients of the same Home Assistant instance. The separation you want comes mostly from who each one authenticates as. If ha-mcp connects with a long-lived access token, create a dedicated Home Assistant user for it and issue the token from that user, separate from whatever the voice setup uses. Then you can revoke one without touching the other, and the logbook shows which side made a change. Also keep Claude Code's approval prompts on for write actions. Editing automations and dashboards is exactly where you want a confirmation step. |
Yes, they can co-exist. They are two separate MCP servers with separate endpoints, so pointing Gemini at HA's core MCP integration and Claude Code at ha-mcp is a normal setup. I did not find anything in the ha-mcp custom component that registers HA's core MCP path (
/api/mcp), so I don't see a clash there. I haven't run both side by side myself.On whether it's a good idea: the core MCP integration is built on Assist, so Gemini can only read and control entities you have exposed to Assist. It has no way to create or edit automations, scripts or dashboards. The README's comparison table says this directly:
ha-mcp/README.md
Lines 273 to 289 in 1aaf2ad