bambu-studio-mcp
Provides tools for interacting with Bambu Lab 3D printers over local LAN MQTT-TLS, including live print status, progress, temperatures, HMS alerts, AMS filament slot details, and control actions such as pause, resume, stop, chamber light toggle, and print speed changes. It also supports Bambu Studio profile discovery, slicing, 3MF project optimization, and printer-specific build-volume checks.
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-studio-mcpslice my bracket.3mf for a strong functional part in PETG and estimate cost"
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 Studio MCP (bambu-studio-mcp)
A full-featured, 100% printer-agnostic Model Context Protocol (MCP) server for Bambu Studio and Bambu Lab 3D printers.
Bambu Studio is powerful, but its interface exposes 200+ dense, interconnected parameters across 6 tabs (Quality, Strength, Speed, Support, Others, Filament). bambu-studio-mcp bridges the gap between plain-English intent and Bambu Studio's slicer engine, profiles, 3MF project files, headless CLI, live desktop GUI window, and live printer/AMS hardware.
Key Capabilities
Smart Slicing Advisor & Settings Encyclopedia
smart_slicing_advisor: Translates plain-English goals (e.g., "strong functional bracket", "high detail miniature", "fast draft prototype", "watertight planter", "dimensionally accurate tight holes", "AMS low-poop multicolor") + filament type (PLA,PETG,ABS,ASA,TPU,Silk PLA,PA-CF) + nozzle size (0.2,0.4,0.6,0.8mm) into concrete Bambu Studio setting overrides and a step-by-step GUI walkthrough (Tab -> Section -> Field).explain_bambu_setting: Demystifies any Bambu Studio JSON key or GUI label with plain-English explanations, recommended ranges, and trade-offs.diagnose_print_defect: Diagnoses common failures (nozzle scraping Grid infill, warping corners, stringing, fused supports, tight tolerances, pillowing) and returns exact setting fixes.
Live Desktop GUI Automation
control_bambu_studio_gui: Interacts directly with your currently open Bambu Studio desktop window—click Add Plate (add_plate), Add Object (add_object), Auto Orient (auto_orient), Arrange (auto_arrange), Variable Layer Height (variable_layer_height), Slice Plate (slice_plate), switch tabs (tab_prepare,tab_preview,tab_device,tab_project), or inspect and screenshot the live window (inspect).
100% Printer-Agnostic Profile Discovery & Preset Builder
list_bambu_profiles: Automatically discovers all installed Machine (X1C, P1S, P1P, A1, A1 mini, X1E, H2D, P2S, Prusa, Voron, Creality, etc.), Filament, and Process profiles from your local Bambu Studio installation and user folders across Windows, macOS, and Linux.inspect_bambu_profile: Resolves Bambu Studio's multi-level"inherits"chain from base template to leaf preset.compare_bambu_profiles: Diffs any two profiles side-by-side (e.g.,0.20mm Standardvs.0.20mm Strength).create_custom_preset: Saves custom presets directly into your Bambu Studiouserpresets folder so they appear in your dropdowns.
3MF & STL Geometry Inspector & Project Optimizer
inspect_3d_model: Pure-Python.stl(binary & ASCII) and.3mfanalyzer that calculates bounding box dimensions ($X \times Y \times Z$ in mm), volume ($\text{cm}^3$), surface area, bottom bed contact area, steep overhang area ($>35^\circ$), estimated PLA weight, and build-volume fit across Bambu printers.optimize_3mf_project: Injects Smart Advisor recommendations or custom overrides directly into a.3mffile'sMetadata/project_settings.configwithout opening the GUI.add_plate_to_3mf: Programmatically adds a new empty build plate (<plate>) to any.3mfproject file.
Headless CLI Slicing, Cost/Time Estimator & GUI Launcher
slice_model_headless: Runsbambu-studioCLI headlessly (--slice 0 --export-3mf) with resolved printer/process/filament profiles and overrides.parse_sliced_file_metrics: Extracts exact print time (Xh Ym Zs), filament weight (g), length (m), per-slot AMS usage, layer count, and estimated filament cost ($) from any.gcode.3mfor.gcodefile.open_in_bambu_studio: Opens any.3mfor.stldirectly in the Bambu Studio desktop application.
Direct Live Printer & AMS Control (Local LAN MQTT-TLS)
get_live_printer_status: Zero-dependency native Python TLS MQTT 3.1.1 client connecting to port8883(bblp+ LAN Access Code) to read live print progress, layer number, remaining time, nozzle/bed/chamber temperatures, HMS alerts, and loaded AMS slots (filament type, hex color, remaining %).control_live_printer: Pause, resume, or stop prints, toggle the chamber light, or change print speed (Silent,Standard,Sport,Ludicrous).
Related MCP server: OrcaSlicer MCP Server
Zero-Dependency Quick Start
bambu-studio-mcp includes both FastMCP support and a built-in standard-library JSON-RPC 2.0 stdio MCP fallback, meaning it runs out-of-the-box on any Python 3.10+ installation even before installing third-party packages.
Option 1: Install via pip
git clone https://github.com/BananaRama123/bambu-studio-mcp.git
cd bambu-studio-mcp
pip install -e .Then add to your MCP client configuration (~/.gemini/config/mcp_config.json, Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"bambu-studio": {
"command": "bambu-studio-mcp"
}
}
}Option 2: Run Directly from Source (Zero Install)
{
"mcpServers": {
"bambu-studio": {
"command": "python",
"args": ["-u", "-m", "bambu_studio_mcp.server"],
"env": {
"PYTHONPATH": "/absolute/path/to/bambu-studio-mcp/src"
}
}
}
}Available MCP Tools (17 Tools)
Tool Name | Purpose |
| Auto-discover Bambu Studio executable, profile folders, and active presets in |
| Convert a plain-English goal + filament + nozzle size into Bambu Studio overrides & GUI walkthrough |
| Search the Bambu Studio Settings Encyclopedia by JSON key, GUI label, or keyword |
| Diagnose print defects/failures (scraping, warping, stringing, fused supports, tight holes) |
| Control or inspect the live open Bambu Studio desktop window ( |
| Search discovered |
| Resolve the full |
| Compare two profiles side-by-side and return all differing keys |
| Create and save a custom user preset into Bambu Studio's user folder |
| Analyze |
| Inject Smart Advisor settings directly into a |
| Add a new empty build plate ( |
| Slice a |
| Extract print time, filament grams/meters, and cost from |
| Launch Bambu Studio GUI with a |
| Query live printer progress, temps, HMS alerts, and AMS filament trays over LAN MQTT |
| Pause, resume, stop, toggle light, or change speed level on a live printer |
This server cannot be deployed
Maintenance
Related MCP Connectors
Real 3D-print slicing, quoting, DFM, orientation & material/settings advisors. Free personal tier.
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.
- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
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 AI agents to interact with OrcaSlicer to manage profiles, adjust printing settings, and perform slicing operations. It allows users to search settings, slice STL/3MF files, and analyze G-code metadata through natural language assistants.7AGPL 3.0
- AlicenseAqualityBmaintenanceEnables headless slicing with OrcaSlicer, preset management, G-code analysis, and printer control over LAN for Klipper, OctoPrint, Prusa, Duet, Elegoo, and Bambu printers.153MIT
- AlicenseNot gradedqualityAmaintenanceEnables slicing 3MF projects with a local Bambu Studio installation and exploring the resulting toolpaths, layers, print times, and filament usage in an interactive 3D viewer inside ChatGPT.AGPL 3.0