BambuStudio-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BAMBUSTUDIO_PROFILES | Yes | Path to the bundled BambuStudio profiles (e.g., $BAMBUSTUDIO_MCP_DIR/runtime/squashfs-root/resources/profiles). | |
| BAMBUSTUDIO_WORKSPACE | Yes | Path to the workspace holding project copies, revisions, logs, and slice results. The server creates it automatically. | |
| BAMBUSTUDIO_EXECUTABLE | Yes | Path to the BambuStudio AppRun executable (e.g., $BAMBUSTUDIO_MCP_DIR/runtime/squashfs-root/AppRun). Use AppRun, which sets the path to the bundled libraries. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Prepare saved BambuStudio projects; never control a printer. Inspect the project and options first. Confirm the actual printer, every active nozzle and filament. Ask for intended loads, critical surfaces and time constraints when missing. Before print recommendations or slices, confirm the filament material, brand, exact product/variant and color. Ask about drying history and calibration. Ask only for missing details. Do not infer the actual spool from a saved profile. Use the client's web search to find official manufacturer specifications for that exact product. Cite the source URLs. Never substitute specifications for another product or variant. If exact specifications cannot be verified or web search is unavailable, use a Generic profile from list_profiles. Match the confirmed material, printer and nozzle. If the material is unknown or no compatible Generic profile exists, ask the user before proceeding. Identify values from manufacturer specifications, profiles and calibration. Label Generic values as unverified starting points. Check saved filament settings against the confirmed spool before slicing. Read bambustudio://quality-guide and call get_print_guidance before recommendations. Record user declarations with record_print_context. Resolve missing inputs and hardware/material mismatches. Run analyze_geometry for the exact revision before slicing, show its highlighted SVG previews, and explain unresolved issue IDs. Ask about moving parts, hinges, fitting holes, cosmetic faces and load direction. Suggest a small cut-out joint coupon before a long moving-part print. Use explicit revisions for changes. Compare alternatives against an unchanged baseline. Review get_job inspection or call inspect_slice for existing sliced archives. Check commands separately from saved settings. Use matched physical samples for fit and finish decisions. Geometry and slicer estimates do not prove strength or finish. Read bambustudio://guide before recommendations. Studio's unsaved GUI state is not synchronized. For a GUI slicing warning, call diagnose_warning first with its exact text, saved revision, affected object/plate and GUI version when known. Review get_job native_diagnostics and supply its slice job_id for reproduction. Use bundled warning rules, saved settings, geometry and G-code evidence before external research. Unknown warnings stay unknown; source lookup is a last fallback and must match the Studio version, never assume master. No warning in CLI artifacts does not establish resolution in the GUI. Poll jobs until terminal status. Preserve the original and export to a new filename.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_preset_targetsA | List administrator-configured preset storage targets. Paths, credentials and hosts stay private. |
| list_presetsA | Page reusable process or filament presets by internal name on a configured storage target. |
| read_presetC | Read identity, ancestry revision and compatibility. Select up to 50 keys for resolved Bambu JSON values. |
| derive_presetB | Preview a reusable preset from an installed concrete base with typed changes. Writes nothing. Process presets control support/interface filament slots; material presets describe a single material. Confirm printer/nozzle, spool specifications and calibration. Presets are not physical validation. |
| validate_presetB | Inspect stored preset structure, ancestry and catalog issues. This does not verify GUI import or print quality. |
| create_presetA | Create a new preset from a base; default is a write-free preview. Never overwrite an existing name. Supply the preview's base_revision to reject changed ancestry. Actual writes need a writable configured target. Close Studio and stop competing/cloud writers before editing their preset files; reopen/import afterward. |
| update_presetB | Preview/update an existing user preset with a matching content revision. Actual updates first save an exact backup. |
| list_preset_backupsC | Page checksummed pre-update snapshots for a user preset. |
| restore_presetB | Preview/restore exact backup bytes with a current revision guard. Actual restores back up current contents. |
| apply_presetB | Preview/apply selected reusable settings to a new project revision. The original model and preset stay unchanged. Check exact printer/nozzle compatibility. Filament application needs an existing zero-based slot and unambiguous vectors. expected_preset_revision is read_preset's resolution_revision. Rerun geometry analysis after an actual change. |
| get_environmentB | Report the Studio runtime, supported version, profiles location, and honest configuration coverage. |
| list_profilesA | Find machine, process, or filament profiles. Use exact names or paths when importing models. |
| open_projectB | Copy a saved 3MF into an isolated workspace, or import a model with explicit profiles through Studio. |
| inspect_projectC | Inspect objects, volumes, resource IDs, instances, plates, bounds, and revision history. |
| list_optionsC | Search the full versioned FFF configuration catalog; inspect types, units, ranges, defaults and scopes. |
| get_settingsA | Read settings and their origin. Scopes: project, plate, object, volume, height_range, filament. target selects plate_index (1-based), object_id, volume_id, min_z/max_z, or filament_index (0-based). Use keys to bound the response. Studio-normalized settings are returned by completed slice jobs. |
| record_print_contextB | Replace user-declared hardware, filament, calibration and physical observations for this project. Read bambustudio://print-context for the exact input shape. This records declarations, not verified measurements. It does not edit the 3MF. Observations apply only to this revision; optional job_id must match a succeeded slice. |
| get_print_guidanceB | Return deterministic missing-input questions, context/settings mismatches and sourced rules for selected concerns. Select concerns from bambustudio://quality-guide. Inputs are user declarations; no physical quality is inferred. |
| diagnose_warningA | Diagnose a native Studio warning using bundled sourced rules and exact-revision slice evidence first. Paste warning_text (up to 4000 characters), or supply an individual slice job_id, including failed jobs. target optionally selects object_id and 1-based plate_index from inspect_project. studio_version is the GUI version as reported by the user. Returns missing details, scoped settings, related geometry IDs, native log/result warnings and next checks. Geometry links and English message recognition are heuristic; unsaved GUI state and native feature locations are unknown. No warning observed does not mean resolved. |
| inspect_sliceA | Inspect embedded G-code targets, object layers and feature feeds without running it. With job_id inspect that exact succeeded revision; otherwise inspect the saved project, including older sliced imports. Compact results retain counts, shared path totals and bead-edge margins; raw paths stay at report_path. Geometry comparisons link paths to issue IDs from the exact revision. Unknown firmware, plate origins and extruder mappings remain unknown. Targets do not establish actual temperatures or physical fusion. |
| apply_settingsB | Validate and apply an atomic batch to a new revision. Uses JSON numbers, booleans, enums and arrays. Percentage strings such as '15%' are allowed only on percent types. A filament-scope change selects one existing filament_index; project-scope vector values must be complete arrays. Never overwrites the source. |
| restore_revisionA | Restore a historical or candidate revision as a new head; preserve all previous revisions. revision is the current head for concurrency protection; restore is the revision to copy. |
| analyze_geometryA | Find geometric print-risk candidates using nominal layer sections, facing clearances, roofs, bed contact and mesh facets; save highlighted SVG previews. Coordinates are world millimetres. Thickness is sampled geometry, not mechanical strength. Overhang angle is the downward-face threshold from horizontal in degrees (0..90). Results are heuristics. Read issue_guidance and slicer_fixes tables. Append # to a highlighted preview path. Raw arrays stay at report_path for slice correlation; the response includes counts. |
| edit_regionsA | Apply spatial edits atomically to a new revision. Read bambustudio://spatial-edits for exact shapes. Actions: rotate, paint, modifier_box, remove_modifier, height_range, layer_heights. Paint edits a shared mesh resource, affecting every instance of that resource. |
| start_sliceA | Queue a detached Studio slice. Run analyze_geometry first and show its highlighted preview. Unresolved or missing geometry analysis returns warnings, not a block. Poll get_job. 0 selects all plates; positive indexes are 1-based. |
| get_jobA | Read persistent status, native_diagnostics with sourced warning explanations, log tail, estimates and output paths. Use diagnose_warning for scoped investigation. |
| cancel_jobA | Cancel a queued or running job and terminate its Studio subprocesses. |
| compare_candidatesA | Compare unchanged baseline with 1..7 alternatives, each {name, changes} or {name, revision}. Returns immediately with a persistent comparison job; poll get_job. Numeric constraints: max_time_seconds, max_filament_g. Spatial candidates use revisions made with edit_regions. Reports time/material estimates and tradeoffs; strength/finish remain unverified. |
| export_projectB | Export to a new filename. Supply a succeeded job_id to export that exact revision with slicing artifacts. |
| open_in_studioA | Launch the saved revision in Studio for review. This does not synchronize or replace unsaved GUI state. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| prepare_print |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| guide | Evidence-led print preparation procedure and reference sources. |
| spatial_edits | Spatial edit inputs, units, and example requests. |
| quality_guide | Sourced preparation rules, prerequisites, candidate settings and physical acceptance checks. |
| print_context | Exact user-declaration input shape and example for record_print_context. |
| coverage | |
| catalog | Complete versioned catalog. Prefer list_options for paginated queries. |
TDQS
Scored across 30 tools
Most tools target distinct lifecycle stages such as project handling, settings, presets, slicing, jobs, geometry, and export, and the detailed descriptions clarify many boundaries. However, derive_preset/create_preset and the list_options/get_settings/list_profiles/list_presets cluster are close enough that an agent may need careful reading to choose correctly.
Names consistently use snake_case with clear verb_noun or action_phrase patterns such as get_job, inspect_project, apply_settings, create_preset, start_slice, cancel_job, compare_candidates, and export_project. There is no mixed camelCase or chaotic verb style, and compound names remain predictable.
30 tools is heavy for an MCP surface, especially with 10+ tools dedicated to preset and configuration management. Each tool appears purposeful, but the set is over-scoped enough that consolidation would improve agent usability.
Core workflows are well covered: project import/inspection, settings, preset lifecycle, slicing and job control, geometry analysis, revisions, comparison, export, and GUI launch. Minor gaps remain, such as no delete_preset, no list_jobs/job history, and limited explicit project deletion/save/close operations.