yandex-iot-mcp
v0.1.1MCP server for the Yandex Smart Home (IoT) API: list and control devices, run scenarios, power-cycle smart sockets
MCP (Model Context Protocol) server for the Yandex Smart Home IoT API (API reference). Lets AI assistants (Claude Code, Claude Desktop, and any other MCP client) inspect and control devices connected to Yandex Smart Home / Alice. 1. Create an app at oauth.yandex.ru: platform Web services, redirect URI https://oauth.yandex.ru/verification_code. 2. Grant it the iot:view and iot:control permissions ("Умный дом"). 3. Open https://oauth.yandex.ru/authorize?response_type=token&client_id= in a browser, authorize, and copy access_token from the address bar.
Summary extracted from the README.
yandex-iot-mcp
MCP (Model Context Protocol) server for the Yandex Smart Home IoT API (API reference). Lets AI assistants (Claude Code, Claude Desktop, and any other MCP client) inspect and control devices connected to Yandex Smart Home / Alice.
Tools
| Tool | Description |
|---|---|
list_devices |
All devices with rooms, types, capabilities and sensor values |
list_groups |
Device groups from the Yandex Home app |
get_device |
Full state of one device, including online/offline |
turn_on / turn_off |
On/off for sockets, lights, switches |
power_cycle |
Off → wait N seconds → on. Hard-reset gear plugged into a smart socket |
device_action |
Any capability action (range, mode, toggle, color_setting…) |
list_scenarios / run_scenario |
Inspect and trigger scenarios |
Getting an OAuth token
- Create an app at oauth.yandex.ru: platform
Web services, redirect URI
https://oauth.yandex.ru/verification_code. - Grant it the iot:view and iot:control permissions ("Умный дом").
- Open
https://oauth.yandex.ru/authorize?response_type=token&client_id=<CLIENT_ID>in a browser, authorize, and copyaccess_tokenfrom the address bar.
Usage
Claude Code
claude mcp add yandex-iot --env YANDEX_IOT_TOKEN=<token> -- uvx yandex-iot-mcp
Claude Desktop
{
"mcpServers": {
"yandex-iot": {
"command": "uvx",
"args": ["yandex-iot-mcp"],
"env": { "YANDEX_IOT_TOKEN": "<token>" }
}
}
}
Example
"The server is frozen again — power-cycle the socket it's plugged into."
The assistant finds the socket via list_devices and calls
power_cycle(device_id, off_seconds=10).
From source
uvx --from git+https://github.com/ssubbotin/yandex-iot-mcp yandex-iot-mcp
Development
uv sync
uv run pytest
YANDEX_IOT_TOKEN=<token> uv run yandex-iot-mcp
License
MIT