Yeelight Metadata MCP Server
OfficialClick on "Install 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., "@Yeelight Metadata MCP ServerList all rooms and devices in my home"
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.
Yeelight Metadata MCP Server
An MCP server for Yeelight home metadata and management workflows. It gives AI clients a guarded task interface for homes, rooms, devices, device groups, panels, scenes, automations, favorites, maintenance, and account operations.
Use Yeelight IoT MCP for device control and live state. Use this server when the intent is to create, update, organize, configure, bind, unbind, or inspect application metadata.
Yeelight AI Capability Matrix
These projects form a complementary stack. Choose the entry point that matches how you integrate with Yeelight; they can also be combined.
Project | Role and capabilities | Best for | GitHub |
Yeelight AI CLI | Unified terminal workspace and MCP client for Cloud, Metadata, and LAN services, with local profiles, safe shortcuts, diagnostics, and client configuration. | People, scripts, and CI that want one command-line entry point. | |
| Local semantic Runtime CLI for home queries, control, configuration, diagnostics, product knowledge, and the structured | Skills, generated apps, and local automation that need a stable execution layer. | |
Yeelight IoT MCP | Hosted or self-hosted Streamable HTTP MCP server for topology, live state, device control, and scene execution. | MCP clients that need direct IoT discovery and control. | |
Yeelight Metadata MCP | Hosted or self-hosted Streamable HTTP MCP server for guarded home, room, group, panel, scene, automation, favorite, and account metadata workflows. | MCP clients that need metadata inspection and management. | |
Yeelight Smart Home Skills | Official Agent Skills: Smart Home translates natural language into safe | Agent hosts that need conversational smart-home workflows or app generation. |
Typical paths: terminal users and scripts -> yeelight-ai; MCP clients -> IoT MCP
and/or Metadata MCP; agent hosts -> Yeelight Smart Home Skill -> yeelight-home.
PRO App Builder also uses proven yeelight-home capabilities when generating
local applications.
Related MCP server: guesty-mcp-server
Highlights
Five 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:
https://api.yeelight.com/apis/metadata_mcp_server/v1/mcpRequired request header:
Authorization
Recommended optional headers:
Client-IdHouse-Id
House-Id is used as the default global home context. An explicit
context.houseId in a tool request takes precedence.
MCP Capabilities
Tools:
yeelight_metadata.list_groupsyeelight_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
Connect to the hosted server
{
"mcpServers": {
"yeelight-metadata": {
"url": "https://api.yeelight.com/apis/metadata_mcp_server/v1/mcp",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>",
"Client-Id": "<YOUR_CLIENT_ID>",
"House-Id": "<YOUR_HOUSE_ID>"
}
}
}
}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.
uv venv .venv
source .venv/bin/activate
uv pip install -e '.[test]'
METADATA_MCP_RUNTIME_ENV=local ./service.sh start
./service.sh statusThe 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:
METADATA_MCP_RUNTIME_ENV=local \
METADATA_MCP_BIND_HOST=127.0.0.1 \
PYTHONPATH=src \
.venv/bin/uvicorn main:streamable_http_app --host 127.0.0.1 --port 9010Safety Model
Every action has an execution mode, side-effect level, status, and parameter schema.
Level | Meaning | Examples |
S0 | Read-only | list, get, search |
S1 | Diagnostic or external activity | diagnose, download, poll |
S2 | Create or update | create, update, configure |
S3 | Destructive or identity-sensitive | delete, unbind, transfer, login |
execute_task defaults to a plan-only request:
{
"task": "family_space.manage_room",
"action": "create",
"payload": {"name": "Sample Room"},
"options": {"dryRun": true}
}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
Variable | Default | Purpose |
|
|
|
| local/test: | Listen address |
|
| Listen port |
|
| MCP route |
|
| Yeelight API host |
| host prefix | Explicit API base URL |
|
| Upstream timeout in seconds |
|
| Runtime catalog override |
| environment-dependent | Nacos registration switch |
| environment-dependent | Nacos servers |
|
| Candidate execution gate |
Legacy APP_MCP_* names remain supported for deployment compatibility.
Documentation
Development
PYTHONPATH=src python -m pytest -q
python -m compileall -q main.py src tests scriptsThe 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yeelight/yeelight-metadata-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server