HA Vibecode Agent v2.10.47

Connect AI to your Home Assistant

Step 1: Install Cursor

Download and Install Cursor

Download and install Cursor from the official website if you haven't already.

Step 2: Install Node.js

Install Node.js

The MCP server requires Node.js to run. If you don't have it installed:

  • Download and install from nodejs.org
  • Verify installation by opening a terminal and running: node --version
  • You should see version v20.0.0 or higher (Node.js 24 LTS recommended)

Important: Install Node.js on the computer where Cursor is running, not on the Home Assistant server.

Step 3: Copy Configuration

This is your complete Cursor MCP configuration.

Security Notice: This configuration contains your Agent Key. Keep it safe and never commit it to public repositories!
{
  "mcpServers": {
    "home-assistant": {
      "command": "npx",
      "args": ["-y", "@coolver/home-assistant-mcp@latest"],
      "env": {
        "HA_AGENT_URL": "http://homeassistant.local:8099",
        "HA_AGENT_KEY": "2qKCub7IqMKt5hi3lboECY_9Kgl6G7jS4jd2nKm-MkQ"
      }
    }
  }
}

Step 4: Setup Cursor

1

Open Cursor Settings

SettingsTools & MCPNew MCP Server

2

Add Custom MCP Server

Click Add a Custom MCP Server and paste the JSON configuration you copied in Step 3

3

Restart Cursor

Fully quit and reopen Cursor (Cmd+Q on Mac, Alt+F4 on Windows)

4

Test connection

Ask Cursor AI: "List my Home Assistant entities"

Support the Project

If you find this project useful and want to see it continue to evolve, please consider giving it a star on GitHub!

Step 1: Install Google Antigravity

What is Antigravity?

Google Antigravity is Google’s AI-first IDE for agentic development. The built-in assistant is powered by Gemini (you sign in with a Google account and use Google’s AI features according to their terms).

Install Antigravity on the machine where you write code (your Mac, PC, or Linux box)—the same place Node.js must run for the MCP bridge below.

Step 2: Install Node.js

Install Node.js

The Home Assistant MCP package runs via npx, so you need Node.js on the computer where Antigravity runs:

  • Download from nodejs.org (Node.js 20+ recommended; 24 LTS is a good default)
  • Verify in a terminal: node --version

Important: Install Node.js on your workstation, not on the Home Assistant host (unless you intentionally run the MCP there).

Step 3: Copy configuration

Same JSON shape as Cursor / Claude Desktop: a top-level mcpServers object. You will merge this into Antigravity’s MCP file in the next step.

Security: This JSON contains your Agent API key. Do not paste it into public chats, screenshots, or git repositories.
{
  "mcpServers": {
    "home-assistant": {
      "command": "npx",
      "args": ["-y", "@coolver/home-assistant-mcp@latest"],
      "env": {
        "HA_AGENT_URL": "http://homeassistant.local:8099",
        "HA_AGENT_KEY": "2qKCub7IqMKt5hi3lboECY_9Kgl6G7jS4jd2nKm-MkQ"
      }
    }
  }
}

Step 4: Add MCP server in Antigravity

Antigravity reads MCP servers from a JSON file under your user .gemini folder (shared branding with other Google Gemini developer tools). Official overview: Antigravity MCP documentation.
1

Open or create the config file

macOS / Linux: ~/.gemini/antigravity/mcp_config.json

Windows: %UserProfile%\.gemini\antigravity\mcp_config.json

If the folder does not exist yet, launch Antigravity once so it can create .gemini/antigravity, then add the file.

2

Merge the home-assistant server

If the file is empty or missing, you can paste the whole JSON from Step 3.

If you already have other servers, open the existing JSON and merge: keep one top-level "mcpServers" object and add the "home-assistant" entry from Step 3 next to your other server names.

3

Reload Antigravity

Save the file, then fully quit and reopen Antigravity so it picks up MCP changes (if tools do not appear, a restart is the most reliable fix).

4

Allow the tool when prompted

The first time the agent calls your MCP server, Antigravity may ask for permission—choose Allow so Gemini can reach your Home Assistant via the agent.

5

Test

Ask the assistant something like: “Use the home-assistant MCP tools to list my entities.”

Support the Project

