# HomeAssistant Light MCP

> HomeAssistant Light MCP is an open-source MCP server. Control Home Assistant lights and scenes. Lights only by design for safety. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/koneisto/homeassistant-light-mcp
- **MCP Registry name:** io.github.Koneisto/HomeAssistant-Light-MCP
- **Listing updated:** 2026-11-13

## About

Control Home Assistant lights and scenes. Lights only by design for safety.

## Install

### Claude Code (Terminal)

```sh
claude mcp add homeassistant-light-mcp --env HA_URL='<HA_URL>' --env HA_TOKEN='<HA_TOKEN>' -- npx -y ha-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "homeassistant-light-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ha-mcp-server"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "homeassistant-light-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ha-mcp-server"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "homeassistant-light-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ha-mcp-server"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "homeassistant-light-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ha-mcp-server"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "homeassistant-light-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ha-mcp-server"
      ],
      "env": {
        "HA_URL": "<HA_URL>",
        "HA_TOKEN": "<HA_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is HomeAssistant Light MCP free?

Yes. HomeAssistant Light MCP is open source, so you can use and self-host it for free.

### How do I add HomeAssistant Light MCP to Claude Code?

Run this command in your terminal: claude mcp add homeassistant-light-mcp --env HA_URL='<HA_URL>' --env HA_TOKEN='<HA_TOKEN>' -- npx -y ha-mcp-server

---
Source: https://ai-powered.com/mcp/homeassistant-light-mcp
