CAT
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Homeassistant Light Mcp

koneisto/homeassistant-light-mcp
authSTDIOregistry active
Summary

A focused Home Assistant integration that deliberately limits scope to lights only for safety reasons. It exposes eight tools including scene_show_lights for viewing RGB colors and brightness, scene_adjust_light for controlling individual lights, and full scene management (create, activate, update, delete). Also includes scene_blackout to kill all lights with optional exclusions. The key differentiator is detailed color information that the official Home Assistant MCP doesn't expose, plus built-in workarounds for IKEA Tradfri timing issues when switching between RGB and Kelvin modes. Scenes are backed up locally to ~/.config/ha-mcp-server and support both exclusive and additive modes. Connects via Home Assistant's REST API using a long-lived access token.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Home Assistant Light MCP

npm version CI License: MIT

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!

Design Philosophy: Lights Only

This MCP intentionally controls only lights - not switches, not other entities. This is a deliberate safety decision:

  • Switches can control critical systems - HVAC, heaters, air conditioning, water pumps
  • Accidental activation could be dangerous - turning on a heater while away, disabling AC in summer
  • Lights are safe - worst case is lights turn on/off unexpectedly

If you need to control switches or other entities, use the official Home Assistant MCP or automations with appropriate safeguards.

Features

  • Show Lights - View all lights with full details:
    • State, brightness, RGB colors, color temperature
    • Color mode and supported modes
    • Available effects (colorloop, etc.)
    • Color temperature range (min/max Kelvin)
  • Adjust Light - Control lights (on/off, brightness, RGB color, color temperature, effects)
  • Create Scene - Save current lighting as a scene with two modes:
    • exclusive - Turns off other lights when activated
    • additive - Only affects lights in the scene
  • List Scenes - View all saved scenes
  • Activate Scene - Activate a saved scene (with IKEA Tradfri support)
  • Update Scene - Update an existing scene with current light states
  • Delete Scene - Remove a scene
  • Blackout - Turn off all lights (with optional exclusions)

Why This MCP?

The official Home Assistant MCP is limited - it can't show light colors or provide detailed state information. This MCP fills that gap:

FeatureOfficial HA MCPThis MCP
Show light colorsNoYes
Show brightnessLimitedFull detail
Show color modesNoYes
Show effectsNoYes
Set RGB colorsNoYes
Color temperatureNoYes
Set effectsNoYes
Create scenesNoYes
IKEA Tradfri fixesNoYes

Installation

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

Configuration

Add to your MCP client configuration:

Claude Desktop

Edit config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Option 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"
      }
    }
  }
}

Other MCP Clients

The same configuration structure works with any MCP-compatible client.

Get your Home Assistant token

  1. Go to Home Assistant → Profile (bottom left)
  2. Scroll to "Long-Lived Access Tokens"
  3. Click "Create Token"
  4. Copy the token

Usage Examples

Show lights

"Show me all the lights"

"What lights are on?"

Control lights

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

Create a scene

"Save this as Movie Night"

Activate a scene

"Activate Movie Night"

Update a scene

"Update Evening Lights with current settings"

Blackout

"Turn off all lights"

"Turn off all lights except the balcony"

Tools Reference

ToolDescription
scene_show_lightsShow all lights with state, brightness, colors, effects, color modes
scene_adjust_lightControl a light (on/off, brightness, color, effects)
scene_createCreate a new scene from current light states
scene_listList all scenes
scene_activateActivate a scene
scene_updateUpdate existing scene with current lights
scene_deleteDelete a scene
scene_blackoutTurn off all lights (supports exclusions)
scene_diagnoseDiagnose lights and scenes, check connectivity
scene_fixFix scene problems, restore from backup
scene_configureSet Home Assistant URL and token

Light Properties

scene_show_lights returns:

  • state - on/off
  • brightness / brightness_pct - 0-255 / 0-100%
  • rgb_color - [R, G, B] values
  • color_temp_kelvin - Color temperature
  • color_mode - Current mode (xy, color_temp, rgb, hs)
  • supported_color_modes - What the light supports
  • effect - Active effect (if any)
  • effect_list - Available effects
  • color_temp_range - Min/max Kelvin (if supported)

