About Bambu Printer MCP
Bambu Printer MCP is an MCP server published by DMontgomery40 in the Gaming category: mCP server for Bambu Lab 3D printers — STL manipulation, BambuStudio or FULU/orca slicing, Blender MCP integration, and direct printer control. Conduid read 68 tools from its source: bambu_connect_import_file, bambu_network_bridge_status, bambu_network_call, blender_mcp_call, blender_mcp_edit_model, blender_mcp_setup and 62 more. It is published to npm as bambu-printer-mcp and starts with npx.
The repository has 399 stars and 76 forks, is licensed GPL-2.0, and its last commit was on 1 Dec 2026. The latest release is v1.1.105 (27 Nov 2026): Document Bambu Scan 01.00.00.50 mesh exports and a manual STL preparation workflow, keeping proprietary projects, unverified units and scanner controls outside the suppo… It follows v1.1.104 (26 Nov 2026), and the 5 most recent releases go back to v1.1.101 (23 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include 3d-printing, bambu-lab and multi-printer.
Install
claude mcp add bambu-printer-mcp -- npx -y bambu-printer-mcpnpx -y bambu-printer-mcpgit clone https://github.com/DMontgomery40/bambu-printer-mcpTools (68)
bambu_connect_import_fileOpen an existing G-code or sliced 3MF file in the signed-in Bambu Connect app through its official URL scheme. This is a cloud-mode handoff and does not start printing by itself.| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Readable local path to a .gcode, .3mf, or .gcode.3mf file |
| name | string | Optional project name shown by Bambu Connect |
| version | string | Optional integration version sent to Bambu Connect (default: 1.0.0) |
bambu_network_bridge_statusInspect or probe the FULU OrcaSlicer-bambulab BambuNetwork bridge runtime used for cloud and restored BambuNetwork printing.| Parameter | Type | Description |
|---|---|---|
| bambu_network_config_dir | string | Config/log directory used by the BambuNetwork agent; defaults to BAMBU_NETWORK_CONFIG_DIR or a user config directory. |
| bridge_command | string | Override command for the FULU bridge host or macOS/WSL wrapper; defaults to BAMBU_NETWORK_BRIDGE_COMMAND. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| connect | boolean | When true, start the bridge command and run a handshake plus agent initialization probe. |
| country_code | string | BambuNetwork country code, such as US, used by the agent during startup. |
| timeout_ms | number | Bridge request timeout in milliseconds for the connect probe. |
| user_info | string | Optional BambuNetwork user_info JSON string to pass to net.change_user after the agent starts. |
bambu_network_callCall a raw FULU OrcaSlicer-bambulab BambuNetwork bridge method, optionally with an initialized network agent injected into the payload.| Parameter | Type | Description |
|---|---|---|
| bambu_network_config_dir | string | Config/log directory used by the BambuNetwork agent; defaults to BAMBU_NETWORK_CONFIG_DIR or a user config directory. |
| bridge_command | string | Override command for the FULU bridge host or macOS/WSL wrapper; defaults to BAMBU_NETWORK_BRIDGE_COMMAND. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| country_code | string | BambuNetwork country code, such as US, used by the agent during startup. |
| method * | string | FULU bridge method name, for example bridge.handshake, net.is_user_login, or net.get_user_selected_machine. |
| payload | object | JSON payload passed to the bridge method. |
| timeout_ms | number | Bridge request timeout in milliseconds. |
| user_info | string | Optional BambuNetwork user_info JSON string to pass to net.change_user after the agent starts. |
| with_agent | boolean | When true, initialize a BambuNetwork agent and add its agent id to the payload before calling the method. |
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 | Required for standard MCP previews and execution: new local STL output path whose parent exists. Existing files are never overwritten. Optional for legacy-only bridge configuration. |
| 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_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 and schemas. 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). |
| timeout_ms | integer | Total connection and discovery deadline in milliseconds; defaults to BLENDER_MCP_TIMEOUT_MS or 120000. |
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 a single JPEG frame from the printer's chamber camera. A1/P1 use TCP-on-6000; X1/P2S/H2/X2D use RTSP via ffmpeg. Returns JPEG as base64; pass save_path to also write the bytes to disk.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Printer model. Used to route to the correct protocol or fail fast on unsupported models. Defaults to BAMBU_MODEL. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| experimental | boolean | Deprecated and ignored. Earlier this flag let callers probe H2 series via the A1/P1 TCP-on-6000 path; live testing on an H2S confirmed H2 uses RTSP instead, so the flag has no effect now. |
| ffmpeg_path | string | Override path to the ffmpeg binary used by the RTSP path. Defaults to FFMPEG_PATH or ffmpeg via $PATH. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. Required only for the RTSP transport (X1, P2S, H2 series, X2D). |
| host | string | Hostname or IP of the printer (default: value from env) |
| 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 live frame (default 8000). A1/P1 cameras first replay a buffered frame, which is skipped, so a live frame takes about 3 s, longer on cold start. |
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 |
|---|---|---|
| bambu_model | string | Bambu model used to select the camera transport; defaults to BAMBU_MODEL. |
| 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 on the Bambu Lab printer| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| connection_mode | string | The connection the print used. Defaults to BAMBU_DEFAULT_CONNECTION_MODE, the same default print_3mf uses, else the model's route. |
| connection_type | string | FULU BambuNetwork connection type the print used. Defaults to BAMBU_DEFAULT_CONNECTION_TYPE, as for print_3mf. Authenticated controls support lan. |
| host | string | Hostname or IP of the printer (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 |
clear_hms_errorsClear HMS or print error state on the Bambu Lab printer using the clean_print_error MQTT command.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
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 printers (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 (MQTT and connection messages). 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. Sends nothing to the printer.counterpart_discover_printersCounterpart contract (counterpart/1): Bambu printers on the local network, from their own SSDP announcements (UDP 2021), with serial, model (as bambu_model names it), name and firmware. Listens for duration_ms (default 4000). network is "unavailable" when another app holds the 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 printer serial; used only to select a local record. |
| host | string | Saved printer hostname or address; used only to select a local record. |
counterpart_print_progressCounterpart contract (counterpart/1): the printer's state, current job (name, task id, percent, time left, layers, stage words), temperatures, active filament and problems with Bambu's HMS messages and links. Read from the MQTT report this server keeps, so a held session asks the printer nothing; observedAt is when the printer sent it. An unreachable printer reports state offline. Read-only; not a safety check.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Printer model; defaults to BAMBU_MODEL. Used for the chamber sensor and Bambu's per-model messages. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
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. |
counterpart_print_routeCounterpart contract (counterpart/1): how this server reaches the printer for prints and for Stop/Pause/Resume. route is "lan" (the local network through FULU's BambuNetwork bridge, or the configured X2D native or Bambu Connect mode), "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_infoCounterpart contract (counterpart/1): this server's name and version, the configured Bambu printer, and which progress, layer, camera, filament, pause/resume/cancel and print features it has. Sends nothing to the printer.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Printer model; defaults to BAMBU_MODEL. Selects the camera transport. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env); never returned. |
| host | string | Hostname or IP of the printer (default: value from env) |
counterpart_propose_filamentsCounterpart contract (counterpart/1): which loaded AMS spool prints each of a model's colours, before slicing. Reads the live AMS once. trays lists the spools a person may choose (label like "A2", a person-readable name, colour, material, feed). 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. 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 | Printer model; defaults to BAMBU_MODEL. Selects the filament profiles that decide which spools can slice. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env); never returned. |
| host | string | Hostname or IP of the printer (default: value from env) |
| nozzle_diameter | string | Nozzle diameter (default NOZZLE_DIAMETER or 0.4). |
counterpart_self_checkCounterpart contract (counterpart/1): whether this install's own runtime dependencies and its bundled bambu-node patch loaded, each with its installed version. Run it after an update; ok is false when a check failed, with a message saying which. Sends nothing to the printer.counterpart_setup_fieldsCounterpart contract (counterpart/1): the printers this server drives and the settings it reads for each, by .env variable name (first canonical, then aliases): label, hint, whether required, the 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. |
delete_printer_fileDelete a file from the Bambu Lab printer's SD card via FTPS. Destructive: requires confirm:true. Restricted to cache/, timelapse/, and logs/ directories, plus top-level files on H2-series printers (except X2D). Path traversal segments (..) are rejected.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| confirm | boolean | Must be true to actually delete. When false or omitted the call returns without sending an FTP request. |
| filename * | string | File to delete. Bare names default to cache/<name>; pass a relative path like timelapse/foo.mp4 to target other allowed directories, or /<name> as list_printer_files reports it for a top-level file on an H2-series printer. |
| host | string | Hostname or IP of the printer (default: value from env) |
extend_stl_baseExtend the base of an STL file by a specified amount| Parameter | Type | Description |
|---|---|---|
| extension_height * | number | Height in mm to extend the base by |
| stl_path * | string | Path to the STL file to modify |
fusion_mcp_callCall a discovered tool on the configured Fusion MCP server, such as create_sketch, extrude, fillet, create_parameter, set_parameter, check_interference or execute_code, preserving its full MCP content and errors. Discover tool schemas with fusion_mcp_status first. Calls change the open Fusion design and are never automatically retried. Most tools need an open design: call fusion_mcp_new_design first.| Parameter | Type | Description |
|---|---|---|
| arguments | object | Arguments matching the remote tool's discovered input schema. |
| document_id | string | Session identity returned by a bound new design. Every operation targets this document, even if the user changes tabs. |
| timeout_ms | integer | Total deadline in milliseconds; defaults to FUSION_MCP_TIMEOUT_MS or 180000. |
| tool_name * | string | Exact tool name advertised by the Fusion MCP server. |
fusion_mcp_exportExport the open Fusion design into an existing directory as <name>.stl (export_stl of one body), <name>.f3d (export_f3d) and <name>.parameters.json (its user parameters), and return their absolute paths. The STL is checked as a finite triangle mesh; slice it like any other model. Fusion must run on this computer, and existing files are never overwritten.| Parameter | Type | Description |
|---|---|---|
| body_name | string | The body to export as STL. Optional when the design has exactly one body. |
| document_id | string | Session identity returned by a bound new design. Every operation targets this document, even if the user changes tabs. |
| name * | string | File name without extension, such as bracket. |
| output_dir * | string | Existing directory for the three files. |
| timeout_ms | integer | Total deadline in milliseconds; defaults to FUSION_MCP_TIMEOUT_MS or 180000. |
fusion_mcp_new_designOpen a new parametric design document in Fusion (execute_code with app.documents.add(FusionDesignDocumentType)). The Fusion MCP tools work on the open design, so a design pass calls this first.| Parameter | Type | Description |
|---|---|---|
| bind_document | boolean | Create an isolated document and return its session identity, restoring the previously active document. Requires document-binding support in the configured bridge/add-in. |
| source_f3d | string | With bind_document, import this absolute F3D path into a new document for revision. |
| timeout_ms | integer | Total 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_PIN} (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), keeping a configured FUSION_MCP_COMMAND and its arguments. 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 Autodesk Fusion through the configured Fusion MCP server (fusion360-mcp-server, faust-machines or the pinned fork with document binding): whether it is configured, Fusion is running, the Fusion360MCP add-in answers on its port, and the server's tools and schemas. Reports state (starting, ready, unresponsive), responsive and reason from a fresh no-op execute_code command probe, capped at 5 s; a ping or design read alone is not readiness. The probe never edits or opens a document. With launch: true, starts Fusion on macOS when it is not running and waits up to 90 s for the add-in. Configure FUSION_MCP_COMMAND (uvx) and FUSION_MCP_ARGS (${JSON.stringify(FUSION_MCP_DEFAULT_ARGS)}), or run fusion_mcp_setup.| Parameter | Type | Description |
|---|---|---|
| launch | boolean | Start Autodesk Fusion (open -a "Autodesk Fusion") when it is not running, then wait up to 90 s for the add-in. |
| timeout_ms | integer | Connection, discovery and command-probe deadline, capped at 5000 ms even if a larger value is requested. Launch waiting is separate. |
get_printer_filamentsGet the live AMS/external filament inventory from the printer over MQTT, including loaded/empty slot summary, resolved slicer profile paths, match confidence, and recommended load_filaments when the printer model is known.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Optional model hint used to resolve Bambu/Orca filament profile JSONs for each tray. |
| 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) |
| host | string | Hostname or IP address of the printer (default: value from env) |
| nozzle_diameter | string | Optional nozzle diameter used when resolving model-specific filament profile JSONs (default: 0.4). |
get_printer_statusGet the current status of the Bambu Lab printer| Parameter | Type | Description |
|---|---|---|
| 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) |
| host | string | Hostname or IP address of the printer (default: value from env) |
get_slice_settingsInspect slicer settings from a saved 3MF template or a JSON/config slicer profile without slicing anything. 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_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 |
|---|---|---|
| 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. |
| source_path | string | Path to a 3MF template, 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 | Optional template directory override when resolving template_name. |
| template_name | string | Optional 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 (bounding box, face count, dimensions)| Parameter | Type | Description |
|---|---|---|
| stl_path * | string | Path to the STL file to analyze |
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 |
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). Use these ids with skip_objects during a running print.| 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 stored on the Bambu Lab printer: on H2-series printers, the top-level folder (directories["/"], where H2-series printers keep print and upload files; listed in files as /<name>) and the cache/, timelapse/ and logs/ directories.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
list_templatesList saved slicing templates from the local template registry directory.| Parameter | Type | Description |
|---|---|---|
| template_dir | string | Optional template directory override. Defaults to BAMBU_TEMPLATE_DIR or the server's configured local template registry. |
merge_verticesMerge vertices in an STL file closer than the specified tolerance| Parameter | Type | Description |
|---|---|---|
| stl_path * | string | Path to the STL file |
| tolerance | number | Max distance to merge (mm, default: 0.01) |
pause_printPause the current print job on the Bambu Lab printer (resumable via resume_print)| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| connection_mode | string | The connection the print used. Defaults to BAMBU_DEFAULT_CONNECTION_MODE, the same default print_3mf uses, else the model's route. |
| connection_type | string | FULU BambuNetwork connection type the print used. Defaults to BAMBU_DEFAULT_CONNECTION_TYPE, as for print_3mf. Authenticated controls support lan. |
| host | string | Hostname or IP of the printer (default: value from env) |
print_3mfPrint a 3MF file on a Bambu Lab printer. Auto-slices if the 3MF has no gcode. IMPORTANT: bambu_model must be specified to ensure safe printer operation.| Parameter | Type | Description |
|---|---|---|
| ams_mapping | array | Project-level AMS mapping array. Position = project filament index, value = absolute AMS tray. Positions the selected plate does not print are sent as -1, as Bambu Studio sends them, whatever is passed there (0-3=AMS 0, 4-7=AMS 1, 8-11=AMS 2, 128+=AMS-HT, 254=external, -1=unused). On dual-nozzle printers (H2D, H2D Pro, H2C, X2D) 254 is the LEFT/deputy nozzle external spool and 255 the RIGHT/main nozzle external spool, matching Bambu Studio's virtual tray ids; the gcode header's filament_map (1=left, 2=right) says which nozzle each filament was sliced for. Prefer ams_slots unless you know the project-level layout. |
| ams_slots | array | Preferred AMS input: one absolute tray index per USED filament in plate order, e.g. [1] for a single-filament print pulling from AMS 0 slot 1. Use 254 for the external spool (on dual-nozzle printers: 254 = left/deputy nozzle external, 255 = right/main nozzle external). Expanded to project-level ams_mapping automatically from the 3MF's plate_N.json and gcode header. |
| auto_match_ams | boolean | When true, match the sliced 3MF's tray_info_idx requirements against live AMS inventory and use the resulting ams_slots. Ignored when ams_mapping or ams_slots is provided. |
| bambu_model * | string | REQUIRED: Bambu Lab printer model. Ask the user if not known. Using the wrong model can damage the printer. |
| bambu_network_config_dir | string | Config/log directory used by the FULU BambuNetwork agent. |
| bambu_network_method | string | FULU print method when connection_mode is bambu_network; defaults to start_local_print for lan, and for cloud to Bambu Studio's order: start_local_print_with_record, then start_print if that fails. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| bed_leveling | boolean | Auto bed leveling on or off. Omit to send what Bambu Studio's Send dialog would: the choice saved in BambuStudio.conf for this printer, else Studio's default. |
| bed_type | string | Bed plate type currently installed (default: textured_plate) |
| bridge_command | string | Override command for the FULU bridge host or macOS/WSL wrapper; defaults to BAMBU_NETWORK_BRIDGE_COMMAND. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| connection_mode | string | Print path: bambu_connect hands a printable file to the signed-in Bambu Connect app for cloud-mode review; X2D otherwise defaults to bambu_native (Bambu Studio's installed local networking plug-in, storing the job on a ready SD card or USB stick, otherwise internal eMMC); X1C may opt in to bambu_native, for example when its firmware refuses FTPS uploads with 553; lan_mqtt_ftps is the legacy direct MQTT/FTPS path; bambu_network uses the FULU bridge. |
| connection_type | string | BambuNetwork connection type when connection_mode is bambu_network; cloud uses restored internet printing, lan uses local bridge printing. |
| country_code | string | BambuNetwork country code, such as US, used by the FULU bridge agent. |
| dev_id | string | Bambu device id for FULU BambuNetwork printing; defaults to BAMBU_DEV_ID or BAMBU_SERIAL. |
| dev_ip | string | Printer IP address for FULU BambuNetwork LAN/local print methods; defaults to host when provided. |
| flow_calibration | boolean | Flow calibration task boolean. Omission resolves Studio settings (auto on P1/P1S); direct MQTT sends false for auto but does not transmit the integer auto mode. The result calibration report distinguishes resolved and transmitted options. |
| host | string | Hostname or IP of the printer (default: value from env) |
| nozzle_diameter | string | Nozzle diameter in mm for auto-slicing (default: 0.4) |
| nozzle_diameters | array | Complete per-nozzle diameters for a pre-sliced job, e.g. [0.4, 0.6]. Omit to verify its declared diameters against live telemetry; cannot combine with nozzle_diameter. |
| nozzle_type | string | Installed nozzle material, used when the 3MF must be auto-sliced (default: BAMBU_NOZZLE_TYPE, else the preset's stock nozzle). |
| nozzle_volume_type | string | Installed nozzle flow type, used when the 3MF must be auto-sliced (default: BAMBU_NOZZLE_VOLUME_TYPE, else standard). |
| pause_at_layers | array | Pause before each of these layers (1-based, as Bambu Studio and OrcaSlicer number them in the preview), for example to drop in magnets or nuts. The slicer writes the printer's own pause G-code there (M400 U1 on Bambu printers); the printer stops by itself and waits for Resume. Bambu Studio or OrcaSlicer CLI only. Used when the 3MF has no G-code yet; a sliced 3MF must already carry these pauses, or it is refused. |
| plate_index | number | Zero-based plate index to print from the sliced 3MF (default: 0) |
| slicer_path | string | Path to the slicer executable for auto-slicing (default: value from env or a platform default). Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| slicer_profile | string | Path to the slicer profile/config file for auto-slicing (optional). |
| slicer_type | string | Slicer to use only if auto-slicing an unsliced 3MF. Bambu-compatible slicer aliases such as fulu-orca and orca-studio are accepted. |
| template_3mf_path | string | Optional template 3MF whose embedded Bambu slicer settings should be reused when auto-slicing this print job. |
| template_dir | string | Optional template directory override when resolving template_name. |
| template_name | string | Optional named template from the local registry. Resolves to template_3mf_path automatically. |
| three_mf_path * | string | Path to the 3MF file to print |
| timelapse | boolean | Enable timelapse recording (default: false) |
| try_emmc_print | boolean | X2D native printing: true stores the job on internal storage (eMMC), false on the SD card or USB stick (refused unless the printer reports one ready). Omit to use the card when ready, else eMMC; X1C requires fresh advertised internal-printing support before using eMMC. BAMBU_NATIVE_TRY_EMMC_PRINT sets a server default. |
| use_ams | boolean | Whether to use the AMS (default: auto-detect from 3MF) |
| user_info | string | Optional BambuNetwork user_info JSON string passed to net.change_user for the FULU bridge. |
| vibration_calibration | boolean | Vibration calibration (default false, as Bambu Studio sends). |
print_3mf_bambu_networkPrint a 3MF through FULU OrcaSlicer-bambulab's restored BambuNetwork path instead of the MCP LAN MQTT/FTPS path.| Parameter | Type | Description |
|---|---|---|
| ams_mapping | array | AMS slot mapping array used by both local MCP printing and FULU PrintParams. Same tray values as print_3mf: 254 = external spool; on dual-nozzle printers 254 = left/deputy nozzle external and 255 = right/main nozzle external. |
| ams_mapping2 | string | Raw JSON string for FULU PrintParams ams_mapping2, matching OrcaSlicer-bambulab's v1 AMS mapping field. |
| ams_mapping_bridge | string | Raw JSON string override for FULU PrintParams ams_mapping when the automatic array is not enough. |
| ams_mapping_info | string | Raw JSON string for FULU PrintParams ams_mapping_info, matching OrcaSlicer-bambulab's detailed AMS mapping field. |
| ams_slots | array | Per-used-filament AMS slot list, matching the local LAN print path (254/255 external spool rules as in print_3mf). |
| bambu_model * | string | REQUIRED: Bambu Lab printer model. Ask the user if not known. Using the wrong model can damage the printer. |
| bambu_network_config_dir | string | Config/log directory used by the BambuNetwork agent; defaults to BAMBU_NETWORK_CONFIG_DIR or a user config directory. |
| bambu_network_method | string | FULU print method to invoke; defaults to start_local_print for lan, and for cloud to Bambu Studio's order: start_local_print_with_record, then start_print if that fails. |
| bambu_serial | string | Fallback Bambu device id when dev_id is not supplied. |
| bambu_token | string | Printer access code/password for LAN/local bridge methods. |
| bed_leveling | boolean | Auto bed leveling on or off. Omit to send what Bambu Studio's Send dialog would: the choice saved in BambuStudio.conf for this printer, else Studio's default. |
| bed_type | string | Bed plate type currently installed (default: textured_plate). |
| bridge_command | string | Override command for the FULU bridge host or macOS/WSL wrapper; defaults to BAMBU_NETWORK_BRIDGE_COMMAND. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| client_job_id | number | Optional client job id sent to the bridge; defaults to the current timestamp. |
| config_filename | string | Optional config 3MF path for cloud print; defaults to the same 3MF path. |
| connection_type | string | BambuNetwork connection type to put in FULU PrintParams; cloud uses restored internet printing, lan uses local bridge printing. |
| country_code | string | BambuNetwork country code, such as US, used by the agent during startup. |
| dev_id | string | Bambu device id used by BambuNetwork; defaults to BAMBU_DEV_ID or BAMBU_SERIAL. |
| dev_ip | string | Printer IP address for LAN/local bridge methods; defaults to host when provided. |
| external_change_assist | boolean | Enable FULU PrintParams task_ext_change_assist for external filament change assistance. |
| extra_options | string | Raw JSON string or text for FULU PrintParams extra_options. |
| flow_calibration | boolean | Flow calibration task boolean. Omission resolves Studio settings (auto on P1/P1S); direct MQTT sends false for auto but does not transmit the integer auto mode. The result calibration report distinguishes resolved and transmitted options. |
| host | string | Printer host or IP address, used as dev_ip for LAN/local bridge methods. |
| layer_inspect | boolean | First-layer inspection where supported (default true, as Bambu Studio sends). |
| nozzle_diameter | string | Nozzle diameter in mm for auto-slicing (default: 0.4). |
| nozzle_diameters | array | Complete per-nozzle diameters for pre-sliced jobs, e.g. [0.4, 0.6]. Omit to verify file metadata against every reported nozzle; cannot combine with nozzle_diameter. |
| nozzle_mapping | string | Raw JSON string for FULU PrintParams nozzle_mapping. |
| nozzle_type | string | Installed nozzle material, used when the 3MF must be auto-sliced (default: BAMBU_NOZZLE_TYPE, else the preset's stock nozzle). |
| nozzle_volume_type | string | Installed nozzle flow type, used when the 3MF must be auto-sliced (default: BAMBU_NOZZLE_VOLUME_TYPE, else standard). |
| nozzles_info | string | Raw JSON string for FULU PrintParams nozzles_info. |
| password | string | Printer password/access code override for LAN/local bridge methods. |
| plate_index | number | Zero-based plate index to print from the sliced 3MF; converted to FULU's one-based PrintParams plate_index. |
| preset_name | string | Optional preset name sent in FULU PrintParams; defaults to project plus one-based plate index. |
| project_name | string | Optional project name returned in the result; defaults to the 3MF filename without extension. The printer job and stored file use the server's unique checked name so resume_print can bind to the inspected file. |
| slicer_path | string | Path to the slicer executable for auto-slicing; defaults to value from env or a platform default. Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| slicer_profile | string | Path to an optional slicer profile/config file for auto-slicing. |
| slicer_type | string | Slicer to use only if auto-slicing an unsliced 3MF; use orcaslicer-bambulab for FULU's fork. |
| task_name | string | Optional project label when project_name is omitted. The submitted task name uses a unique inspected-job identity for safe resume. |
| three_mf_path * | string | Path to the 3MF file to print; unsliced 3MFs are auto-sliced before sending. |
| timelapse | boolean | Enable timelapse recording in FULU PrintParams (default: false). |
| timeout_ms | number | Bridge request timeout in milliseconds. |
| try_emmc_print | boolean | Store the job on internal storage (eMMC) instead of the SD card or USB stick. FULU bridge: default false. X2D native printing: omit to use a ready card, else eMMC. |
| use_ams | boolean | Whether to use the AMS; defaults to auto-detect from the 3MF mapping. |
| use_ssl_for_ftp | boolean | Whether FULU local print should use SSL for FTP (default: true). |
| use_ssl_for_mqtt | boolean | Whether FULU local print should use SSL for MQTT (default: true). |
| user_info | string | Optional BambuNetwork user_info JSON string to pass to net.change_user after the agent starts. |
| username | string | Printer username for LAN/local bridge methods; defaults to bblp. |
| vibration_calibration | boolean | Vibration calibration (default false, as Bambu Studio sends). |
print_collar_charmPrint a prepared two-part dog collar charm project using the fixed tray policy: inner/smaller object -> black on AMS 1 slot 1, outer/larger object -> white on AMS 2 slot 1.| Parameter | Type | Description |
|---|---|---|
| bambu_model * | string | REQUIRED: Bambu Lab printer model. H2D, H2S, and H2C are the primary intended paths. X2D direct printing is not supported. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| bed_leveling | boolean | Auto bed leveling on or off. Omit to send what Bambu Studio's Send dialog would: the choice saved in BambuStudio.conf for this printer, else Studio's default. |
| bed_type | string | Bed plate type currently installed (default: textured_plate) |
| flow_calibration | boolean | Flow calibration task boolean. Omission resolves Studio settings (auto on P1/P1S); direct MQTT sends false for auto but does not transmit the integer auto mode. The result calibration report distinguishes resolved and transmitted options. |
| host | string | Hostname or IP of the printer (default: value from env) |
| nozzle_diameter | string | Nozzle diameter in mm for auto-slicing (default: 0.4) |
| slicer_profile | string | Path to the slicer profile/config file for auto-slicing (optional). |
| source_path | string | Path to a prepared collar charm .3mf project or sliced 3MF. Required unless template_name is provided. |
| template_dir | string | Optional template directory override when resolving template_name. |
| template_name | string | Named collar charm template from the local registry. Required unless source_path is provided; resolves source_path automatically. |
| timelapse | boolean | Enable timelapse recording (default: false) |
| vibration_calibration | boolean | Vibration calibration (default false, as Bambu Studio sends). |
reread_ams_rfidTrigger a Bambu AMS RFID re-read for one AMS slot. X2D on macOS, or Linux with the native helper installed, uses the native official plug-in route. This can move AMS filament; use only when the printer is idle and unloaded.| Parameter | Type | Description |
|---|---|---|
| ams_id * | number | AMS unit index from 0 to 3, or 128 for an X2D AMS-HT. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
| slot_id * | number | Slot index within that AMS, from 0 to 3 |
resolve_3mf_ams_slotsInspect a sliced 3MF and match its tray_info_idx filament requirements against the live AMS inventory. Does not upload or start a print.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Optional model hint used to resolve Bambu/Orca filament profile JSONs for each tray. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
| nozzle_diameter | string | Nozzle diameter in mm (default: 0.4) |
| plate_index | number | 0-based plate index to inspect (default: 0) |
| three_mf_path * | string | Path to a sliced 3MF/.gcode.3mf file |
resume_printResume a paused job that this server inspected and started. It re-downloads the job's file over FTPS and compares its SHA-256, asks a person to confirm only when the file could not be re-read, and reads the printer again before sending. A job that was cancelled, ended or replaced is never resumed. Returns jobName and bytesVerified.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| connection_mode | string | The connection the print used. Defaults to BAMBU_DEFAULT_CONNECTION_MODE, the same default print_3mf uses, else the model's route. |
| connection_type | string | FULU BambuNetwork connection type the print used. Defaults to BAMBU_DEFAULT_CONNECTION_TYPE, as for print_3mf. Authenticated controls support lan. |
| host | string | Hostname or IP of the printer (default: value from env) |
rotate_stlRotate an STL file by specified angles (degrees)| Parameter | Type | Description |
|---|---|---|
| angle_x | number | Rotation angle for X axis in degrees (default: 0) |
| angle_y | number | Rotation angle for Y axis in degrees (default: 0) |
| angle_z | number | Rotation angle for Z axis in degrees (default: 0) |
| stl_path * | string | Path to the STL file to rotate |
save_templateCopy a 3MF, JSON, or config file into the local template registry and register it under a template name.| Parameter | Type | Description |
|---|---|---|
| source_path * | string | Path to a local .3mf, .json, or .config file to save into the template registry. |
| template_dir | string | Optional template directory override. Defaults to BAMBU_TEMPLATE_DIR or the server's configured local template registry. |
| template_name | string | Optional template name. Defaults to the source filename without extension. |
scale_stlScale an STL file by specified factors| Parameter | Type | Description |
|---|---|---|
| scale_x | number | Scale factor for X axis (default: 1.0) |
| scale_y | number | Scale factor for Y axis (default: 1.0) |
| scale_z | number | Scale factor for Z axis (default: 1.0) |
| stl_path * | string | Path to the STL file to scale |
set_airduct_modeSet H2/P2 airduct mode to cooling or heating.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
| mode * | string | Airduct mode to apply |
set_ams_dryingStart or stop the AMS filament drying cycle. X2D on macOS, or Linux with the native helper installed, uses the native official plug-in route and supports AMS-HT id 128.| Parameter | Type | Description |
|---|---|---|
| action * | string | Whether to start or stop the drying cycle |
| ams_id * | number | AMS unit index from 0 to 3, or 128 for an X2D AMS-HT. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
set_fan_speedSet a Bambu printer fan speed percentage. X2D on macOS, or Linux with the native helper installed, uses Bambu's networking plug-in without UI automation; other models use MQTT.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| confirm_during_print | boolean | Required for X2D fan changes while a print is running. |
| fan * | string | Fan to control: part, auxiliary, right_auxiliary, chamber, 1, 2, 3, or 10 |
| host | string | Hostname or IP of the printer (default: value from env) |
| speed * | number | Fan speed percentage from 0 to 100 |
set_lightSet a Bambu printer light node mode using the printer's MQTT LED command| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
| light * | string | Light node to control, for example chamber_light |
| mode * | string | Light mode to apply |
set_print_speedSet the active print speed mode: silent, standard, sport, or ludicrous.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
| mode * | string | Speed mode to apply: silent/1, standard/2, sport/3, or ludicrous/4 |
set_temperatureSet a checked bed or nozzle temperature. Positive heating requires matching fresh printer telemetry; nozzle heating also requires declared material. Zero turns the heater off.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Printer model, required for positive heating unless configured in the environment |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| component * | string | Component to heat: bed, nozzle, or extruder |
| host | string | Hostname or IP of the printer (default: value from env) |
| material | string | Loaded material, for example PLA or PETG. Required for positive nozzle heating, including non-RFID spools. |
| nozzle_diameter | number | Installed nozzle diameter to compare with printer-reported configuration (default 0.4) |
| temperature * | number | Finite target temperature in °C, checked against model/component and declared material limits |
skip_objectsSkip specific object IDs during a running multi-object print using the printer's MQTT skip_objects command| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| host | string | Hostname or IP of the printer (default: value from env) |
| object_ids * | array | identify_id values of the object copies to skip. Use list_3mf_plate_objects on the sliced 3MF to find them. |
slice_stlSlice an STL or 3MF file using a slicer to generate printable G-code or sliced 3MF. IMPORTANT: bambu_model must be specified to ensure the slicer generates safe G-code for the correct printer. The text result is the sliced file's path. When Bambu Studio or OrcaSlicer writes a result.json, structuredContent.slicer_result carries it verbatim, success or error: error_string, return_code and each sliced_plates[].warning_message, such as a floating cantilever. structuredContent.slicer_report says whether it failed; for a failure, its message is a plain sentence for a person and slicer_message keeps the slicer's words, which a failed slice's text gives after that sentence. When a slice that worked warns of floating regions, 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 (its AMS trays and external spools from a fresh status read; unknown 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. 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.| Parameter | Type | Description |
|---|---|---|
| allow_mix_temp | boolean | Allow filaments with different temperature requirements on the same plate. Required for multi-material prints mixing e.g. PLA and PETG. |
| arrange | boolean | Auto-arrange all objects on the build plate with optimal spacing; STL input is arranged by default. Set false only to keep a 3MF's existing layout: an STL that is not already on the plate then fails to slice. |
| bambu_model * | string | REQUIRED: Bambu Lab printer model. Ask the user if not known. Using the wrong model can damage the printer. |
| bed_type | string | Bed plate type for slicing (default: textured_plate). |
| clone_objects | string | Clone the loaded model: total copies as a single integer, e.g. '3'. The Bambu-style CLIs count copies per input file and this tool loads one file, so a comma-separated list is rejected by the slicer. |
| enable_support | boolean | Turn support generation on or off, written as the process preset's enable_support. Bambu-compatible slicers only. |
| enable_timelapse | boolean | Insert timelapse parking moves into gcode. The toolhead parks at a fixed position each layer for camera capture. Adds ~10% print time. |
| ensure_on_bed | boolean | Detect models floating above the bed and lower them onto the build surface. Safety net for imported models with incorrect Z origins. |
| filament_colours | string | Optional slot colours, one #RRGGBB per filament slot in order, separated by ';' (e.g. '#161616;#FFFFFF'). Defaults to the input 3MF's project colours, else the BambuStudio default. |
| filament_profile | string | Compatibility alias for load_filaments. Semicolon-separated Orca/Bambu filament profile JSON paths. |
| layer_height | number | Layer height in mm, such as 0.28 (draft), 0.2 (standard) or 0.12 (fine). Written as the process preset's layer_height over the machine and process preset this tool resolves; at most the nozzle diameter. Bambu-compatible slicers only. |
| load_filament_ids | string | Map filaments to objects/parts. Comma-separated IDs matching load_filaments order, e.g. '1,2,3,1' assigns filament 1 to objects 0 and 3. |
| load_filaments | string | Override filament profiles. Semicolon-separated paths to filament JSON configs, e.g. 'pla_basic.json;petg_cf.json'. |
| 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. |
| min_save | boolean | Write a smaller output 3MF by omitting non-essential metadata. Reduces file size for faster FTP upload to the printer. |
| nozzle_diameter | string | Nozzle diameter in mm (default: 0.4) |
| nozzle_type | string | Bambu-compatible slicing: the hotend nozzle material installed on the printer (default: BAMBU_NOZZLE_TYPE, else the model preset's stock nozzle, usually stainless_steel). Printing compares it with the printer's reported nozzle. |
| nozzle_volume_type | string | Bambu-compatible slicing: the flow type of the nozzle installed on the printer (default: BAMBU_NOZZLE_VOLUME_TYPE, else standard). high_flow uses the presets' High Flow values, such as the filament's High Flow max volumetric speed, and is refused if the machine preset has no High Flow variant. Printing compares it with the printer's reported nozzle flow. |
| orient | boolean | Auto-orient the model for optimal printability (minimize supports, maximize bed adhesion). Recommended for raw STL imports that lack a pre-set orientation. |
| pause_at_layers | array | Pause before each of these layers (1-based, as Bambu Studio and OrcaSlicer number them in the preview), for example to drop in magnets or nuts. The slicer writes the printer's own pause G-code there (M400 U1 on Bambu printers); the printer stops by itself and waits for Resume. Bambu Studio or OrcaSlicer CLI only. Pauses already in a project 3MF are kept. |
| repetitions | number | Slice N identical copies of the model. Bambu Studio and OrcaSlicer copy an STL with --clone-objects; do not also pass clone_objects. Copies may need multiple plates; print_3mf prints one selected plate per call. For 3MF input, select slice_plate explicitly. |
| rotate | number | Rotate the model around the Z-axis (vertical) by this many degrees before slicing. Positive = counterclockwise when viewed from above. |
| rotate_x | number | Rotate the model around the X-axis by this many degrees before slicing. Useful for reorienting prints for better layer adhesion. |
| rotate_y | number | Rotate the model around the Y-axis by this many degrees before slicing. Useful for reorienting prints for better layer adhesion. |
| scale | number | Uniform scale factor applied to all axes. 1.0 = original size, 2.0 = double, 0.5 = half. Applied before slicing. |
| skip_modified_gcodes | boolean | Strip custom start/end gcodes embedded in the 3MF. Recommended for downloaded 3MFs since custom gcodes from other users' profiles may be unsafe for your printer. |
| skip_objects | string | Skip these object copies when slicing, by identify_id, comma-separated (e.g. '78,92'). The ids are the instances list_3mf_plates gives for each plate; they are not positions. Useful for multi-object 3MFs where you only want to print some parts. |
| slice_plate | number | Which plate index to slice. 0 = all plates for local slicers; remote slicing defaults to plate 1 and rejects 0. Use 1, 2, etc. to slice only a specific plate in multi-plate 3MF projects. |
| slicer_path | string | Path to the slicer executable (default: value from env). Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| slicer_profile | string | Path to an optional process profile/config file. The exact bambu_model/nozzle machine preset is still required. |
| slicer_type | string | Type of slicer to use. Bambu-compatible choices (bambustudio, orcaslicer, orcaslicer-bambulab) export sliced 3MF; aliases such as fulu-orca and orca-studio are accepted. |
| sparse_infill_density | string | Sparse infill density as a percentage, such as "15%", written as the process preset's sparse_infill_density. Bambu-compatible slicers only. |
| stl_path * | string | Path to the STL or 3MF file to slice |
| support_threshold_angle | integer | Overhang threshold in degrees for automatic supports, written as the process preset's support_threshold_angle (0 lets the slicer decide). Bambu-compatible slicers only. |
| support_type | string | Support style, written as the process preset's support_type. Bambu-compatible slicers only. |
| template_3mf_path | string | Optional template 3MF whose embedded Bambu slicer settings should be reused when slicing a new STL or 3MF. |
| template_dir | string | Optional template directory override when resolving template_name. |
| template_name | string | Optional named template from the local registry. Resolves to template_3mf_path automatically. |
| uptodate | boolean | Refresh 3MF preset configs to match the latest BambuStudio version. Use when slicing downloaded or older 3MF files to prevent stale-config failures. |
| use_printer_filaments | boolean | When true, and no explicit slicer profile or load_filaments override is provided, use the printer's current or first loaded AMS filament as the slicer filament profile. Template 3MF process settings can still be used at the same time. |
| wall_loops | integer | Number of walls (perimeters), written as the process preset's wall_loops. Bambu-compatible slicers only. |
slice_with_templateSlice an STL or 3MF using a named template from the local registry. This is a higher-level wrapper around slice_stl for template-based workflows.| Parameter | Type | Description |
|---|---|---|
| arrange | boolean | Auto-arrange objects on the build plate. |
| bambu_model * | string | REQUIRED: Bambu Lab printer model. Ask the user if not known. Using the wrong model can damage the printer. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| bed_type | string | Bed plate type for slicing (default: textured_plate). |
| ensure_on_bed | boolean | Lift floating models onto the bed. |
| filament_colours | string | Optional slot colours, one #RRGGBB per filament slot in order, separated by ';' (e.g. '#161616;#FFFFFF'). Defaults to the input 3MF's project colours, else the BambuStudio default. |
| host | string | Hostname or IP of the printer (default: value from env) |
| load_filament_ids | string | Optional filament-to-object mapping string. |
| load_filaments | string | Override filament profiles. Semicolon-separated paths to filament JSON configs. |
| min_save | boolean | Produce smaller output 3MF. |
| nozzle_diameter | string | Nozzle diameter in mm (default: 0.4) |
| nozzle_type | string | Bambu-compatible slicing: the hotend nozzle material installed on the printer (default: BAMBU_NOZZLE_TYPE, else the model preset's stock nozzle, usually stainless_steel). Printing compares it with the printer's reported nozzle. |
| nozzle_volume_type | string | Bambu-compatible slicing: the flow type of the nozzle installed on the printer (default: BAMBU_NOZZLE_VOLUME_TYPE, else standard). high_flow uses the presets' High Flow values, such as the filament's High Flow max volumetric speed, and is refused if the machine preset has no High Flow variant. Printing compares it with the printer's reported nozzle flow. |
| orient | boolean | Auto-orient model for optimal printability. |
| pause_at_layers | array | Pause before each of these layers (1-based, as Bambu Studio and OrcaSlicer number them in the preview), for example to drop in magnets or nuts. The slicer writes the printer's own pause G-code there (M400 U1 on Bambu printers); the printer stops by itself and waits for Resume. Bambu Studio or OrcaSlicer CLI only. Pauses already in a project 3MF are kept. |
| repetitions | number | Total copies of an STL, using clone_objects internally. Do not also pass clone_objects. The slicer may place copies on multiple plates; print_3mf prints one selected plate per call. For 3MF input, select slice_plate explicitly. |
| rotate | number | Z-axis rotation in degrees. |
| rotate_x | number | X-axis rotation in degrees. |
| rotate_y | number | Y-axis rotation in degrees. |
| scale | number | Uniform scale factor. |
| skip_modified_gcodes | boolean | Ignore stale custom gcodes in the 3MF. |
| slice_plate | number | Which plate index to slice. 0 = all plates. |
| slicer_path | string | Path to the slicer executable (default: value from env). Per-call overrides require MCP_ALLOW_EXECUTABLE_ARG=1. |
| slicer_profile | string | Explicit slicer profile/config file. Overrides the named template only when provided in the tool call. |
| slicer_type | string | Type of slicer to use. Bambu-compatible choices (bambustudio, orcaslicer, orcaslicer-bambulab) export sliced 3MF; aliases such as fulu-orca and orca-studio are accepted. |
| stl_path * | string | Path to the STL or 3MF file to slice |
| template_dir | string | Optional template directory override when resolving template_name. |
| template_name * | string | Named template from the local registry. |
| use_printer_filaments | boolean | When true, and no explicit slicer profile or load_filaments override is provided, use the printer's current or first loaded AMS filament as the slicer filament profile. |
start_printStart printing a G-code file already on the Bambu Lab printer. Alias of start_print_job for upstream MCP compatibility.| Parameter | Type | Description |
|---|---|---|
| bambu_model * | string | REQUIRED: Bambu Lab printer model. Ask the user if not known. Starting G-code for the wrong model can damage the printer. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| filename * | string | Name of the file to print |
| host | string | Hostname or IP of the printer (default: value from env) |
start_print_jobStart printing a G-code file already on the Bambu Lab printer| Parameter | Type | Description |
|---|---|---|
| bambu_model * | string | REQUIRED: Bambu Lab printer model. Ask the user if not known. Starting G-code for the wrong model can damage the printer. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| filename * | string | Name of the file to print. A bare name means cache/<name>; /<name>, as list_printer_files and upload_file report it, is a top-level file on an H2-series printer. |
| host | string | Hostname or IP of the printer (default: value from env) |
upload_fileUpload a local file to the Bambu Lab printer| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Required for every printable .gcode or .3mf upload, including upload-only operations. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| bed_type | string | Bed plate type for the native X2D uploader (default: textured_plate). |
| connection_mode | string | Upload transport; bambu_native uses the installed Bambu networking plug-in for X2D or X1C and never starts printing. |
| file_path * | string | Local path to the file to upload |
| filename * | string | Name for the file on the printer |
| host | string | Hostname or IP of the printer (default: value from env) |
| plate_index | integer | Zero-based plate index passed to the native X2D uploader (default: 0). |
| preset_name | string | Optional printer preset name passed to the native X2D uploader. |
| boolean | Start printing after upload (default: false) | |
| project_name | string | Optional project name passed to the native X2D uploader; defaults to filename. |
upload_gcodeInspect a G-code file and upload a uniquely named copy without overwriting existing printer files.| Parameter | Type | Description |
|---|---|---|
| bambu_model | string | Required printer model for inspecting the uploaded G-code, even when not starting it. |
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| filename * | string | Name for the file on the printer |
| gcode | string | G-code content to upload, or a readable local .gcode path. Required unless gcode_path is provided. For large files, prefer gcode_path. |
| gcode_path | string | Local path to a .gcode file to upload. Required unless gcode is provided. This avoids sending large G-code bodies through the MCP request. |
| host | string | Hostname or IP of the printer (default: value from env) |
x2d_native_controlRead calibration results or update X2D AMS metadata/calibration selection through the installed plug-in. Raw motion, heating, task control, and safety-setting changes are rejected.| Parameter | Type | Description |
|---|---|---|
| bambu_serial | string | Serial number (default: value from env) |
| bambu_token | string | Access token (default: value from env) |
| flag | number | Bambu networking plug-in command flag (0 or 1; default 0). |
| host | string | Hostname or IP of the printer (default: value from env) |
| message_json * | string | JSON print envelope for ams_filament_setting, extrusion_cali_sel, extrusion_cali_get, extrusion_cali_get_result, or flowrate_get_result. A sequence_id is required; extra fields are rejected. |
| qos | number | MQTT QoS used by Bambu Studio (0 or 1; default 0). |
Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 19K 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 88 source files and found 2 calls to eval or shell execution, in src/cad/process.ts:153 and src/cad/worker.py:111. Review how tool inputs reach them before granting credentials.
1 check has not been run yet.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/index.ts:23, src/index.ts:24
- Starts other programs
- 9 callssrc/bambu-native.ts:370, src/bambu-network-bridge.ts:316, src/bambu-network-bridge.ts:1204
- Outbound network calls
- 2 callssrc/design-app-setup.ts:65, src/slicer/remote-slicer.ts:143
- Writes or deletes files
- 112 callssrc/3mf_parser.ts:264, src/3mf_parser.ts:291, src/3mf_parser.ts:292
- Lockfile
- package-lock.json and site/package-lock.json
Pattern matches on the source text of 88 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 19K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README