
Yeelight Metadata MCP Server
io.github.YeelightPublished by GitHub account Yeelightv1.0.0Updated Oct 24, 2026
Yeelight home metadata and guarded management workflows.
Overview
Yeelight cloud MCP server that gives an assistant a structured view of Yeelight smart homes and guarded workflows to manage rooms, devices, scenes and…
- What you can do
- Discover task groups, tasks and runtime actions, and read each action's parameter schema
- List homes, rooms, devices, groups, panels, scenes, automations, favorites and maintenance items
- Plan and execute home-management tasks through a single execute_task tool, with dry-run plans by default
- Read MCP resources and prompts for task discovery, change planning and automation troubleshooting
- When to use it
- Use it when an MCP-capable AI client cannot install Agent Skills but should understand and manage a Yeelight smart home. It suits room, device, group, scene, automation and panel management rather than live device control, which the companion IoT service covers.
- Requirements
- Remote Streamable HTTP endpoint at the Yeelight cloud API; no local install needed. A Yeelight cloud Bearer token in the Authorization header is required, plus optional Yeelight-Region and House-Id headers. Running from source needs Python 3.10 or newer.
Installation
In SourceWeft
- Open Yeelight Metadata 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-metadata-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-metadata": {
"type": "http",
"url": "https://api.yeelight.com/apis/metadata_mcp_server/v1/mcp",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
Yeelight Metadata MCP Server
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.
This repository contains the home-understanding and management service inside Yeelight MCP. Ordinary users connect the complete Yeelight MCP suite once; they do not choose or install this server separately. Its guarded task interface covers homes, rooms, devices, groups, panels, scenes, automations, favorites, maintenance, and account operations.
[!TIP] New to Yeelight MCP? Follow the official English Yeelight MCP tutorial to prepare Yeelight Home, connect the complete Metadata and IoT capability suite, and verify the first real response. A Simplified Chinese tutorial is also available.
Yeelight Cloud MCP Suite
Yeelight Metadata MCP and Yeelight IoT MCP form the official Yeelight MCP cloud suite. They are independently deployed services configured together by the ordinary-user setup:
Recommended composition: run one Yeelight MCP setup. It configures both services in the same AI client so the model receives home understanding, management, live state, and control without a second install or scan.
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. When a client cannot install Skills, one cloud setup connects the complete Yeelight MCP suite; the cloud services then execute independently of the local Runtime.
In plain language: this server gives an MCP-only AI a structured view of your
home and guarded ways to manage it. It is not another CLI and it is not
required by yeelight-home or the Smart Home Skill.
Highlights
- Six namespaced tools instead of a large set of low-level HTTP operations.
- 7 task groups, 23 tasks, and a runtime action catalog.
- Safe-by-default execution:
dryRundefaults totrue. - Explicit confirmation for S2/S3 side effects.
- Candidate actions are blocked from live execution by default.
- MCP resources and prompts for task discovery and change planning.
- Compatible
METADATA_MCP_*and legacyAPP_MCP_*environment variables.
Hosted Service
The official Streamable HTTP endpoint is:
Required request header:
Authorization
Recommended optional headers:
Yeelight-Region:cn,sg,us, oreu; defaults to the deployment Region (cnby default)House-Id
Authorization is the only required user credential. When Yeelight-Region is
absent, the server can use the JWT Region claim to select an official endpoint,
then validates the complete token there. Yeelight services derive client identity
from that verified authorization context; users never enter a Client ID. For
actions that need a home, precedence is context.houseId -> House-Id -> first
Pro home in the same Region. The fallback is request-scoped, not a global
current-home state.
MCP Capabilities
Tools:
yeelight_metadata.list_groupsyeelight_metadata.list_housesyeelight_metadata.list_tasksyeelight_metadata.list_actionsyeelight_metadata.get_action_schemayeelight_metadata.execute_task
Resources:
yeelight-metadata://tasksyeelight-metadata://actionsyeelight-metadata://schema/{task}/{action}
Prompts:
yeelight_metadata.inspect_home_metadatayeelight_metadata.plan_metadata_changeyeelight_metadata.troubleshoot_automation_metadata
Treat the live MCP tools/list response as the source of truth for tool schemas.
Quick Start
Recommended: let Yeelight Home complete sign-in and configuration
The command displays the QR code. In Yeelight Pro app, tap Home's top-right +, choose MCP Authorization, and scan it. A single Pro home is selected automatically; only multiple homes require a choice by name. Replace cursor with your client or use --agent auto for detection. The generated client configuration starts a local credential proxy and contains no Authorization value. Manual token configuration remains an advanced compatibility path; never paste a token into an AI chat.
Connect to the hosted server
Both optional headers may be omitted. A JWT token supplies its Region claim;
opaque tokens use the deployment default. Match an explicitly selected endpoint host to the Region
(api.yeelight.com, api-sg.yeelight.com, api-us.yeelight.com, or
api-de.yeelight.com). To switch homes, call yeelight_metadata.list_houses,
then pass the chosen ID as request.context.houseId on subsequent calls.
See the integration guide for Cursor, Claude Desktop, local source, and combined IoT/Metadata configurations.
Run from source
Requirements: Python 3.10 or newer. Python 3.12 is recommended for local development.
The local endpoint is http://127.0.0.1:9010/mcp. A request without an
Authorization header returns 401 by design.
Direct startup is also supported:
Safety Model
Every action has an execution mode, side-effect level, status, and parameter schema.
execute_task defaults to a plan-only request:
Live S2/S3 execution requires confirmSideEffect=true. Candidate actions also
require allowCandidate=true and are restricted by runtime policy. Start with a
dry run, review plan.httpRequest, then execute only with testable or recoverable
data.
Configuration
Legacy APP_MCP_* names remain supported for deployment compatibility.
Standard Yeelight cloud origins support per-request Region routing. A custom
API base is fixed to METADATA_MCP_DEFAULT_REGION; requests naming another
Region are rejected instead of being silently misrouted.
Documentation
Development
The repository also includes protocol and acceptance utilities under scripts/.
Live acceptance commands can change cloud data; use explicit credentials, a
non-production home, and recoverable fixtures.
License
Licensed under the Apache License 2.0.
Source: README.md at commit b34ca72
Tools
0Version history
1- v1.0.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