loading…
Search for a command to run...
loading…
Enables comprehensive control and monitoring of Bambu Lab 3D printers through Claude using local MQTT, FTPS, and X.509 authentication. Users can manage print jo
Enables comprehensive control and monitoring of Bambu Lab 3D printers through Claude using local MQTT, FTPS, and X.509 authentication. Users can manage print jobs, monitor real-time status, handle filament through AMS, and adjust hardware settings like temperature and lighting.
Model Context Protocol server for Bambu Lab 3D printers
License: MIT TypeScript MCP Node
Full control of Bambu Lab printers through Claude AI — MQTT, FTP, camera, AMS, and X.509 auth
Features · Quick Start · Tools · Background
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.
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:
git clone https://github.com/schwarztim/bambu-mcp.git
cd bambu-mcp
npm install
npm run build
Enable Developer Mode on your printer, then configure with your LAN credentials:
# Grab these from your printer screen:
# IP Address: WLAN → IP
# Access Code: WLAN → Access Code (8-digit)
# Serial Number: Settings → Device → Serial Number
Add to ~/.claude/user-mcps.json:
{
"mcpServers": {
"bambu-lab": {
"command": "node",
"args": ["/path/to/bambu-mcp/dist/index.js"],
"env": {
"BAMBU_LAB_MQTT_HOST": "192.168.1.100",
"BAMBU_LAB_MQTT_PASSWORD": "YOUR_ACCESS_CODE",
"BAMBU_LAB_DEVICE_ID": "YOUR_SERIAL_NUMBER"
}
}
}
}
Developer Mode gives the most reliable experience. All MQTT commands are automatically signed with X.509 certificates.
If you don't want to enable Developer Mode (e.g., to keep Bambu Handy working), you can authenticate via browser login instead:
npm run setup
This opens Firefox (used instead of Chrome to avoid Google SSO bot detection), lets you log into your Bambu Lab account, and auto-discovers your printers. Credentials are saved to ~/.bambu-mcp/credentials.json and loaded automatically — no env vars needed.
Note: Token is valid for ~3 months. Run
npm run setupagain to refresh.
Then register with Claude Code (no env vars required):
{
"mcpServers": {
"bambu-lab": {
"command": "node",
"args": ["/path/to/bambu-mcp/dist/index.js"]
}
}
}
Limitations without Developer Mode: Printing
.3mffiles viaproject_filecommand requires Developer Mode..gcodefiles and all other commands (stop, pause, resume, status, speed, G-code, camera, AMS) work without it.
| Tool | Description |
|---|---|
get_user_profile |
Get Bambu Lab cloud account profile |
list_printers |
List all printers registered to cloud account |
get_printer_status |
Get printer status via cloud API |
sign_message |
Sign message with X.509 certificate for firmware auth bypass |
| Tool | Description |
|---|---|
printer_stop |
Stop the current print immediately |
printer_pause |
Pause the current print |
printer_resume |
Resume a paused print |
printer_set_speed |
Set speed via profile (silent/standard/sport/ludicrous) or percentage |
printer_send_gcode |
Send G-code command (dangerous commands blocked) |
printer_print_file |
Start printing a file from printer SD card |
skip_objects |
Skip specific objects during multi-object prints |
| Tool | Description |
|---|---|
printer_get_status |
Request full status push (temps, progress, AMS, fans, etc.) |
printer_get_cached_status |
Return last cached status (no pushall — use for frequent polling) |
printer_get_version |
Get firmware and module version info |
| Tool | Description |
|---|---|
camera_record |
Enable/disable camera recording |
camera_timelapse |
Enable/disable timelapse recording |
| Tool | Description |
|---|---|
ams_change_filament |
Change to a different AMS tray (0-3) |
ams_unload_filament |
Unload current filament from extruder |
| Tool | Description |
|---|---|
set_temperature |
Set nozzle or bed temperature (with safety limits) |
set_nozzle |
Set nozzle diameter for profile selection |
led_control |
Control chamber/work LED lights |
| Tool | Description |
|---|---|
mqtt_connect |
Connect to printer via local MQTT over TLS |
mqtt_disconnect |
Disconnect from MQTT |
ftp_upload_file |
Upload .gcode/.3mf/.stl to printer via FTPS |
Claude Code / AI
|
v
Bambu Lab MCP Server
|-- Cloud API (bambulab.com)
|-- MQTT Client (port 8883, TLS)
|-- FTP Client (port 990, FTPS)
|
v
Bambu Lab Printer (P1P/P1S/X1C/A1)
| Variable | Required | Description |
|---|---|---|
BAMBU_LAB_MQTT_HOST |
For MQTT | Printer IP address |
BAMBU_LAB_MQTT_PASSWORD |
For MQTT | LAN access code |
BAMBU_LAB_DEVICE_ID |
For MQTT | Printer serial number |
BAMBU_LAB_MQTT_PORT |
No | MQTT port (default: 8883) |
BAMBU_LAB_MQTT_USERNAME |
No | MQTT username (default: bblp) |
BAMBU_LAB_COOKIES |
For cloud | Session cookies for cloud API |
BAMBU_LAB_BASE_URL |
No | Cloud API base URL |
BAMBU_LAB_USER_ID |
No | Bambu Lab numeric user ID (for signed MQTT commands) |
BAMBU_LAB_APP_CERT_ID |
No | Override the built-in X.509 cert ID |
BAMBU_APP_PRIVATE_KEY |
No | Override the built-in X.509 private key |
BAMBU_APP_CERTIFICATE |
No | Override the built-in 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.
All MQTT commands are now automatically signed with RSA-SHA256 using this certificate. This is required by post-January 2025 firmware — unsigned commands are rejected with error 84033543. No Developer Mode required for basic commands (stop, pause, resume, speed, G-code).
The certificate can be overridden via BAMBU_APP_PRIVATE_KEY and BAMBU_APP_CERTIFICATE environment variables if Bambu Lab rotates credentials. Set BAMBU_LAB_USER_ID (your numeric Bambu Lab user ID) for full compatibility — find it via the cloud API's /v1/design-user-service/my/preference endpoint.
.. or absolute paths in FTP uploads.env files (already in .gitignore)MIT — see LICENSE for details.
Not affiliated with or endorsed by Bambu Lab. Use at your own risk.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"bambu-lab-mcp-server": {
"command": "npx",
"args": []
}
}
}Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also