Yeelight IoT MCP Server

v0.1.0
io.github.Yeelight/yeelight-iot-mcp Checked 12 hours ago Published 1 month ago

Yeelight device discovery, state, control, and scene execution.

Remote (hosted)

Run in a terminal
claude mcp add --transport http yeelight-iot-mcp https://api.yeelight.com/apis/mcp_server/v1/mcp --header 'Authorization: <Authorization>' --header 'House-Id: <House-Id>' --header 'Yeelight-Region: <Yeelight-Region>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "yeelight-iot-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://api.yeelight.com/apis/mcp_server/v1/mcp",
        "--header",
        "Authorization: <Authorization>",
        "--header",
        "House-Id: <House-Id>",
        "--header",
        "Yeelight-Region: <Yeelight-Region>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "yeelight-iot-mcp": {
      "headers": {
        "Authorization": "<Authorization>",
        "House-Id": "<House-Id>",
        "Yeelight-Region": "<Yeelight-Region>"
      },
      "url": "https://api.yeelight.com/apis/mcp_server/v1/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "yeelight-iot-mcp": {
      "headers": {
        "Authorization": "<Authorization>",
        "House-Id": "<House-Id>",
        "Yeelight-Region": "<Yeelight-Region>"
      },
      "type": "http",
      "url": "https://api.yeelight.com/apis/mcp_server/v1/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.yeelight-iot-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://api.yeelight.com/apis/mcp_server/v1/mcp", "--header", "Authorization: <Authorization>", "--header", "House-Id: <House-Id>", "--header", "Yeelight-Region: <Yeelight-Region>"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. If it fails, check that the required runtime is installed (none) and that the values above are set.

Machine-readable: install.md · manifest.json