🍎

macOS Setup Guide

Claude Desktop + Home Assistant in ~10 minutes

Works with free Claude account - no subscription needed.

1

Create a Claude Account

Go to claude.ai and create a free account.

2

Run the Installer

Open Terminal and paste:

curl -LsSf https://raw.githubusercontent.com/homeassistant-ai/ha-mcp/master/scripts/install-macos.sh | sh

This installs the required tools and configures Claude Desktop for the demo environment.

Manual Installation (if the installer doesn't work)

Install uv

brew install uv

Or without Homebrew: curl -LsSf https://astral.sh/uv/install.sh | sh

Configure Claude Desktop

  1. 1. Open Claude Desktop
  2. 2. Menu bar → ClaudeSettings...DeveloperEdit Config
  3. 3. Paste the following configuration:
{
  "mcpServers": {
    "Home Assistant": {
      "command": "uvx",
      "args": ["ha-mcp@latest"],
      "env": {
        "HOMEASSISTANT_URL": "https://ha-mcp-demo-server.qc-h.net",
        "HOMEASSISTANT_TOKEN": "demo"
      }
    }
  }
}

4. Save and restart Claude: Claude menu → Quit Claude, then reopen.

3

Install or Restart Claude Desktop

Download and install Claude Desktop from claude.ai/download.

Already have it? Restart it: Claude menu → Quit Claude, then reopen.

4

Test It

Open Claude Desktop and ask:

Can you see my Home Assistant?

Claude should respond with a list of entities from the demo environment (lights, sensors, switches, etc.).

5

Explore the Demo

The demo environment is a real Home Assistant you can experiment with:

Web UI: ha-mcp-demo-server.qc-h.net

Login: mcp / mcp

Note: Resets weekly - your changes won't persist

Try asking Claude:

  • "Turn on the kitchen lights"
  • "What's the temperature in the living room?"
  • "Create an automation that turns off all lights at midnight"
6

Connect Your Home Assistant

Ready to use your own Home Assistant? Edit the config file:

open "$HOME/Library/Application Support/Claude/claude_desktop_config.json"

Replace the demo values:

{
  "mcpServers": {
    "Home Assistant": {
      "command": "uvx",
      "args": ["ha-mcp@latest"],
      "env": {
        "HOMEASSISTANT_URL": "http://homeassistant.local:8123",
        "HOMEASSISTANT_TOKEN": "your_long_lived_token"
      }
    }
  }
}

To get your token:

  1. 1. Open Home Assistant in your browser
  2. 2. Click your username (bottom left)
  3. 3. Security tab → Long-lived access tokens
  4. 4. Create token → Copy immediately (shown only once)

Then restart Claude: Claude menu → Quit Claude, then reopen.

7

Share Your Feedback

We'd love to hear how you're using ha-mcp!

Having issues? See the FAQ & Troubleshooting Guide