prusa-workbench-mcp
Lets Claude manage and slice multi-bed PrusaSlicer print jobs and inspect results in a viewer, without starting a print.
Manage print jobs: list, create, open, and inspect the current job's beds and objects.
Inspect print/filament profiles and search PrusaSlicer settings with current bed values.
Add models from local STL/3MF/OBJ/STEP files or Onshape part studios, optionally with copies.
Transform objects (rotate, scale, lay flat, move, reset) and arrange, copy, remove, or move them between beds.
Configure beds with print profiles, filaments, arbitrary PrusaSlicer setting overrides, supports, and support angle; remove beds.
Configure per-object settings such as supports, support angle, infill, perimeters, brim, rename, or clear them.
Generate labeled top/iso preview images to check layout and orientation before slicing.
Slice selected or all beds in parallel with each bed's settings and open the viewer to inspect the generated G-code.
Open the local viewer to follow jobs and slices.
Exposes the print-job viewer over a Tailscale tailnet using Tailscale serve with HTTPS, enabling access from a phone and installation as an app, with host and forwarded-request header checks.
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., "@prusa-workbench-mcp arrange these STLs on two beds and slice both with 0.2mm layers"
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.
prusa-workbench-mcp
Ask Claude to model something (Onshape) and slice it. Claude drives the PrusaSlicer command line through an MCP server — one run per bed, each bed with its own settings — writes the G-code to a job folder, and a small local viewer app shows the result so you can check it and send it to the printer (Prusa Connect / PrusaLink).
Built for an Original Prusa MINI, but nothing ties it to one printer.
Status: steps 1–3 of PLAN.md done (CLI slicing, viewer, MCP server); sending through Prusa Connect is built and being tested, PrusaLink comes after.
Setup
You need Python 3.11+ and PrusaSlicer 2.9 with your printer set up in it (its config wizard). The code finds
PrusaSlicer by itself: the Flatpak or prusa-slicer on Linux, prusa-slicer-console.exe in Program Files on
Windows, /Applications/PrusaSlicer.app on macOS. Otherwise set PRUSA_WORKBENCH_SLICER to the executable (and
PRUSA_WORKBENCH_SLICER_CONFIG to its config folder).
Linux
python3 -m venv .venv && .venv/bin/pip install -e .
claude mcp add -s user prusa-workbench -- "$PWD/.venv/bin/prusa-workbench-mcp"The Prusa Connect login window and the app window use GTK + WebKit from the system python3
(gir1.2-webkit2-4.1 on Debian/Ubuntu).
Windows (PowerShell)
py -3 -m venv .venv; .venv\Scripts\pip install -e .
claude mcp add -s user prusa-workbench -- "$PWD\.venv\Scripts\prusa-workbench-mcp.exe"On Windows the viewer runs in the browser: open http://127.0.0.1:8765 in Edge or Chrome (it opens by itself when Claude slices) and use Install app in the address bar to get it as its own window (it's a PWA). The Prusa Connect login window uses pywebview (Edge WebView2, part of Windows); deleted jobs go to the recycle bin. Tested on Windows by CI (GitHub Actions, real PrusaSlicer); macOS should work the same way but is untested.
Related MCP server: bambu-studio-mcp
MCP server
Then just ask Claude, e.g. "slice the fit test on two beds, the pins at 0.15 mm with 4 perimeters". It never starts a print: the result opens in the viewer and you send it from there.
Tool | What it does |
| jobs live in |
| delete whole jobs (to the desktop trash) |
| print profiles + filaments; search PrusaSlicer setting names with their current values |
| STL / 3MF / OBJ / STEP (STEP through PrusaSlicer), with copies |
| parts straight from an Onshape part studio (API keys from |
| rotate, scale, lay flat (largest stable face), move |
| packing per bed; what doesn't fit goes to a new bed |
| per bed: print profile, filament, any PrusaSlicer setting, supports |
| per object: supports (off / auto / build plate only), angle, infill, perimeters, brim… |
| paint support blockers/enforcers like PrusaSlicer's brush: inside a box, or automatically in small gaps (screw holes, nut traps) |
| picture of a bed (top + iso, labeled) so Claude can check the layout before slicing |
| all beds in parallel, each with its own settings → G-code with thumbnails → viewer |
| start / open the viewer |
Each bed is sliced from bed-N.3mf (placed objects + per-object settings) and bed-N.ini (bed overrides on top
of the profiles); both stay in the job folder next to bed-N.gcode and bed-N.json.
Viewer
python3 -m prusa_workbench.viewer --open # http://127.0.0.1:8765, reads ~/print-jobsAs an app on Linux (its own window and app-menu entry; Firefox on Linux can't install PWAs, so this uses GTK + WebKit; on Windows/macOS install the PWA from Edge/Chrome instead, see Setup):
PYTHONPATH=$PWD /usr/bin/python3 -m prusa_workbench.app_window --install # once; --uninstall removes itThen start Prusa Workbench from the app menu. It starts the viewer server if needed. Every time Claude slices,
this window opens (or comes to the front) and shows the sliced job; PRUSA_WORKBENCH_OPEN=browser uses the
browser instead.
The window has two tabs, Workbench and Prusa Connect (Ctrl+1 / Ctrl+2; back, reload and "open in browser"
in the title bar). Log in to Connect there once; the login is kept in ~/.local/share/prusa-workbench/. After a
successful send it switches to the printer's page in Connect, and when Claude slices it switches back. Needs the system python3 with
gir1.2-webkit2-4.1 (same as the Prusa login window).
Stdlib only (three.js loads from a CDN, so the browser needs internet). The MCP server starts it by itself.
Options: --jobs DIR, --port N, --job NAME.
Shows the newest job and follows new ones as they appear; pick an older job in the Job menu.
Delete… next to it cleans up old or bad jobs (several at once). They go to the desktop trash, so they can be restored.
One tab per bed (
*.gcodein the job folder). Re-sliced beds reload automatically.Toolpaths in PrusaSlicer's colors; click legend items to hide features, tick Travel to see travel moves.
Keys:
↑/↓layer,←/→move within the layer (Shift= ×10),Ssingle layer,1/2/3iso/top/front,Zzoom to print.Send to printer uploads through Prusa Connect (see below): all beds of the job in order (or just the shown bed), then just upload, add to the queue, or print now (first in the queue, bed-1 then bed-2…; printing starts once the printer is set READY, i.e. someone confirmed the bed is clear).
Save to USB copies the G-code to a USB stick instead (no Prusa Connect needed): all beds or the shown one, binary
.bgcode(MINI firmware 5.1+) or text.gcode, written to the stick's root and flushed, then ejected.Side panel: thumbnail, print time, filament, profiles, settings used (● = changed from the profile), objects with their own settings, warnings.
A job folder is just ~/print-jobs/<job>/bed-N.gcode (+ optional bed-N.json summary). G-code dropped in by hand works too.
On your phone (Tailscale)
The viewer only listens on 127.0.0.1; Tailscale serve puts it on your
tailnet with HTTPS (not on the internet):
tailscale serve --bg 8765 # -> https://<machine>.<tailnet>.ts.netOpen that address in Chrome on the phone and use Install app to get it as an app. The server accepts the
machine's own ts.net name only for requests Tailscale serve forwarded (it adds a Tailscale-User-Login header);
other names: PRUSA_WORKBENCH_TAILSCALE_HOSTS. The viewer must be running (it starts when Claude slices, or run it
yourself as above).
Made for slow mobile data: slicing also writes bed-N.gcode.gz (about 4× smaller; made on the first request for
older jobs), sent with Content-Encoding: gzip, and the app keeps the last 12 beds it opened on the device, so a bed
loads from the network only once per version. The browser still parses the G-code itself.
Prusa Connect
Prusa Connect has no official upload API, so this does what PrusaSlicer does: log in to your Prusa Account with PrusaSlicer's public OAuth client, then register the upload and PUT the file. It may break if Prusa changes things.
Log in from the Send dialog: a small sign-in window opens (GTK + WebKit, run with the system
python3; needsgir1.2-webkit2-4.1). It catches theprusaslicer://loginredirect itself, so PrusaSlicer's own login is not touched.It sends binary G-code (
.bgcode, about a third of the size) when the printer takes it: PrusaSlicer makes it from the bed's saved inputs at send time, with our thumbnails added. The MINI's Wi-Fi is the slow part.Tokens are kept in
~/.config/prusa-workbench/connect-tokens.json(mode 600). Log out in the dialog deletes them.The viewer only accepts these requests from
localhostpages or through Tailscale serve (custom header + Host check).
Tests
.venv/bin/pip install -e '.[dev]'
.venv/bin/pytest # ~20 s; includes real PrusaSlicer runs
.venv/bin/pytest -m "not slicer" # ~2 s, no PrusaSlicerThe slicer tests check the PrusaSlicer behavior everything relies on (bed .ini overrides, per-object settings,
painted supports, "no G-code but exit 0", the .bgcode layout), so run them after a PrusaSlicer update.
Smoke test without Claude
.venv/bin/python scripts/cli_test.py # the robocars fit test on 2 beds with different settingsLicense
Available Tools
19 toolsadd_from_onshapeA
Download parts from an Onshape part studio (as millimeter STL) onto a bed. Uses the Onshape API keys from ~/onshape-mcp/.env (each download counts against the user's Onshape API allocation).
Args: url: Onshape URL (document, or document/w//e/). parts: part names to take (default: all solid parts). Case-insensitive. bed: bed name or "new". copies: copies of each part. arrange: re-arrange the bed afterwards.
Inputs: url (required), bed, parts, copies, +1 more. Returns: result
add_modelA
Load a model file (STL, 3MF, OBJ, STEP) onto a bed. A 3MF with several objects adds each one.
Args: path: file path (~ allowed). name: object name (default: from the file). bed: bed name, or "new" for a new bed with bed-1's profiles and no overrides (default: the first bed). copies: how many of it. arrange: re-arrange the bed afterwards (objects that don't fit go to new beds).
Inputs: path (required), bed, name, copies, +1 more. Returns: result
arrangeA
Arrange the objects on a bed (or every bed), packed and centered.
Args: bed: bed name (default: every bed). spacing: gap between objects, mm. allow_rotate: may turn objects 90 degrees about Z to fit better. spread: objects that don't fit go to a new bed with the same settings.
Inputs: bed, spread, spacing, allow_rotate. Returns: result
copy_objectsC
Add copies of objects (same bed, same settings).
Args: objects: object ids or names. count: copies of each. arrange: re-arrange the beds afterwards.
Inputs: objects (required), count, arrange. Returns: result
find_settingA
Search PrusaSlicer setting names and descriptions (e.g. "brim", "infill", "seam", "ironing"). Shows each match's current value on a bed of the open job (default: the first bed).
Args: query: words to look for. bed: which bed's current values to show.
Inputs: query (required), bed. Returns: result
get_jobB
The open job: beds (profiles, settings, objects, slice status, issues like overlaps or off-bed) and objects (id, name, bed, size, position, settings).
Inputs: no named parameters. Returns: result
list_jobsA
List print jobs (newest first).
Inputs: no named parameters. Returns: result
list_profilesC
Print profiles for the printer, and the filaments that go with them.
Inputs: no named parameters. Returns: result
move_to_bedB
Move objects to another bed.
Args: objects: object ids or names. bed: bed name, or "new" for a new bed with the same settings as the objects' current bed. arrange: re-arrange the target bed afterwards.
Inputs: bed (required), objects (required), arrange. Returns: result
new_jobA
Start a new print job with one empty bed and make it the open job.
Args: name: short name, e.g. "robocar wheels". The folder gets today's date in front. print_profile: PrusaSlicer print profile for bed-1 (default: the one selected in PrusaSlicer). filament: filament profile for bed-1 (default: the one selected in PrusaSlicer).
Inputs: name (required), filament, print_profile. Returns: result
open_jobB
Open an existing job (see list_jobs) to keep working on it.
Inputs: name (required). Returns: result
open_viewerA
Start the viewer (if needed) and open it in the browser. It shows the newest job and follows new slices.
Inputs: no named parameters. Returns: result
previewB
Picture of a bed before slicing: top view and iso view, objects labeled with their ids. Use it to check orientation and layout.
Args: bed: bed name (default: bed-1).
Inputs: bed.
remove_bedA
Remove a bed. It must be empty unless delete_objects is true.
Inputs: bed (required), delete_objects. Returns: result
remove_objectsC
Remove objects from the job.
Inputs: objects (required). Returns: result
set_bedA
Change a bed's print profile, filament or settings. bed="new" creates a bed (bed-1's profiles, no overrides).
Args: bed: bed name, or "new". print_profile: PrusaSlicer print profile (list_profiles). filament: filament profile. settings: PrusaSlicer settings to override, e.g. {"layer_height": 0.15, "fill_density": "30%", "perimeters": 4, "brim_width": 5}. A value of null removes that override. supports: off | auto | build_plate_only | painted, for the whole bed. support_angle: overhang threshold in degrees (supports for overhangs flatter than this; 0 = automatic). clear: drop all overrides first.
Inputs: bed (required), clear, filament, settings, +3 more. Returns: result
set_object_settingsA
Per-object settings, on top of the bed's settings (e.g. supports only for one part, more perimeters for another). These go into the 3MF as PrusaSlicer object settings.
Args: objects: object ids or names. supports: off | auto | build_plate_only | painted. support_angle: overhang threshold in degrees (0 = automatic). settings: PrusaSlicer object/region settings, e.g. {"fill_density": "40%", "perimeters": 5, "brim_width": 4}. null removes one. name: rename the object(s). clear: drop all of the object's own settings first.
Inputs: objects (required), name, clear, settings, +2 more. Returns: result
sliceA
Slice beds with PrusaSlicer (in parallel, each with its own settings) into the job folder and show the result in the viewer. Does not print anything.
Args: beds: bed names (default: all beds). open_viewer: start the viewer and open it in the browser (once per session).
Inputs: beds, open_viewer. Returns: result
transformA
Rotate, scale, lay flat or move objects. Steps run in this order: reset, scale, rotate, lay_flat, move.
Args: objects: object ids (or names); ["all"] for every object. rotate: degrees about the bed's X, Y, Z axes, e.g. [90, 0, 0] tips it over towards the back, [0, 0, 45] turns it on the bed. scale: factor (1.1 = 110 %) or [x, y, z] factors. lay_flat: put the object on its largest stable flat face. move_to: [x, y] of the footprint center on the bed, mm. move_by: [dx, dy] mm. reset: back to the loaded orientation and size (position is kept).
Inputs: objects (required), reset, scale, rotate, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Most tools have clearly distinct purposes across jobs, beds, objects, settings, slicing, and viewing. Mild overlap exists between open_job/get_job and slice/open_viewer, but descriptions make the boundaries reasonably clear.
Names are overwhelmingly snake_case and action-oriented, fitting a verb_noun pattern. A few single-word verbs (transform, arrange, preview, slice) and new_job are minor deviations but still readable.
19 tools is at the upper end, but each maps to a real operation in a fairly complex 3D-print job workflow. The set is broad yet not obviously padded.
The surface covers the core lifecycle: jobs, beds, objects, profiles/settings, model import, transforms, preview, and slicing. Minor gaps exist around job deletion/renaming/closing and explicit export operations, but core workflows are covered.
Maintenance
Related MCP Connectors
Real 3D-print slicing, quoting, DFM, orientation & material/settings advisors. Free personal tier.
3D print farm management for AI. Monitor, queue, and control prints on your SimplyPrint account.
6 3D/CAD MCP tools: STL repair, OBJ/GLB/SVG conversion, slicing, G-code M600, SVG optimize.
Print from Claude and ChatGPT to your own printer. Free for 5 prints a month; Plus $7.99/mo.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to connect Claude with various 3D printer management systems, allowing tasks like printer status monitoring, file management, print job control, and STL file manipulation.3,386 npmGPL 2.0
- FlicenseAqualityCmaintenanceIntegrates Bambu Studio and Bambu Lab 3D printers with Claude, enabling printer status checks, print control, file management, and slicing via natural language.9-
- AlicenseAqualityCmaintenanceEnables Claude to model 3D-printable parts by running Python scripts in a headless FreeCAD instance and exporting STL/3MF/STEP files. It also lets Claude visually inspect renders, check mesh integrity and overhang printability, measure volume and estimated mass, and open results in a slicer before printing.10MIT
- AlicenseAqualityBmaintenanceEnables Claude to analyze STL/3MF models, slice them with the real Bambu Studio engine, compare print recipes by time and weight, and manage presets for Bambu Lab printers. It produces ready-to-print .3mf project files with material and build-plate settings applied, all locally on the user's PC.183MIT