About 3d Printer Server
3d Printer Server is an MCP server published by DMontgomery40 in the Developer Tools category: connects MCP to major 3D printer APIs (Orca, FULU's Orca/Bambu, OctoPrint, Klipper, Duet, Repetier, Prusa, Creality). Control prints, monitor status, and perform advanced STL operations like scaling, rotation, sectional editing, and base extension. Includes slicing and visualization. Conduid read 60 tools from its source: blender_mcp_call, blender_mcp_edit_model, blender_mcp_export_stl, blender_mcp_setup, blender_mcp_status, camera_frame and 54 more. It is published to npm as mcp-3d-printer-server and starts with npx.
The repository has 276 stars and 53 forks, is licensed GPL-2.0, and its last commit was on 1 Dec 2026. The latest release is v1.2.81 (24 Nov 2026): Hash semicolons in model filenames correctly when reusing slices; keep ordered --load-settings and --load-filaments profile lists content-sensitive. It follows v1.2.80 (17 Nov 2026), and the 5 most recent releases go back to v1.2.77 (15 Nov 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include devtools.
Install
claude mcp add 3d-printer-server -- npx -y mcp-3d-printer-servernpx -y mcp-3d-printer-servergit clone https://github.com/DMontgomery40/mcp-3D-printer-serverTools (60)
blender_mcp_callCall a discovered tool on the configured Blender MCP server, preserving its full MCP content and errors. Discover tool schemas with blender_mcp_status first; execute_blender_code accepts Python code and user_prompt. Calls can modify the active Blender scene and are never automatically retried.| Parameter | Type | Description |
|---|---|---|
| arguments | object | Arguments matching the remote tool's discovered input schema. Preserve the user's own words in user_prompt when the remote tool requests it. |
| timeout_ms | integer | Total connection, discovery, and tool deadline in milliseconds; defaults to BLENDER_MCP_TIMEOUT_MS or 120000. |
| tool_name * | string | Exact name advertised by Blender MCP, such as get_scene_info or execute_blender_code. |
blender_mcp_edit_modelImport, edit, and export a local STL through standard Blender MCP with verified output and existing scene objects preserved. Requires a shared local filesystem and Blender Object Mode. Also supports a separately configured legacy executable bridge.| Parameter | Type | Description |
|---|---|---|
| bridge_command | string | Legacy custom bridge executable override, not a standard MCP command. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| execute | boolean | Apply edits and export (true) or validate and return the prepared request without connecting (false, default). |
| operations * | array | Ordered operations: decimate:<ratio greater than 0 and at most 1>, remesh:<positive voxel size in STL units>, boolean_union:<STL path>. Legacy custom bridges define their own operations. |
| output_path | string | New local STL output path for standard MCP editing; defaults to a unique model-edited-<id>.stl beside the input. Its parent must exist and existing files are never overwritten. Reuse the preview's output_path when executing that plan. |
| stl_path * | string | Path to the local STL file |
| timeout_ms | integer | Total Blender request deadline in milliseconds; defaults to BLENDER_MCP_TIMEOUT_MS or 120000. |
| user_prompt | string | The user's own words describing the edit, passed unchanged to Blender MCP. |
blender_mcp_export_stlExport named objects from the live Blender scene to a new, verified STL for slicing. Writes world-space geometry with modifiers applied, without changing the scene, selection, or mode, and reports triangle count and bounding-box dimensions from the written file. Use this after editing or modelling through blender_mcp_call; Blender MCP's own export_scene writes GLB/FBX only. Requires standard Blender MCP and a shared local filesystem.| Parameter | Type | Description |
|---|---|---|
| apply_modifiers | boolean | Export the evaluated geometry with modifiers applied (default true). |
| object_names * | array | Blender object names to export together as one STL (mesh, curve, surface, metaball, or text objects). |
| output_path * | string | New local .stl path. Its parent must exist; existing files are never overwritten. |
| scale | number | Multiply coordinates before writing (default 1). Slicers read STL units as millimetres, so use 1000 for a scene modelled in metres. |
| timeout_ms | integer | Total Blender request deadline in milliseconds; defaults to BLENDER_MCP_TIMEOUT_MS or 120000. |
| user_prompt | string | The user's own words, passed unchanged to Blender MCP. |
blender_mcp_setupCheck or update the MCP for Blender add-on that the configured Blender bridge (BLENDER_MCP_COMMAND uvx, BLENDER_MCP_ARGS naming mcp-for-blender or blender-mcp) needs. Without update: which add-on file Blender loads, its protocol and the protocol the package expects, whether Blender is listening and the running add-on's own handshake. Changes nothing. With update: true, stages the add-on with the package's own installer (mcp-for-blender install-addon) at the inspected version, checks it, keeps the old file as a backup next to it and renames the new one into place. Never starts, stops or edits Blender; a running Blender uses the new add-on once it is re-enabled or restarted. A custom bridge returns supported false.| Parameter | Type | Description |
|---|---|---|
| update | boolean | Replace the installed add-on with the package's own (default false: check only). |
blender_mcp_statusInspect Blender MCP configuration or connect and discover the remote server's tools. Lists tool names and summaries; pass tool_names for the full input schemas of the tools you will call. Connecting does not edit the scene; use get_scene_info through blender_mcp_call to check the Blender addon.| Parameter | Type | Description |
|---|---|---|
| connect | boolean | Initialize the configured stdio MCP server and discover its tools (default false). |
| include_schemas | boolean | Return every discovered tool's full definition (large; default false). |
| timeout_ms | integer | Total connection and discovery deadline in milliseconds; defaults to BLENDER_MCP_TIMEOUT_MS or 120000. |
| tool_names | array | Return full input schemas for these discovered tools, such as ["execute_blender_code"]. |
camera_frameRead the shared camera stream, optionally waiting up to 10 seconds. Returns JPEG only when newer than since_seq and visibly changed (32×18 grayscale difference). Retain the last delivered frame's seq on unchanged. max_width resizes JPEG to the viewer. Does not start a stopped stream.| Parameter | Type | Description |
|---|---|---|
| changed_only | boolean | Return JPEG only when its thumbnail differs enough from the last delivered frame. |
| max_bytes | integer | Optional maximum encoded JPEG bytes. Downscales further at quality 70 when needed; base64 adds about one third plus protocol overhead. Use 42000 for a two-second 30 KB/s viewer budget. |
| max_width | integer | Optional maximum JPEG width in pixels, preserving aspect ratio and never enlarging. |
| min_change | number | Minimum mean absolute grayscale thumbnail difference, normalized from zero to one. |
| since_seq | integer | Sequence of the last delivered JPEG; retain it when a result is unchanged. |
| wait_ms | integer | Maximum time to await a newer changed frame; zero returns immediately. |
camera_snapshotCapture one JPEG frame from the printer's camera: OctoPrint's configured snapshot URL (Classic Webcam on 1.9+, webcam.snapshotUrl on 1.8, then /webcam/?action=snapshot), Moonraker's first enabled webcam, or Repetier's webcam staticUrl. PrusaLink and Duet have no local snapshot API. PRINTER_CAMERA_SNAPSHOT_URL overrides the source for any printer. Returns the JPEG as base64; pass save_path to also write it to disk.| Parameter | Type | Description |
|---|---|---|
| save_path | string | Optional absolute path to write the JPEG to disk. If omitted, only the base64 payload is returned. |
| timeout_ms | number | Max ms to wait for a frame (default 8000, 100 to 120000). |
camera_stream_startStart or renew one persistent camera connection for this printer. Call only while watched; it closes automatically after idle_timeout_ms without a viewer request. camera_snapshot then reuses its latest frame. No printer motion or print commands.| Parameter | Type | Description |
|---|---|---|
| fps | number | Maximum processed frames per second. The first viewer sets the rate until the stream closes. |
| idle_timeout_ms | integer | Close the shared connection after this many milliseconds without a viewer request. |
camera_stream_stopClose this printer's camera connection and free its cached frames. Other printers keep their own streams. Active viewers may restart it; normally let the idle timeout close a shared stream.cancel_printCancel the current print job| Parameter | Type | Description |
|---|---|---|
| api_key | string | API key for authentication (default: value from env) |
| bambu_serial | string | Serial number for Bambu Lab printers (default: value from env) |
| bambu_token | string | Access token for Bambu Lab printers (default: value from env) |
| host | string | Hostname or IP address of the printer (default: value from env) |
| port | string | Port of the printer API (default: value from env) |
| type | string | Type of printer management system (octoprint, klipper, duet, repetier, bambu, prusa, creality) (default: value from env) |
center_modelTranslate the model so its geometric center is at the origin (0,0,0).| Parameter | Type | Description |
|---|---|---|
| stl_path * | string | Path to the STL file to center. |
check_fulu_orca_setupInspect a FULU OrcaSlicer-bambulab install, platform runtime payload, setup commands, and optionally probe the BambuNetwork bridge.| Parameter | Type | Description |
|---|---|---|
| bridge_command | string | Command that starts the FULU BambuNetwork bridge host for probing. Read from FULU_BAMBU_BRIDGE_COMMAND by default; requires MCP_ALLOW_EXECUTABLE_ARG=1 to be accepted here. |
| platform | string | Platform to inspect. Defaults to the current Node.js platform. |
| plugin_dir | string | Directory containing the FULU Bambu runtime payload; on macOS this is usually OrcaSlicer.app/Contents/MacOS. When run_bridge_probe=true, requires MCP_ALLOW_EXECUTABLE_ARG=1 to be accepted here. |
| probe_timeout_ms | number | Bridge probe timeout in milliseconds (default: 5000). |
| run_bridge_probe | boolean | When true, sends bridge.handshake, bridge.capabilities, and bridge.runtime_info to the bridge host. |
| runtime_dir | string | Installed runtime directory. On macOS this defaults to ~/Library/Application Support/OrcaSlicer/macos-bridge/runtime. When run_bridge_probe=true, requires MCP_ALLOW_EXECUTABLE_ARG=1 to be accepted here. |
| slicer_path | string | Path to the FULU OrcaSlicer executable. Defaults from SLICER_PATH/FULU_ORCA_PATH. When run_bridge_probe=true, requires MCP_ALLOW_EXECUTABLE_ARG=1 to be accepted here. |
confirm_temperaturesReport every heater target in a G-code file (S and R forms, tool-addressed, RepRapFirmware G10/M568 and Klipper SET_HEATER_TEMPERATURE). An expected temperature matches only when it equals the file's highest target. Read-only; printing tools enforce their own safety gate.| Parameter | Type | Description |
|---|---|---|
| bed_temp | number | Expected highest bed target |
| extruder_temp | number | Expected highest nozzle target |
| gcode_path * | string | Path to the G-code file |
connect_printerOctoPrint only: connect OctoPrint to the printer when it is running but not connected (counterpart_print_progress reports octoprint.disconnected). Uses OctoPrint's own saved serial port, baud rate and printer profile (OctoPrint's AUTO detection when none is saved) unless given, and waits up to wait_ms (default 20000) for it to settle. With power_on, first switches the printer on through the PSU Control plugin when it reports the power off. Already connected: nothing is sent. Connecting runs only OctoPrint's own after-connection script.| Parameter | Type | Description |
|---|---|---|
| baudrate | number | Baud rate. Default: OctoPrint's saved choice. |
| power_on | boolean | Switch the printer on through PSU Control first when it is off (default false). |
| printer_profile | string | OctoPrint printer profile id. Default: OctoPrint's saved choice. |
| serial_port | string | Serial port to use, as OctoPrint lists it (e.g. /dev/ttyACM0). Default: OctoPrint's saved choice. |
| wait_ms | number | How long to wait for the connection to settle, up to 60000 (default 20000). |
counterpart_diagnosticsCounterpart contract (counterpart/1): this server's own diagnostics for a bug report, as files for the client to add to its export: the configured printer (kind, host, model, serial, connection; firmware is not read), this server's settings, slicer path and version, CAD runtime status, recent tool errors, this run's stderr log (printer connection messages, Bambu MQTT included). The Bambu network plug-in logs are not included. Redaction fails closed: configured secrets go in their encoded forms, JSON is redacted by key, and any log line that names a secret is withheld whole; serial numbers, error codes and whether a secret is set stay. Names, contents and notes stay within max_bytes; anything missing is listed in notes. Contacts no printer.counterpart_discover_printersCounterpart contract (counterpart/1): printers on the local network. Bambu Lab printers from their own SSDP announcements (UDP 2021), with serial, model (as bambu_model names it), name and firmware; OctoPrint, Klipper (Moonraker) and PrusaLink hosts from their Bonjour adverts (dns-sd on macOS, avahi-browse on Linux), with host and port. Listens for duration_ms (default 4000). network is "unavailable" when another app holds the Bambu port. Never connects to or authenticates with a printer.| Parameter | Type | Description |
|---|---|---|
| duration_ms | integer | How long to listen (default 4000). |
counterpart_make_3mfCounterpart contract (counterpart/1): combine STL parts exported separately (for example each body of a design) into one new 3MF for multi-colour printing. The parts keep their relative positions as one assembly, and each part prints with its filament number (default: part 1 uses filament 1, part 2 filament 2, and so on). Slice it with slice_stl, passing one load_filaments profile per filament number, then print it with print_3mf and ams_mapping or ams_slots. Never overwrites a file.| Parameter | Type | Description |
|---|---|---|
| out_path * | string | New .3mf path whose parent directory exists. Existing files are never overwritten. |
| parts * | array | The parts, in filament order. |
counterpart_part_meshesCounterpart contract (counterpart/1): one STL per printable part of any 3MF (a pass's, counterpart_make_3mf's, cad_run's project_3mf, or a designer's Bambu Studio, OrcaSlicer or plain 3MF), so a client draws each part in its colour or shows the design in AR. Writes into a new folder it creates inside out_dir and never overwrites. Returns units (mm), folder and parts: [{id, name, plate?, color?, filament?, painted?, stl_path, triangles, size_mm}], one per part per printed copy. Every STL is in the 3MF's build frame in millimetres, component and build transforms applied, so the parts line up when drawn together; plate is the plate number from 1 (list_3mf_plates index + 1), absent for a 3MF without plates; color is #RRGGBB from the 3MF's own filament colours, absent when it declares none; painted means slicer painting recolours some facets. A part beyond the read limits is listed in skipped with why.| Parameter | Type | Description |
|---|---|---|
| out_dir * | string | An existing folder; each call writes into a new subfolder of it. |
| three_mf_path * | string | Path to the 3MF. |
counterpart_print_assess| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Saved Bambu serial; selects a local record. |
| host | string | Saved printer hostname or address; selects a local record. |
| port | string | Configured API port; selects a local record. |
| type | string | Configured backend whose saved evidence is assessed. |
counterpart_print_progressRead the printer's state and current job in the counterpart/1 shape: state, job name, progress (0-100), elapsed and remaining seconds, layers when the firmware reports them, temperatures and problems. job.name matches the jobName that upload_gcode and start_print return. Read-only.counterpart_print_record| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Saved Bambu printer serial; used only to select a local record. |
| host | string | Saved printer hostname or address; used only to select a local record. |
| port | string | Configured printer API port; used only to select a local record. |
| type | string | Configured printer backend whose saved record is requested. |
counterpart_print_routeCounterpart contract (counterpart/1), Bambu: how this server reaches the printer for prints and for Stop/Pause/Resume. route is "lan" (the local network through FULU's BambuNetwork bridge), "cloud" (Bambu Cloud through FULU's bridge) or "developer" (the local network straight to a printer in LAN Only + Developer Mode, whose Pause, Resume and Stop need no Bambu app). options lists each with its label, whether it can be chosen here (and why not) and what controls do on it; choices lists the ids that can be chosen. mode and type are BAMBU_DEFAULT_CONNECTION_MODE and BAMBU_DEFAULT_CONNECTION_TYPE as resolved. Pass route to change it: the change applies to the next print and control at once, and is saved to the .env file in this server's working directory when that file exists (savedTo; null otherwise). Sends nothing to the printer.| Parameter | Type | Description |
|---|---|---|
| route | string | Change the route. Omit to read it. |
counterpart_printer_infoDescribe this printer for the counterpart/1 contract: server name and version, printer kind and identity, and which features work (progress, layers, camera, filaments, pause, resume, cancel, print_3mf, G-code), detected from the firmware. Read-only.counterpart_propose_filamentsCounterpart contract (counterpart/1): which loaded spool prints each of a model's colours, before slicing. Reads the printer's filaments once (Bambu: the AMS and external spools). trays lists the spools a person may choose (label like "A2" or "External", a person-readable name, colour, material, feed, and the filament profile slice_stl takes). proposal gives each filament its nearest spool in OKLab colour with the asked-for material preferred, and a verdict: same-colour, closest (that colour isn't loaded; note says so), no-colour or none. One print feeds from one source: the AMS or the external spool. Pass chosen to check the person's spools against what is loaded now; mapping then lists every filament slot's spool (painted slots included), and problems says why a choice can't print.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Bambu only: printer model (default BAMBU_MODEL). Selects the filament profiles that decide which spools can slice. |
| nozzle_diameter | string | Bambu only: nozzle diameter (default NOZZLE_DIAMETER or 0.4). |
counterpart_self_checkCounterpart contract (counterpart/1): whether this install's own runtime dependencies and its Web Crypto shim loaded, each with its installed version. Run it after an update; ok is false when a required check failed, with a message saying which. Contacts no printer.counterpart_setup_fieldsCounterpart contract (counterpart/1): the printers this server drives (each PRINTER_TYPE) and the settings it reads for each, by .env variable name: label, hint, whether required, the fixed values a kind needs (PRINTER_TYPE), the Bambu model choices and the model each serial-number prefix names, and whether camera_snapshot reads the printer's camera with only those settings (cameraSnapshot). Pass serial to get the model it names. Sends nothing to a printer and returns no configured values.| Parameter | Type | Description |
|---|---|---|
| serial | string | A Bambu serial number: model is the one it names, when known. |
extend_stl_baseExtend the base of an STL file by a specified amount| Parameter | Type | Description |
|---|---|---|
| extension_inches * | number | Amount to extend the base in inches |
| stl_path * | string | Path to the STL file to modify |
fulu_bambu_network_rpcAdvanced FULU bridge RPC for BambuNetwork diagnostics and development. Read-only methods are allowed by default. Agent/session setup methods require allow_mutating_method=true. Raw print methods, printer messages, file transfers and unknown methods are refused because they would bypass the print safety gate; use print_3mf for checked printing.| Parameter | Type | Description |
|---|---|---|
| allow_mutating_method | boolean | Required for the allowlisted agent/session setup methods. It never enables print, printer-message, or unknown methods. |
| bambu_model | string | Informational only. Raw FULU print RPC methods are disabled; use print_3mf. |
| bridge_command | string | Command that starts the FULU BambuNetwork bridge host. Defaults to FULU_BAMBU_BRIDGE_COMMAND; requires MCP_ALLOW_EXECUTABLE_ARG=1 to be accepted here. |
| method * | string | FULU bridge method, e.g. bridge.handshake, bridge.runtime_info, net.get_user_print_info, net.start_print. |
| payload | object | JSON payload sent to the FULU bridge method. |
| timeout_ms | number | Bridge request timeout in milliseconds (default: 5000). |
fusion_mcp_callCall a discovered tool on the Fusion MCP server (create_sketch, extrude, fillet, set_parameter, export_stl, execute_code, and others), preserving its full MCP content and errors. Discover tool schemas with fusion_mcp_status first. Calls change the active Fusion design and are never automatically retried. Most tools need an active design: call fusion_mcp_new_design first.| Parameter | Type | Description |
|---|---|---|
| arguments | object | Arguments matching the remote tool's discovered input schema. Fusion lengths are in centimetres unless a tool says otherwise. |
| timeout_ms | integer | Deadline in milliseconds; defaults to FUSION_MCP_TIMEOUT_MS or 180000. |
| tool_name * | string | Exact name advertised by the Fusion MCP server. |
fusion_mcp_exportExport the active Fusion design into output_dir as <name>.stl (export_stl), <name>.f3d (export_f3d) and <name>.parameters.json (the design's user parameters), and return their absolute paths. The STL is checked as a finite triangle mesh and its size compared with the Fusion body to report its units. Existing files are never overwritten. Fusion and this server must share the computer's file system.| Parameter | Type | Description |
|---|---|---|
| body_name | string | Body to export as the STL. Optional when the design has exactly one visible solid body. |
| name * | string | Base file name without a path or extension, such as "bracket". |
| output_dir * | string | Existing absolute directory for the three files. |
| timeout_ms | integer | Deadline in milliseconds; defaults to FUSION_MCP_TIMEOUT_MS or 180000. |
fusion_mcp_new_designOpen a new parametric design document in Fusion, so the Fusion tools have an active design. Fusion must already have some document open: at the pinned faust-machines commit no tool works from Fusion's home screen (issue #12).| Parameter | Type | Description |
|---|---|---|
| timeout_ms | integer | Deadline in milliseconds; defaults to FUSION_MCP_TIMEOUT_MS or 180000. |
fusion_mcp_setupCheck or install what the Fusion bridge needs on macOS: Autodesk Fusion itself (found, never installed), the Fusion360MCP add-in from ${FUSION_ADDIN_REPOSITORY} at ${FUSION_MCP_PINNED_COMMIT} (every file checked against its pinned SHA-256) set to run on startup, a login item that sets FUSION_MCP_PORT for Fusion however it is opened, and this server's FUSION_MCP_* settings. Without install: reports them and changes nothing. With install: true, installs what is missing and adds the missing settings to this server's own .env (after a copy of it), never rewriting one it already has. Never starts or quits Fusion; check the connection with fusion_mcp_status.| Parameter | Type | Description |
|---|---|---|
| install | boolean | Install what is missing (default false: check only). |
fusion_mcp_statusCheck the Autodesk Fusion bridge: whether the Fusion MCP server is configured (by default ${FUSION_ADDIN_REPOSITORY}@${FUSION_MCP_PINNED_COMMIT}, faust-machines' server with document binding; fusion_mcp_setup installs it), whether Fusion is running, whether its Fusion360MCP add-in answers on its port, and the server's tools and schemas. Reports responsive, state (starting/ready/unresponsive) and reason from a fresh no-op command probe capped at five seconds. No design is opened or edited. Failed probes clear connected; ready does not guarantee a later design operation succeeds. With launch: true and Fusion not running on this Mac, opens Autodesk Fusion and waits up to 90 s for the add-in.| Parameter | Type | Description |
|---|---|---|
| launch | boolean | Open Autodesk Fusion when it is not running (macOS), then wait up to 90 s for the add-in (default false). |
| timeout_ms | integer | Connection, discovery and command probe deadline, capped at 5000 ms; launch waiting is separate. The first uvx start may need a later retry after its initial download. |
generate_stl_visualizationGenerate an SVG visualization of an STL file from multiple angles| Parameter | Type | Description |
|---|---|---|
| height | number | Height of each view in pixels (default: 300) |
| stl_path * | string | Path to the STL file |
| width | number | Width of each view in pixels (default: 300) |
get_printer_filamentsReport the loaded filament. Bambu: the live AMS and external-spool inventory over MQTT, as bambu-printer-mcp reports it (trays with absolute slot, loaded state, material, colour, tray_info_idx and resolved slicer profile path; summary; recommended load_filaments), plus counterpart/1 slots for every loaded tray and external spool (254, and 255 on dual-nozzle printers). Other printers: one external slot (id "ext"); Moonraker printers with Spoolman report the active spool's material, colour and name, others source "unknown". Read-only.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Bambu only: optional model hint used to resolve Bambu/Orca filament profile JSONs for each tray (default: BAMBU_MODEL). |
| nozzle_diameter | string | Bambu only: optional nozzle diameter used when resolving model-specific filament profile JSONs (default: 0.4). |
get_printer_statusGet the current status of the 3D printer| Parameter | Type | Description |
|---|---|---|
| api_key | string | API key for authentication (default: value from env) |
| bambu_serial | string | Serial number for Bambu Lab printers (default: value from env) |
| bambu_token | string | Access token for Bambu Lab printers (default: value from env) |
| host | string | Hostname or IP address of the printer (default: value from env) |
| port | string | Port of the printer API (default: value from env) |
| type | string | Type of printer management system (octoprint, klipper, duet, repetier, bambu, prusa, creality) (default: value from env) |
get_slice_settingsInspect slicer settings in a 3MF template or JSON/config profile without slicing (layer height, infill, walls, supports, brim, bed, printer, filaments). For a 3MF given as source_path, own_process is true when slice_stl, given this call's other arguments as it would take them (slicer_type, bambu_model, slicer_profile, template_name, template_3mf_path, layer_height, wall_loops, sparse_infill_density, quality, strength), prints the process the file carries (a designer's Bambu Studio or Orca project) unchanged. A 3MF with no slicer settings reports raw_key_count 0; a file that can't be read is an error.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | The bambu_model slice_stl would be given, for own_process. |
| enable_support | boolean | For own_process: the enable_support slice_stl would be given. |
| layer_height | number | For own_process: the layer_height slice_stl would be given. |
| nozzle_diameter | string | For own_process: the nozzle_diameter slice_stl would be given; layer heights are checked against it. |
| slicer_profile | string | For own_process: the slicer_profile slice_stl would be given. |
| slicer_type | string | The slicer_type slice_stl would be given, for own_process. Defaults to SLICER_TYPE. |
| source_path | string | Path to a 3MF, extracted project_settings.config, or slicer profile JSON. |
| sparse_infill_density | string | For own_process: the sparse_infill_density slice_stl would be given. |
| support_type | string | For own_process: the support_type slice_stl would be given. |
| template_3mf_path | string | For own_process: the template_3mf_path slice_stl would be given. |
| template_dir | string | Template directory override when resolving template_name. |
| template_name | string | Named template from the local registry. Without source_path it is the source read; with source_path it is the slice's template, for own_process. |
| wall_loops | number | For own_process: the wall_loops slice_stl would be given. |
get_stl_infoGet detailed information about an STL file| Parameter | Type | Description |
|---|---|---|
| stl_path * | string | Path to the STL file |
inspect_print_fileInspect an exact private snapshot of a prepared sliced 3MF or textual G-code file and selected plate without contacting a printer. Returns versioned file-only evidence; no printer readiness or permission to dispatch is established. Does not auto-slice.| Parameter | Type | Description |
|---|---|---|
| bambu_model * | string | Explicit file-inspection target model; never inferred from environment or live state. |
| bed_type | string | Optional declared bed type to compare with file metadata. |
| file_path * | string | Local prepared .3mf or textual .gcode artifact to inspect; checksum-only and unsliced projects reject. |
| include_preview | boolean | Also return preview: PNG pictures drawn from this exact file's G-code (every extruding line in its filament's colour; the top as it sits on the bed, and the bed side turned over), with the artifact's sha256. Large (tens of KB of base64); for apps that show the person what will print, not for agents. |
| nozzle_diameters | array | Optional requested nozzle diameters to compare with file declarations; this does not observe installed hardware. |
| plate_index | integer | Zero-based selected plate; defaults to 0. Raw G-code only supports 0. |
lay_flatRotate the model so a face rests on the bed (Z=0), choosing the orientation with the least part and support volume per mm² of bed contact. A face counts only if nothing hangs below it. Returns the new STL path; structuredContent.laid_flat is false, with the input path, when no orientation qualifies.| Parameter | Type | Description |
|---|---|---|
| stl_path * | string | Path to the STL file to lay flat. |
list_3mf_plate_objectsList the objects of a sliced 3MF plate that the printer can skip, one per copy, as Bambu Studio's skip dialog lists them: identify_id (id), name, whether it is already skipped, and labelObjectEnabled (the plate was sliced with object labels, which skipping needs). These are the identify_ids slice_stl's skip_objects takes. Read-only.| Parameter | Type | Description |
|---|---|---|
| plate_index | number | 0-based plate index to inspect (default: 0) |
| three_mf_path * | string | Path to a sliced 3MF/.gcode.3mf file |
list_3mf_platesList a Bambu Studio or OrcaSlicer 3MF's plates as its designer laid them out, before slicing: plate_count, and for each plate its index (from 0; slice_stl's slice_plate is index + 1, inspect_print_file's plate_index is index), name, the objects on it, each object copy's identify_id (instances: the ids slice_stl's skip_objects takes) whether the file already holds its G-code (sliced), and filaments: the project filaments that plate prints with and only those (index from 1 = slice_stl's load_filaments/filament_colours position and print_3mf's ams_mapping position + 1; colour, material, filament_id, and the first part using it), from the slice when there is one, otherwise worked out as Bambu Studio does from the plate's parts, painting, support, layer ranges and tool changes. filaments_complete is false when a part's mesh was too large to read its painting: that plate then lists every declared filament, so offer them all rather than miss one that prints. project_filaments lists every filament the project declares, used or not (slice_stl takes one load_filaments profile per declared filament). build_items: the root 3D/3dmodel.model build items on the plate (0-based, build order); parts: each model part of the plate's objects once, with object_id (the mesh object), path when that mesh is in another model part (p:path), build_object_id (the root object a build item places), name, filament (1-based) and painted: true when slicer painting recolours some facets; draw a plate from these with the 3MF's own meshes. A plain 3MF without plate metadata is one plate. include_thumbnails adds each plate's own preview from the file (thumbnail_png_base64). Read-only.| Parameter | Type | Description |
|---|---|---|
| include_thumbnails | boolean | Include each plate's own preview PNG from the file, base64 (default false) |
| three_mf_path * | string | Path to the 3MF (a designer's project, sliced or not) |
list_printer_filesList files available on the 3D printer| Parameter | Type | Description |
|---|---|---|
| api_key | string | API key for authentication (default: value from env) |
| bambu_serial | string | Serial number for Bambu Lab printers (default: value from env) |
| bambu_token | string | Access token for Bambu Lab printers (default: value from env) |
| host | string | Hostname or IP address of the printer (default: value from env) |
| port | string | Port of the printer API (default: value from env) |
| type | string | Type of printer management system (octoprint, klipper, duet, repetier, bambu, prusa, creality) (default: value from env) |
list_templatesList saved slicing templates (.3mf, .json, .config) in the local template registry directory.| Parameter | Type | Description |
|---|---|---|
| template_dir | string | Template directory override. Defaults to BAMBU_TEMPLATE_DIR or ~/Sync/bambu/templates. |
merge_verticesMerge vertices in an STL file that are closer than the specified tolerance.| Parameter | Type | Description |
|---|---|---|
| stl_path * | string | Path to the STL file to modify. |
| tolerance | number | Maximum distance between vertices to merge (in mm, default: 0.01). |
modify_stl_sectionApply a specific transformation to a selected section of an STL file| Parameter | Type | Description |
|---|---|---|
| custom_max_x | number | Maximum X for custom section bounds |
| custom_max_y | number | Maximum Y for custom section bounds |
| custom_max_z | number | Maximum Z for custom section bounds |
| custom_min_x | number | Minimum X for custom section bounds |
| custom_min_y | number | Minimum Y for custom section bounds |
| custom_min_z | number | Minimum Z for custom section bounds |
| section * | string | Section to modify: 'top', 'bottom', 'center', or custom bounds |
| stl_path * | string | Path to the STL file |
| transformation_type * | string | Type of transformation to apply |
| value_x | number | Transformation value for X axis |
| value_y | number | Transformation value for Y axis |
| value_z | number | Transformation value for Z axis |
octoprint_request_api_keyOctoPrint's Application Keys approval: instead of copying an API key, the person clicks Allow in OctoPrint. Call without request_id to start (host and port of the OctoPrint; app names this app in OctoPrint's prompt); the result has request_id and approve_url (OctoPrint's own approval page). Call again with request_id and wait_ms (up to 120000) to wait for the answer: status approved returns api_key and env {API_KEY}, the setting this server reads. This server keeps the request open between calls (OctoPrint drops one that isn't polled every 5 s) for up to 10 minutes. status unsupported means this OctoPrint has no Application Keys plugin: copy the key from OctoPrint's settings instead. OctoPrint allows 3 requests a minute, 5 in 10 minutes and 10 an hour. host and port name the OctoPrint being added; without port, a host given here uses port 80 (or its URL's own port), not this server's PRINTER_PORT.| Parameter | Type | Description |
|---|---|---|
| app | string | The app name OctoPrint shows in its prompt (default "mcp-3d-printer-server"). |
| host | any | |
| port | any | |
| request_id | string | A request this server started; omit to start one. |
| user | string | The OctoPrint user to ask (optional; any signed-in user with the right permissions can answer otherwise). |
| wait_ms | number | Wait up to this long for the answer, up to 120000 (default 0: answer now). |
pause_printPause the current print (Bambu Lab, OctoPrint, Klipper/Moonraker, PrusaLink, Duet M25, Repetier, and Creality printers that run Moonraker). Bambu pauses over the same connection that prints. Pause is never gated.print_3mfPrint a 3MF file on a Bambu Lab printer. The exact selected plate is inspected (model, nozzle, bed type, materials, every heater target) and checked against a fresh MQTT report of the printer's identity, nozzle, state, errors and loaded filament before upload and start.| Parameter | Type | Description |
|---|---|---|
| ams_mapping | any | Project-level AMS mapping. Array: position = project filament index, value = absolute AMS tray (0-3 = AMS 0, 4-7 = AMS 1, 8-11 = AMS 2, 12-15 = AMS 3, 128+ = AMS-HT, 254 = external spool, -1 = unused); on dual-nozzle printers (H2D, H2D Pro, H2C, X2D) 254 is the left/deputy nozzle external spool and 255 the right/main one. Object: trays keyed by project filament index (numeric keys first, in order), e.g. {"0": 2}. Prefer ams_slots unless you know the project-level layout. |
| ams_slots | array | Preferred AMS input: one absolute tray per USED filament in plate order, e.g. [1] for a single-filament print from AMS 0 slot 1. Use 254 for the external spool (on dual-nozzle printers 254 = left/deputy, 255 = right/main). Expanded to the project-level ams_mapping from the 3MF's plate_N.json and G-code header. Overrides ams_mapping. |
| bambu_model * | string | REQUIRED: Bambu Lab printer model. Ensures correct G-code generation — wrong model can crash the bed into the nozzle. |
| bambu_serial | string | Serial number for the Bambu Lab printer (default: value from env) |
| bambu_token | string | Access token for the Bambu Lab printer (default: value from env) |
| bed_leveling | boolean | Override bed leveling flag for the Bambu print command. |
| bed_temperature | number | Override bed temperature (°C). |
| bed_type | string | Bed/plate type installed on the printer (default: textured_plate). |
| filament_profile | string | Optional filament profile path for auto-slicing with OrcaSlicer/Bambu Studio. |
| flow_calibration | boolean | Override flow calibration flag for the Bambu print command. |
| host | string | Hostname or IP address of the Bambu printer (default: value from env) |
| layer_height | number | Override layer height (mm). |
| layer_inspect | boolean | Override layer inspection flag for the Bambu print command. |
| nozzle_diameter | string | Nozzle diameter in mm (default: 0.4). |
| nozzle_temperature | number | Override nozzle temperature (°C). |
| nozzle_type | string | Installed nozzle material, used when the 3MF must be auto-sliced (default: BAMBU_NOZZLE_TYPE, else the preset's stock nozzle). |
| pause_at_layers | array | Pause before these 1-based layers when auto-slicing. An already sliced 3MF must contain the requested pauses or printing is refused. |
| plate_index | integer | Zero-based selected plate; defaults to 0. The same plate is inspected and printed; auto-slicing uses its one-based CLI plate number. |
| slicer_path | string | Path to the slicer executable if auto-slicing is needed. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| slicer_profile | string | Optional slicer settings/profile path for auto-slicing. |
| slicer_type | string | Slicer to use if the 3MF needs auto-slicing. Use orcaslicer-bambulab for FULU OrcaSlicer-bambulab. |
| support_enabled | boolean | Override support generation. |
| three_mf_path * | string | Path to the 3MF file to print. |
| timelapse | boolean | Override timelapse flag for the Bambu print command. |
| use_ams | boolean | Whether to use the AMS. Defaults to true when ams_slots, ams_mapping or the 3MF's own mapping is present; false prints every used filament from the external spool. |
| vibration_calibration | boolean | Override vibration calibration flag for the Bambu print command. |
process_and_print_stlProcess an STL file (extend base), slice it, and start printing through the same checked print gate as upload_gcode/print_3mf. Expected temperatures are enforced: a mismatch refuses before upload.| Parameter | Type | Description |
|---|---|---|
| api_key | string | API key for authentication (default: value from env) |
| bambu_model | string | Bambu Lab printer model. Required for Bambu print operations. |
| bed_temp | number | Expected highest bed target in the sliced G-code (S and R forms). Printing stops before upload if it differs. |
| bed_type | string | Bed/plate type installed on the printer (default: textured_plate). |
| extension_inches * | number | Amount to extend the base in inches |
| extruder_temp | number | Expected highest nozzle target in the sliced G-code (S and R forms, every tool). Printing stops before upload if it differs. |
| filament_profile | string | OrcaSlicer filament profile path loaded with --load-filaments (default: FILAMENT_PROFILE/SLICER_FILAMENT_PROFILE env). |
| host | string | Hostname or IP address of the printer (default: value from env) |
| material | string | Declared filament material when the sliced G-code has no filament_type metadata. Must not contradict the file. |
| nozzle_diameter | string | Nozzle diameter in mm (default: 0.4). |
| nozzle_type | string | Installed Bambu nozzle material used when slicing (default: BAMBU_NOZZLE_TYPE, else the preset's stock nozzle). The print gate compares it with the printer's report. |
| port | string | Port of the printer API (default: value from env) |
| slicer_path | string | Path to the slicer executable (default: value from env). Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| slicer_profile | string | Profile to use for slicing (default: value from env). OrcaSlicer also accepts machine/process profiles separated with ';', optionally followed by '|filament.json'. |
| slicer_type | string | Type of slicer to use. Use orcaslicer-bambulab for FULU OrcaSlicer-bambulab. |
| stl_path * | string | Path to the STL file to process |
| type | string | Type of printer management system (default: value from env) |
resume_printResume a paused print. Resume reheats and moves the printer, so it only resumes a job this server instance inspected and started, and only when the printer freshly reports that job paused. Bambu re-reads the job over FTPS (or the plate G-code the printer extracted) and compares its SHA-256, and resumes over the same connection that printed. When the file cannot be re-read, a person confirms through MCP elicitation first (Bambu: only for files Bambu's plug-in placed; a file this server uploaded must re-read). Resume other jobs at the printer.rotate_stlRotate an STL model around specific axes| Parameter | Type | Description |
|---|---|---|
| rotate_x | number | Rotation around X-axis in degrees |
| rotate_y | number | Rotation around Y-axis in degrees |
| rotate_z | number | Rotation around Z-axis in degrees |
| stl_path * | string | Path to the STL file |
save_templateCopy a .3mf, .json, or .config file into the local template registry under a template name.| Parameter | Type | Description |
|---|---|---|
| source_path * | string | Local .3mf, .json, or .config file to save as a template. |
| template_dir | string | Template directory override. Defaults to BAMBU_TEMPLATE_DIR or ~/Sync/bambu/templates. |
| template_name | string | Template name. Defaults to the source filename without extension. |
scale_stlScale an STL model uniformly or along specific axes| Parameter | Type | Description |
|---|---|---|
| scale_factor | number | Uniform scaling factor to apply |
| scale_x | number | X-axis scaling factor (overrides scale_factor for X axis) |
| scale_y | number | Y-axis scaling factor (overrides scale_factor for Y axis) |
| scale_z | number | Z-axis scaling factor (overrides scale_factor for Z axis) |
| stl_path * | string | Path to the STL file |
set_printer_temperatureSet the temperature of a printer component. Temperature 0 switches a heater off and is never gated. Positive targets are validated before connecting, limited by independent hardware and material ceilings, and require a ready printer.| Parameter | Type | Description |
|---|---|---|
| api_key | string | API key for authentication (default: value from env) |
| bambu_model | string | Bambu printer model; required for positive Bambu heating unless BAMBU_MODEL is configured. Checked against the live printer. |
| bambu_serial | string | Serial number for Bambu Lab printers (default: value from env) |
| bambu_token | string | Access token for Bambu Lab printers (default: value from env) |
| component * | string | Printer component to heat, such as extruder or bed. |
| host | string | Hostname or IP address of the printer (default: value from env) |
| material | string | Declared material at the nozzle (for example PLA, PETG, ABS). Required for positive nozzle heating, including non-RFID spools. |
| nozzle_diameter | string | Installed Bambu nozzle diameter in mm for nozzle heating (default: NOZZLE_DIAMETER or 0.4). Checked against the live printer. |
| port | string | Port of the printer API (default: value from env) |
| temperature * | number | Target temperature in Celsius: a finite number >= 0. 0 switches the heater off. |
| type | string | Type of printer management system (octoprint, klipper, duet, repetier, bambu, prusa, creality) (default: value from env) |
slice_stlSlice an STL or 3MF file to generate G-code or a sliced 3MF. For Bambu-compatible CLI slicing (bambustudio, orcaslicer-bambulab, or orcaslicer with bambu_model), the exact bambu_model/nozzle machine preset from the selected slicer installation is required, profile inheritance is resolved before the CLI runs, and the result must contain plate G-code. Failures stop with the slicer's exit status and output. A 3MF that carries its own process settings (a designer's Bambu Studio or Orca project) slices with them unless slicer_profile, template_name or template_3mf_path is given; the machine still comes from bambu_model. quality and strength adjust that process, and strength never lowers its walls or infill. When a slice that worked warns of floating regions, structuredContent.next carries the stop rule (one targeted fix and one re-slice, then report it or slice with supports on) and, for an STL the slicer did not turn, structuredContent.floating_regions lists where they are: x and y in the STL's own millimetres, z above its lowest point, and depth_mm, how far each hangs below where it joins the rest. A slice in two or more colours carries filament_feed: the colours, the filament changes the slicer reports, and whether the printer can feed them (a Bambu printer's AMS trays and external spools from a fresh status read; unknown for other printers or without one). When the printer is known not to (no AMS, or fewer filaments than colours), slice_stl refuses with code needs-more-filaments, filament_slots, filament_changes and a plain slicer_report.message, unless manual_filament_changes is true; when it is unknown, the slice succeeds and slicer_report.message says how many times it would stop without an AMS.| Parameter | Type | Description |
|---|---|---|
| manual_filament_changes | boolean | The person will change filament by hand: a slice in more colours than the printer can feed (no AMS) is returned, with the number of changes, instead of refused with needs-more-filaments. |
| stl_path * | string | Path to the STL or 3MF file to slice |
slice_with_templateSlice an STL or 3MF with a named template from the local template registry (BAMBU_TEMPLATE_DIR). The template supplies process settings; the machine preset still comes from bambu_model and nozzle_diameter.| Parameter | Type | Description |
|---|---|---|
| slicer_profile | string | Explicit process profile that overrides the named template only when provided in this call. |
| stl_path * | string | Path to the STL or 3MF file to slice |
| template_name * | string | Named template from the local registry (required). |
start_printStart printing a G-code file already stored on the printer. The server downloads and inspects the exact file, then starts a uniquely named checked copy after printer-state checks. Printers whose API cannot download files (Repetier, Prusa, Creality) refuse; use upload_gcode with print=true instead.| Parameter | Type | Description |
|---|---|---|
| api_key | string | API key for authentication (default: value from env) |
| bambu_model | string | Required for Bambu print operations unless BAMBU_MODEL is configured. Must match the printer and pre-sliced G-code. |
| bambu_serial | string | Serial number for Bambu Lab printers (default: value from env) |
| bambu_token | string | Access token for Bambu Lab printers (default: value from env) |
| filename * | string | Name/path of the printer-side G-code file to start. |
| host | string | Hostname or IP address of the printer (default: value from env) |
| material | string | Declared filament material when the G-code has no slicer filament_type metadata (non-Bambu printers). Must not contradict the file. |
| port | string | Port of the printer API (default: value from env) |
| type | string | Type of printer management system (octoprint, klipper, duet, repetier, bambu, prusa, creality) (default: value from env) |
translate_stlMove an STL model along specific axes| Parameter | Type | Description |
|---|---|---|
| stl_path * | string | Path to the STL file |
| translate_x | number | Translation along X-axis in millimeters |
| translate_y | number | Translation along Y-axis in millimeters |
| translate_z | number | Translation along Z-axis in millimeters |
upload_gcodeUpload G-code content or a local G-code file path to the printer. With print=true the exact uploaded bytes are inspected first (every S/R heater target, tool changes, hardware and material ceilings) and printer state is checked before the print starts.| Parameter | Type | Description |
|---|---|---|
| api_key | string | API key for authentication (default: value from env) |
| bambu_model | string | Required for Bambu print operations unless BAMBU_MODEL is configured. Must match the printer and pre-sliced G-code. |
| bambu_serial | string | Serial number for Bambu Lab printers (default: value from env) |
| bambu_token | string | Access token for Bambu Lab printers (default: value from env) |
| filename | string | Filename to use on the printer. Defaults to the basename of gcode_path when omitted. |
| gcode | string | G-code content, or a local path to a G-code file. |
| gcode_path | string | Local path to a G-code file to upload. |
| host | string | Hostname or IP address of the printer (default: value from env) |
| material | string | Declared filament material (for example PLA, PETG, ABS, ASA, TPU, PA, PC) when the G-code has no slicer filament_type metadata. Must not contradict the file. Material ceilings limit nozzle targets. |
| port | string | Port of the printer API (default: value from env) |
| boolean | Start printing after upload when the printer backend supports it. Printing requires a declared material from slicer metadata (; filament_type = PLA) or the material argument. | |
| type | string | Type of printer management system (octoprint, klipper, duet, repetier, bambu, prusa, creality) (default: value from env) |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 14K words.
- ✓License declaredThe repository declares the GPL-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and site/package-lock.json.
- !No dynamic code executionScanned 99 source files and found 3 calls to eval or shell execution, in src/cad/process.ts:153, src/cad/worker.py:111 and src/fulu-orca.ts:470. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/index.ts:9, src/counterpart/service.ts:460
- Starts other programs
- 9 callssrc/bambu-network-bridge.ts:323, src/bambu-network-bridge.ts:1211, src/cad/process.ts:28
- Outbound network calls
- 8 callssrc/counterpart/service.ts:522, src/design-app-setup.ts:65, src/index.ts:932
- Writes or deletes files
- 113 callssrc/bambu-network-bridge.ts:169, src/bambu-network-bridge.ts:174, src/bambu-network-bridge.ts:254
- Lockfile
- package-lock.json and site/package-lock.json
Pattern matches on the source text of 99 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 14K words, fetched yesterday. The original in the repository is authoritative.
Read full README