wyzectl MCP Server
Controls Wyze lights and plugs through the Wyze cloud API, including listing devices, lights, plugs, and groups; getting state; and turning devices on/off and setting brightness, color temperature, or color.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wyzectl MCP Serverturn on the desk lamp and set brightness to 40%"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wyzectl
Control Wyze lights and plugs from the command line, or from an AI agent over MCP.
wyzectl covers lights and plugs: Wyze bulbs (white and color) and light strips, the rooms
and groups you set up in the Wyze app, and plug on/off (indoor plugs and the outdoor plug's
sockets). It can also list every device on the account, read-only. There are no camera, lock or
other device controls, on purpose.
It is a thin layer over wyze-sdk, which talks to the same cloud API the Wyze app uses. That API is not publicly documented, so Wyze can change it at any time; when it does, this tool breaks until wyze-sdk catches up.
Install
uv tool install git+https://github.com/detroitpro/wyze@v0.2.0Python 3.12-3.14.
Related MCP server: LIFX MCP Server
Credentials
Create an API key at the Wyze Developer API Console (Wyze's instructions), then set:
Variable | What |
| Your Wyze account login |
| From the developer console (one key per account, valid one year) |
| Optional: the authenticator-app secret, if your account uses TOTP two-factor |
Wyze rate-limits logins, so wyzectl caches the session (access and refresh tokens) in
$XDG_CACHE_HOME/wyzectl/session.json (mode 600; override with WYZECTL_CACHE). It refreshes
an expired token and logs in again only when the refresh token has expired too. Treat that file
like a password: it controls your Wyze account.
Use
wyzectl devices # everything on the account (read-only)
wyzectl lights # every light with on/off, brightness, color
wyzectl groups # rooms/groups from the Wyze app
wyzectl light on "Desk Lamp"
wyzectl light set desk --brightness 40 --temp 2700
wyzectl light set "Office Strip" --color ff8800
wyzectl group off "Living Room"
wyzectl plugs # plugs with on/off state
wyzectl plug on "Chair Light"
wyzectl --json lights
wyzectl session check # is the login working?Names match exactly (case-insensitive) first, then by a unique part of the name. Setting brightness, temperature or color also turns the light on. Ranges: brightness 1-100; white bulbs 2700-6500 K; color bulbs and strips 1800-6500 K or a hex color.
MCP
wyzectl mcp runs an MCP server on stdio with tools list_devices, list_lights, list_groups,
get_light, set_light, set_group, list_plugs, get_plug and set_plug. Example client config:
{
"mcpServers": {
"wyze": { "command": "wyzectl", "args": ["mcp"] }
}
}The server needs the same environment variables. Agents can change your lights with it; that's the point, and it's also why nothing else is exposed.
Develop
uv sync
uv run pytest
uv run ruff check . && uv run ruff format --check .Tests run against a fake client; they never touch a real account.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Yeelight device discovery, state, control, and scene execution.
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each device’s supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Yeelight home metadata and guarded management workflows.
Verified, pay-per-use API tools for AI agents through one authenticated connection.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables control and monitoring of Wyze smart home devices through AI assistants. Supports device discovery, control (on/off, brightness, color), group management, and health tracking for scales with real-time status monitoring.152MIT
- AlicenseBqualityDmaintenanceEnables control of LIFX smart lights through natural language, including power control, color adjustment, lighting effects, and scene management using the LIFX HTTP API.912 npm2ISC
- AlicenseAqualityFmaintenanceEnables AI assistants to control Tuya/Smart Life smart home devices via tools like on/off, brightness, color, and custom commands.1071 PyPI1MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to control Govee smart devices, including lights, via natural language. Supports turning on/off, changing colors, adjusting brightness, and activating scenes through the Govee API or local network.91MIT