Skip to content
MCP server

Nexus Agent

Home Assistant MCP server with 354 tools for entities, dashboards and ESPHome

Runs locally

Nexus Agent is an open-source MCP server for energy and smart home. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
Self-hosted, API
Runs
Locally
Access
Needs a secret key or token
Version
1.0.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a 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

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

Or share it with your project

Add to .mcp.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 Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.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>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "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>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • HA_URLBase URL of your Home Assistant instance, e.g. http://homeassistant.local:8123Required
  • HA_TOKENHome Assistant long-lived access token (Profile -> Security -> Long-Lived Access Tokens)Required
  • NEXUS_READ_ONLYtrue = read-only mode: every tool not annotated read-only, including generic service calls, is hidden and refused by the server
  • NEXUS_DISABLED_NAMESPACESComma-separated tool namespaces to hide and refuse, e.g. files,git,supervisor (an unknown name stops startup)

About Nexus Agent

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.

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

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

What it does

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

Pricing

Open source

MIT licence

Nexus Agent 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.

How AIPoweredBot checks servers