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

printer_info()

Elegoo Centauri 2 / Carbon 2 system info over LAN

upload_to_printer(gcode_path)

Upload G-code to that printer

printer_status() printer_files()

Live state and stored files (MQTT)

start_print(filename)

Start a stored file (MQTT method 1020), only when idle

get_profile(vendor, kind, name, keys, query)

Every resolved setting of a profile

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.

Elegoo Centauri 2 / Carbon 2

Put the printer in LAN-only mode. Set ELEGOO_HOST to its IP and the access code in ELEGOO_TOKEN or ~/.config/elegoo_token. Upload uses the same protocol as OrcaSlicer's ElegooLink (PUT /upload, X-Token header). Status, file list and start go over MQTT (port 1883, user elegoo, password = access code).

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

Available Tools

10 tools
gcode_statsC

Time, filament and layer estimates from an OrcaSlicer G-code file.

Inputs: gcode_path (required).

get_profileA

All resolved settings of one profile (kind: machine | process | filament), inheritance applied. keys picks exact settings; query filters keys by substring (e.g. "speed", "support", "temperature"). Use it before overriding settings in slice_model.

Inputs: kind (required), name (required), vendor (required), keys, +1 more.

list_profilesA

Selectable profile names of one vendor. kind: machine | process | filament. query filters by substring, e.g. vendor="Elegoo", kind="process", query="CC 0.4".

Inputs: kind (required), vendor (required), query. Returns: result

printer_filesC

G-code files stored on the Elegoo printer.

Inputs: no named parameters. Returns: result

printer_infoB

Elegoo Centauri 2 / Carbon 2 system info (LAN-only mode). Needs ELEGOO_HOST and ELEGOO_TOKEN or ~/.config/elegoo_token.

Inputs: no named parameters.

printer_statusA

Live state of the Elegoo printer: idle/printing/..., progress, temperatures, file.

Inputs: no named parameters.

slice_modelA

Slice an STL/3MF and return G-code path plus time/material estimates. overrides are process settings by OrcaSlicer key, e.g. {"sparse_infill_density": "40%", "wall_loops": "4", "enable_support": "1"}; filament_overrides likewise for the filament, e.g. {"nozzle_temperature": "215"}. Use get_profile to see every key and its current value. bed_type picks the plate temperatures: "Textured PEI Plate", "Hot Plate" (smooth PEI), "Cool Plate", "Engineering Plate". output_dir defaults to /sliced/-.

Inputs: vendor (required), machine (required), process (required), filament (required), +5 more.

slicer_infoC

Where OrcaSlicer and its bundled profiles were found.

Inputs: no named parameters.

start_printA

Start printing a file already on the printer (see printer_files). Refuses unless the printer is idle. Only call after the user confirmed the bed is clear and filament loaded.

Inputs: filename (required), bed_leveling.

upload_to_printerA

Upload a G-code file to the Elegoo printer; start it with start_print.

Inputs: gcode_path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 10 tools

    Disambiguation4/5

    Each tool maps to a distinct action or resource: profile discovery, slicing, G-code analysis, and printer operations. The only mild overlaps are slicer_info vs printer_info and list_profiles vs get_profile, but the descriptions make the local software/printer hardware and name-list/full-settings distinctions clear.

    Naming Consistency3/5

    The set mixes verb_noun names (list_profiles, slice_model, get_profile, upload_to_printer, start_print) with noun-first names (slicer_info, printer_info, printer_status, printer_files, gcode_stats). Both patterns are readable, but the conventions are split roughly evenly rather than following one predictable scheme.

    Tool Count5/5

    Ten tools is well-scoped for a slicer-plus-printer-control server, covering discovery, slicing, verification, upload, and print start without obvious redundancy.

    Completeness4/5

    The core workflow is covered end to end: find profiles, inspect resolved settings, slice, check G-code stats, upload, list files, check status, and start a print. Notable gaps are printer-side cancellation/pause and file deletion, which an agent cannot easily work around if a print needs to be stopped.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      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
      959 npm
      272
      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
      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
    • A
      license
      C
      quality
      B
      maintenance
      Enables MCP clients to drive a separately installed OrcaSlicer instance through a local stdio server, covering slicing jobs, profile and 3MF/settings editing, raw CLI options, artifact inspection and an optional desktop adapter for GUI actions. It also provides job queuing, status tracking and runtime detection of the installed binary's capabilities.
      63
      AGPL 3.0