Skip to main content
Glama
PrusaSlicer MCP

PrusaSlicer MCP

by JoFaTech2508

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

read_presets

Shows the selected printer, print and filament presets

check_orientation

Ranks the six sides by bed contact and overhang

slice

Slices one variant: time, filament, layers

compare

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 build

Then 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

claude_desktop_config.json, under mcpServers

Cursor

~/.cursor/mcp.json, under mcpServers

VS Code

.vscode/mcp.json, under servers, with "type": "stdio" added

Claude Code

claude mcp add --scope user prusaslicer -- node "$PWD/dist/index.js"

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. slice and compare accept 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 presets with 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-x or rotate-y to try another side down.


Configuration

Nothing is needed for a standard install. These environment variables cover the rest:

Variable

Default

What it does

PRUSASLICER_PATH

the two /Applications locations

Path to the PrusaSlicer binary

PRUSASLICER_DATADIR

~/Library/Application Support/PrusaSlicer

PrusaSlicer config folder (read only)

PRUSASLICER_TIMEOUT_S

600

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 tools
check_orientationCheck STL orientationA
Read-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 variantsA
Read-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 presetsA
Read-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 PrusaSlicerA
Read-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

    A4/5.0

    Scored across 4 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      C
      maintenance
      Enables 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.
      33
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      2
      11
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      B
      quality
      B
      maintenance
      Enables 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.
      10
      MIT