Scene Modes

  • Exclusive: Turns off all lights not in the scene. Good for room-specific scenes.
  • Additive: Only affects lights in the scene. Good for accent lighting.

Local Backup & Multi-Instance Support

This MCP maintains a local backup of scenes you create:

  • Automatic backup: Scenes are saved to ~/.config/ha-mcp-server/scenes-backup.json
  • Multi-instance aware: Detects when another MCP instance (or HA UI) modifies scenes
  • Smart conflict resolution: Merges changes from multiple sources
  • Restore capability: Can restore scenes if Home Assistant loses them

Diagnostics (scene_diagnose)

Analyzes your lights and scenes to identify problems:

  • Tests light connectivity and response times
  • Detects connection types (Zigbee, WiFi, Bluetooth)
  • Finds scenes with null values or missing lights
  • Compares Home Assistant state with local backup
  • Reports new lights not yet in exclusive scenes

Example: "Run diagnostics on my lights"

Fix & Repair (scene_fix)

Four actions to repair scene problems:

ActionDescription
fix_allAuto-fix all scenes: remove null values, add missing lights to exclusive scenes
fix_sceneFix a specific scene by name
test_sceneActivate a scene and report what went wrong
restore_from_backupRestore scenes from local backup if Home Assistant lost them

Example: "Fix all my scenes" or "Restore Evening Lights from backup"

IKEA Tradfri Support

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:

  • Detecting Tradfri devices by manufacturer name
  • Adding a 500ms delay between mode switch and subsequent commands
  • Properly sequencing color/temperature changes with brightness adjustments

Without these fixes, Tradfri lights often ignore commands or produce incorrect colors when switching modes.

Security

Your Data Stays Local

  • All communication happens directly between your computer and your Home Assistant instance
  • No data is sent to external servers or third parties
  • The MCP server runs locally on your machine via stdio (no open network ports)

No Tracking

  • We don't care enough to track you

Token Safety

  • Your Home Assistant token is stored only on your local machine
  • Use environment variables to avoid storing tokens in files
  • The token is only sent to your own Home Assistant instance
  • You can revoke the token anytime from Home Assistant settings

What This Server Can Access

  • Only lights and scenes in your Home Assistant
  • Cannot access other Home Assistant entities (sensors, locks, cameras, etc.)
  • Cannot make changes outside of light control and scene management

Contributing

Found a bug or have an idea? Open an issue or submit a pull request!

License

MIT - Use freely, attribution appreciated but not required.

Author

Koneisto


Built by people with questionable priorities

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Configuration

HA_URL*

Home Assistant URL (e.g., http://192.168.1.100:8123)

HA_TOKEN*secret

Home Assistant long-lived access token

Categories
Design & Creative
Registryactive
Packageha-mcp-server
TransportSTDIO
AuthRequired
UpdatedDec 8, 2025
View on GitHub

Related Design & Creative MCP Servers

View all →
HTML to Figma — Design System

miapre/html-to-figma-design-system

Translate HTML prototypes into Figma using your design system's real components and tokens.
3
Illustrator Mcp Server

ie3jp/illustrator-mcp-server

Read, manipulate, and export Adobe Illustrator design data. 26 tools. macOS | Windows.
44
Godot

coding-solo/godot-mcp

MCP server for interfacing with Godot game engine. Provides tools for launching the editor, running projects, and capturing debug output.
3.7k
Unity Mcp

ivanmurzak/unity-mcp

Make 3D games in Unity Engine with AI. MCP Server + Plugin for Unity Editor and Unity games.
3.1k
Excalidraw

yctimlin/mcp_excalidraw

Provides an Excalidraw canvas exposed via MCP for real-time diagramming and element CRUD from AI agents.
1.9k
Figma MCP Server

figma/mcp-server-guide

The Figma MCP server brings Figma design context directly into your AI workflow.
1.6k