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.
pip install fastmcp pywizlightUpdate IP addresses in home dictionary to match your lights.
| 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
await turn_on("bedroom")
await scene("living", 3) # Sunset
await change_color("office", 255, 0, 0) # RedRun python main.py to discover lights on network.