Use Home Assistant with any AI client

How to connect Home Assistant to hosted AI clients through Warplet, using the built-in Model Context Protocol Server integration.

Warplet is a macOS app that connects hosted AI clients like ChatGPT, Claude, Perplexity, and Grok to MCP servers running locally on your Mac. No port forwarding or cloud hosting is required. It opens a secure tunnel and gives you one URL per local MCP server to paste into any AI client.

Home Assistant's built-in Model Context Protocol Server integration turns the entities you expose to Assist into tools an AI client can call. Warplet gives it a public URL that only speaks MCP, so you don't need a domain or a reverse proxy, and your Home Assistant dashboard stays private. Warplet runs on a Mac that can reach Home Assistant.

1. Expose the entities you want the AI to see

In Home Assistant, go to Settings → Voice assistants → Expose and add the entities the AI should reach. Start small: every exposed entity becomes a tool.

2. Enable the MCP Server integration

Go to Settings → Devices & services, click Add integration, and choose Model Context Protocol Server.

When asked for an LLM API, pick Assist (its id is assist). Turn on Control Home Assistant only if the AI should be able to change things. Leaving it off gives you a read-only setup, which is a good place to start.

3. Create a long-lived access token

Click your user name in the sidebar, open the Security tab, scroll to Long-lived access tokens, and select Create token. Name it Warplet and copy it now. Home Assistant only shows it once.

4. Add Home Assistant as a server in Warplet

Open Warplet, click Manage Servers, then +. Fill in:

  • Name: Home Assistant
  • ID (URL prefix): homeassistant
  • URL: your Home Assistant address with no path, such as http://192.168.1.3:8123 or http://homeassistant.local:8123
  • Authorization: check this box and paste the long-lived access token into Bearer Token. If you leave it unchecked, Warplet sends no credentials to Home Assistant and every request fails with 401.

Click Test Connection, then Add. The test checks the address exactly as entered, without the path from step 5, so it can show an error here even when everything is set up correctly. Step 5 is what confirms the setup works.

5. Copy your Home Assistant URL and connect an AI client

In the main Warplet window, copy your Home Assistant URL from Use these URLs to connect your favorite LLM and add /api/mcp/assist to the end, with no trailing slash:

https://your-tunnel.warplet.app/homeassistant/api/mcp/assist

The Warplet app showing connection details and per-server URLs

Add that full URL as a custom connector in your AI client:

When the client asks you to authorize, paste the Warplet bearer token, not the Home Assistant token.

Troubleshooting

  • Every request returns 404. Check that the connector URL ends in exactly /api/mcp/assist with no trailing slash, and that Warplet's URL field holds only the address.
  • Every request returns 401. If the Authorization box in step 4 is unchecked, Warplet sends no credentials to Home Assistant. If it's checked, make sure Bearer Token holds the long-lived Home Assistant token, not the Warplet one.
  • The client cannot reach the URL. Your Mac has to be awake and running Warplet, even though Home Assistant runs elsewhere.

Things to know

  • Exposure is the security boundary. The AI never sees entities you have not exposed to Assist. Keep locks and cameras unexposed rather than relying on the prompt.
  • Two separate tokens. The long-lived token lets Warplet reach Home Assistant. The Warplet bearer token lets the AI client reach Warplet.