matic-desk-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., "@matic-desk-mcp clean the kitchen and office"
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.
Matic Desk
Run your Matic robot vacuum from the Mac menu bar, the terminal, or an AI assistant (Claude Desktop, Claude Code, Codex). Everything stays on your local network: no cloud, no account.
Unofficial. Matic Desk is a community project. It is not affiliated with, endorsed by, or supported by Matic Robots, Inc. It talks to the robot over a reverse-engineered local protocol, using the client from ProspectOre/matic-home-assistant (MIT). A robot firmware update can break it at any time. Use at your own risk.
What's in the box
Menu bar app: live robot status and bag report, plus quick controls.
matic-desk: a command-line tool for the same things.matic-desk-mcp: an MCP server, so Claude and Codex can check on the robot and clean rooms by name.
All three share one Python service layer, so they see the same robot, the same room names and the same bag ledger.
Related MCP server: Roborock MCP Server
Features
Status: what the robot is doing (cleaning, paused, returning, charging, docked, ready, error), battery, current room, error codes, bag flags, firmware.
Clean by room: by map name (
Kitchen 1), by group (kitchenmeans everyKitchen Nsegment), by your own alias (office), or the whole floor. Vacuum, mop or both; quick, standard or heavy-duty coverage; optionally in the order you give.Control: pause, resume, stop, send to the dock.
Settings: water flow (0.5 to 2.0), deep mop, pet waste, child lock, voice.
History and map: recent runs, and a floor map PNG with the robot's position and current route.
Bag tracking: see below.
Bag tracking
The robot has no bag fill sensor. It only reports two flags: "bag full" (raised when airflow is restricted) and "bag missing". So Matic Desk does the bookkeeping itself:
You record when you swap the bag: in the menu bar app, with
matic-desk bag swap, or by telling Claude "I swapped the bag on Oct 6". Recorded the wrong date? Record the right one: an earlier date replaces the later swap.It adds up what has run since then: total cleaning time, vacuum hours and mop hours, number of runs, and days.
It keeps its own ledger of runs, because the robot only remembers its last ~20. Runs are picked up whenever anything reads the history or bag report, and every 5 minutes while the menu bar app is open. If the ledger started after your swap, the report says that earlier runs may be missing.
It estimates what's left. At first that is Matic's guidance of about a week per bag. Once a bag has filled up (the robot raised "bag full"), it learns how many vacuum hours your bags last and uses that instead.
These are estimates, not measurements.
What it can't tell you
Water tank level and brush or roller wear. The robot doesn't publish them, so neither can Matic Desk.
Requirements
macOS 14 or later. Tested on Apple Silicon; the app is built for the Mac you build it on.
Apple Command Line Tools, for the Swift compiler:
xcode-select --install. Full Xcode is not needed. Only required for the menu bar app.uv. It fetches Python 3.14 for you.
A Matic robot on the same network, and the Matic phone app (used once, to turn on Pairing mode).
Install
git clone https://github.com/pfduke02/matic-desk.git
cd matic-desk
scripts/install.shThe script:
checks macOS, uv and the Swift compiler;
runs
uv sync, which creates.venv/inside the repo;builds
Matic Desk.appand copies it to~/Applications(quitting a running copy first);prints ready-to-paste MCP config for Claude Desktop and Codex with your real path, and a pairing reminder if you haven't paired yet.
Option | Effect |
| Print what it would do; change nothing. |
| Skip the menu bar app (CLI and MCP server only). |
| Also run |
It is safe to re-run, for example after git pull. It never edits Claude
Desktop or Codex config files. Keep the clone where it is: the app and the MCP
config point into its .venv.
Pair with your robot (one time)
Pairing uses Bluetooth once to get a credential. After that everything goes over Wi-Fi.
In the Matic app on your phone, go to Settings → Connectivity → Add another user and turn on Pairing mode.
On the Mac, open Terminal or iTerm yourself and run:
cd /ABSOLUTE/PATH/matic-desk uv run matic-desk pairThis must run in a terminal you opened, not from Claude, Codex or another app: macOS kills Bluetooth access for processes started by other apps.
macOS also only lets a process use Bluetooth from inside an app bundle that says why it needs it, which a plain Python (or Terminal) doesn't. So
pairrestarts itself inside a tiny helper,Matic Desk Pairing.app(an Info.plist plus a link to the project's Python), which it creates in~/Library/Application Support/Matic Desk/. If macOS asks whether "Matic Desk Pairing" may use Bluetooth, allow it.When the robot shows a six-digit code, type it into the Mac's Bluetooth pairing dialog (not the terminal).
The credential is saved to ~/.config/matic/robot.json with mode 0600 (other
keys already in that file are kept). Check that it worked with
uv run matic-desk status. If the robot is ever factory reset, pair again; the
menu bar app and MCP server pick up the new pairing without a restart.
Menu bar app
Open Matic Desk from ~/Applications. It shows what the robot is doing,
battery, current room, errors and the bag report, and lets you start a clean,
pause, resume, stop or dock, and record a bag swap. Status updates live.
The app runs the Python backend (matic-desk-bridge) from the repo's .venv.
Leaving it open keeps the bag ledger up to date.
Local Network permission. On first launch macOS asks whether Matic Desk may find devices on your local network. Allow it; without it the robot shows as offline. To change it later: System Settings → Privacy & Security → Local Network, then turn on Matic Desk.
Use it from Claude and Codex
Every client runs the same MCP server:
~/.local/share/matic-desk/venv/bin/matic-desk-mcp. scripts/install.sh
prints the exact path for your machine.
Claude Code
claude mcp add --scope user matic-desk -- ~/.local/share/matic-desk/venv/bin/matic-desk-mcpOr run scripts/install.sh --register-claude-code.
Claude Desktop
Settings → Developer → Edit Config opens claude_desktop_config.json
(in ~/Library/Application Support/Claude/). Add:
{
"mcpServers": {
"matic-desk": {
"command": "~/.local/share/matic-desk/venv/bin/matic-desk-mcp"
}
}
}If the file already has mcpServers, add the matic-desk entry inside it.
Then quit and reopen Claude Desktop.
Codex
Add to ~/.codex/config.toml:
[mcp_servers.matic-desk]
command = "~/.local/share/matic-desk/venv/bin/matic-desk-mcp"macOS applies the Local Network permission to the app that starts the MCP server. Command-line tools you run in a terminal are generally exempt, but when Claude Desktop (or another app) starts it, macOS may ask whetherthat app can find devices on your local network. Allow it, or turn it on under Privacy & Security → Local Network; otherwise the robot shows as offline.
Tools
Tool | What it does |
| Status and settings |
| Room names, groups and aliases |
| Bag report and estimate |
| Recent runs |
| Floor map image with the robot and its route |
| Clean rooms or the whole floor |
| Control the current run |
| Change a setting |
| Record a bag swap |
| Save a room alias |
The first five only read. The rest act on the robot or your ledger.
Things to say
"Vacuum the kitchen."
"Mop the living room on heavy duty."
"How's the bag?"
"I swapped the bag on Oct 6."
"Send it home."
"Call Room 3 the office, then vacuum the office."
"Vacuum" means vacuum only, "mop" means mop only, and plain "clean" does both.
Command line
Run it from the repo with uv run matic-desk ..., or call
~/.local/share/matic-desk/venv/bin/matic-desk directly. Put --json before
the command (matic-desk --json status) to get the raw objects from
docs/protocol.md.
Command | What it does |
| Activity, battery, room, errors, bag flags |
| Water flow, deep mop, pet waste, child lock, voice |
| Room names, groups and aliases |
| Recent runs, newest first (also saved to the ledger) |
| Time and vacuum/mop hours since the last swap, plus the estimate |
| Record a swap; default now, |
| Start cleaning (defaults: |
| Control the current run |
|
|
| Save the floor map as a PNG (default: |
| Name a set of rooms, e.g. |
| One-time Bluetooth pairing (run it in Terminal yourself) |
Room names ignore case and extra spaces, and are matched in this order: your
alias, the exact map name, a group (kitchen or kitchens matches
Kitchen 1 and Kitchen 2), then all, everything, whole floor or
whole house. Anything else is an error that lists the valid names. An alias
can't reuse a room name, a group name or one of those whole-floor words.
Files on disk
Path | What |
| Robot identity and credential from |
| Cleaning runs, bag swaps and bag events |
| Your room aliases |
| Bluetooth helper used only by |
| Backend log (no credential, no map data) |
| The menu bar app |
Set MATIC_DESK_DATA to keep the ledger and aliases somewhere else.
To uninstall: quit and delete the app, run claude mcp remove matic-desk (and
remove the Claude Desktop or Codex entry if you added one), delete the clone,
and delete the files above.
Privacy
Matic Desk talks only to your robot, on your local network (gRPC over TLS, pinned to the robot's certificate). No cloud, no account, no analytics or telemetry.
The credential stays in
robot.jsonand is never logged or printed. The ledger, aliases and logs stay on your Mac.When you use it through an AI assistant, tool results (status, room names, history, the map image) become part of that conversation and are sent to the assistant's provider, like anything else you share there.
How it works
Menu bar app (Swift) ── JSON lines ──▶ matic-desk-bridge ─┐
Claude / Codex ──────── MCP (stdio) ─▶ matic-desk-mcp ────┼─▶ MaticService ─▶ hermes_client ─▶ robot
Terminal ────────────────────────────▶ matic-desk ────────┘ │ (gRPC/TLS on your LAN)
└─▶ ledger.sqlite, aliases.jsonMaticService(src/matic_desk/service.py) does the work and returns plain objects. The bridge, MCP server and CLI only reshape or print them.docs/protocol.md is the contract: object shapes, errors, the bridge protocol and the MCP tools.
The protocol client is vendored, unmodified, in src/matic_desk/vendor.
Development
uv sync
uv run pytestTests use fakes; they never touch the network or your real ledger. When trying
things by hand, point MATIC_DESK_DATA at a scratch directory:
MATIC_DESK_DATA="$(mktemp -d)" uv run matic-desk bagThe menu bar app is plain Swift built with swiftc, no Xcode project:
app/build.sh [--backend-python PATH] [--out DIR] produces
build/Matic Desk.app. app/dev/fake_bridge.py speaks the bridge protocol with
canned data, so you can work on the UI without a robot.
If a firmware update breaks things, check matic-home-assistant for a newer client first.
Credits
The local protocol client comes from ProspectOre/matic-home-assistant (MIT). Figuring out the protocol was their work.
"Matic" is a trademark of Matic Robots, Inc., used here only to say which robot this works with.
License
MIT, see LICENSE. The vendored client in
src/matic_desk/vendor/hermes_client keeps its own MIT license.
Available Tools
13 toolsmatic_bag_reportMatic dust bag reportARead-onlyIdempotent
Dust bag usage since the last recorded bag swap: swap date, days, runs, total cleaning, vacuum and mop seconds, whether the robot reports the bag full or missing, previous bags and an estimate of the remaining life. The robot has no fill gauge, only full/missing flags. If 'complete' is false, runs before 'counted_from' may be missing; say so.
Inputs: no named parameters.
matic_dockSend homeAIdempotent
Send the robot back to its dock (ends the current run).
Inputs: no named parameters.
matic_historyMatic cleaning historyARead-onlyIdempotent
Recent cleaning runs, newest first: start and end (UTC), total duration, vacuum and mop seconds, rooms, modes and whether the run completed. The robot keeps about 20 runs; older ones come from the local ledger.
Inputs: limit.
matic_mapMatic mapARead-onlyIdempotent
A 1024x1024 PNG of the floor plan with room names, the robot's position and, while a run is active, its route.
Inputs: route.
matic_name_roomName a roomAIdempotent
Create or replace a room alias so the user can say e.g. 'office' for 'Room 3' or 'downstairs' for several rooms. An alias can't reuse a room name, a group name or 'all'. Returns the updated rooms, groups and aliases.
Inputs: alias (required), rooms (required).
matic_pausePauseAIdempotent
Pause the current cleaning run (resume later with matic_resume).
Inputs: no named parameters.
matic_record_bag_swapRecord a bag swapA
Record that the user changed the robot's dust bag, then return the bag report. Omit when if they changed it today or just now. For an earlier day pass that local date or time, e.g. '2026-10-06' or '2026-10-06T18:30' (convert 'yesterday' or 'last Monday' to a date yourself). A date earlier than the current bag's swap corrects it (the later swap is removed), so use this to fix a wrong date too.
Inputs: note, when.
matic_resumeResumeAIdempotent
Resume a paused cleaning run.
Inputs: no named parameters.
matic_roomsMatic roomsARead-onlyIdempotent
Rooms on the robot's map, groups of numbered segments (e.g. 'Living Room' covers 'Living Room 1..3') and the user's room aliases. Use these names with matic_start_cleaning.
Inputs: no named parameters.
matic_set_settingChange a settingAIdempotent
Change one robot setting and return all settings. water_flow: mop water amount, 0.5 to 2.0 in 0.1 steps (1.0 is normal). deep_mop: double-pass mopping, on/off. pet_waste: pet waste avoidance, on/off. child_lock: on/off. voice: spoken prompts, on/off.
Inputs: value (required), setting (required).
matic_start_cleaningStart cleaningA
Start the robot cleaning now. Give rooms, or set whole_floor for everything.
Pick mode from the user's words: 'vacuum' when they say vacuum (or hoover/sweep), 'mop' when they say mop, 'both' (vacuum then mop) when they just say clean or ask for both.
coverage: 'standard' unless they ask for a quick pass ('quick') or a deep, thorough clean ('heavy_duty').
ordered: true only if they want the rooms done in the order given.
Returns the rooms accepted and the robot's activity a few seconds later.
Inputs: mode, rooms, ordered, coverage, +1 more.
matic_statusMatic statusARead-onlyIdempotent
Current robot status: activity (cleaning, paused, returning, charging, docked, ready, error or offline), battery %, current room, error codes, bag full/missing flags and firmware, plus settings (water flow, deep mop, pet waste avoidance, child lock, voice). Never fails for connectivity: an unreachable robot reports activity 'offline' with a message.
Inputs: no named parameters.
matic_stopStopADestructiveIdempotent
Stop and end the current cleaning run (the robot stays where it is). Use matic_dock to send it home.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool targets a distinct resource or action: map/status/rooms/history/bag report, start/pause/resume/stop/dock, and settings/bag swap/room alias are clearly separated. The only close pair is stop vs dock, but their descriptions distinguish staying in place from returning home.
All tools use a consistent matic_ prefix and snake_case, with readable verb or noun phrases such as matic_start_cleaning, matic_pause, and matic_bag_report. No mixed casing or naming conventions appear.
13 tools is well-scoped for a robot vacuum control server, covering operation, state, history, bag maintenance, and room aliasing without obvious bloat.
Core robot lifecycle (start/pause/resume/stop/dock), status, map, rooms, settings, history, and bag management are covered. Minor gaps remain around scheduling, error clearing, and no-go zone management, but agents can work around them.
Maintenance
Related MCP Connectors
Control your existing Philips lights, Sonos speakers, Roborock vacuums and other supported devices through Port OS cloud. Give ChatGPT, Claude and other MCP-compatible assistants access to the devices you connect. Turn off the living room lights, play music on your speakers, adjust the thermostat, run a vacuum in a room, check a camera snapshot or find a connected tracker. Available actions depend on your linked provider accounts and each device’s supported capabilities. Port OS runs in the cloud; no local server is required. You choose the account, device and capability permissions each assistant receives. Device operations require user OAuth; public tool discovery does not grant device access. Port OS is in alpha. Setup: https://portoperatingsystem.com/docs/getting-started/ Support: https://portoperatingsystem.com/contact/
Control your Tesla from your AI assistant - climate, charging, access, and security.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to control a Cecotec Conga robot vacuum via 26 tools for state, cleaning modes, settings, timers, and system info.1-
- FlicenseNot gradedqualityDmaintenanceEnables Claude to control a Roborock vacuum via natural language, supporting commands like start, pause, dock, get status, and clean specific rooms.-
- FlicenseNot gradedqualityDmaintenanceEnables voice control of a Dreame robot vacuum via Matter using a Pebble Index ring, with tools for checking status, listing rooms and modes, starting/stopping cleaning, and docking.-
- AlicenseNot gradedqualityCmaintenanceEnables controlling Roborock vacuums through MCP, exposing status, rooms, cleaning history, consumables, and robot controls.1MIT