HomeAssistant Light MCP logo

HomeAssistant Light MCP

Control Home Assistant lights, inspect detailed states, and create, activate, repair, or restore lighting scenes over MCP.

Install HomeAssistant Light MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "homeassistant-light-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "ha-mcp-server"
      ],
      "env": {
        "HA_URL": "YOUR_VALUE_HERE",
        "HA_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y ha-mcp-server

initialize succeeded but no response to tools/list.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

HomeAssistant-Light-MCP MCP server connects an MCP-compatible client to Home Assistant for detailed light control and scene management. It exposes tools for inspecting light states, changing brightness, colors, temperatures, and effects, as well as creating, activating, updating, and deleting scenes. The server intentionally limits access to lights and scenes rather than switches or other entity types. Reach for it when the official Home Assistant MCP does not provide enough light attributes or scene operations.

Use cases

  • Inspect light colors, brightness, modes, and effects
  • Adjust individual lights by color, temperature, or brightness
  • Create and activate additive or exclusive lighting scenes
  • Turn off all lights while excluding selected areas
  • Diagnose and restore damaged Home Assistant scenes

Key features

  • Detailed light state and capability inspection
  • Brightness, RGB, color temperature, and effect control
  • Additive and exclusive scene management
  • Blackout control with exclusions
  • Scene diagnostics, repair, and backup restoration
  • IKEA Tradfri command sequencing

Tools11

What HomeAssistant Light MCP lets your agent do. Expand a tool for its parameters.

Self-reported~139 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/25 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · ha-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads176Package downloads in the last 30 days.
Last commit28d agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed11Callable tools this server registers over MCP.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How HomeAssistant Light MCP works

What HomeAssistant-Light-MCP MCP server does

HomeAssistant-Light-MCP MCP server gives an AI client access to Home Assistant lights and scenes through a local MCP process. Its scope is deliberately limited to lights and scene management; it does not control switches, sensors, locks, cameras, HVAC equipment, or other Home Assistant entities. This restriction reduces the risk of an accidental command affecting a critical system.

The server can report each light's on/off state, brightness, RGB value, color temperature, active color mode, supported modes, effects, available effects, and supported temperature range. It can also change a light's power state, brightness, RGB color, color temperature, or effect.

How it works

The server communicates directly with the Home Assistant instance configured by the user. It runs locally over stdio, so it does not open a network port or send Home Assistant data to an external service. Authentication uses a Home Assistant long-lived access token.

Scene operations use the current light states as their source. A scene can be exclusive, which turns off lights outside the scene when activated, or additive, which changes only the lights included in it. Local scene backups are stored at ~/.config/ha-mcp-server/scenes-backup.json. The server can compare local backup data with Home Assistant scenes and merge changes from multiple sources.

HomeAssistant-Light-MCP MCP server includes handling for IKEA Tradfri timing issues. It detects Tradfri devices by manufacturer and waits between mode changes and subsequent color, temperature, or brightness commands. This addresses bulbs that may otherwise ignore or misapply commands when switching modes.

Setup and configuration

Install the published package globally with npm install -g ha-mcp-server, or run it through npx in an MCP client configuration. A source installation requires cloning the repository, running npm install, and then npm run build.

Configure the MCP client with the server command and these environment variables:

  • HA_URL: The URL of the Home Assistant instance, such as http://your-home-assistant-ip:8123.
  • HA_TOKEN: A Home Assistant long-lived access token.

The token can be created from Home Assistant under Profile and Long-Lived Access Tokens. The same MCP configuration structure is documented for other MCP-compatible clients, not only Claude Desktop.

Tools and capabilities

Available tools include:

  • scene_show_lights: Inspect light states and supported capabilities.
  • scene_adjust_light: Change power, brightness, colors, temperature, or effects.
  • scene_create, scene_list, scene_activate, scene_update, and scene_delete: Manage saved scenes.
  • scene_blackout: Turn off all lights, optionally excluding selected lights.
  • scene_diagnose: Check connectivity, response times, scene consistency, backups, and missing lights.
  • scene_fix: Repair scenes, test activation, or restore scenes from the local backup.
  • scene_configure: Set the Home Assistant URL and token.

Limitations and notes

HomeAssistant-Light-MCP MCP server is limited to lights and scenes by design. Use the official Home Assistant MCP or Home Assistant automations when control of switches or other entity types is required. Scene diagnostics can identify null values, missing lights, differences from the local backup, and lights absent from exclusive scenes; repair actions can remove some problems or restore backed-up scenes. The project is licensed under MIT.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about HomeAssistant Light MCP

HomeAssistant-Light-MCP is an MCP server that connects AI clients to Home Assistant for light and scene management. Its main tools inspect detailed light states, adjust brightness and colors, create or activate scenes, turn lights off, diagnose problems, and repair or restore scenes. It intentionally excludes switches and other entities.

Install it with `npm install -g ha-mcp-server` or run it through `npx` from your MCP client configuration. A source installation requires cloning the repository, running `npm install`, and executing `npm run build`.

Set `HA_URL` to your Home Assistant address and `HA_TOKEN` to a long-lived access token in the MCP client configuration. Create the token from Home Assistant Profile under Long-Lived Access Tokens.

No, it only controls lights and manages scenes. It cannot access switches, sensors, locks, cameras, HVAC equipment, or other Home Assistant entities; use the official Home Assistant MCP or automations for those systems.

Yes, it includes Tradfri-specific command sequencing. The server detects Tradfri devices and adds a delay between color-mode changes and later brightness or color commands to address known timing problems.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHomeAssistant Light MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/homeassistant-light-mcp?style=directory)](https://allmcps.com/mcp/homeassistant-light-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/homeassistant-light-mcp"><img src="https://allmcps.com/api/badge/homeassistant-light-mcp?style=directory" alt="HomeAssistant Light MCP on AllMCPs" /></a>