If you find this project useful and want to see it continue to evolve, please consider giving it a star on GitHub!

Step 1: Install Claude Code

Download and Install Claude Code

Download and install Claude Code from the official website if you haven't already.

Step 2: Install Node.js

Install Node.js

The MCP server requires Node.js to run. If you don't have it installed:

  • Download and install from nodejs.org
  • Verify installation by opening a terminal and running: node --version
  • You should see version v20.0.0 or higher (Node.js 24 LTS recommended)

Important: Install Node.js on the computer where Claude Code is running, not on the Home Assistant server.

Step 3: Copy Configuration

This is your complete Claude Code MCP configuration.

Security Notice: This configuration contains your Agent Key. Keep it safe and never commit it to public repositories!
{
  "mcpServers": {
    "home-assistant": {
      "command": "npx",
      "args": ["-y", "@coolver/home-assistant-mcp@latest"],
      "env": {
        "HA_AGENT_URL": "http://homeassistant.local:8099",
        "HA_AGENT_KEY": "2qKCub7IqMKt5hi3lboECY_9Kgl6G7jS4jd2nKm-MkQ"
      }
    }
  }
}

Step 4: Setup Claude Code - Add MCP Server

Two Methods Available: You can add the MCP server using the interactive CLI command (recommended) or by manually editing the configuration file.
1

Method A: Using CLI Command (Recommended)

Open a terminal and run the interactive command:

claude mcp add

The command will prompt you for:

  • Server name: Enter home-assistant
  • Command: Enter npx
  • Arguments: Enter -y @coolver/home-assistant-mcp@latest
  • Environment variables: You'll need to add two:
    • HA_AGENT_URL = http://homeassistant.local:8099
    • HA_AGENT_KEY = (paste the key from Step 3)
  • Scope: Choose user (global) or project (project-specific)
2

Method B: Manual Configuration File

If you prefer to edit the configuration file directly:

  • User scope (global): Edit ~/.claude.json
  • Project scope: Create or edit .mcp.json in your project root

Paste the JSON configuration you copied in Step 3 into the file. If the file already exists, add the "home-assistant" entry to the existing "mcpServers" object.

Note: Ensure the file contains valid JSON. If starting fresh, wrap the configuration in {"mcpServers": {...}}.

3

Restart Claude Code

Fully quit and reopen Claude Code to ensure the MCP server is loaded.

4

Verify MCP Server

In Claude Code, you can verify the MCP server is connected by checking the MCP status in the settings or by asking Claude to use the home-assistant tools.

5

Test Connection

Ask Claude: "Use the home-assistant MCP server to list my Home Assistant entities"

Or try: "Ask the home-assistant MCP server to inspect my current automations"

Support the Project

If you find this project useful and want to see it continue to evolve, please consider giving it a star on GitHub!

Step 1: Install VS Code + Copilot

Install GitHub Copilot

Make sure VS Code is installed, then install the GitHub Copilot extension. Copilot Chat is automatically included with GitHub Copilot and required for MCP server integration.

Step 2: Install Node.js

Install Node.js

The MCP server requires Node.js to run. If you don't have it installed:

  • Download and install from nodejs.org
  • Verify installation by opening a terminal and running: node --version
  • You should see version v20.0.0 or higher (Node.js 24 LTS recommended)

Important: Install Node.js on the computer where VS Code is running, not on the Home Assistant server.

Step 3: Copy Configuration

This is your VS Code + Copilot MCP server configuration.

Security Notice: This configuration contains your Agent Key. Keep it safe and never commit it to public repositories!
{
  "servers": {
    "home-assistant": {
      "command": "npx",
      "args": ["-y", "@coolver/home-assistant-mcp@latest"],
      "env": {
        "HA_AGENT_URL": "http://homeassistant.local:8099",
        "HA_AGENT_KEY": "2qKCub7IqMKt5hi3lboECY_9Kgl6G7jS4jd2nKm-MkQ"
      }
    }
  }
}

Step 4: Setup VS Code - Add MCP Server

1

Open MCP User Configuration

Open the Command Palette in VS Code:

Ctrl+Shift+P (Windows / Linux)
Cmd+Shift+P (macOS)

Type: MCP: Open User Configuration

