Homeassistant Light MCP
H

Homeassistant Light MCP

An MCP server for controlling Home Assistant lights and managing scenes, focusing on safely controlling lights (not involving potentially dangerous devices such as switches), providing detailed light status display, color control, scene creation and activation, etc. It particularly includes compatibility fixes for IKEA Tradfri devices.
2 points
7.0K

What is the Home Assistant Light Control MCP?

This is a lighting control tool specifically designed for the Home Assistant smart home system. It uses the Model Context Protocol (MCP) to allow you to control all the lights in your home using natural language (such as Chinese or English). You can check the light status, adjust the brightness, change the color, create scenes, and even turn off all the lights with a single command.

How to use this MCP server?

First, you need to configure the server connection information in your MCP client (such as Claude Desktop), including the Home Assistant address and access token. After the configuration is complete, you can directly control the lights through conversation, such as saying 'Turn on the living room lights' or 'Set the bedroom lights to warm white'.

Applicable Scenarios

This tool is particularly suitable for the following scenarios: • Daily light control: Control the lights directly by speaking without opening the mobile app. • Scene management: Create lighting scenes such as 'Movie Night' and 'Reading Mode'. • Smart home integration: Work in conjunction with other smart devices. • Remote control: Control the home lights through a voice assistant.

Main Features

View Light Status
Display detailed information about all lights, including on/off status, brightness percentage, RGB color values, color temperature, supported color modes, etc. Let you have a comprehensive understanding of the status of each light.
Precise Light Control
Supports multiple control methods: on/off control, brightness adjustment (0 - 100%), RGB color setting, color temperature adjustment (Kelvin value), and light effect switching.
Intelligent Scene Management
Create, save, activate, and manage lighting scenes. Supports two modes: exclusive mode (only controls the lights in the scene) and additive mode (does not affect other lights).
IKEA Tradfri Support
Specifically optimized to support IKEA Tradfri smart bulbs, solving compatibility issues when switching between color modes and color temperature modes.
Local Backup and Restoration
Automatically back up all scenes locally, supporting multi - instance synchronization and conflict resolution. If scenes are lost in Home Assistant, they can be restored from the backup.
Diagnosis and Repair
Provides lighting connection diagnosis, scene problem detection, and automatic repair functions to ensure the stable operation of the lighting system.
Advantages
Focus on light control: Specifically designed for lights, with more detailed and comprehensive functions.
Natural language interaction: Control through conversation without learning complex commands.
Safe design: Only controls lights, avoiding accidental operation of other important devices.
Offline backup: Scene data is backed up locally to prevent data loss.
Good compatibility: Specifically optimized to support common brands such as IKEA Tradfri.
Limitations
Limited to lights: Cannot control switches, sockets, and other devices.
Requires configuration: You need to set up the Home Assistant connection information first.
Depends on the network: Requires the Home Assistant server to run normally.
Learning cost: You need to understand basic concepts such as scene modes and color temperature.

How to Use

Install the MCP Server
Install globally via npm or run directly using npx. It is recommended to use the npx method without global installation.
Get the Home Assistant Access Token
In the Home Assistant web interface, go to the personal profile settings, create a long - term access token, and copy and save it.
Configure the MCP Client
Add the server configuration to the configuration file of Claude Desktop or other MCP clients, and set the Home Assistant address and token.
Start Using
Restart the MCP client, and then you can control the lights through natural language.

Usage Examples

Daily Light Control
Control the lights in each room of your home through simple conversations
Create a Home Theater Scene
Create a special lighting scene for watching movies to create a suitable atmosphere
Morning Wake - up Mode
Set up a morning lighting scene to simulate the gradual brightening of the sunrise
Turn Off All Lights with One Click
Quickly turn off all lights before leaving home or going to bed
Diagnose Lighting Problems
Diagnose and repair lighting problems when they occur

Frequently Asked Questions

What is the difference between this MCP server and the official Home Assistant MCP?
Why can it only control lights and not switches or other devices?
How to get the Home Assistant access token?
What is the difference between the exclusive and additive modes of a scene?
Why does my IKEA Tradfri bulb sometimes not respond to color changes?
Is the data safe? Will my information be uploaded?
What if the scenes in Home Assistant are lost?
What types of smart bulbs are supported?

Related Resources

GitHub Project Homepage
View the source code, submit issues, and contribute
npm Package Page
View the latest version and installation statistics
Home Assistant Official Website
Learn about the Home Assistant smart home platform
Model Context Protocol Documentation
Learn about the technical details of the MCP protocol
Claude Desktop Configuration Guide
Learn how to configure the MCP server for Claude Desktop

Installation

Copy the following command to your Client for configuration
{
  "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"
      }
    }
  }
}

{
  "mcpServers": {
    "ha-light-scenes": {
      "command": "ha-mcp-server",
      "env": {
        "HA_URL": "http://your-home-assistant-ip:8123",
        "HA_TOKEN": "your-long-lived-access-token"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
8.6K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
10.7K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
5.9K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
9.0K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
8.7K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
9.4K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
9.4K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
8.5K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
67.5K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
33.1K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
22.9K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
29.6K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
61.6K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
21.4K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
44.9K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase