Skip to main content
Glama
bambutler-mcp

bambutler-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BAMBUTLER_CONFIGNoPath to the config file (default: ~/.config/bambutler/config.json, macOS also ~/Library/Application Support/bambutler/config.json, Windows %APPDATA%\bambutler\config.json).
BAMBUTLER_RAW_GCODENoWhen set to 1, registers the raw G-code tools (send_gcode, home, set_temperature, set_fan).0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

bambutler is a print butler for Bambu Lab printers on the LAN. It slices with the Bambu Studio CLI using Bambu presets, start G-code and calibration flags only; never write custom G-code. The loop: model -> printer_context -> propose_print (slices, checks, stores a proposal) -> show every variable with reason and source, assumptions first, and ask "Is that what you want to do?" -> on a clear yes, print_file with the proposal_id -> monitor with events. Change nothing without a yes; a change means a new proposal. With a preset the user named, use it as it is and ask one question with "Plate is clear?". Never add a calibration the user did not ask for. Never resume after an HMS pause. Stop or skip only the job the user named. Never send G-code. Never reveal or store the access code; the user types it into bambutler setup. After FINISH, offer to save and lock the preset. Details: guide(topic).

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
resources
{
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_saved_presetsA

List bambutler saved print presets (name, latest version, locked versions). Bambu Studio presets: list_presets.

show_saved_presetB

Show one bambutler saved preset version (default latest). Accepts name@vN.

save_presetA

Save settings as the next version of a bambutler preset, from a sliced 3MF (from_3mf) or a finished job (from_job, its proposal and 3MF). Ask the user first; after a FINISH ask "Save this as preset X and lock it?".

lock_presetA

Lock a bambutler preset version (default latest) so it never changes. Ask the user first.

propose_printA

Make a print proposal: reads a fresh printer_context, takes the values from the saved preset (or Bambu defaults plus labelled assumptions), slices with the Bambu Studio CLI, runs the post-slice checks, maps AMS trays by the 3MF filament_map and filament_id, estimates time, grams, layers and filament changes, and stores the proposal (30 min). Nothing is sent to the printer. Show the returned 'text' to the user word for word and ask the 'question'; on a clear yes call print_file(proposal_id, confirm=true). Any change means a new proposal.

list_printersA

List configured printers (name, host, serial, model, where the access code comes from) and the live connection state. Never shows access codes.

statusB

Printer status summary: state, stage, progress, temperatures (both nozzles on H2D), fans, speed, storage, AMS trays, external spools, decoded HMS errors. raw=true adds the full merged MQTT report.

amsA

AMS units and trays (type, colour, filament id, remaining %, which nozzle each AMS feeds on dual-nozzle printers) plus external spools.

eventsA

Events from the background connection: STATE changes, PROGRESS every 10 %, STAGE, SPEED, HMS, ERROR, REPLY failures, END, CONNECTED/DISCONNECTED. Pass the returned next_since to get only new events. wait_s long-polls up to 60 s for a new event.

camera_snapshotA

Take one camera frame and return it as an image. X1/H2/P2S: RTSPS via ffmpeg (needs ffmpeg; LAN live view on). P1/A1: built-in port-6000 JPEG client.

decode_hmsA

Decode HMS codes ('0300_0100_0001_0007', {attr, code}) or print_error values (int, '0500-4002', '05004002'): severity, module, text (from the local Bambu Studio HMS table when present), help URL, and a hint for known codes.

list_storage_filesA

List files on the printer storage over FTPS (SD card or USB drive).

pauseC

Pause the running print.

resumeA

Resume a paused print. After a pause from an HMS code or print_error it refuses, unless the client can ask the human directly (MCP elicitation) and the human types the running job name. A nozzle clump (0C00-803F, 0C00_0300_0002_000E) is never resumed remotely: the user inspects the nozzle and resumes on the printer screen.

stopA

Stop (cancel) the current print. Cannot be undone. Needs job= (as status shows it in 'file') and confirm=true. Refuses when the name does not match the running job.

skip_objectsA

Skip objects in the running print (ids from slice_info objects). Cannot be undone. Needs job= and confirm=true.

set_speedA

Set the speed mode of the running print: silent, standard, sport, ludicrous.

lightA

Switch a light: on, off or flashing. node: chamber_light (default), work_light, chamber_light2, heatbed_light (availability depends on model).

set_ams_slotA

Set the material shown for an AMS slot or external spool (type, colour, filament preset id, nozzle temperature range). Does not move filament.

printer_contextA

Fresh printer context for planning a print: model, Developer Mode, nozzles with their x reach, AMS trays per nozzle, external spools, state, stage, HMS with advice, camera, the last 20 events and 5 jobs, saved presets, calibration policy and lessons. Uses the watcher's status.json when it is under 5 s old, else one pushall. Also as resource bambutler:///context.

print_fileA

Start a print from a stored proposal: the ONLY way to start a print. Make the proposal with propose_print, show it to the user word for word, and on a clear yes call print_file(proposal_id, confirm=true). The payload comes only from the stored proposal. Refused when the file changed, the proposal expired or was replaced, the printer is not IDLE/FINISH/FAILED, or the AMS trays changed. Without confirm=true it only checks and returns the plan. When the client supports elicitation, the human also confirms in a dialog.

find_slicerA

Find the Bambu Studio CLI, its version, and the profile directories (system and user presets).

list_presetsA

Search Bambu Studio presets (system and user). Filter by type (machine/process/filament), printer (e.g. 'H2D', 'X1 Carbon', 'P1S'), name substring, source (system/user).

show_presetB

Show a preset flattened (inherits chain merged). Pass keys to show only some settings, or query to filter key names by substring.

inspect_modelA

Inspect STL/OBJ/3MF models: triangle count, bounding box, size, centre, volume, surface, watertight check. Optional machine preset: reports whether each model fits the bed.

sliceA

Slice models with the Bambu Studio CLI. Presets by name or file, with overrides. Centres STL/OBJ on the bed (exact position, no auto-arrange), sets plate type, supports and prime tower. Returns the output 3MF path, time and weight per filament, and the nozzle map check for dual-nozzle printers.

previewC

Return a plate image from a 3MF (thumbnail written by Bambu Studio) as an image. kind: plate (default), top, pick, no_light, small.

slice_infoB

Read a 3MF: sliced plates, time/weight estimates, filaments per plate, nozzle map, objects (ids for skip_objects), plate G-code md5.

make_studio_projectA

Write a copy of a 3MF with a manual nozzle map in Metadata/model_settings.config (filament_map_mode=Manual, filament_maps), so Bambu Studio GUI keeps the map when you re-slice. The CLI ignores manual maps.

guideA

Read bambutler guidance: a skill text (the print loop and safety rules, printing, slicing, multi-material, modeling, setup, test coupons), the lessons table, or 'index' for the list of topics.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 30 tools

Disambiguation4/5

Most tools target a distinct resource+action, and the saved-preset vs Bambu Studio preset pairs are explicitly cross-referenced in their descriptions. The main soft overlaps are status / ams / printer_context (all surface printer and AMS state) and slice / propose_print / print_file, which form a layered workflow that an agent could still mis-order.

Naming Consistency3/5

A solid verb_noun convention dominates (list_saved_presets, show_preset, set_ams_slot, skip_objects, decode_hms), but a large minority are bare nouns or verbs (status, ams, events, light, slice, preview, pause, stop, guide). The mixed style is readable but not predictable from name alone.

Tool Count2/5

30 tools is above the threshold where a set stays easily scannable, and some of that bulk is redundant (status, ams and printer_context all report overlapping printer state). The domain is genuinely broad, but several monitoring tools could be consolidated.

Completeness4/5

The print lifecycle is well covered end to end: inspect/slice/propose/print, pause/resume/stop/skip, speed, lights, camera, events, HMS decoding, presets and guidance. Gaps are minor: storage is read-only (no upload/delete file), presets cannot be deleted or renamed, and there is no filament load/unload beyond set_ams_slot.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues