Skip to main content

让 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 音量设置

支持多设备,通过设备名称模糊匹配选择目标设备。

安装使用

通过 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roborock_mcp-0.2.2.tar.gz (137.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roborock_mcp-0.2.2-py3-none-any.whl (179.2 kB view details)

Uploaded Python 3

File details

Details for the file roborock_mcp-0.2.2.tar.gz.

File metadata

  • Download URL: roborock_mcp-0.2.2.tar.gz
  • Upload date:
  • Size: 137.6 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

Hashes for roborock_mcp-0.2.2.tar.gz
Algorithm Hash digest
SHA256 939abb057850e589195b6952942b16b31abbbf1f9ee1abf698d202a4e6b5e4d4
MD5 1bfe1fdbd9da74b8735ec8713107b1f7
BLAKE2b-256 c9e0f54e26fce1ae3c89973a5751774ee5b15e96a076f842c48d05a710b30e89

See more details on using hashes here.

File details

Details for the file roborock_mcp-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: roborock_mcp-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 179.2 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

Hashes for roborock_mcp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f788337a86c962ceb430c044ccd7a2cfca6ef3577c49a1e32c632673728e3b25
MD5 4a051cf823b9b18111777cb2fc57b17b
BLAKE2b-256 327b4ca032a142cf1a040c42015428e83308dd05ba33064e4a4ac67f975ef05c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page