Provides comprehensive control and monitoring of Bambu Lab 3D printers, enabling AI models to manage print jobs, track real-time telemetry, control AMS filament settings, and interact with the printer's camera and cloud API.
Click on "Install 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 Lab MCP ServerWhat's the current status of my print and the nozzle temperature?"
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 Lab MCP Server
Model Context Protocol server for Bambu Lab 3D printers
Full control of Bambu Lab printers through Claude AI — MQTT, FTP, camera, AMS, and X.509 auth
Features · Quick Start · Tools · Background
Overview
Complete MCP server for Bambu Lab 3D printers (P1P, P1S, X1C, A1, A1 Mini). Connects over local MQTT for real-time control and monitoring, with FTPS file upload and X.509 certificate signing to bypass firmware authentication restrictions.
25 tools covering print control, status monitoring, camera, AMS filament management, temperature, LED control, and more.
Background
In January 2025, Bambu Lab pushed firmware updates requiring authentication for local LAN printer control, breaking all third-party tools — OctoPrint, Home Assistant integrations, custom scripts, everything.
Community researchers extracted the X.509 certificate and private key from the Bambu Connect desktop application, restoring third-party access. This MCP server builds on that work to provide comprehensive printer control through Claude.
Key references:
Hackaday: Bambu Connect's Authentication X.509 Certificate and Private Key Extracted — the article that started the workaround
OpenBambuAPI — reverse-engineered MQTT protocol documentation
bambu-node — TypeScript library for Bambu printers
Features
Local MQTT control — Print, pause, resume, stop, speed profiles, G-code execution
Real-time status — Continuous caching from MQTT reports with cached + fresh status tools
Camera control — Start/stop recording and timelapse
AMS management — Change filament trays, unload filament
FTP file upload — FTPS upload to printer SD card (port 990)
X.509 signing — Bypass firmware auth restrictions with certificate signing
Temperature control — Set nozzle/bed temps with safety limits
Object skipping — Skip failed objects without stopping the print
Speed profiles — Silent, Standard, Sport, Ludicrous (or raw percentage)
LED control — Chamber and work lights
Safety validation — Blocked G-codes, temperature limits, path traversal prevention
Quick Start
Prerequisites
Node.js 18+
Bambu Lab printer on your local network
Printer LAN access code (printer screen -> WLAN -> Access Code)
Printer serial number (Settings -> Device -> Serial Number)
Install
Configure
Register with Claude Code
Add to ~/.claude/user-mcps.json:
Tools
Cloud API (4 tools)
Tool | Description |
| Get Bambu Lab cloud account profile |
| List all printers registered to cloud account |
| Get printer status via cloud API |
| Sign message with X.509 certificate for firmware auth bypass |
Print Control (7 tools)
Tool | Description |
| Stop the current print immediately |
| Pause the current print |
| Resume a paused print |
| Set speed via profile (silent/standard/sport/ludicrous) or percentage |
| Send G-code command (dangerous commands blocked) |
| Start printing a file from printer SD card |
| Skip specific objects during multi-object prints |
Status & Info (3 tools)
Tool | Description |
| Request full status push (temps, progress, AMS, fans, etc.) |
| Return last cached status (no pushall — use for frequent polling) |
| Get firmware and module version info |
Camera (2 tools)
Tool | Description |
| Enable/disable camera recording |
| Enable/disable timelapse recording |
AMS & Filament (2 tools)
Tool | Description |
| Change to a different AMS tray (0-3) |
| Unload current filament from extruder |
Hardware (3 tools)
Tool | Description |
| Set nozzle or bed temperature (with safety limits) |
| Set nozzle diameter for profile selection |
| Control chamber/work LED lights |
Connection & Upload (3 tools)
Tool | Description |
| Connect to printer via local MQTT over TLS |
| Disconnect from MQTT |
| Upload .gcode/.3mf/.stl to printer via FTPS |
Architecture
How It Works
MQTT connects to the printer over TLS on port 8883 using the LAN access code
Status reports are continuously cached as they arrive on the MQTT report topic
Commands are sent on the MQTT request topic with sequence IDs for response matching
FTP uploads files to the printer SD card over FTPS (port 990)
X.509 signing uses the extracted Bambu Connect certificate for authenticated commands
Configuration
Environment Variables
Variable | Required | Description |
| For MQTT | Printer IP address |
| For MQTT | LAN access code |
| For MQTT | Printer serial number |
| No | MQTT port (default: 8883) |
| No | MQTT username (default: bblp) |
| For cloud | Session cookies for cloud API |
| No | Cloud API base URL |
| No | Override the built-in X.509 private key |
| No | Override the built-in X.509 certificate |
Finding Your Printer Info
IP Address: Printer screen → WLAN → IP
Access Code: Printer screen → WLAN → Access Code (8-digit)
Serial Number: Settings → Device → Serial Number
Security
X.509 Certificate
This server includes the publicly extracted X.509 certificate from the Bambu Connect desktop application. This is not a secret — it was publicly disclosed in January 2025 and is embedded in every copy of Bambu Connect.
The certificate can be overridden via BAMBU_APP_PRIVATE_KEY and BAMBU_APP_CERTIFICATE environment variables if Bambu Lab rotates credentials.
Safety Features
Blocked G-codes: M112 (emergency stop), M502 (factory reset), M500/M501 (EEPROM), M997 (firmware update), M999 (restart)
Temperature limits: Nozzle max 300C, bed max 120C
File validation: Only .gcode, .3mf, .stl uploads allowed
Path traversal prevention: No
..or absolute paths in FTP uploads
Best Practices
Keep printers on a separate VLAN
Rotate LAN access codes periodically
Never commit
.envfiles (already in.gitignore)
Acknowledgments
Community researchers who extracted the X.509 certificate — making this possible
OpenBambuAPI — reverse-engineered MQTT protocol docs
Shockedrope/bambu-mcp-server — speed profile concept
DMontgomery40/mcp-3D-printer-server — multi-printer platform inspiration
bambu-node — TypeScript Bambu library
Bambu Lab — for making excellent printers (even if the auth lockdown was rough)
License
MIT — see LICENSE for details.
Disclaimer
Not affiliated with or endorsed by Bambu Lab. Use at your own risk.