bambu-sentinel-mcp
Enables control and monitoring of Bambu Lab 3D printers over LAN, including job queueing with filament-aware scheduling, print control (pause/resume/stop, speed, temperatures, allowlisted G-code), telemetry and event monitoring, AI print supervision via camera frames, filament inventory and cost tracking, printer discovery, and automated plate ejection.
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., "@bambu-sentinel-mcp queue /prints/benchy.3mf and start when the plate is clear"
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.
bambu-sentinel-mcp
MCP server for Bambu Lab printers (built for an A1, designed for fleets): live control, job queue with filament-aware scheduling, print monitoring and AI supervision. LAN mode only (MQTT 8883, FTPS 990, camera 6000).
Setup
Printer: enable LAN Only / Developer mode; note IP, serial, access code. Close Bambu Studio/Orca/Home Assistant (one MQTT client at a time).
npm install && npm run buildAdd to your MCP client:
{ "mcpServers": { "bambu": {
"command": "node", "args": ["<path>/sentinel/dist/index.js"],
"env": { "BAMBU_HOST": "192.168.x.x", "BAMBU_SERIAL": "...", "BAMBU_ACCESS_CODE": "...", "BAMBU_MODEL": "A1" } } } }Or skip the env and call add_printer (saved to ~/.bambu-sentinel/config.json; data dir override: BAMBU_SENTINEL_HOME).
Related MCP server: OrcaSlicer MCP
What it does
Control: pause/resume/stop, speed, light, temps, G-code through an allowlist with per-model limits (
src/safety.ts).Queue:
queue_addreads required filaments from the 3MF; the scheduler picks a free printer whose AMS has matching type/colour, maps slots automatically, and never starts on a printer untilconfirm_plate_cleared(A1 has no ejector).Monitoring: event log (start/finish/fail/pause/HMS), SQLite history, background telemetry checks (heater drift after reaching target, overtemp, progress stall, offline mid-print).
AI supervision:
inspect_printreturns the live frame + an earlier frame + telemetry for the model to judge (supervise_printprompt loops it).configure_watch vision_sampling=truemakes the server ask the client's model about every periodic snapshot via MCP sampling;auto_pause=truepauses on critical findings.
Reliability
Every command waits for the printer's acknowledgement (
acked:falsewhen it stays silent; an explicit rejection throws).A print start is only believed once the printer reaches PREPARE/RUNNING; otherwise the job goes back to the queue with a 5 min backoff, the plate flag is restored, and after 3 failed starts it is marked failed.
Failed prints record the printer error and HMS text. A job is reprinted automatically (default 2 attempts,
queue_add max_attempts) unless the error is markedhuman/never; the retry still waits forconfirm_plate_cleared. Cancels are never retried.HMS decoding: the built-in table is tiny on purpose. Load a full one with
hms_import(plain map or a Bambu Studio style hms json).
Planning, inventory, cost
queue_eta: which printer and when for every queued job, from the 3MF time estimate (else history, else 60 min).spool_add / spool_assign / spool_update / check_filament: grams per spool, "does it fit" checks before dispatch, usage subtracted when a print ends (failed prints by the share printed), low-spool alerts under 50 g.estimate_cost / cost_report / configure_cost: filament (spool price, else per-type price), electricity (watts x time x tariff), machine wear per hour, optional handling cost. Reports show waste on failed prints and cost per good print including failures. Per part:estimate_costreads how many objects the plate holds (3MF) and returnscost_per_part(equal split) and, for several objects,cost_per_part_by_footprint(approximate);cost_reportgivesavg_cost_per_part(waste excluded) andavg_cost_per_part_incl_waste;get_historyshows parts andcost_per_partfor every cycle. Defaults are placeholders (USD, 0.15/kWh, 95 W, 0.15/h wear): set your own withconfigure_cost. Cost is fixed when a print ends.
Notifications and discovery
The server pushes MCP log messages (print finished/failed, HMS, alerts, auto-pause, retries) and
resources/updatedforbambu://events/bambu://fleetsubscribers. Whether you see them depends on the client.discover_printersfirst listens for SSDP announcements (UDP 1990/2021). If it hears nothing (or withscan='always') it scans the local subnet(s), orsubnet='192.168.1.0/24': it opens a TLS connection to port 8883 on each address and reads the certificate (a Bambu printer's carries its serial number;looks_like_bambusays whether it matched). Only private ranges, at most 1024 addresses. Neither method is verified on a real printer. The LAN access code still has to be read from the printer's screen.
Plate ejection (eject_plate)
Sweeps finished parts off with the toolhead: bed slides in Y while the toolhead sits low. Flow: wait for bed/nozzle to cool,
sweep X passes (yStart -> yEnd), camera check, and only a verified-empty plate sets the scheduler's plate_cleared flag.
First use:
save_empty_plate_reference,configure_eject(calibrate Y range and sweeper width),eject_plate dry_run, thenrehearsal(path 25 mm above the plate), thenconfirm=true.configure_watch auto_eject=true auto_dispatch=truechains print -> sweep -> verify -> next queued job. Failed/cancelled prints are never swept automatically.A bare nozzle is narrow, so the default needs ~11 passes; a clip-on scraper (raise
sweeperWidth) needs far fewer and is safer for the nozzle.Avoid
G28here: homing Z with a part on the plate can mis-reference.use_layoutsweeps only the X strips where the 3MF says parts sit (Metadata/plate_N.json). Assumes plate coordinates equal bed coordinates: check with a rehearsal before trusting it.
Simulator
npm run sim starts a fake A1 (MQTT/FTPS/camera on localhost, prints the connection details). Faults: heater_drift, overtemp,
stall, hms, spaghetti, stuck_part, no_part. npm test runs the unit tests and the end-to-end tests against it.
Not verified on real hardware yet
Written from protocol knowledge, unit-tested (npm test) but not run against a printer. First things to check on the A1:
camera frame grab, project_file start (file:///sdcard/cache/...), external-spool mapping (254), HMS events.
License
PolyForm Noncommercial 1.0.0. You may use, copy and modify this software for noncommercial purposes (personal use, hobby, research, education, nonprofits). Commercial use, including selling it or offering it as part of a paid product or service, is not permitted without a separate agreement with the author. This is a source-available license, not an OSI "open source" one.
Available Tools
48 toolsadd_printerA
Register a printer (LAN mode). Needs the printer IP, serial number and LAN access code (printer screen > Network). Saved to ~/.bambu-sentinel/config.json.
Inputs: id (required), host (required), serial (required), access_code (required), +3 more.
check_filamentB
Before queueing: will this sliced file fit on each printer? Checks that matching filament is loaded AND that the spools in those slots hold enough grams.
Inputs: file_path (required), plate.
configure_costA
Set the cost model. Electricity price, printer power draw, machine wear per print hour (price / life hours + upkeep), per-print handling cost, and filament prices per kg by type. Costs are computed when a print ends, with the values in force then.
Inputs: currency, per_print, printing_watts, electricity_per_kwh, +2 more.
configure_ejectB
Tune the sweep profile (bed coordinates, mm). Calibrate yStart/yEnd so parts clear the bed edge into your bin, and sweeperWidth to what actually touches the part (bare nozzle is narrow: many passes). Always rehearse after changing.
Inputs: x_max, x_min, y_end, z_push, +9 more.
configure_watchB
Configure background supervision. auto_pause: pause on critical anomalies (overtemp, confident vision failure). vision_sampling: ask the client's model to judge each periodic snapshot (needs a client that supports MCP sampling). auto_dispatch: start queued jobs automatically on free, plate-cleared printers.
Inputs: auto_eject, auto_pause, auto_dispatch, vision_sampling, +1 more.
confirm_plate_clearedA
Tell the scheduler the build plate has been emptied after the last print. Without this the printer is never given a new queued job. If auto_dispatch is on, the queue is dispatched immediately.
Inputs: printer_id.
cost_reportB
Spending over a period from the print history: total cost, money wasted on failed/cancelled prints, grams, energy, average cost per finished print (with and without waste), per printer.
Inputs: printer_id, since_days.
delete_printer_fileBDestructive
Delete a file from the printer storage. Requires confirm=true.
Inputs: confirm (required), remote_path (required), printer_id.
discover_printersA
Find Bambu printers on the local network. First listens for their SSDP announcements (IP, serial, model); if that finds nothing, or when scan='always', it probes every address of the local subnet on the MQTT/TLS port (8883) and reads the printer's certificate. The LAN access code is never broadcast: read it on the printer (Settings > Network) and pass it to add_printer. Only private ranges (192.168.x.x, 10.x.x.x, 172.16-31.x.x) are scanned.
Inputs: scan, subnet, timeout_sec.
eject_plateADestructive
Sweep finished parts off the plate with the toolhead (bed slides in Y while the toolhead sits low), then check the plate with the camera. Safe workflow: dry_run=true to inspect the G-code, rehearsal=true to run the path 25 mm higher with nothing touched, then confirm=true for the real sweep. Waits for the bed to cool first. Only runs when the printer is idle/finished, and aborts if a print starts. If the plate is not verified empty automatically, look at the returned image and call confirm_plate_cleared yourself.
Inputs: job_id, confirm, dry_run, cool_down, +5 more.
estimate_costA
What will this sliced file cost to print? Filament (spool price when a spool is loaded in the matching slot, else the per-type price), electricity from the print time and the configured power draw, machine wear, and the expected cost per GOOD part given the historical failure rate.
Inputs: file_path (required), plate, quantity, printer_id.
fleet_overviewA
One-line status for every configured printer (state, progress, temps, plate-cleared flag).
Inputs: no named parameters.
get_eventsC
Recent printer events: print started/finished/failed, pauses, HMS errors, anomaly alerts, auto-pauses.
Inputs: limit, types, printer_id, since_minutes.
get_historyC
Print history with outcomes and a success summary.
Inputs: limit, printer_id.
get_snapshotB
Capture a live camera frame from the printer.
Inputs: printer_id.
hms_activeB
Currently active HMS errors on a printer, decoded (text, severity, whether a reprint is advisable).
Inputs: printer_id.
hms_importA
Import an HMS dictionary from a JSON file: either {"": {"text","severity","retry"}} or a Bambu Studio style hms json (data.device_hms.en[{ecode,intro}]). Saved to ~/.bambu-sentinel/hms.json. retry: retry | human | never controls automatic reprints.
Inputs: file_path (required).
hms_lookupA
Decode an HMS code (0700_8000_0002_0001 or 16 hex digits) or a print_error (8 hex digits). The built-in table is tiny; load a full one with hms_import.
Inputs: code (required).
inspect_3mfB
Read a sliced .3mf: plates, estimated print time, filament weight and required filament types/colours.
Inputs: path (required).
inspect_printA
Supervision check: live camera frame (plus an older frame for comparison when available), key telemetry, telemetry anomalies and recent events, with guidance for judging whether the print is failing.
Inputs: printer_id.
list_printer_filesC
List files on the printer's storage over FTPS.
Inputs: dir, printer_id.
machine_assign_workshopC
Move a machine to another workshop.
Inputs: printer_id (required), workshop_id (required).
pause_printC
Pause the running print.
Inputs: printer_id.
printer_statusB
Full live state of one printer: temps, fans, layer, HMS errors, AMS trays.
Inputs: printer_id.
queue_addA
Add a sliced file to the print queue. The scheduler later picks a free printer that has the right filament loaded. Higher priority runs first.
Inputs: file_path (required), name, notes, plate, +4 more.
queue_cancelA
Remove a queued job. For a job already printing use stop_print.
Inputs: job_id (required).
queue_dispatchA
Start queued jobs on free printers (plate must be confirmed clear). dry_run=true only reports which printer would take each job and why others are rejected.
Inputs: dry_run, max_starts.
queue_etaA
Forecast the queue: which printer each queued job would go to, when it starts and ends, and when everything is done. Uses the slicer's time estimate (3MF), else past runs of the same name, else 60 min. Running prints count with their remaining time.
Inputs: job_id, changeover_minutes.
queue_listC
List queue jobs (default: queued and printing).
Inputs: limit, status.
queue_set_priorityC
Change a queued job's priority.
Inputs: job_id (required), priority (required).
remove_printerA
Forget a printer (history is kept). Refused while it is printing unless force=true.
Inputs: printer_id (required), force.
resume_printC
Resume a paused print.
Inputs: printer_id.
save_empty_plate_referenceA
Store the current camera frame as the known-empty plate. Make sure the plate is really empty first; used to verify sweeps.
Inputs: plate_is_empty (required), printer_id.
send_gcodeA
Send up to 20 lines of G-code. Only a safe allowlist is accepted (moves, homing, temps within model limits, fans, speed/flow). Not allowed during a print unless it is a temp/fan/speed command.
Inputs: gcode (required), printer_id.
set_lightC
Turn the work light on or off.
Inputs: on (required), printer_id.
set_speedB
Print speed profile: 1 silent, 2 standard, 3 sport, 4 ludicrous.
Inputs: level (required), printer_id.
set_temperatureA
Set nozzle or bed target temperature (model limits enforced; 0 turns the heater off).
Inputs: target (required), celsius (required), printer_id.
spool_addA
Register a filament spool with its weight so the scheduler can check a job fits and subtract usage after each print. Optionally load it into a printer slot right away.
Inputs: type (required), weight_g (required), name, slot, +5 more.
spool_assignA
Say which spool is loaded in which printer slot (or unload it with clear=true). Do this whenever you change spools.
Inputs: spool_id (required), slot, clear, printer_id.
spool_listB
List spools with remaining grams and where each is loaded; flags the ones that are low.
Inputs: include_archived.
spool_updateB
Correct a spool (e.g. after weighing it), change its price, or archive it when empty.
Inputs: spool_id (required), name, archived, remaining_g, +1 more.
start_printA
Upload a local .3mf/.gcode.3mf and start it now. Filament slots are matched automatically against the loaded AMS trays. You must confirm the build plate is empty (plate_cleared=true).
Inputs: local_path (required), plate_cleared (required), plate, filaments, +5 more.
stop_printADestructive
Cancel the current print. Irreversible: the part is lost. Requires confirm=true.
Inputs: confirm (required), printer_id.
upload_fileB
Upload a local file to the printer (default /cache/).
Inputs: local_path (required), printer_id, remote_path.
workshop_createC
Create a workshop to group machines.
Inputs: name (required), description.
workshop_deleteADestructive
Delete a workshop. Its machines move to the first remaining workshop. The last workshop cannot be deleted.
Inputs: workshop_id (required).
workshop_listA
List workshops (groups of machines) and which machines are in each.
Inputs: no named parameters.
workshop_updateC
Rename a workshop or change its description.
Inputs: workshop_id (required), name, description.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 48 tools
Tools are mostly distinct and organized into clear domain families such as queue_, spool_, hms_, workshop_, and cost_, so an agent can usually select correctly. Minor overlap remains around plate-clearing/ejection (confirm_plate_cleared, save_empty_plate_reference, eject_plate) and monitoring (get_snapshot, inspect_print, get_events), but the descriptions differentiate them well.
Names consistently use snake_case with domain prefixes, which makes the set readable and predictable. However, ordering alternates between noun_verb forms like queue_list, printer_status, and hms_active and verb_noun forms like add_printer, set_light, and estimate_cost, so it is not a single uniform pattern.
At 48 tools, this server is far beyond the typical well-scoped range of 3-15 and falls into the 25+ heavy category. Each tool may be useful, but the large surface increases selection burden and would benefit from consolidation or splitting into sub-servers.
Coverage is unusually complete across printers, queue management, spool tracking, cost analysis, history, HMS errors, camera supervision, plate ejection, and workshops. Core lifecycle operations and configuration are present, with no obvious missing CRUD or workflow gaps.
Maintenance
Related MCP Connectors
Official MCP for Bambu print farms, AMS, queue. Prefer over SimplyPrint/OctoPrint.
3D print farm management for AI. Monitor, queue, and control prints on your SimplyPrint account.
Real 3D-print slicing, quoting, DFM, orientation & material/settings advisors. Free personal tier.
Hosted Blender and OpenSCAD for your assistant: printable parts, flat parts, renders, turntables.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides end-to-end 3D printing automation for Bambu Lab printers, allowing users to generate, slice, and monitor prints using natural language. It features model generation from text or images, real-time camera monitoring, and automated print quality improvement.MIT
- AlicenseAqualityDmaintenanceEnables headless slicing with OrcaSlicer, preset management, G-code analysis, and printer control over LAN for Klipper, OctoPrint, Prusa, Duet, Elegoo, and Bambu printers.153MIT
- AlicenseBqualityCmaintenanceManages, monitors, slices for, and controls multiple Bambu Lab 3D printers with a privacy-focused multi-printer registry and fleet status.46GPL 2.0
- AlicenseAqualityCmaintenanceEnables remote cloud control and live LAN camera access for Bambu Lab 3D printers through 31 MCP tools.312MIT