vinayakchandra/Smart-Lights-MCP-Server
3.2
If you are the rightful owner of Smart-Lights-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Smart Lights MCP Server allows for seamless control of WiZ smart lights using the FastMCP protocol, enabling users to manage lighting across multiple rooms with ease.
Tools
4
Resources
0
Prompts
0
Smart Lights MCP Server
A Model Context Protocol (MCP)
server that provides seamless control of WiZ
smart lights through FastMCP
. Control multiple rooms, adjust colors, brightness, and apply mood-based lighting scenes across your home network.
Setup
pip install fastmcp pywizlight
Update IP addresses in home
dictionary to match your lights.
Tools
Function | Parameters | Description |
---|---|---|
turn_on(place) | place | Turn on light |
turn_off(place) | place | Turn off light |
change_color(place, r, g, b, brightness) | place, r, g, b, brightness | Set RGB color |
scene(place, scene_id, brightness) | place, scene_id, brightness | Apply preset scene |
Places: bedroom, office, living
Usage
await turn_on("bedroom")
await scene("living", 3) # Sunset
await change_color("office", 255, 0, 0) # Red
Run python main.py
to discover lights on network.