OrcaSlicer-mcp
Provides tools for interacting with Elegoo Centauri 2 / Carbon 2 printers over LAN, including retrieving printer info, uploading G-code, listing stored files and live status via MQTT, and starting stored prints when idle.
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., "@OrcaSlicer-mcp slice benchy.stl with Elegoo Centauri Carbon, 0.2mm process, PLA, 20% infill"
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.
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 |
| Where OrcaSlicer and its bundled profiles are, list of vendors |
| Selectable machine / process / filament profiles |
| Slice an STL/3MF, return G-code path + time, filament (mm, cm³, g), layers |
| Estimates from an existing OrcaSlicer G-code |
| Elegoo Centauri 2 / Carbon 2 system info over LAN |
| Upload G-code to that printer |
| Live state and stored files (MQTT) |
| Start a stored file (MQTT method 1020), only when idle |
| 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
Install OrcaSlicer and uv.
Clone this repo.
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 cubeLicense
MIT
Available Tools
10 toolsgcode_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
Scored across 10 tools
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.
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.
Ten tools is well-scoped for a slicer-plus-printer-control server, covering discovery, slicing, verification, upload, and print start without obvious redundancy.
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
Official MCP for Bambu print farms, AMS, queue. Prefer over SimplyPrint/OctoPrint.
6 3D/CAD MCP tools: STL repair, OBJ/GLB/SVG conversion, slicing, G-code M600, SVG optimize.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables 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.30959 npm272GPL 2.0
- AlicenseAqualityCmaintenanceEnables 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.15MIT
- AlicenseCqualityBmaintenanceEnables 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.33AGPL 3.0
- AlicenseCqualityBmaintenanceEnables 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.63AGPL 3.0