wiz-light-mcp
MCP server for controlling WiZ smart lights locally via UDP: discover bulbs, power control, color, temperature, and scenes.
README
wiz-light-mcp
MCP server for controlling WiZ smart lights from Claude Code and other MCP clients.
"Turn my light blue" / "Set focus mode" / "Discover all my lights" — right from a Claude conversation.
Features
- Discover WiZ bulbs on your local network automatically
- Power control — on, off, toggle
- Color — set any RGB color
- Temperature — warm white (2200K) to cool daylight (6500K)
- Scenes — 32 built-in scenes (Ocean, Focus, Party, Sunset, and more)
- Multi-bulb — control individual bulbs by name or all at once
- Zero config — auto-discovers bulbs, no IP addresses to configure
- Zero dependencies — just the MCP SDK and Node.js built-in UDP
Quick Start
Claude Code
claude mcp add wiz-light -- npx -y wiz-light-mcp
Or add manually to ~/.claude.json:
{
"mcpServers": {
"wiz-light": {
"command": "npx",
"args": ["-y", "wiz-light-mcp"]
}
}
}
Then in any Claude Code conversation:
You: discover my lights
You: turn the bedroom light to sunset mode
You: set all lights to 50% brightness
You: what color is the office light?
Other MCP Clients
Any MCP-compatible client can use this server. Run with stdio transport:
npx wiz-light-mcp
Tools
| Tool | Description |
|---|---|
discover_lights |
Scan the network for WiZ bulbs |
list_lights |
List previously discovered bulbs |
turn_on |
Turn on a light (optional brightness) |
turn_off |
Turn off a light |
toggle |
Toggle a light's power state |
set_color |
Set RGB color |
set_temperature |
Set white color temperature (2200-6500K) |
set_scene |
Activate a built-in scene by name or ID |
get_status |
Get current state of a light |
list_scenes |
List all 32 available scenes |
Scenes
Ocean, Romance, Sunset, Party, Fireplace, Cozy, Forest, Pastel Colors, Wake Up, Bedtime, Warm White, Daylight, Cool White, Night Light, Focus, Relax, True Colors, TV Time, Plant Growth, Spring, Summer, Fall, Deep Dive, Jungle, Mojito, Club, Christmas, Halloween, Candlelight, Golden White, Pulse, Steampunk
Requirements
- A WiZ smart bulb on the same WiFi network
- Node.js 18+
- "Allow Local Communication" enabled in the WiZ app
How It Works
WiZ bulbs run a local UDP server on port 38899 that accepts JSON commands — no cloud, no API keys, no authentication. This MCP server sends UDP packets directly to your bulbs on the local network.
Troubleshooting
No bulbs found: Make sure bulbs are powered on, on the same WiFi, and "Allow Local Communication" is enabled in the WiZ app.
Bulb IP changed: Run discover_lights again. Consider setting a static IP in your router's DHCP settings.
Timeout errors: The bulb may be unresponsive. Try power-cycling it.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.