PrusaSlicer 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., "@PrusaSlicer MCP how long does part.stl take with 3 vs 4 perimeters?"
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.
Why PrusaSlicer MCP
Questions like "which side should go down?" or "how much longer with 4 perimeters instead of 3?" usually mean opening PrusaSlicer, changing a setting, slicing, writing the number down and changing it back. The existing PrusaSlicer MCP servers either slice in the cloud with generic profiles or only work on Windows.
This server runs locally on a Mac, uses the PrusaSlicer you already have installed and the presets you have selected, and lets the assistant slice several variants side by side. It speaks the Model Context Protocol over stdio, so it works with any MCP client. It never changes your PrusaSlicer settings and never writes next to your model.
Related MCP server: Bambu Studio MCP
Tools
Tool | What it does |
| Shows the selected printer, print and filament presets |
| Ranks the six sides by bed contact and overhang |
| Slices one variant: time, filament, layers |
| Slices several variants and returns a table |
All four tools are read-only. Slicing happens in a temp folder that is removed afterwards.
Example
Original Prusa MK3S, PETG, 0.20 mm layers:
Slice | Perimeters | Infill | Time | Filament |
Option 1 (preset) | 2 | 20% gyroid | 2h 44m | 39.9 g |
Option 2 | 4 | 20% gyroid | 2h 53m | 52.3 g |
Option 3 | 4 | 15% grid | 2h 33m | 51.2 g |
Getting started
You need macOS, Node.js 22 or newer, and PrusaSlicer installed in /Applications (either the plain app or the one inside "Original Prusa Drivers").
git clone https://github.com/JoFaTech2508/prusaslicer-mcp.git
cd prusaslicer-mcp
npm install
npm run buildThen add it to your MCP client. Every client needs the same two things: the command node and the absolute path to dist/index.js in your clone. Most clients read a JSON entry like this:
{
"mcpServers": {
"prusaslicer": {
"command": "node",
"args": ["/Users/me/prusaslicer-mcp/dist/index.js"]
}
}
}Client | Where it goes |
Claude Desktop |
|
Cursor |
|
VS Code |
|
Claude Code |
|
Restart the client and ask something like "how long does part.stl take with 3 vs 4 perimeters?". To try the tools without any client, run npx @modelcontextprotocol/inspector node dist/index.js.
Good to know
Saved presets only. The server reads the preset files on disk. A preset shown as "(modified)" in the PrusaSlicer window has unsaved changes that the server cannot see, so save it first if those changes matter.
Compare variants with each other. The CLI estimate comes out a few minutes off the number in the PrusaSlicer window. The difference between two variants is reliable.
Allowed settings.
sliceandcompareaccept a fixed list of overrides: perimeters, top and bottom solid layers, infill density and pattern, layer heights, support, brim, seam position, ironing, a few speeds, max volumetric speed, rotation and scale. Anything else is refused.Other presets. Pass
presetswith a printer, print or filament name to slice with something other than the selected ones. Unknown names are refused, since the PrusaSlicer CLI crashes on them without a message.No auto-orientation. The CLI slices the model as it lies in the file. Use
rotate-xorrotate-yto try another side down.
Configuration
Nothing is needed for a standard install. These environment variables cover the rest:
Variable | Default | What it does |
| the two | Path to the PrusaSlicer binary |
|
| PrusaSlicer config folder (read only) |
|
| Time limit for one slice, in seconds |
To run the tests against a real model, set PRUSASLICER_TEST_MODEL to an STL path and run npm test.
Available Tools
4 toolscheck_orientationCheck STL orientationARead-only
Reads an STL (binary or ASCII) and reports its size and, for each of the 6 "which side down" choices, the flat bed contact area and the downward-facing area steeper than 45 degrees, best first. Then lists overhang faces by height above the bed for the best side, or for down. These are geometric numbers only, not a support decision: small areas at one height are often short lips or bridges that print fine.
Inputs: path (required), down.
compareCompare slicing variantsARead-only
Slices the same model once per variant and returns a table of time, grams and the difference from the first variant. Use it for questions like "how long with 3 vs 4 perimeters?". Give a variant with no overrides first as the reference. Uses the saved preset files, not unsaved GUI changes. The CLI time estimate differs from the PrusaSlicer window by a few minutes: compare variants with each other, not with the GUI number.
Inputs: path (required), variants (required), presets.
read_presetsRead PrusaSlicer presetsARead-only
Shows which printer, print and filament presets are selected in PrusaSlicer, and key values (layer height, perimeters, infill, support) from the user print preset file. Reads the saved files: unsaved "(modified)" changes in the PrusaSlicer window are not visible.
Inputs: no named parameters.
sliceSlice with PrusaSlicerARead-only
Slices a model with the PrusaSlicer CLI using the user's selected presets (or the given ones) plus optional overrides, and returns print time, filament grams, layer count, the presets used and the effective key settings. Takes a few seconds to minutes. Writes only to a temp folder. Uses the saved preset files, not unsaved GUI changes. The CLI time estimate differs from the PrusaSlicer window by a few minutes: compare variants with each other, not with the GUI number. The CLI does not auto-orient: use rotate-x/rotate-y to change which side is down.
Inputs: path (required), presets, overrides.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
read_presets and check_orientation are clearly distinct (config inspection vs. geometry analysis), and slice vs. compare is separated by compare being an explicit multi-variant batch with a diff table. The only mild overlap is that an agent could emulate compare with repeated slice calls, but the descriptions make the intended boundary clear.
All names are lowercase snake_case and start with an action verb, so the set reads predictably. However, two use verb_noun (read_presets, check_orientation) while two use bare verbs (slice, compare), a minor deviation from a strict pattern.
Four tools is well-scoped for a focused slicing/analysis server: inspect presets, analyze orientation, slice, and compare variants. Each tool has a distinct role and none feels redundant or filler.
The core workflow (inspect config, check orientation, slice, compare) is covered, but there is no way to list available presets to choose from, no explicit orientation/rotation operation beyond slice overrides, and no tool to export or locate the resulting G-code. These are workable gaps but notable for a full lifecycle.
Maintenance
Related MCP Connectors
Real 3D-print slicing, quoting, DFM, orientation & material/settings advisors. Free personal tier.
Hosted Blender and OpenSCAD for your assistant: printable parts, flat parts, renders, turntables.
6 3D/CAD MCP tools: STL repair, OBJ/GLB/SVG conversion, slicing, G-code M600, SVG optimize.
Free 3D conversion (FBX, GLB, OBJ, STL, PLY, DAE, USDZ, 3MF) as a remote MCP server. No account.
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables AI agents to perform reproducible Snapmaker U1 headless slicing with Snapmaker Orca, including model/profile discovery, STL/3MF-to-G-code slicing, G-code analysis, controlled overrides, and slice or orientation comparisons without GUI automation or printer control.331MIT
- AlicenseAqualityCmaintenanceEnables LLM clients to slice, paint, and verify 3D prints through the installed slicer's command line for any installed Bambu printer, nozzle, and filament, with settings per object type. It never sends jobs to a printer.211MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to load and edit saved 3MF projects, adjust slicer settings, and regenerate G-code using an explicitly bound installed native slicer engine.AGPL 3.0
- AlicenseBqualityBmaintenanceEnables MCP clients to slice STL/3MF models through an official, unmodified slicer CLI, list machine/process/filament profiles, apply setting overrides, and inspect G-code statistics.10MIT