
Yeelight IoT MCP Server
io.github.YeelightPublished by GitHub account Yeelightv0.1.0Updated Oct 25, 2026
Yeelight device discovery, state, control, and scene execution.
Overview
Official Yeelight cloud MCP server that lets an assistant discover a Yeelight Pro home's rooms, devices, groups and scenes, and preview or execute device and 場景
- What you can do
- Read the selected home and list areas, rooms, devices, groups and scenes, with cursor pagination and optional room filtering for devices and groups. Preview or execute a node property command on a device, dry-run by default. Preview or execute a scene, dry-run by default.
- When to use it
- Use it when an existing or specialized integration needs direct live-state access and focused control of a Yeelight Pro home, including the control_node and execute_scene tools. Ordinary users are steered to the combined Yeelight MCP setup instead of installing this server separately.
- Requirements
- Remote Streamable HTTP endpoint at the official Yeelight API host, or a local Python 3.10+ deployment with uv. A Yeelight Authorization token is required on every request; Yeelight-Region and House-Id headers are optional. Local deployment still calls Yeelight cloud APIs and is not an offline gateway.
Installation
In SourceWeft
- Open Yeelight IoT MCP Server in the dashboard and add it to a workspace.
- Connect Authorization token credentials. They are stored privately and never shown on public pages.
- Enable the server for the chats that should use its tools.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.Yeelight%2Fyeelight-iot-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"yeelight-iot": {
"type": "http",
"url": "https://api.yeelight.com/apis/mcp_server/v1/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
Yeelight IoT MCP
Official Repository And Mirrors
GitHub is the canonical source for issues, contributions, CI, and releases. Read-only mirrors are available on Gitee and GitCode for users who cannot reach GitHub reliably, with GitLab.com as an additional global fallback. Clone from any reachable source, but report issues and contribute changes on GitHub.
[!IMPORTANT] New to Yeelight MCP? Use one Yeelight MCP setup instead of installing this repository separately.
The setup configures this live-state/control service and Yeelight Metadata MCP together. This repository remains the developer reference for its specialized server, endpoint, and tools.
Follow the official English Yeelight MCP tutorial for the complete beginner path, or open the Simplified Chinese tutorial.
Yeelight Cloud MCP Suite
This repository is the focused-control part of the official Yeelight cloud MCP suite. Ordinary users receive both independently deployed services as one capability group through the same setup:
Recommended composition: run one Yeelight MCP setup so both services are available without a second install or scan.
Which MCP should I use?
Place In Yeelight AI
yeelight-home provides the recommended installation, QR sign-in, and client-configuration flow. Ordinary users should prefer the complete yeelight-smart-home Skill; MCP-only clients run one cloud setup for the complete Yeelight MCP suite. The cloud services then execute independently of the local Runtime.
In plain language: ordinary users do not install this server separately. It is included by the unified setup and remains independently addressable for existing or specialized integrations. It is not a dependency of Yeelight Home or either Skill.
Existing and specialized IoT MCP integrations
Yeelight IoT MCP is the official focused Model Context Protocol server for Yeelight Pro homes. It lets MCP clients discover homes, areas, rooms, devices, groups, and scenes, read current capabilities, prepare safe device controls, and execute confirmed controls or scenes. The following documentation remains the supported reference for existing and specialized integrations.
For the suite overview and recommended default setup, return to Yeelight Metadata MCP.
Capabilities
- Streamable HTTP MCP transport.
- Official hosted endpoint or self-hosted source deployment.
- Eight tools for topology discovery, device control, and scene execution.
- Cursor pagination for area, room, device, group, and scene lists.
- Dry-run by default for device control and scene execution.
- Redacted control plans and explicit side-effect confirmation.
Requirements
- Python 3.10 or later for local deployment.
uvfor the documented local workflow.- A Yeelight Authorization token. Region and House ID are optional.
Recommended: let Yeelight Home complete sign-in and configuration
The command displays a QR code. In Yeelight Pro app Home, tap the top-right +, choose MCP Authorization, and scan it. One Pro home is selected automatically; multiple homes are presented by name. Cloud mode configures Metadata and IoT MCP together through local credential proxies, without copying Authorization into the AI client's configuration. Manual token configuration remains an advanced compatibility path.
Hosted Service
Use the official Streamable HTTP endpoint:
Required request header:
Optional headers are Yeelight-Region and House-Id. The server accepts a raw
token or a value prefixed with Bearer. When Region is omitted, a JWT Region
claim selects the official endpoint before the complete token is validated.
When House ID is omitted, the server selects the first Pro home in that Region.
Users never configure a Client ID; IoT upstream calls derive it from the
validated JWT when required, falling back to dev in the development Region
and iot-app in cn, sg, us, or eu.
Local Development
The local MCP URL is http://127.0.0.1:9000/mcp. Local deployment still uses Yeelight cloud APIs; it is not an offline gateway. Every request must provide an explicit Authorization header regardless of bind address or runtime environment. The service never reads an operator's CLI Profile; tests may use an explicit isolated credential provider. Nacos registration is disabled by default in the public project and can be enabled explicitly through environment variables.
MCP Client Configuration
Restart the MCP client after changing its configuration, then verify that
tools/list returns the Yeelight tools.
Tools
For request examples and operating rules, read the usage guide. For client and deployment details, read the integration guide.
Safety Model
control_node and execute_scene default to dryRun=true. A live operation
requires both dryRun=false and confirmSideEffect=true. Callers should:
- Resolve names to current IDs using read tools.
- Inspect the target's supported properties and operators.
- Generate and review a dry-run plan.
- Obtain user confirmation in the calling application.
- Execute once and query the resulting state when possible.
The control property rs is blocked by the current safety policy. Do not retry
failed writes or scene executions blindly.
Configuration
Common environment variables for local deployments:
Test
Tests cover JWT claim handling, multi-Region routing, local Profile isolation, Pro home fallback, authorization normalization, pagination, redacted plans, dry-run defaults, confirmation guards, and configuration overrides. They do not call the live Yeelight cloud.
License
Source: README.md at commit 4d441cd
Tools
0Version history
1- v0.1.0LatestOct 12, 2026
Score
85% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts