让 Claude 控制石头扫地机 - MCP 服务器
Project description
roborock-mcp
MCP 服务器,让 Claude 控制石头扫地机。
功能
通过 MCP 协议提供 10 个只读查询工具:
| 工具 | 说明 |
|---|---|
get_devices |
列出所有设备(名称、型号、固件版本) |
get_status |
设备实时状态(电量、吸力、拖布湿度、错误码等) |
get_rooms |
房间列表(ID 与名称映射) |
get_maps |
地图概览(地图列表、当前地图) |
get_map_content |
地图内容(机器人位置、充电座位置) |
get_home |
家庭完整布局(所有地图的房间信息) |
get_clean_summary |
清洁历史统计(总时长、面积、次数) |
get_consumables |
耗材状态(主刷、边刷、滤网工作时长) |
get_dnd |
勿扰模式设置 |
get_sound_volume |
音量设置 |
支持多设备,通过设备名称模糊匹配选择目标设备。
安装使用
前置:安装 uv
本项目通过 uvx 运行,需要先安装 uv:
macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
安装后终端输入 uvx --version 验证。
通过 uvx(推荐)
1. 首次认证
uvx roborock-mcp auth
按提示输入 Roborock 账户邮箱和验证码,认证信息保存在 ~/.cache/roborock-mcp/。
2. 配置 Claude Code
在项目目录创建 .mcp.json:
{
"mcpServers": {
"roborock": {
"command": "uvx",
"args": ["roborock-mcp"]
}
}
}
更新
uvx --refresh roborock-mcp auth
开发模式
# 需要先 clone python-roborock 到 ./python-roborock/
uv pip install -e .
python -m roborock_mcp # 启动 server
python -m roborock_mcp auth # 认证
要求
- Python >= 3.12
- Roborock 账户(国际版,邮箱注册)
许可证
GPL-3.0-only(由于 vendoring 了 python-roborock)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file roborock_mcp-0.2.4.tar.gz.
File metadata
- Download URL: roborock_mcp-0.2.4.tar.gz
- Upload date:
- Size: 138.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ac55b1d234c043272e6e5cce501bd3ee2306cd7a36874d290e8a7b0a90559c
|
|
| MD5 |
ca9022477306687bb75158a099f4b0e1
|
|
| BLAKE2b-256 |
ec33f3f022d9b1c90189a9d3d58fa6faae4149d55d466d5a56d9b111cfd0e5eb
|
File details
Details for the file roborock_mcp-0.2.4-py3-none-any.whl.
File metadata
- Download URL: roborock_mcp-0.2.4-py3-none-any.whl
- Upload date:
- Size: 179.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db21c444bfe8d9de51b5fa60bf533f3d07b27c990ad9ce436b35935745525451
|
|
| MD5 |
66e972c4ca69cacd4b54801ea0ca6841
|
|
| BLAKE2b-256 |
27111e31b583a08f09481877f56e4909bca9336203f5701d3a290a6e3bb072c6
|