orca-mcp

v0.1.0
orca-mcp Checked 1 day ago Published 4 months ago

MCP server that wraps the OrcaSlicer CLI: slice models, run parameter sweeps, and analyze G-code from any MCP client.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_installation

Check whether OrcaSlicer is installed and how it will be invoked. Returns the resolved executable/invocation, platform, and version banner. Call this first if any other tool fails unexpectedly.

list_profiles

List user profiles from the OrcaSlicer config directory. Args: profile_type: Optional filter: 'machine', 'process', or 'filament'. Omit to list all three types.

ParameterTypeDescription
profile_type

get_profile

Return the full JSON contents of a profile. Args: name_or_path: Profile name (user profile) or path to a profile JSON. profile_type: 'machine', 'process', or 'filament'.

ParameterTypeDescription
name_or_path *string
profile_type *string

get_model_info

Run OrcaSlicer's --info on a model file (bounding box, volume, facets). Args: model_path: Path to an STL/3MF/OBJ/STEP model.

ParameterTypeDescription
model_path *string

slice_model

Slice a model and return G-code path(s) plus parsed estimates. Args: model_path: Path to STL/3MF/OBJ/STEP file. machine_profile: Machine profile name or JSON path. process_profile: Process (print settings) profile name or JSON path. filament_profile: Filament profile name or JSON path. process_overrides: Optional dict of process settings to override, e.g. {"wall_loops": 4, "fan_max_speed": 30}. Keys use OrcaSlicer's internal names (see get_profile output for valid keys). filament_overrides: Same idea for filament sett…

ParameterTypeDescription
filament_profile *string
machine_profile *string
model_path *string
process_profile *string
filament_overrides
output_dir
plateinteger
process_overrides
timeout_secondsinteger

parameter_sweep

Slice the same model once per value of a single parameter and compare. Args: model_path: Path to the model file. machine_profile / process_profile / filament_profile: As in slice_model. sweep_parameter: Setting key to vary (e.g. 'fan_max_speed', 'slow_down_layer_time', 'wall_loops'). sweep_values: List of values to try, e.g. [20, 40, 60, 80]. parameter_target: 'process' or 'filament' — which profile the parameter belongs to. output_dir: Base output directory. plate: Plate index (default 1). timeout_s…

ParameterTypeDescription
filament_profile *string
machine_profile *string
model_path *string
process_profile *string
sweep_parameter *string
sweep_values *array
output_dir
parameter_targetstring
plateinteger
timeout_secondsinteger

get_slice_estimates

Parse print time, filament usage, and key settings from a G-code file. Args: gcode_path: Path to a .gcode file produced by OrcaSlicer.

ParameterTypeDescription
gcode_path *string

analyze_gcode_layers

Per-layer stats: Z, layer height, features, fan speed, print speed range. Useful for inspecting a specific region of a print, e.g. an overhang or shoulder transition — pass z_min/z_max bracketing the region and compare across sweep runs. Args: gcode_path: Path to a .gcode file. z_min: Only include layers at or above this Z (mm). z_max: Only include layers at or below this Z (mm). max_layers: Cap on returned layers (default 300).

ParameterTypeDescription
gcode_path *string
max_layersinteger
z_max
z_min