Skip to main content
Glama
roborock-mcp

roborock-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ROBOROCK_MOCKNoSet to 1 to enable mock mode. The server uses an in-memory Roborock Qrevo S and makes no network calls. Auth still uses the two login tools; the mock code is 424242.
ROBOROCK_MOCK_DEVICESNoSet to 2 to add a second mock vacuum (Roborock S4 Max, s4-max-002) with no mop and no auto-empty dock, for exercising multi-vacuum selection and unsupported dock features.
ROBOROCK_SESSION_PATHNoPath where the Roborock session is written. Defaults to ~/.roborock-mcp/session.json, with file mode 0600 and directory mode 0700.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Control Roborock robot vacuums. Roborock has no public OAuth. Sign in with roborock_request_login_code and roborock_complete_login. Never ask for, repeat, or log passwords, session tokens, or local keys. Confirm with the user before start_clean, clean_rooms, empty_dustbin, or wash_mop. If list_devices returns more than one vacuum, pass device_id on later calls. Only V1 protocol vacuums can be controlled. Unsupported docks return an error instead of failing.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

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

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.

roborock_auth_statusA

Report whether a Roborock session is saved. Does not return tokens.

roborock_logoutB

Delete the local Roborock session file.

list_devicesB

List vacuums on the account: name, device_id, model, online, and protocol.

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.

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.

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.

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.

pause_cleanB

Pause the current clean. device_id is optional for a single vacuum.

resume_cleanB

Resume a paused clean. device_id is optional for a single vacuum.

stop_cleanA

Stop the current clean and leave the vacuum idle. device_id is optional for a single vacuum.

return_to_dockB

Send the vacuum back to its dock. device_id is optional for a single vacuum.

find_meA

Play the locator sound so someone can find the vacuum. device_id is optional for a single vacuum.

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.

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.

get_consumablesA

Remaining life for the filter, main brush, side brush, and sensors.

device_id is optional when the account has exactly one vacuum.

get_clean_summaryB

Total cleans, area, and duration, plus recent clean records.

device_id is optional when the account has exactly one vacuum.

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.

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.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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