Yeelight MCP Server using local LAN control
An MCP server to control your yeelight lights.
Demo
Enable LAN controll on Yellight devices
- 01 Select the light you would like to share. Slide to the left and click on the share icon.
- 02 Select a device.
- 03 Click "More" icon and choose "LAN control".
- 04 Enable LAN control.
<p float="left"> <img src="docs/image1.png" width="150" /> <img src="docs/image2.png" width="150" /> <img src="docs/image3.png" width="150" /> <img src="docs/image4.png" width="150" /> </p>
Getting started
Start by building the docker image `` docker build -t mcp-server-docker . ``
Then add the MCP configuration to your MCP client `` "mcpServers": { "mcp-server-yeelight-lan": { "command": "docker", "args": [ "run", "-i", "--rm", "-v", "/var/run/docker.sock:/var/run/docker.sock", "mcp-server-yeelight-lan:latest" ] } } ``
Tested MCP Clients
- [x] Oterm
LLMs tested
- llama3.2:3b
- llama3.2:1b
- qwen2.5:32b-instruct
Tools
- turn on/off
- brightness
- color
- temperature
- auto discovery












