Skip to main content
MCP server CX Codex

Nexus Agent — Claude Code MCP server: Home Assistant control

Nexus Agent is a Claude Code MCP server that links your AI assistant to Home Assistant to manage entities and dashboards. Executes whenever you inspect or edit smart home devices.

MIT ★ 16 updated 2026-11-21

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env HA_URL=<HA_URL> --env HA_TOKEN=<HA_TOKEN> --env NEXUS_READ_ONLY=<NEXUS_READ_ONLY> --env NEXUS_DISABLED_NAMESPACES=<NEXUS_DISABLED_NAMESPACES> --transport stdio nexus-agent -- docker run -i --rm -e HA_URL -e HA_TOKEN -e NEXUS_READ_ONLY -e NEXUS_DISABLED_NAMESPACES ghcr.io/fistacho/nexus-agent:1.0.1
Open on GitHub

What Nexus Agent does

Nexus Agent exposes 354 distinct tools across 32 Home Assistant domains directly to LLM clients. The server lets the agent check entity states, diagnose broken automations, configure Lovelace interface sections, and trace dependencies across scripts.

The tool ships as an official Home Assistant add-on or as a standalone Docker image at ghcr.io/fistacho/nexus-agent:1.0.1. It connects over Streamable HTTP on port 7123 with a Bearer API token, or via stdio inside a local container.

Setting NEXUS_READ_ONLY blocks state mutation calls, which helps during initial testing. Running the server requires a live Home Assistant deployment, a valid HA_URL, and a matching HA_TOKEN credential.

What it helps with

  • Home Assistant control
  • inspect offline entities and sensor failures
  • generate custom Lovelace dashboard cards
  • trace automations that depend on a specific device

Example prompts for the agent

  • Give me a status summary of all offline devices and low batteries
  • Create a living room dashboard card showing climate controls and lighting
  • Find every automation and script referencing the front entryway contact

How to install Nexus Agent

Platform CLI

claude mcp add --env HA_URL=<HA_URL> --env HA_TOKEN=<HA_TOKEN> --env NEXUS_READ_ONLY=<NEXUS_READ_ONLY> --env NEXUS_DISABLED_NAMESPACES=<NEXUS_DISABLED_NAMESPACES> --transport stdio nexus-agent -- docker run -i --rm -e HA_URL -e HA_TOKEN -e NEXUS_READ_ONLY -e NEXUS_DISABLED_NAMESPACES ghcr.io/fistacho/nexus-agent:1.0.1

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Nexus Agent

How to install Nexus Agent in Claude Code?

Run the following command: `claude mcp add --env HA_URL=<HA_URL> --env HA_TOKEN=<HA_TOKEN> --env NEXUS_READ_ONLY=<NEXUS_READ_ONLY> --env NEXUS_DISABLED_NAMESPACES=<NEXUS_DISABLED_NAMESPACES> --transport stdio nexus-agent -- docker run -i --rm -e HA_URL -e HA_TOKEN -e NEXUS_READ_ONLY -e NEXUS_DISABLED_NAMESPACES ghcr.io/fistacho/nexus-agent:1.0.1`.

What does Nexus Agent do?

It gives AI assistants programmatic access to Home Assistant to query entities, construct user interfaces, and adjust automation routines.

What is required to run Nexus Agent?

You need a running Home Assistant instance, Docker or HA Add-on support, plus values for HA_URL and HA_TOKEN.

Similar MCP servers

All MCP servers for Automation and no-code: n8n, Zapier, Make →

Project sponsors

Companies that keep this analytics open