3D Printer

Design and media

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.

Your AI app calls the 3D Printer MCP server, which does the work through tools like ams_slots, ams_mapping, connection_mode and nozzle_type and sends the result back to the chat.

About 3D Printer

3D Printer is a community MCP server from DMontgomery40, filed in our directory under design and media. 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.

3D Printer runs on your own machine: your AI app starts it with the command npx -y mcp-3d-printer-server and talks to it over standard input and output.

The README for 3D Printer lists tools such as PRINTER_CAMERA_SNAPSHOT_URL, temperature, ams_slots and ams_mapping, which your AI app can call once the server is connected.

At a glance

Publisher
DMontgomery40 (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mcp-3d-printer-server
Written in
TypeScript
License
GPL-2.0
GitHub stars
277

Tools 3D Printer gives your AI app

  • PRINTER_CAMERA_SNAPSHOT_URLOverrides the source for any printer.
  • temperatureMust be a finite number of 0 or more. 0 switches the heater off and is never gated.
  • ams_slotsNames one absolute tray per used filament, in plate order: [2] prints a one-filament plate from AMS 0 slot 2, 254 is the external spool (on dual-nozzle printers
  • ams_mappingIs the raw project-level array (position = project filament, value = tray, -1 unused), or an object of trays keyed by project filament index. When neither is gi
  • connection_modeAnd connectiontype choose the route (default BAMBUDEFAULTCONNECTIONMODE and BAMBUDEFAULTCONNECTIONTYPE; see FULU's BambuNetwork route). The bridge route sends B
  • nozzle_type(stainlesssteel, hardenedsteel, tungstencarbide, brass) sets the installed nozzle when the project must be auto-sliced. The job's nozzle type must match the pri
  • bed_typeIs one of texturedplate, coolplate, engineeringplate, hotplate, or supertackplate (default BEDTYPE, else texturedplate). It must match the plate's bed metadata,
  • nozzle_diameterAccepts 0.2, 0.4, 0.6, or 0.8 (default NOZZLEDIAMETER or 0.4).
  • layer_height, nozzletemperature, bedtemperature, and supportenabled are accepted but not applied: those settings are baked into the sliced file. Change them in the slicer.
  • slicer_profile(or SLICERPROFILE) is a process profile only. A machine;process list is rejected with instructions.
  • output_pathMust be new and its parent must exist; nothing is ever overwritten. On any Blender error, mismatched receipt, or invalid file, nothing is published.

Tool names as the 3D Printer README lists them. Your AI app shows the live list once 3D Printer is connected.

How to set up 3D Printer

  1. Install Node.js on the machine that runs your AI app, because 3D Printer starts with npx and downloads its package on first run.
  2. Check the 3D Printer README for keys or settings; the registry lists none that 3D Printer requires.
  3. Add 3D Printer to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the 3D Printer tools to confirm the connection.
  5. Run one read-only task with 3D Printer first, such as a call to PRINTER_CAMERA_SNAPSHOT_URL, before you allow anything that writes or sends.

3D Printer compared with similar servers

  • Figma UI by TranHoaiHung has fewer GitHub stars than 3D Printer (274 against 277); both are community servers, and both run locally.
  • Comfy Skills by Comfy-Org has more GitHub stars than 3D Printer (278 against 277); both are community servers, and Comfy Skills runs as a remote server and 3D Printer runs on your own machine.
  • Agent Call by XiyaoWang0519 has fewer GitHub stars than 3D Printer (269 against 277); both are community servers, and both run locally.

Before you connect 3D Printer

  • Give 3D Printer its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each 3D Printer tool call until you trust what it does with them.
  • Treat text that 3D Printer fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for 3D Printer on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for 3D Printer

How marketing and sales teams put 3D Printer to work, by company size. Pick the size closest to yours and start 3D Printer on one use case.

Small business

  • A small business can use 3D Printer to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask 3D Printer to pull brand assets and make quick ad and social variations that still look on brand.
  • 3D Printer runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect 3D Printer so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use 3D Printer to hand off designs to web and ads with specs attached, cutting review rounds.
  • Start with PRINTER_CAMERA_SNAPSHOT_URL and temperature, the tools 3D Printer lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises can use 3D Printer with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use 3D Printer to localize and version assets for many markets with review built in.
  • 3D Printer is a community server, so have security review the code and pin a version before 3D Printer touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

3D Printer README

From DMontgomery40/mcp-3D-printer-server on GitHub, shared under its GPL-2.0 license. Images are left out; the original has them.

README.md

MCP 3D Printer Server

Thank you, FULU Foundation, Louis Rossmann, and the OrcaSlicer-bambulab contributors. Thank you for standing up for consumer ownership, open-source developers, repair rights, and owners whose working hardware should not be made worse by locked-down software.

This server treats the FULU OrcaSlicer-bambulab fork as a first-class slicer for Bambu Lab projects. See the FULU guide for setup and current status.

An MCP server that connects Claude, Codex, and other MCP clients to 3D printers running OctoPrint, Klipper (Moonraker), Duet, Repetier-Server, Bambu Lab, PrusaLink or Prusa Connect, and Creality. Your agent can check status, upload and start jobs, cancel prints, edit STL meshes, run your slicer, and hand models to Blender through an optional Blender MCP bridge.

Browse the documentation site for searchable setup guides, per-printer credentials, slicing, and the full tool reference. It is generated from this README and the docs folder.

Only print on Bambu Lab printers? bambu-printer-mcp is a Bambu-focused fork of this project with more Bambu features, including AMS auto-matching, Bambu camera snapshots and streams, X2D native printing, Bambu Connect, and a Claude Desktop extension. Both servers read the AMS, choose trays, pause, resume, stop, and print through FULU's authenticated BambuNetwork route.

Camera tools also include camera_stream_start, camera_frame, and camera_stream_stop from version 1.2.26. They reuse configured MJPEG or snapshot sources, send only changed frames, and close when idle. See camera stream configuration and limits.

Built with help from our contributors. Thank you to everyone sharing fixes, careful bug reports, and real printer testing!

Set up with your agent

Tell your agent which printer system you use (OctoPrint, Klipper, Bambu Lab, Prusa, and so on) and its address, if you know them, then copy and paste this:

Install mcp-3d-printer-server in the agent/harness I'm using now.

Read https://github.com/DMontgomery40/mcp-3D-printer-server/blob/main/docs/SETUP.md
for the current setup instructions and supported printer backends.

Detect my OS and harness, then use its native MCP configuration or installer.
Preserve my existing servers and settings. Prefer the published npm package
(npx -y mcp-3d-printer-server, stdio); use Node.js 24 if a runtime is needed.

Ask which printer system I use and set PRINTER_TYPE to match. Never guess it.
Then ask only for the values that backend needs:
- octoprint: PRINTER_HOST (an address, or a URL for HTTPS or a sub-path),
  PRINTER_PORT if not 80, API_KEY (octoprint_request_api_key gets one when
  I click Allow in OctoPrint)
- klipper (Moonraker): PRINTER_HOST, PRINTER_PORT (usually 7125),
  API_KEY if Moonraker requires authentication
- duet: PRINTER_HOST, PRINTER_PORT if not 80
- repetier: PRINTER_HOST, PRINTER_PORT (usually 3344), API_KEY
- bambu: PRINTER_HOST, BAMBU_SERIAL, BAMBU_TOKEN (the LAN access code),
  and BAMBU_MODEL
- prusa: PRINTER_HOST (PrusaLink address or connect.prusa3d.com), API_KEY
- creality: PRINTER_HOST, PRINTER_PORT if not 80, API_KEY (bearer token)
For Bambu Lab, confirm the exact printer model with me; never guess it, and
explain any LAN Only Mode or Developer Mode setting I need to enable.
Keep keys, tokens, and access codes in local/private configuration; do not
repeat them in chat.

Bambu Lab has the most hardware testing. The other backends use each
system's HTTP API and rely on community reports, so tell me plainly if a
backend does not respond as the guide describes.

Offer these optional extras, and set them up only if I choose them:
- Blender MCP for model edits: uvx mcp-for-blender (formerly blender-mcp,
  which now installs it as a compatibility wrapper). Its Blender addon must be
  installed, enabled, and connected inside Blender.
- A slicer for slice_stl: look for an installed PrusaSlicer, OrcaSlicer,
  FULU OrcaSlicer-bambulab, Bambu Studio, or CuraEngine before suggesting
  an install.
Configure executables in the server environment. Do not enable
MCP_ALLOW_EXECUTABLE_ARG.

Verify that the MCP initializes, lists its tools, and reads printer status.
Do not start a print or change printer settings, including temperatures, as
a setup test. Tell me what worked and whether I need to restart or reload
the harness.

Setup reference · Printer backends · Slicing guide · Blender MCP

What to ask your agent

Ask for the result you want, not the steps. Current models plan across tools: they search the web, read photos, look up exact dimensions, edit models, slice, and print. Expect a question or two when a choice matters, such as which printer or filament to use, or whether to start the print.

This server provides the printer, slicing, and mesh tools. Web search, photos, and Blender edits come from your agent and its other connections, such as a Blender MCP server. What your agent can read back depends on the printer system; see printer backends.

Start from anything
  • "Here's a phone case on MakerWorld. Make it fit my iPhone 17 Pro Max and print it."
    Your agent reads Apple's dimensional drawings, refits the case in Blender around the new camera and buttons, checks the fit, exports a verified STL, slices it for your printer, and asks before it starts the print. See it worked through.
  • "Can you print a replacement?" (with a photo of a snapped cabinet clip)
    It asks for a measurement or two where the fit matters, models the part, and prints it on the printer you choose.
  • "Make this bracket 20% bigger and give it a thicker base."
    It scales the STL, extends the base, and reports the new dimensions before it slices anything.
Check on any printer
  • "How far along is the Bambu print?"
    It requests a fresh status report and gives you progress, the current layer, and time remaining.
  • "Is the Prusa done yet?"
    It reads the printer's status through PrusaLink and reports its state and job progress.
  • "What are the bed and nozzle temperatures on the OctoPrint printer?"
    It reads OctoPrint's printer state, including current and target temperatures.
  • "The first layer isn't sticking. Cancel it."
    It sends the cancel command through that printer's backend, then checks the printer's status.
Slice and print
  • "Print this in PETG." (with an STL)
    It slices with the PETG filament profile you've set up and checks the job's peak temperatures and the printer's state before the print starts.
  • "Print the bracket I sliced last night on the Bambu."
    It checks the plate's model, nozzle, bed type, materials, and temperatures against the live printer before it uploads and starts the job.
  • "Send benchy.gcode to the Klipper printer, but don't start it yet."
    It uploads the file through Moonraker so you can start it later.
Start here

Start here

I want to… Read next
Connect this MCP to my agent Copy the setup request
See what my agent can do with it What to ask your agent
Find the credentials for my printer Printer backend setup
Configure it by hand, with Docker, or over HTTP Installation and configuration reference
Slice from my agent or troubleshoot slicing Slicing guide
Use open-source slicing for a Bambu Lab printer FULU guide
Model or refit a part in Blender Blender guide and Blender tools
See release changes or contributor credit Changelog, releases, and contributors
What's new

What's new

See the changelog for versioned changes. The next release brings the print safety gate to every printer backend: the server checks the exact G-code against hardware and material ceilings. It also adds Bambu-compatible CLI slicing with resolved machine presets and a template registry, blender_mcp_export_stl for verified STL export from Blender, and this documentation site. Release 1.2.9 fixes Bambu FTPS uploads that failed with "Premature close" (#22), adds standard Blender MCP discovery, forwarding, and verified STL edits, requires the Bambu printer model for raw print starts, and isolates each server's scratch files. Separately, #20 and #21 made per-call executable selectors, such as a slicer path or bridge command, require an explicit opt-in.

Table of Contents

Table of Contents

  • Set up with your agent
  • What to ask your agent
  • Start here
  • What's new
  • Description
  • FULU and open-source printing
  • Features
  • Available Tools
    • STL Manipulation Tools
    • Printer Control Tools
    • Bambu-Specific Tools
    • Slicing Tools
    • Advanced Tools
  • Available Resources
  • Printer Limitations
  • General Limitations and Considerations
  • MCP Safety Notes
  • License
  • Acknowledgements
Description

Description

mcp-3d-printer-server is a Model Context Protocol server for 3D printers. It gives an agent printer control (status, files, upload, start, cancel, and temperatures), STL mesh tools, slicer automation, Bambu Lab project printing, and an optional bridge to a Blender MCP server. One PRINTER_TYPE selects the default backend, and every printer tool accepts a per-call type and host, so one server can reach more than one printer.

Backend PRINTER_TYPE Testing evidence
Bambu Lab bambu Most tested, including maintainer hardware testing shared with the Bambu-only fork
OctoPrint octoprint Community-reported; checked with OctoPrint 1.11.8 and 2.1-dev Virtual Printers
Klipper (Moonraker) klipper Community-reported, including a Creality K1 Max through Moonraker
PrusaLink and Prusa Connect prusa Community-reported
Duet duet Implemented; no hardware reports yet
Repetier-Server repetier Implemented; no hardware reports yet
Creality creality Implemented; no hardware reports yet

What each backend reads and sends differs. See printer backend setup for the exact API calls, credentials, and linked reports.

Note on resource usage. The STL tools load the entire mesh into memory. Large or complex files (over about 10 MB) can use a lot of memory. See General Limitations and Considerations.

FULU and open-source printing

FULU and open-source printing

FULU OrcaSlicer-bambulab is a first-class slicer target for Bambu Lab projects (SLICER_TYPE=orcaslicer-bambulab; aliases include fulu-orca and orca-studio). Choose it with SLICER_TYPE=orcaslicer-bambulab: Bambu printers default to Bambu Studio, because FULU v1.0.0's command line segfaults on every slice until FULU #56 and #57 are released. slice_stl and print_3mf auto-slicing use its project command line, and check_fulu_orca_setup inspects the install and runtime payload.

The optional FULU BambuNetwork bridge is a separate runtime. With BAMBU_DEFAULT_CONNECTION_MODE=bambu_network (or connection_mode: "bambu_network"), print_3mf, cancel_print, pause_print and resume_print go through it: the plug-in's authenticated local-network session (connection_type: "lan"), which a P1S on authorization firmware accepts without Developer Mode, or Bambu Cloud ("cloud"). Every print still passes the same inspection and fresh-state checks first. counterpart_print_route reads and changes the route. The server never switches routes on its own; fulu_bambu_network_rpc probes the bridge and refuses raw print methods.

Follow the FULU guide for platform runtime setup, bridge probes, and the current macOS and Windows testing status.

Features

Features

  • Seven printer backends, selected with PRINTER_TYPE: OctoPrint, Klipper (Moonraker), Duet, Repetier-Server, Bambu Lab, PrusaLink or Prusa Connect, and Creality
  • Per-call type, host, port, and api_key arguments for working with more than one printer
  • Printer status, file listing, G-code upload from inline content or a local path, starting a stored file, pausing, resuming, cancelling a job, and setting bed or nozzle temperatures
  • The counterpart/1 tools shared with bambu-printer-mcp: one progress shape for every firmware (state, job, progress, time left, layers, temperatures, problems), detected printer capabilities, camera snapshots, and the loaded filament (Spoolman on Moonraker)
  • counterpart_printer_info reports capabilities.slicing (supports, copies, orient) for the slicer route this server uses for that printer (for a Bambu printer on OrcaSlicer, when the call passes its bambu_model), so a client can offer those choices without knowing the slicer.
  • counterpart_discover_printers finds printers on the local network without contacting them: Bambu Lab printers from their own SSDP announcements (serial, bambu_model value, name, firmware), and OctoPrint, Klipper (Moonraker) and PrusaLink hosts from their Bonjour adverts (dns-sd on macOS, avahi-browse on Linux)
  • counterpart_setup_fields lists every PRINTER_TYPE this server drives and the .env settings it reads for each (field role, variable, label, hint, required, the Bambu model choices and the model each serial prefix names, and cameraSnapshot: whether camera_snapshot reads the printer's camera with only those settings, false for every kind here), so a client can offer printer setup without printer tables of its own, and the slicer it would run (type, path, whether it is there, and the Bambu profiles folder) with the SLICER_TYPE, SLICER_PATH and BAMBU_PROFILES_ROOT fields, required only when what they default to is missing
  • counterpart_propose_filaments proposes which loaded spool prints each of a model's colours before slicing: nearest OKLab colour with the asked-for material preferred, one feed per print (the AMS or the external spool), a verdict and a person-readable note per part ("White isn't loaded. Closest loaded: A2 Sunflower Yellow PLA Basic."), each spool's label, name and slicer profile, and, with the person's chosen spools, a check against what is loaded now and the full mapping including painted slots
  • counterpart_make_3mf combines STL parts exported separately into one new 3MF for multi-colour printing: one assembly whose parts keep their relative positions, each printing with its own filament number
  • get_printer_filaments slots carry label ("A2", "External", "Spool") and a name a person reads (Bambu: Bambu Studio's colour name and the product, "Sunflower Yellow PLA Basic")
  • Errors carry their details in structuredContent (status, retryable, suggestion, message); a printer refusal on print_3mf also carries a stable code: printer-command-rejected, printer-not-ready, or printer-upload-failed when the file didn't reach the printer and no print command was sent, so a client can act on the code instead of the wording. A Bambu print_3mf call made with a progress token reports its LAN upload as MCP progress: progress is bytes sent, total the file's bytes, and _meta["counterpart/stage"] is "upload", at most once per whole percent.
  • STL tools: inspect dimensions, scale, rotate, translate, extend the base, merge vertices, center, lay flat, transform one section of a model, and render multi-angle SVG previews
  • A print and heating safety gate on every backend: the exact G-code is inspected, every heater target is checked against hardware and material ceilings, and the printer's state is checked. There is no confirmation prompt and no bed check: your client's own print action is the approval. Heater-off, pause, and cancel are never gated; resume only continues a paused job this server inspected and started, and asks a person only when the printer cannot hand the file back for re-reading
  • Slicing through PrusaSlicer, Slic3r, OrcaSlicer, CuraEngine, FULU OrcaSlicer-bambulab, or Bambu Studio command lines, with G-code peak-temperature checks and a one-call process-and-print pipeline
  • Bambu-compatible CLI slicing with the exact model and nozzle machine preset resolved from your slicer installation, filament slots and colours, placement options, and a local template registry
  • Bambu Lab project printing: upload a sliced .3mf over FTPS and start it over MQTT with the plate's G-code path, MD5, AMS mapping (ams_slots, one tray per used filament), and calibration flags, after checking the plate against a fresh printer report; or print through FULU's authenticated BambuNetwork route. Auto-slice unsliced projects with FULU OrcaSlicer-bambulab or Bambu Studio
  • Bambu AMS inventory (get_printer_filaments), pause, resume and stop over the connection that printed
  • Required Bambu printer model for print operations, asked for through MCP elicitation when missing
  • FULU OrcaSlicer-bambulab setup inspection and diagnostic BambuNetwork bridge RPC, with raw print methods refused
  • Optional Blender MCP bridge: discover a standard Blender MCP server's tools, forward calls, export named scene objects to a verified STL, and run verified STL edits
  • Optional Autodesk Fusion bridge through the pinned faust-machines Fusion MCP server: check Fusion and its add-in, forward any of its CAD tools, start a parametric design, and export STL, F3D and parameters with verified output
  • Slicer, bridge, and Blender executables come from server configuration unless you explicitly opt in to per-call selectors
  • MCP resources for printer status, files, and file details
  • Transports: stdio (default) and streamable HTTP, plus a Docker image
Available Tools

Available Tools

STL Manipulation Tools
STL Manipulation Tools

All STL tools load the full mesh into memory. Tools that change a model write a new file to the server's temporary directory, named after the input with a suffix such as _scaled, and return its path; the input file is not modified.

get_stl_info

Inspect an STL file without modifying it. Returns the bounding box, dimensions, center, vertex count, and face count.

{
  "stl_path": "/path/to/model.stl"
}
scale_stl

Scale a model uniformly with scale_factor, or per axis with scale_x, scale_y, and scale_z. When any axis value is given, unspecified axes stay at 1.0.

{
  "stl_path": "/path/to/model.stl",
  "scale_factor": 1.2
}
{
  "stl_path": "/path/to/model.stl",
  "scale_x": 1.2,
  "scale_y": 1.0,
  "scale_z": 1.5
}
rotate_stl

Rotate a model around the X, Y, and Z axes, in degrees. Omitted axes default to 0.

{
  "stl_path": "/path/to/model.stl",
  "rotate_x": 0,
  "rotate_y": 0,
  "rotate_z": 90
}
translate_stl

Move a model along the X, Y, and Z axes, in millimeters. Omitted axes default to 0.

{
  "stl_path": "/path/to/model.stl",
  "translate_x": 10,
  "translate_y": 5,
  "translate_z": 0
}
extend_stl_base

Add solid geometry underneath the model to raise and widen its base. extension_inches is in inches and is converted to millimeters (25.4 mm per inch).

{
  "stl_path": "/path/to/model.stl",
  "extension_inches": 0.25
}
merge_vertices

Merge vertices closer together than tolerance (millimeters, default 0.01). This can close small gaps and slightly simplify the mesh.

{
  "stl_path": "/path/to/model.stl",
  "tolerance": 0.01
}
center_model

Move the model so the center of its bounding box is at the origin (0, 0, 0).

{
  "stl_path": "/path/to/model.stl"
}
lay_flat

Find the model's largest flat face and rotate the model so that face rests on the XY plane (Z = 0). Works best on models with a clearly dominant flat face.

{
  "stl_path": "/path/to/model.stl"
}
modify_stl_section

Apply a scale, rotation, or translation to one section of a model: the top, bottom, or center third of its bounding box, or a custom box. value_x, value_y, and value_z are scale factors, degrees, or millimeters depending on transformation_type.

{
  "stl_path": "/path/to/model.stl",
  "section": "top",
  "transformation_type": "scale",
  "value_x": 1.5,
  "value_y": 1.5,
  "value_z": 1.5
}

A custom section requires all six bounds:

{
  "stl_path": "/path/to/model.stl",
  "section": "custom",
  "transformation_type": "rotate",
  "value_x": 0,
  "value_y": 0,
  "value_z": 45,
  "custom_min_x": -10,
  "custom_min_y": 0,
  "custom_min_z": -10,
  "custom_max_x": 10,
  "custom_max_y": 20,
  "custom_max_z": 10
}
generate_stl_visualization

Render an SVG with front, side, top, and isometric views of a model. width and height set each view's size in pixels (default 300).

{
  "stl_path": "/path/to/model.stl",
  "width": 400,
  "height": 400
}

The SVG is a simplified schematic, not a photorealistic render.

Printer Control Tools
Printer Control Tools
counterpart_print_record

Use list_jobs: true to discover the retained job IDs before selecting an older job_id. Latest-job reads discover newer dispatches made by another MCP process. The process that authorized dispatch owns report writes while it is alive; after it exits, a restarted observer can take over from the saved record. Concurrent passive MCP sessions read the same disk evidence without overwriting the active recorder. Camera bytes appear once, in structuredContent, when include_frames: true.

Read the flight record of a job this server dispatched, without contacting the printer. Firmware finished means the printer finished its commands; it does not verify the physical object.

{"job_id":"optional saved record UUID", "include_frames":false}

Omit job_id for the latest job on the configured printer; ordinary printer target overrides select another saved printer. The result has contract: "counterpart/1", status: "recorded" | "unavailable", an optional version-1 record, and separate physical evidence. Bambu records allowlisted native report fields; other adapters retain their existing normalized observations, without inventing fields their firmware/adapter does not expose. A record is established at the existing send-authorization boundary, so a lost transport/helper reply still leaves the exact hash/mapping with dispatch.outcome: "unconfirmed". A successful transport reply marks it accepted; a matching active firmware report marks it observed-active. These outcomes do not verify physical success or authorize a retry. The record retains the inspected artifact SHA-256, selected plate/hash, filament mapping/materials, timestamped allowlisted state/error/stage/AMS/temperature changes, latest state, truncation count and camera metadata. Printer names, hosts, serials, credentials, arbitrary report text and URLs are excluded; the target and dispatched job identity are hashed. Raw unknown fields remain unknown; AMS remain: -1 is not empty. After an active report has been seen, firmware terminal reports freeze the job record so later cooling does not evict its failure evidence. Returned task/subtask execution IDs are hashed. A changed execution ID or an observed ended-to-active reprint invalidates current-progress evidence durably (a bounded one-byte marker), including same-filename reprints; explicit archived reads keep the original evidence. History before this feature or outside retained/connected observations is unavailable, not reconstructed by contacting the printer.

Storage is private (directory 0700, files 0600), survives MCP restart, and is capped at ten jobs, 1 MiB/2048 report changes per job, a 64 KiB visual-observation sidecar, and 32 JPEGs of at most 512 KiB each. At most four images are returned per request. Older changes/jobs are removed; droppedReports, droppedFrames and skippedCheckpoints disclose gaps. COUNTERPART_RECORD_DIR is a trusted server environment override, never a tool-selected filesystem path. Storage failure warns on stderr and marks a record volatile; diagnostics never authorize printing, resume or another mutation.

While the client monitors counterpart_print_progress, existing reports trigger bounded asynchronous preparation-frame candidates (up to three stage changes), a first-layer frame, a completed-first-layer follow-up when layer 2 is observed, then a snapshot at crossed ten-layer milestones and height fractions (5%, 30%, 60%, 90%). The 32-frame ring preserves baseline/first-layer evidence and the latest recorded empty-footprint anomaly. There is no additional status polling or autonomous watcher. Without a monitoring client, known layer geometry, a matching active job and a usable existing camera source, no physical verdict is inferred. Skipped heights are not backfilled. Each frame binds its ID, actual report layer/time, expected sliced Z, capture receipt/acquisition time and image SHA-256. Image acquisition must be at or after its associated report boundary; an active stream waits for a newer frame when its cached frame predates that boundary. Old cached frames, a layer/state change during acquisition, and bounded camera failures are marked unavailable. A stable reported layer is not a hardware-synchronized shutter. include_frames:true reads saved JPEG base64 from disk; it does not open a camera. Expected geometry is the selected 3MF plate's or inspected standalone G-code snapshot's sliced layer Z and extrusion-path XY bounds, including swept extrema for G2/G3 XY arcs, not a calibrated camera silhouette or measured flow. Oversize/unsupported G-code or missing layer reports leave geometry/correspondence unknown.

physical.status is unknown, consistent, suspect_no_growth or suspect_no_extrusion, independently of firmware state. Without a usable client visual observation or calibrated height measurements it remains unknown, including after FINISH. When physical.assessment is present, the client worker should fetch its frameId and any useful referenceFrameIds with counterpart_print_record using frame_format:"images" and optional frame_ids (at most four). This returns normal MCP image content exactly once, indexed by imageContentIndex in frame metadata. Image format defaults to compact view:"evidence"; omittedReports/omittedGeometryLayers disclose omitted journal detail. view:"record" retains the full forensic record. The request includes the selected sliced footprint bounds, layer/height and explicit visibility/deposition criteria.

The client vision worker then calls counterpart_print_assess with:

{"job_id":"saved job UUID","artifact_sha256":"saved dispatch hash","frame_id":"saved frame UUID","image_sha256":"saved JPEG hash","visibility":"clear","footprint_visible":true,"deposition":"absent","attempted":true}

The hashes/IDs must match the saved job and image. visibility is clear|dark|occluded|out_of_view|unknown; deposition is absent|present|unknown. Set attempted only when the frame follows attempted object deposition, and footprint_visible only when sufficient expected deposition area can be judged. Optional reference_frame_id, reference_visibility and reference_empty provide empty-bed context. A clearly visible empty footprint after attempted printing is sufficient for suspect_no_extrusion; no reference is required. A lowered, dark or occluded reference is not proof and does not suppress a clear direct observation. Dark/occluded/unlocatable current evidence stays unknown. Merely visible material does not verify height, coverage or final success.

This tool writes only bounded local visual observations (idempotently) and has no printer/camera I/O, model call or control. Observations live separately from the single-writer telemetry journal, so a worker process cannot overwrite live reports. Their result survives MCP restart and firmware FINISH. A suspect_no_extrusion warning stays active for the job through later unknown/dark/occluded observations and FINISH; only a later clear present observation with a visible footprint at a higher layer may supersede it (without proving final success). It is the first structured progress problem, with the observed layer (physical.observedLayer) and separate wording after firmware completion. A first-layer unknown observation still permits a new assessment at the crossed ten-layer checkpoint (10, 20, …), subject to fresh reports, available geometry and camera visibility. Image interpretation is the client worker's responsibility: the MCP does not contain an image classifier or pretend pixel change proves extrusion. Clients must consume pending assessments and should never announce a first layer is down from a counter alone. Installing these backend tools alone does not add that worker loop to an older client.

A worker may also fetch the images/geometry and pass up to four calibrated height measurements to this read tool:

{"measurements":[
  {"frameId":"saved frame UUID", "visible":true, "observedHeightMm":24, "uncertaintyMm":0.5, "method":"calibrated-height"},
  {"frameId":"another saved frame UUID", "visible":true, "observedHeightMm":24, "uncertaintyMm":0.5, "method":"calibrated-height"}
]}

The MCP validates the saved frame identities/times and evaluates these client-supplied measurements; it runs no vision model. Two visible, sufficiently separated expected heights can support consistency, or an unchanged short observed height can support suspect_no_growth. Occluded, out-of-view, uncalibrated, uncertain, stale or contradictory evidence stays unknown. consistent concerns height in those frames only; it does not verify final shape, strength or print success. The assessment returns frame IDs and explicit limitations and is computed without altering the record. There is no automatic stop, pause, resume, model call or printer-setting change.

Sensor limits: Bambu Studio v02.08.02.61 declares P1S lidar calibration unavailable, X1 Carbon lidar calibration available, and H2D calibration/wrapping capabilities. These are capability/configuration facts, not deposited-height measurements. Studio parses xcam detection options and live support bits and AMS air-print capability with firmware exceptions. This feature records reported evidence; it never enables a detector or assumes a capability from a model name.

Validation is offline replay and mocked transports only. No real-printer physical-success claim is made.

Every printer tool accepts host, port, type, and api_key, and Bambu printers also use bambu_serial and bambu_token. Omitted values fall back to PRINTER_HOST, PRINTER_PORT, PRINTER_TYPE, API_KEY, BAMBU_SERIAL, and BAMBU_TOKEN. Keep keys in the server configuration rather than passing them in calls.

What each call does depends on the backend; see printer backend setup for the exact API routes.

Every print start and positive heating command, on every backend, goes through a safety gate: the server inspects the exact G-code it will start, checks each heater target against hardware and material ceilings, and checks that the printer is ready. It does not ask for confirmation or for a bed check: the client's own print action is the approval. Turning a heater off (temperature: 0), pause_print, and cancel_print are never gated. resume_print reheats and moves the printer, so it only resumes a job this server inspected and started. It asks a person first only when the printer cannot hand the file back for re-reading.

get_printer_status

Read the printer's current status. The response is the backend's own status data: Bambu returns temperatures, job state, progress, layers, time remaining, and AMS data; OctoPrint returns printer state and temperatures; Klipper returns the Moonraker host state only.

{
  "type": "klipper",
  "host": "192.168.1.50",
  "port": "7125"
}
list_printer_files

List the files stored on the printer or its host software. On Bambu printers it lists the cache/, timelapse/, and logs/ directories.

{
  "type": "octoprint",
  "host": "192.168.1.100"
}
upload_gcode

Upload G-code to the printer, and optionally start it. Pass gcode_path for a local file, or gcode with the content (or a local path). filename defaults to the basename of gcode_path; when printing, use a plain filename so the started file is exactly the uploaded one.

{
  "type": "klipper",
  "host": "192.168.1.50",
  "port": "7125",
  "gcode_path": "/path/to/benchy.gcode",
  "print": true,
  "material": "PETG"
}
  • Without print, the file is only uploaded and nothing is inspected or started.
  • With print: true, the exact uploaded bytes are inspected first (every S and R heater target, tool changes, and hardware and material ceilings), and the printer's state is checked before the job starts.
  • Printing needs a declared material: slicer metadata in the file (; filament_type = PLA) or the material argument, which must not contradict the file.
  • On Bambu printers, files go to cache/ over FTPS, and printing also needs the model (bambu_model or BAMBU_MODEL). Automatic printing after upload supports .gcode only; print .3mf projects with print_3mf.
  • The result's jobName is the remote file name. counterpart_print_progress reports the same name as job.name while that job runs.

Read the rest of the 3D Printer README on GitHub

Questions about 3D Printer

What is the 3D Printer MCP server?

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. 3D Printer is maintained by DMontgomery40 on GitHub at DMontgomery40/mcp-3D-printer-server, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the 3D Printer MCP server?

Add 3D Printer to your AI app's MCP config with the command npx -y mcp-3d-printer-server. In Claude Code, run claude mcp add --transport stdio 3d-printer-server -- npx -y mcp-3d-printer-server. To run 3D Printer this way you need Node.js installed.

Does 3D Printer need an API key?

The registry lists no required keys for 3D Printer. Check the 3D Printer README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is 3D Printer an official MCP server?

No. 3D Printer is a community server maintained by DMontgomery40. Community servers can be excellent; read the code and the open issues before you give 3D Printer access to company data.

What license is 3D Printer under?

3D Printer is released under the GPL-2.0 license, according to its GitHub repository. The license covers the code of 3D Printer; the service it connects to has its own terms.