Bambi A1 MCP
Provides tools for Bambu Lab A1 3D printing workflows, including printer status and diagnostics, profile listing, slicing via Bambu Studio, preparing and submitting print jobs over LAN or Bambu Cloud, verifying active jobs, and pausing or canceling prints.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bambi A1 MCP Print /tmp/part.3mf over LAN and verify it starts; the spool and build plate are ready."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bambi A1 MCP
An open-source MCP server for Bambu Lab A1 printing. Slice with Bambu Studio, inspect an exact file snapshot, submit a print, and verify that the printer is actually running that job. Works with T3 Code and other clients that launch stdio MCP servers.
v0.2.7: the local printing workflow passed acceptance. MCP submitted an approved two-part PETG plate over signed LAN. Independent cloud telemetry matched that exact job through FINISH: 190/190 layers, 100%, zero print error, no HMS warnings, and both heater targets off. The operator inspected the finished parts and confirmed: “Print quality is great.” Bambu Studio slicing, live camera snapshots, and one LAN pause/resume cycle are also verified. See acceptance for the evidence and earlier failed tests.
Accepted limits: direct Bambu Cloud print submission remains experimental and fails on the tested runtime with HTTP 403 / internal blocking; cloud monitoring works. Physical cloud controls and cancellation remain unverified. Automatic spaghetti detection is deferred. The operator accepted these limitations for this release; none is presented as fixed or tested. For remote submission, use a nearby host over SSH; the LAN mechanism is verified, while an off-site SSH deployment has not been independently tested. See remote printing.
No additional MCP elicitation dialog is required. Your MCP client's own tool permissions still apply. The server validates the file, model, nozzle, filament and fresh printer state before dispatch. It does not clear faults or change printer modes.
v0.2.6 monitoring: the CLI watcher now emits important events instead of a full status report every minute. Normal progress stays quiet; optional milestones provide at most five intermediate updates. --until-event lets a host wait for background-task completion on an issue or print completion. LAN submission also bypasses the dependency's automatic -4030 retry: one attempted submission stays one attempt.
Install
Requires Node.js 24+, Docker, Bambu Studio, tar and unzip. The tested host is macOS with Docker's Linux/amd64 support. Linux x86-64 is supported by the wrapper but has not received the same physical acceptance test. Windows users must run inside WSL2. Other Bambu models are not supported by this release.
git clone https://github.com/chandraaditya/bambi-a1-mcp.git
cd bambi-a1-mcp
npm ci
npm run install:runtime
npm run setupThe runtime installer downloads FULU v1.0.0 and Bambu networking plug-in 02.05.02.58 directly from their publishers, verifies pinned SHA-256 hashes before extraction, and installs them privately outside the repo. A repeated run checks installed file integrity. These binaries are not redistributed in this package; their licenses remain with their publishers. Docker uses a pinned Ubuntu image.
Setup asks for the printer's LAN address. If Bambu Studio has exactly one saved printer, setup uses its serial and reads its saved LAN access code at runtime. Otherwise pass --serial. If Studio has no access code, supply a private local file using --access-code-file; do not put the code in a shell argument, Git or chat.
npm run setup -- --host PRINTER_ADDRESS --serial PRINTER_SERIAL \
--access-code-file /private/path/access-code --country USSetup defaults to an A1, 0.4 mm nozzle and textured PEI; use --nozzle and --bed to match your printer. Linux installations also need --slicer /absolute/path/to/BambuStudio. --studio-config and --runtime override discovery. npm run setup -- --help lists options. Setup refuses to overwrite existing configuration.
For cloud monitoring, sign in to Bambu Studio, then:
npm run import:session
npm run doctor -- --connect --lan --cloudWithout cloud login, run npm run doctor -- --connect --lan. These commands do not print. Studio's encrypted session is copied into a separate private directory; Studio's own settings stay intact. Expired sessions require signing in and importing again.
Related MCP server: bambu-mcp
Connect an MCP client
Setup writes ~/.config/bambi-a1-mcp/mcp-client.json with the actual absolute paths for your machine. Copy its server entry into your MCP client configuration. The generic form is:
{
"mcpServers": {
"bambi-a1": {
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/bambi-a1-mcp/src/server.mjs"]
}
}
}For T3's Codex harness (registration helper requires Python 3.11+):
python3 scripts/install-codex.py --node /absolute/path/to/nodeThis backs up Codex's configuration, registers this checkout and disables the two known duplicate Bambu MCP entries. Reload the T3 session afterward. Other clients can use the generated JSON entry. BAMBI_CONFIG selects a different private configuration file.
v0.2.2 lifecycle fixes: the CLI forwards BAMBI_CONFIG and other environment configuration to its MCP child. Interrupting the CLI or closing the harness input now closes the MCP server and networking bridge. This only closes the client connection; it never pauses or cancels a printer job.
The package also exposes bambi-a1-mcp, bambi, bambi-setup and bambi-install-runtime executable entry points when installed using npm from GitHub or a release tarball. It is not currently published to the npm registry.
Print workflow
Prepare:
prepare_jobcopies the source, optionally slices it, and inspects a read-only snapshot bound to a SHA-256 hash. It never prints.Submit once:
print_jobtakes the prepared ID and an explicit route. It validates fresh telemetry immediately before dispatch.Verify:
verify_jobchecks fresh telemetry against the exact expected job name and saves observed progress. Layer 0 means preparation; advancing layers establish printing. A previous completed job is never treated as this job's success.
For an already sliced 3MF, the MCP arguments are:
{"file_path":"/absolute/path/part.3mf","plate_index":0}Then:
{"job_id":"ID_FROM_PREPARE_JOB","route":"lan"}The same job ID can be verified through route: "cloud", even though submission used LAN. A missing/unavailable matching report never triggers another submission. Repeating a submitted job ID returns its stored state. To intentionally print another copy, prepare a new job after checking the printer and clearing the bed.
Omit ams_mapping for one external spool. For AMS Lite, map every project filament position to a physical slot: "ams_mapping": [0, 2]. Slots are zero based; -1 is allowed only for unused project positions. Multi-material external-spool jobs are refused. Plate indices are also zero based.
Filament type is validated against printer telemetry. The operator must confirm the actual spool and clear build plate before instructing a print; telemetry cannot establish those physical facts.
Recover after a cancelled or failed job
An A1 can retain FAILED after a job has ended. That describes the previous job; it does not by itself establish an active machine fault. printer_status returns recovery.eligible and an explanation. An eligible report still requires operator confirmation that the plate has been cleared and a request to start a new print. No reboot or automatic fault clearing is required by this recovery workflow.
Call print_job with the prepared, unsubmitted job ID and the exact previous job name from fresh status:
{"job_id":"ID_FROM_PREPARE_JOB","route":"lan","recovery":{"previous_job_name":"NAME_FROM_PRINTER_STATUS","bed_cleared":true}}Or use the CLI, which calls that same MCP tool:
bambi print JOB_ID --route lan --recover-from 'NAME_FROM_PRINTER_STATUS' --bed-clearedRecovery requires fresh A1 telemetry with gcode_state: FAILED, print_type: idle, no active stage (stg_cur: 255), both heater targets off, zero print_error, and an empty HMS list. An optional newer job-state field must also be terminal or idle. All identity, nozzle, material and file checks remain in force. The previous job identity is checked again immediately before transmission; a changed job or new fault blocks submission. This neither resumes nor replays the failed job. The recovery acknowledgement is recorded in the new job's journal. A dispatch timeout still produces an unknown, non-replayable outcome.
If preflight fails, the job remains prepared and get_job includes last_preflight_error. Resolve that condition and inspect fresh status before calling again. Do not invent a cleared-bed confirmation or acknowledge an active fault merely to get a submission through.
Pause, cancel and resume outcomes
control_print accepts action: "pause" or "cancel", an explicit route, and an optional managed job_id. Providing the job ID binds the operation to that print and records last_control in its durable journal. Without it, the operation targets the freshly observed named active job. Control uses the same operation lock as submission and verification, and rechecks the target inside the connected transport immediately before publishing. Active HMS warnings do not prevent an operator from pausing or stopping.
action: "resume" requires an explicit managed job_id. Both fresh checks must show that exact job paused, with print_error: 0 and an empty HMS list. Resume is an explicitly requested operation, never an automatic response to a pause or error. It does not clear faults or accept missing fault telemetry.
{"job_id":"ID_FROM_PREPARE_JOB","route":"lan","action":"pause"}Inspect confirmed, not merely ok or a successful tool response:
Status | Meaning |
| Target/preflight checks failed; no command was attempted. |
| Fresh telemetry already showed that target paused; nothing was sent. |
| Transport accepted the command, but execution is not confirmed. |
| A command was attempted and transport failed; readback did not confirm the desired state. No automatic retry occurs. |
| Fresh telemetry for the same job confirms the desired state. This does not establish which actor/event caused it. |
The result includes before/after observations when available, transport/verification errors, and next steps. A missing or changed-job report never establishes success. If remote control cannot be confirmed, use the printer screen or Bambu Handy. LAN pause and resume passed live acceptance in v0.2.4. Cloud control and cancellation have not passed live acceptance. Before a LAN or cloud control, the MCP sends a read-only calibration-results query and requires a matching successful reply. If the initial query encounters certificate bootstrap failure, it completes the vendor certificate exchange and repeats only that query once. It then rechecks the job before sending the physical control once. Cold-session readiness can add roughly 13 seconds; this is not a guaranteed emergency-stop latency.
Bambu Studio slicing
An STL needs explicit process and filament profiles. Use list_profiles to find your installed profiles, then:
{
"file_path":"/absolute/path/model.stl",
"process_profile":"/absolute/path/0.20mm Standard @BBL A1.json",
"filament_profiles":["/absolute/path/Bambu PLA Basic @BBL A1.json"]
}For an unsliced 3MF, also set slice: true. A prepared, sliced 3MF is used unchanged unless slicing was explicitly requested. profilesRoot can point list_profiles to an extracted Linux BBL profile directory. The configured slicer must contain matching A1 presets.
Command-line use
The CLI calls the same MCP tools, without an elicitation-capable client:
npm run bambi -- prepare /absolute/path/part.3mf
npm run bambi -- print JOB_ID --route lan
npm run bambi -- verify JOB_ID --route cloud
npm run bambi -- watch JOB_ID --route cloudwatch polls through MCP in a local process every 60 seconds by default, without calling an LLM. It emits JSONL events at startup, on a new issue, when an issue clears, and on matching completion/failure. Changing ETA or layer count does not produce output. Repeated identical HMS warnings are suppressed. Observation failures produce one alert per outage; the process retries only status reads with bounded backoff, then reports recovery. It never prints, pauses, resumes or cancels.
For an agent host that wakes on background-task completion:
bambi watch JOB_ID --route cloud --until-eventStart that command once as a background task, then let the host wait for it. It exits on matching completion (0), a printer issue or failed print (2), or an observation failure/timeout/unsubmitted job (1). Inspect its final event before acting; an observation failure does not mean the print failed. An issue exit stops monitoring, so explicitly restart a read-only watch after handling the event. Do not schedule an LLM turn every minute to inspect the process or log.
Without --until-event, the watcher continues through issues and observation outages until matching completion/failure or its 12-hour timeout. --notify milestones adds at most five intermediate progress events; --notify all emits every observation for diagnostics. Output is an event envelope with event, job_id, state and observation, rather than the pre-0.2.6 full job dump. Latest detailed progress remains available through get_job/verify_job.
The watcher itself does not invoke an LLM or configure wakeups. Host background-task support is required for an automatic agent wake; an independently active harness goal may still continue on its own. Neither a quiet watch nor a long remaining-time estimate proves physical print quality: camera inspection and operator feedback are separate. status, job and doctor are also available. Run npm run bambi -- --help for options.
The ten MCP tools are diagnose, list_printers, printer_status, camera_snapshot, list_profiles, prepare_job, get_job, print_job, verify_job and control_print. Controls are pause, cancel and guarded resume.
camera_snapshot returns one live JPEG as MCP image content, with an optional timeout_ms (1,000–30,000; default 15,000). It requires LAN camera access from the MCP host, uses the configured printer credentials, and does not change lights or move hardware. An agent can inspect this frame for bed clearance, detachment or spaghetti; the tool does not automatically classify defects or pause a print. A camera timeout is reported as an error, never as an empty or healthy bed. Use telemetry and visual evidence together: printError: 0 does not establish physical print quality.
Remote printing
Verified submission mechanism: a nearby host. Leave an installed Mac or compatible Linux x86-64 host on the printer's LAN. Connect your remote MCP client using SSH stdio through your existing SSH/VPN setup:
[mcp_servers.bambi-a1]
command = "/usr/bin/ssh"
args = ["-T", "YOUR_NEARBY_HOST", "/absolute/path/to/node", "/absolute/path/to/bambi-a1-mcp/src/server.mjs"]
startup_timeout_sec = 30
tool_timeout_sec = 600Transfer your model to that host first; paths in tool calls refer to the host running the server. Use route: lan there. Slicing also runs there, so Bambu Studio must be installed there. SSH/VPN access is configured by the operator; setup does not enable remote login or expose ports. The LAN printing mechanism is physically verified; an off-site SSH deployment has not been independently tested in this release.
The Docker runtime is x86-64. A Raspberry Pi requires a separately configured compatible emulation environment and has not been tested; do not assume a native ARM plug-in exists. Apple Silicon works through Docker's amd64 support in the tested setup.
Bambu Cloud: cloud authentication, discovery, fresh status and verification work without LAN sockets. Direct file submission uses net.start_print, but the tested service rejected task creation after upload. Neither replacing connection_type: "cloud" with an empty value nor a successful upload established printing. The exact vendor rejection rule is unknown. The cloud route is retained for diagnosis and future compatibility work; it never silently falls back to LAN. Do not rely on it for print submission yet.
Reliability and limits
Job files, credentials, encrypted sessions and diagnostics live outside the package in private directories.
Durable job records and a shared-directory operation lock prevent duplicate dispatch by this server across repeats/restarts. This is not a printer-wide lock across other slicers.
A timeout after dispatch is recorded as
unknown, never automatically retried.verify_jobcan resolve it from a matching live job.Each print call publishes at most once, including the local publish-failed error (
-4030). The runtime avoids the dependency's automatic print-retry wrapper. Inspect an uncertain outcome before explicitly preparing another job; there is no automatic transport fallback.Faults are reported, not cleared. A crash can leave a lock; inspect the live printer and process before removing it.
An earlier PLA hanger test failed at layer 33 after parts detached; its cause remains unproven. The Y-axis resonance/possible loose-belt warning was surfaced and left intact. The later PETG plate completed at 190/190 layers without reported faults, and the operator accepted its physical quality. Neither result establishes the outcome of every future print.
LAN reachability was intermittent during the live test: after printing started, new connections to port 8883 timed out from both macOS and Docker while FTPS 990 remained reachable. Cloud monitoring continued.
diagnosewithconnect_bridge: truereports separate host TCP probes; a reachable port alone does not prove protocol authorization. This network/firmware cause remains unresolved.Cloud service changes, firmware changes and expired sessions can still require maintenance. Pinned dependencies make the tested setup reproducible, not permanently immune to vendor changes.
Run npm test for offline tests. They cover MCP without elicitation, file/printer checks, exact job verification, ambiguous dispatch, idempotency, private setup and transport behavior. See diagnosis and live acceptance evidence. Contributions should preserve those guarantees and distinguish simulated tests from actual printer evidence.
GPL-2.0-only. Built on pinned bambu-printer-mcp libraries; see third-party notices. Independent project, unaffiliated with Bambu Lab.
Available Tools
10 toolscamera_snapshotARead-only
Read one live A1 camera frame over LAN for visual inspection of the bed and print. Returns a JPEG image; does not move the printer, change lighting or detect defects automatically. Requires LAN reachability from the MCP host.
Inputs: timeout_ms.
control_printADestructive
Explicitly pause, cancel or resume a freshly identified print, then verify its state. Resume requires managed job_id, a paused target and no printer faults or HMS warnings. Optional job_id for pause/cancel binds and journals the target. confirmed:false never establishes execution. Never resumes automatically, clears faults, retries or elicits approval.
Inputs: route (required), action (required), job_id.
diagnoseBRead-only
Check configured slicing, cloud login, LAN and bridge prerequisites. No printer motion.
Inputs: connect_bridge.
get_jobBRead-only
Inspect the durable job record and exact prepared file hash.
Inputs: job_id (required).
list_printersARead-only
List cloud-bound printers without returning tokens or serials.
Inputs: no named parameters.
list_profilesBRead-only
Find installed Bambu Studio machine, process and filament profile paths. Filter by name.
Inputs: search.
prepare_jobB
Snapshot and inspect a sliced 3MF, or slice STL/3MF using Bambu Studio. Does not print. STL requires process and filament profile paths. Use slice:true for an unsliced 3MF.
Inputs: file_path (required), slice, plate_index, process_profile, +2 more.
printer_statusARead-only
Read fresh printer identity, job, temperatures, AMS and errors through LAN or cloud.
Inputs: route (required).
print_jobADestructiveIdempotent
Print an explicitly prepared job using LAN or cloud with fresh printer checks. Direct execution; no MCP elicitation. Repeated job IDs are not dispatched twice. Optional ams_mapping uses zero-based AMS Lite slots; omit for one external spool.
Inputs: route (required), job_id (required), recovery, ams_mapping.
verify_jobCRead-onlyIdempotent
Verify a submitted job against fresh printer telemetry and save its observed progress. Exact job-name match required. Layer 0 is preparation. Never submits or retries a print. Optional route overrides the submission route, allowing cloud monitoring of a LAN print.
Inputs: job_id (required), route.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
The tools mostly cover clearly distinct stages: profile discovery, diagnostics, printer listing/status, camera capture, job preparation/inspection/verification, printing, and print control. There is some adjacency between printer_status, get_job, and verify_job around inspecting job/telemetry state, but the descriptions make their intended roles distinguishable.
Most tools follow a predictable verb_noun pattern such as list_profiles, prepare_job, verify_job, print_job, and control_print. The exceptions diagnose, printer_status, and camera_snapshot are readable but prevent a perfect consistency score.
Ten tools is a well-scoped size for a 3D printer management server. Each tool appears to serve a distinct lifecycle step, from discovery and diagnostics through preparation, printing, verification, and control.
The surface covers the core workflow: profiles, diagnostics, printer discovery/status, camera inspection, job preparation, job record inspection, verification, printing, and pause/cancel/resume control. Minor gaps exist around job history/cleanup or deeper AMS/environment controls, but core workflows are covered.
Maintenance
Related MCP Connectors
3D print farm management for AI. Monitor, queue, and control prints on your SimplyPrint account.
Official MCP for Bambu print farms, AMS, queue. Prefer over SimplyPrint/OctoPrint.
Real 3D-print slicing, quoting, DFM, orientation & material/settings advisors. Free personal tier.
OAuth account tools, image/video generation (Pro), Studio handoffs. No local vault access.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables secure local control of Anycubic Slicer Next and compatible printers, supporting slicing, 3MF/CAD operations, printer control, spool registry, and camera access through MCP tools.1MIT
- AlicenseAqualityCmaintenanceEnables LAN-based monitoring and control of Bambu Lab P2S/P1S printers, including confirm-gated print, pause, resume, stop, file upload, and slicing workflows.10MIT
- AlicenseAqualityCmaintenanceEnables LLM clients to slice, paint, and verify 3D prints through the installed slicer's command line for any installed Bambu printer, nozzle, and filament, with settings per object type. It never sends jobs to a printer.211MIT
- AlicenseNot gradedqualityBmaintenanceEnables an agent to inspect, slice, upload, start, and monitor jobs on a Moonraker/Klipper 3D printer end to end, using one JSON profile for machine-specific configuration. Built-in safety checks block unsafe starts such as incomplete G-code, nozzle mismatches, hot beds, or running jobs.MIT