# Nexus Agent

> Nexus Agent is an open-source MCP server for energy and smart home. Home Assistant MCP server with 354 tools for entities, dashboards and ESPHome. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Self-hosted, API
- **Repository:** https://github.com/fistacho/ha-nexus-agent
- **MCP Registry name:** io.github.Fistacho/ha-nexus-agent
- **Categories:** [energy and smart home](https://ai-powered.com/categories/energy-and-smart-home), [smart home](https://ai-powered.com/categories/smart-home)
- **Listing updated:** 2026-11-23

## About

Nexus Agent lets an AI assistant build, fix and run a Home Assistant setup. It offers 354 tools across 32 domains, each doing one small thing with typed parameters and a description written for models.

Beyond core entities and automations, it covers dashboards and a card builder, energy, ESPHome compile and over-the-air flashing, Node-RED flows, AdGuard Home, the Supervisor with add-ons and backups, long-term statistics and HACS. A dashboard screenshot tool lets the assistant check its own work.

It installs as a Home Assistant add-on or runs in Docker. A server-wide read-only mode, disabled namespaces and confirmation gates on risky tools keep changes in check. It works with Claude Code, Claude Desktop, VS Code, Cursor, Windsurf, Codex CLI and Gemini CLI, under the MIT licence.

## Features

- **354 focused tools:** One small tool per action across 32 domains.
- **Dashboards and cards:** Build dashboards and see them with a screenshot tool.
- **ESPHome support:** Compile, validate and flash devices over the air.
- **Read-only mode:** Hide and refuse every tool that can change something.
- **Confirmation gates:** Risky tools require explicit confirmation.
- **Tool search mode:** Expose 6 tools to the client instead of the full catalogue.
- **Add-on or Docker:** Install as a Home Assistant add-on or run the container.

## Good for

- Turn off lights and close blinds by chat
- Build a dashboard card and check a screenshot
- Find which automations use a given sensor
- Compare weekly energy use
- Review pending updates and repairs by risk
- Checkpoint the config in git before a clean-up

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ha-nexus-agent --env HA_URL='<HA_URL>' --env HA_TOKEN='<HA_TOKEN>' -- docker run -i --rm -e HA_URL -e HA_TOKEN ghcr.io/fistacho/nexus-agent:1.0.1
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ha-nexus-agent --env HA_URL='<HA_URL>' --env HA_TOKEN='<HA_TOKEN>' -- docker run -i --rm -e HA_URL -e HA_TOKEN ghcr.io/fistacho/nexus-agent:1.0.1
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ha-nexus-agent]
command = "docker"
args = ["run", "-i", "--rm", "-e", "HA_URL", "-e", "HA_TOKEN", "ghcr.io/fistacho/nexus-agent:1.0.1"]
env = { HA_URL = "<HA_URL>", HA_TOKEN = "<HA_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e HA_URL='<HA_URL>' -e HA_TOKEN='<HA_TOKEN>' ha-nexus-agent docker -- run -i --rm -e HA_URL -e HA_TOKEN ghcr.io/fistacho/nexus-agent:1.0.1

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ha-nexus-agent": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "HA_URL",
        "-e",
        "HA_TOKEN",
        "ghcr.io/fistacho/nexus-agent:1.0.1"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `dashboards_screenshot`: Render a dashboard view to a PNG image

## FAQ

### How do I install Nexus Agent?

Add the repository in the Home Assistant Add-on Store and start Nexus Agent, or run the container image with HA_URL and HA_TOKEN.

### Can I make Nexus Agent read-only?

Yes. Set NEXUS_READ_ONLY to true to hide and refuse every non-read-only tool.

### Which clients work?

Claude Code, Claude Desktop, VS Code, Cursor, Windsurf, Codex CLI, Gemini CLI and any MCP client.

### What licence does Nexus Agent use?

MIT.

### How does authentication work?

The HTTP endpoint uses an Authorization Bearer API key shown in the add-on's web UI.

### Is Nexus Agent free?

Yes. Nexus Agent is open source, so you can use and self-host it for free.

### How do I add Nexus Agent to Claude Code?

Run this command in your terminal: claude mcp add ha-nexus-agent --env HA_URL='<HA_URL>' --env HA_TOKEN='<HA_TOKEN>' -- docker run -i --rm -e HA_URL -e HA_TOKEN ghcr.io/fistacho/nexus-agent:1.0.1

### What are the best alternatives to Nexus Agent?

The closest alternatives to Nexus Agent are Home Assistant MCP Server, Home Assistant MCP, Home Assistant MCP, three.ws Home and HA NOVA.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Home Assistant MCP Server](https://ai-powered.com/mcp/home-assistant-mcp-server): Home Assistant MCP Server is an open-source MCP server for smart home.
- [Home Assistant MCP](https://ai-powered.com/mcp/home-assistant-mcp-2): Home Assistant MCP is an open-source MCP server for smart home.
- [Home Assistant MCP](https://ai-powered.com/mcp/home-assistant-mcp): Home Assistant MCP is an open-source MCP server for energy and smart home.
- [three.ws Home](https://ai-powered.com/mcp/three-ws-home): three.ws Home is an open-source MCP server for smart home.
- [HA NOVA](https://ai-powered.com/mcp/ha-nova): HA NOVA is an MCP server for smart home.
- [Homebridge](https://ai-powered.com/mcp/homebridge): Homebridge is a free MCP server for smart home.
- [Homey-Wan-Kenobi MCP](https://ai-powered.com/mcp/homey-wan-kenobi-mcp): Homey-Wan-Kenobi MCP is an open-source MCP server for smart home.

---
Source: https://ai-powered.com/mcp/nexus-agent
