roborock-mcp
Click on "Deploy 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., "@roborock-mcp start cleaning the kitchen"
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.
roborock-mcp-server
MCP server for Roborock robot vacuums. It speaks stdio, signs in with Roborock's email code (there is no public OAuth), and controls V1 vacuums through python-roborock (Apache-2.0).
The high-level server is the official mcp Python SDK. That SDK renamed FastMCP to MCPServer in 2.x; this project uses MCPServer.
The distribution name is roborock-mcp-server. An unrelated package already publishes roborock-mcp on PyPI, so install this server from GitHub. The Python package directory stays src/roborock_mcp.
Install
uvx --from git+https://github.com/siddhantsomani/roborock-mcp-server roborock-mcp-serveror:
pip install git+https://github.com/siddhantsomani/roborock-mcp-serverBoth expose the roborock-mcp-server command. Installing from that git URL keeps uvx and pip off the unrelated roborock-mcp package.
From a checkout:
uvx --from . roborock-mcp-serverRelated MCP server: Dreame D20 Pro Plus MCP Server
Connect to Grok Bot or Cursor
This repo is a plugin. .cursor-plugin/plugin.json points at .mcp.json, which launches the server with uvx --from git+https://github.com/siddhantsomani/roborock-mcp-server roborock-mcp-server. mcp.json is the same config for hosts that look for that filename.
To add the server by hand:
{
"mcpServers": {
"roborock": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/siddhantsomani/roborock-mcp-server",
"roborock-mcp-server"
]
}
}
}From a checkout, point uvx at the local project and turn on mock mode while you try it:
{
"mcpServers": {
"roborock": {
"command": "uvx",
"args": ["--from", ".", "roborock-mcp-server"],
"env": { "ROBOROCK_MOCK": "1" }
}
}
}Sign in
Roborock sends a 6-digit code to the account email.
roborock_request_login_codewith that email.roborock_complete_loginwith the email and the code.roborock_auth_statusto see whether a session is saved.roborock_logoutdeletes it.
The session is written to ~/.roborock-mcp/session.json, or to ROBOROCK_SESSION_PATH, with file mode 0600. The directory is mode 0700. Tool results and logs do not include the session token or local_key.
When the account has one vacuum, omit device_id. When it has several, the tool lists them and asks for device_id.
Tools
Tool | What it does |
| Email a 6-digit code |
| Save the session locally |
| Report whether you are signed in |
| Delete the session file |
| Name, device id, model, online, protocol |
| Battery, state, error, fan, mop mode, current area and time |
| Room names and segment ids |
| Full clean. Optional |
| Rooms by name or segment id. |
| Pause, resume, or stop |
| Send the vacuum home |
| Play the locator sound |
| Dock actions. Unsupported models return an error |
| Filter, main brush, side brush, sensors |
| Totals and recent cleans |
| quiet, balanced, turbo, max, or a numeric code |
| Water intensity (off/low/medium/high) or mop route (standard/deep/deep_plus/fast) |
States you will see: charging, cleaning, paused, returning, docked, idle, error. Only V1 protocol vacuums can be controlled. Other protocols are listed, and a control call explains that they are unsupported.
Mock mode
Set ROBOROCK_MOCK=1. The server uses an in-memory Roborock Qrevo S named Roborock Qrevo S (qrevo-s-001, roborock.vacuum.a104) with rooms Kitchen (16), Living Room (17), Bedroom (18), and Hallway (19). Battery, consumables, and clean history move as you start, pause, resume, stop, dock, and clean rooms. No network calls are made.
Auth still uses the two login tools. The mock code is 424242. Any well-formed email is accepted.
ROBOROCK_MOCK_DEVICES=2 adds a Roborock S4 Max (s4-max-002) with no mop and no auto-empty dock, so multi-vacuum selection and unsupported dock features can be exercised.
Marketplace reviewers
Launch with
ROBOROCK_MOCK=1(and leave the network unused).Call
roborock_request_login_codewith any email, for examplereviewer@example.com.Call
roborock_complete_loginwith that email and code424242.Call
list_devices. You should see the simulated Qrevo S online, protocolv1.Call
get_status,get_rooms,start_clean,pause_clean,resume_clean,clean_rooms(tryKitchen), andreturn_to_dock.Restart with
ROBOROCK_MOCK_DEVICES=2. A call withoutdevice_idlists both vacuums.empty_dustbinons4-max-002returns a not-supported error. The same call onqrevo-s-001runs while it is docked.
Local stdio from this repo:
ROBOROCK_MOCK=1 roborock-mcp-serveror uvx --from . roborock-mcp-server with ROBOROCK_MOCK=1 in the MCP server env.
Development
Requires Python 3.11+.
pip install -e ".[dev]"
ruff check .
ruff format --check .
pytestCI runs those three checks on Python 3.11 and 3.12.
Available Tools
20 toolsclean_roomsA
Clean one or more rooms by name or segment id. Confirm with the user first.
repeat is 1, 2, or 3. device_id is optional when the account has exactly one vacuum.
Inputs: rooms (required), repeat, device_id. Returns: object
empty_dustbinA
Empty the dustbin at the dock. Confirm with the user first.
Returns a clear error when this model or dock cannot auto-empty. The vacuum should be docked. device_id is optional for a single vacuum.
Inputs: device_id. Returns: object
find_meA
Play the locator sound so someone can find the vacuum. device_id is optional for a single vacuum.
Inputs: device_id. Returns: object
get_clean_summaryB
Total cleans, area, and duration, plus recent clean records.
device_id is optional when the account has exactly one vacuum.
Inputs: device_id. Returns: object
get_consumablesA
Remaining life for the filter, main brush, side brush, and sensors.
device_id is optional when the account has exactly one vacuum.
Inputs: device_id. Returns: object
get_roomsA
Map room names to segment ids using home data and the vacuum's room mapping.
device_id is optional when the account has exactly one vacuum.
Inputs: device_id. Returns: object
get_statusA
Read battery, state, error, fan, mop mode, and the current clean area and time.
device_id is optional when the account has exactly one vacuum. State is one of charging, cleaning, paused, returning, docked, idle, or error.
Inputs: device_id. Returns: object
list_devicesB
List vacuums on the account: name, device_id, model, online, and protocol.
Inputs: no named parameters. Returns: object
pause_cleanB
Pause the current clean. device_id is optional for a single vacuum.
Inputs: device_id. Returns: object
resume_cleanB
Resume a paused clean. device_id is optional for a single vacuum.
Inputs: device_id. Returns: object
return_to_dockB
Send the vacuum back to its dock. device_id is optional for a single vacuum.
Inputs: device_id. Returns: object
roborock_auth_statusA
Report whether a Roborock session is saved. Does not return tokens.
Inputs: no named parameters. Returns: object
roborock_complete_loginA
Finish email-code login and store the session locally.
The session file is mode 0600 under ~/.roborock-mcp/session.json, or ROBOROCK_SESSION_PATH. Tokens are not included in the result.
Inputs: code (required), email (required). Returns: object
roborock_logoutB
Delete the local Roborock session file.
Inputs: no named parameters. Returns: object
roborock_request_login_codeA
Send a Roborock email login code.
Roborock has no OAuth. Pass the account email. In mock mode (ROBOROCK_MOCK=1) no email is sent; the result tells you the mock code.
Inputs: email (required). Returns: object
set_fan_powerA
Set fan power: quiet, balanced, turbo, max, gentle, off, or a numeric code.
device_id is optional when the account has exactly one vacuum.
Inputs: fan_power (required), device_id. Returns: object
set_mop_modeA
Set water-box intensity (off, low, medium, high) or mop route (standard, deep, deep_plus, fast).
Returns a clear error when the model has no mop. device_id is optional for a single vacuum.
Inputs: mop_mode (required), device_id. Returns: object
start_cleanA
Start a full clean. Confirm with the user before calling this.
Optional fan_power: quiet, balanced, turbo, max, or a numeric code. Optional mop_mode: off, low, medium, high, or a route such as standard or deep. device_id is optional when the account has exactly one vacuum.
Inputs: mop_mode, device_id, fan_power. Returns: object
stop_cleanA
Stop the current clean and leave the vacuum idle. device_id is optional for a single vacuum.
Inputs: device_id. Returns: object
wash_mopA
Wash the mop at the dock. Confirm with the user first.
Returns a clear error when this model or dock cannot wash a mop. The vacuum should be docked. device_id is optional for a single vacuum.
Inputs: device_id. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct resource+action: auth lifecycle (request code, complete, status, logout), device info (list, status, rooms), cleaning control (start, clean_rooms, pause, resume, stop, dock, find), maintenance (empty, wash), and settings. The only mild overlap is start_clean vs clean_rooms and stop_clean vs return_to_dock, but these are clearly differentiated by description.
Most tools follow a consistent verb_noun pattern (get_status, set_fan_power, list_devices) with sensible list_ vs get_ usage for collections vs singletons. The main deviation is that the four auth tools carry a roborock_ prefix while all others are unprefixed.
20 tools is on the heavier end but well-scoped for the domain: auth (4), device info (3), cleaning control (6), maintenance (3), settings (2), history (2). Each tool maps to a meaningful robot-vacuum operation with no obvious filler.
The surface covers the full operational lifecycle—login, device listing, status, room mapping, clean control, dock/mop/bin maintenance, consumables, and history. Minor gaps exist around scheduling/timers and map editing, but core workflows are fully covered.
Maintenance
Related MCP Connectors
Read applications, devices, health and releases; rename devices and set notes in Balena.
Read devices, users, keys, ACLs and DNS for a tailnet; manage devices, routes and auth keys.
Read services, deploys, logs and databases, and trigger deploys in Render.
Programmatic control of the Hiro security platform: scans, tasks, plans, and approvals.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to control a Roborock vacuum via natural language, supporting commands like start, pause, dock, get status, and clean specific rooms.-
- AlicenseNot gradedqualityBmaintenanceEnables control and monitoring of a Dreame robot vacuum via MCP tools, including cleaning, status, and map viewing through the cloud API.7MIT
- AlicenseNot gradedqualityDmaintenanceEnables users to control a local-network iRobot Roomba over MQTT without cloud, including status monitoring, mission start/stop/pause/resume, docking, bin emptying, beeping, and plain-language error decoding.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables controlling Roborock vacuums through MCP, exposing status, rooms, cleaning history, consumables, and robot controls.1MIT