Click it – this will open the MCP configuration file.

2

Paste Configuration

In the opened configuration file (mcp.json), you will see an empty configuration:

{
  "servers": {}
}

The file will be open in VS Code editor with the cursor positioned inside the empty servers object. Paste the configuration you copied in Step 3 into this file, replacing the empty servers object, and save the file (Cmd+S / Ctrl+S).

5

Allow Server in Copilot Chat

Open GitHub Copilot Chat in VS Code (side panel with the Copilot icon).

Start a new chat. In the tools / MCP section you should now see a server called home-assistant.

If Copilot asks whether it's allowed to use this tool/server, click Allow.

6

Test Connection

Ask Copilot Chat: "Use the home-assistant tools to list my Home Assistant entities"

Or try: "Ask the home-assistant MCP server to inspect my current automations"

Support the Project

If you find this project useful and want to see it continue to evolve, please consider giving it a star on GitHub!

Step 1: Install VS Code + Codex

Install Codex Extension

Make sure VS Code is installed, then install the Codex — OpenAI's coding agent extension from the VS Code marketplace.

After installation, open the Codex sidepanel and log in with your OpenAI or GitHub account.

Step 2: Install Node.js

Install Node.js

The MCP server requires Node.js to run. If you don't have it installed:

  • Download and install from nodejs.org
  • Verify installation by opening a terminal and running: node --version
  • You should see version v20.0.0 or higher (Node.js 24 LTS recommended)

Important: Install Node.js on the computer where VS Code is running, not on the Home Assistant server.

Step 3: Copy Configuration

TOML for Codex’s config.toml (see Step 4 Option B). If you use Step 4 Option A (codex mcp add), you do not need to paste this block unless you prefer editing the file by hand.

Security Notice: This configuration contains your Agent Key. Keep it safe and never commit it to public repositories!
[mcp_servers.home-assistant]
command = "npx"
args = ["-y", "@coolver/home-assistant-mcp@latest"]
env = { 
  "HA_AGENT_URL" = "http://homeassistant.local:8099",
  "HA_AGENT_KEY" = "2qKCub7IqMKt5hi3lboECY_9Kgl6G7jS4jd2nKm-MkQ"
}

Step 4: Setup Codex — add MCP server

Codex reads MCP settings from config.toml in your Codex user configuration directory (by default ~/.codex/config.toml). The CLI and the VS Code extension share this file. The file is not guaranteed to exist until Codex or you create it—if Open config.toml fails or the path is missing, create the .codex folder and an empty config.toml, then add the block from Step 3 (or use the CLI below, which registers the server for you). Official reference: Model Context Protocol (Codex).
1

Option A — CLI (codex mcp add)

Often the fastest path: run once in a terminal where the codex command is available (see OpenAI’s Codex MCP docs for install and codex mcp --help).

codex mcp add home-assistant --env HA_AGENT_URL=http://homeassistant.local:8099 --env HA_AGENT_KEY=2qKCub7IqMKt5hi3lboECY_9Kgl6G7jS4jd2nKm-MkQ -- npx -y @coolver/home-assistant-mcp@latest

After regenerating your Agent key in this panel, use Copy CLI command again so the line matches your current key.

2

Option B — Edit config.toml

In VS Code: Codex side panel → Settings (gear)MCP settings → Open config.toml. If that does not open a file yet, create ~/.codex/config.toml yourself (create the .codex directory if needed).

Paste the TOML from Step 3. If the file already has other [mcp_servers.…] tables, add only the [mcp_servers.home-assistant] block and its env lines. Save (Cmd+S / Ctrl+S).

For trusted projects only, Codex also supports a project-scoped .codex/config.toml—see the same MCP documentation.

3

Restart VS Code

Fully quit and reopen VS Code so Codex reloads MCP configuration.

4

Verify MCP server

In Codex chat, type /mcp to list active MCP servers. You should see home-assistant.

If VS Code asks to trust or start the server the first time, choose Allow.

5

Test connection

Ask Codex: "Use the home-assistant MCP server to list my Home Assistant entities"

Or: "Ask the home-assistant MCP server to inspect my current automations"

Support the Project

If you find this project useful and want to see it continue to evolve, please consider giving it a star on GitHub!

Copied to Clipboard!