Skip to main content
Glama
roborock-mcp

roborock-mcp

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-server

or:

pip install git+https://github.com/siddhantsomani/roborock-mcp-server

Both 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-server

Related 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.

  1. roborock_request_login_code with that email.

  2. roborock_complete_login with the email and the code.

  3. roborock_auth_status to see whether a session is saved. roborock_logout deletes 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

roborock_request_login_code

Email a 6-digit code

roborock_complete_login

Save the session locally

roborock_auth_status

Report whether you are signed in

roborock_logout

Delete the session file

list_devices

Name, device id, model, online, protocol

get_status

Battery, state, error, fan, mop mode, current area and time

get_rooms

Room names and segment ids

start_clean

Full clean. Optional fan_power and mop_mode

clean_rooms

Rooms by name or segment id. repeat is 1–3

pause_clean / resume_clean / stop_clean

Pause, resume, or stop

return_to_dock

Send the vacuum home

find_me

Play the locator sound

empty_dustbin / wash_mop

Dock actions. Unsupported models return an error

get_consumables

Filter, main brush, side brush, sensors

get_clean_summary

Totals and recent cleans

set_fan_power

quiet, balanced, turbo, max, or a numeric code

set_mop_mode

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

  1. Launch with ROBOROCK_MOCK=1 (and leave the network unused).

  2. Call roborock_request_login_code with any email, for example reviewer@example.com.

  3. Call roborock_complete_login with that email and code 424242.

  4. Call list_devices. You should see the simulated Qrevo S online, protocol v1.

  5. Call get_status, get_rooms, start_clean, pause_clean, resume_clean, clean_rooms (try Kitchen), and return_to_dock.

  6. Restart with ROBOROCK_MOCK_DEVICES=2. A call without device_id lists both vacuums. empty_dustbin on s4-max-002 returns a not-supported error. The same call on qrevo-s-001 runs while it is docked.

Local stdio from this repo:

ROBOROCK_MOCK=1 roborock-mcp-server

or 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 .
pytest

CI runs those three checks on Python 3.11 and 3.12.

Available Tools

20 tools
clean_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

    A3.7/5.0

    Scored across 20 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to control a Roborock vacuum via natural language, supporting commands like start, pause, dock, get status, and clean specific rooms.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables controlling Roborock vacuums through MCP, exposing status, rooms, cleaning history, consumables, and robot controls.
      1
      MIT