Skip to main content
Glama
OrcaSlicer-mcp

OrcaSlicer-mcp

by BeMuCa

OrcaSlicer-mcp

MCP server that lets Claude (or any MCP client) slice models with the official, unmodified OrcaSlicer through its command line. No fork and no patched build: just updates OrcaSlicer itself.

Tested with OrcaSlicer 2.4.2 on Windows, driven from WSL2, Elegoo Centauri Carbon profiles.

Tools

Tool

What it does

slicer_info

Where OrcaSlicer and its bundled profiles are, list of vendors

list_profiles(vendor, kind, query)

Selectable machine / process / filament profiles

slice_model(model_path, vendor, machine, process, filament, overrides)

Slice an STL/3MF, return G-code path + time, filament (mm, cm³, g), layers

gcode_stats(gcode_path)

Estimates from an existing OrcaSlicer G-code

overrides are process settings by OrcaSlicer key, e.g. {"sparse_infill_density": "40%"}.

Related MCP server: CAD to Print MCP

How profiles are handled

Bundled profiles inherit from each other. The CLI resolves that for machine files, but not for filament files (they silently slice as PLA with 0 g). So the server flattens the filament and process chains itself and passes the original machine file.

Setup

  1. Install OrcaSlicer and uv.

  2. Clone this repo.

  3. Add to your .mcp.json (Claude Code):

{
  "mcpServers": {
    "orcaslicer": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/OrcaSlicer-mcp", "orcaslicer-mcp"],
      "env": { "ORCASLICER_PATH": "/mnt/c/Program Files/OrcaSlicer/orca-slicer.exe" }
    }
  }
}

ORCASLICER_PATH is only needed if OrcaSlicer is not on PATH or in its default install location. From WSL, a Windows orca-slicer.exe works; paths are converted with wslpath.

Tests

uv run pytest                                      # unit tests
ORCASLICER_PATH=/path/to/orca-slicer uv run pytest # plus a real slice of a 20 mm cube

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    A
    maintenance
    Enables interaction with 3D printer management systems through an MCP server, supporting STL file manipulation, slicing, and control of printers like OctoPrint, Klipper, Duet, and more.
    30
    2,058 npm
    258
    GPL 2.0
  • A
    license
    A
    quality
    C
    maintenance
    Enables MCP clients to inspect FreeCAD documents and export named solids to STL, find and derive OrcaSlicer presets, preview and run slices with recorded manifests, and then read G-code metadata, query a Moonraker printer, upload G-code, and start an uploaded print as a separate confirmed step.
    15
    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.
    11
    MIT
  • A
    license
    C
    quality
    B
    maintenance
    Enables AI assistants to drive PrusaSlicer through MCP: select profiles, manage bed models, slice with verified settings, analyze G-code and print risks, and upload or control prints on networked printers.
    33
    AGPL 3.0