Server data from the Official MCP Registry
Control Home Assistant lights and scenes. Lights only by design for safety.
Control Home Assistant lights and scenes. Lights only by design for safety.
Valid MCP server (2 strong, 2 medium validity signals). 2 known CVEs in dependencies (0 critical, 2 high severity) Package registry verified. Imported from the Official MCP Registry.
3 files analyzed · 3 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: HA_URL
Environment variable: HA_TOKEN
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-koneisto-homeassistant-light-mcp": {
"env": {
"HA_URL": "your-ha-url-here",
"HA_TOKEN": "your-ha-token-here"
},
"args": [
"-y",
"ha-mcp-server"
],
"command": "npx"
}
}
}From the project's GitHub README.
A Model Context Protocol (MCP) server for controlling Home Assistant lights and managing scenes. Complements the official Home Assistant MCP by providing detailed light control with colors and scene management.
Like this project? Give it a ⭐ on GitHub and help others discover it!
This MCP intentionally controls only lights - not switches, not other entities. This is a deliberate safety decision:
If you need to control switches or other entities, use the official Home Assistant MCP or automations with appropriate safeguards.
exclusive - Turns off other lights when activatedadditive - Only affects lights in the sceneThe official Home Assistant MCP is limited - it can't show light colors or provide detailed state information. This MCP fills that gap:
| Feature | Official HA MCP | This MCP |
|---|---|---|
| Show light colors | No | Yes |
| Show brightness | Limited | Full detail |
| Show color modes | No | Yes |
| Show effects | No | Yes |
| Set RGB colors | No | Yes |
| Color temperature | No | Yes |
| Set effects | No | Yes |
| Create scenes | No | Yes |
| IKEA Tradfri fixes | No | Yes |
npm install -g ha-mcp-server
Or clone and build:
git clone https://github.com/Koneisto/HomeAssistant-Light-MCP.git
cd HomeAssistant-Light-MCP
npm install
npm run build
Add to your MCP client configuration:
Edit config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonOption 1: Using npx (recommended, no global install needed)
{
"mcpServers": {
"ha-light-scenes": {
"command": "npx",
"args": ["-y", "ha-mcp-server"],
"env": {
"HA_URL": "http://your-home-assistant-ip:8123",
"HA_TOKEN": "your-long-lived-access-token"
}
}
}
}
Option 2: Global install
npm install -g ha-mcp-server
{
"mcpServers": {
"ha-light-scenes": {
"command": "ha-mcp-server",
"env": {
"HA_URL": "http://your-home-assistant-ip:8123",
"HA_TOKEN": "your-long-lived-access-token"
}
}
}
}
The same configuration structure works with any MCP-compatible client.
"Show me all the lights"
"What lights are on?"
"Turn on living room light"
"Set bedroom to 50% brightness"
"Make the kitchen light red"
"Set studio lights to warm white"
"Start colorloop on the hallway light"
"Save this as Movie Night"
"Activate Movie Night"
"Update Evening Lights with current settings"
"Turn off all lights"
"Turn off all lights except the balcony"
| Tool | Description |
|---|---|
scene_show_lights | Show all lights with state, brightness, colors, effects, color modes |
scene_adjust_light | Control a light (on/off, brightness, color, effects) |
scene_create | Create a new scene from current light states |
scene_list | List all scenes |
scene_activate | Activate a scene |
scene_update | Update existing scene with current lights |
scene_delete | Delete a scene |
scene_blackout | Turn off all lights (supports exclusions) |
scene_diagnose | Diagnose lights and scenes, check connectivity |
scene_fix | Fix scene problems, restore from backup |
scene_configure | Set Home Assistant URL and token |
scene_show_lights returns:
state - on/offbrightness / brightness_pct - 0-255 / 0-100%rgb_color - [R, G, B] valuescolor_temp_kelvin - Color temperaturecolor_mode - Current mode (xy, color_temp, rgb, hs)supported_color_modes - What the light supportseffect - Active effect (if any)effect_list - Available effectscolor_temp_range - Min/max Kelvin (if supported)This MCP maintains a local backup of scenes you create:
~/.config/ha-mcp-server/scenes-backup.jsonscene_diagnose)Analyzes your lights and scenes to identify problems:
Example: "Run diagnostics on my lights"
scene_fix)Four actions to repair scene problems:
| Action | Description |
|---|---|
fix_all | Auto-fix all scenes: remove null values, add missing lights to exclusive scenes |
fix_scene | Fix a specific scene by name |
test_scene | Activate a scene and report what went wrong |
restore_from_backup | Restore scenes from local backup if Home Assistant lost them |
Example: "Fix all my scenes" or "Restore Evening Lights from backup"
IKEA Tradfri lights have a known issue when switching between RGB color mode and color temperature (Kelvin) mode. The bulbs need time to process the mode change before accepting brightness or color values.
Note: Home Assistant's native scenes don't work reliably with Tradfri lights due to these timing issues. This MCP provides a workaround by managing scenes independently with proper delays.
This MCP automatically handles Tradfri lights by:
Without these fixes, Tradfri lights often ignore commands or produce incorrect colors when switching modes.
Found a bug or have an idea? Open an issue or submit a pull request!
MIT - Use freely, attribution appreciated but not required.
Built by people with questionable priorities
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
by Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
by mcp-marketplace · Developer Tools
Scaffold, build, and publish TypeScript MCP servers to npm — conversationally
by mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.