Logo Bambu MCP

Bambu MCP

Cộng đồng
griches

MCP server for controlling Bambu Lab 3D printers — multi-printer fleet management, print control, file ops, AMS, camera, and more

Nhà phát hànhgriches
Kho mãbambu-mcp
Ngôn ngữTypeScript
Bản fork
17
Sao
57
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Bambu MCP cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    57 sao và 17 bản fork từ kho mã được liên kết.

Bambu MCP

A Model Context Protocol (MCP) server for controlling Bambu Lab 3D printers. Manage one printer or an entire fleet from any MCP-compatible AI assistant.

Features

  • Multi-printer fleet management — target a specific printer, all printers, or auto-select when only one is configured
  • Full print control — start, pause, resume, stop prints and skip objects mid-print. Auto-detects the correct plate in multi-plate 3MF files
  • File management — list, upload, download, and delete files via FTP
  • Hardware control — lights, temperatures, speed profiles, nozzle configuration
  • AMS support — change filament trays, unload filament
  • Camera — enable/disable recording and timelapse
  • Raw G-code — send custom commands with safety limits
  • Persistent config — printer credentials saved to ~/.bambu-mcp/printers.json

Supported Printers

Tested with:

  • Bambu Lab P1S
  • Bambu Lab H2D
  • Bambu Lab A1 Mini

Should work with any Bambu Lab printer that supports MQTT over LAN (X1C, X1, P1P, A1, etc.).

Printer Setup

Before using this MCP server, each printer must be configured for local access:

  1. Enable LAN Only Mode — On the printer's touchscreen, go to Settings > Network and switch to LAN Only Mode. This is required for local MQTT commands (including starting prints) to work. Cloud mode blocks local print commands.

  2. Enable Developer Mode — On the printer's touchscreen, go to Settings > Network > LAN Only Mode and enable Developer Mode. This allows third-party tools to send commands over the local network.

  3. Note the access code — After enabling LAN Only / Developer Mode, a new Access Code will be shown on the printer screen. You'll need this to connect.

Note: Enabling LAN Only Mode means you lose cloud features (remote monitoring via Bambu Handy app, cloud printing). All control must be done locally.

System Requirements

  • Node.js 18+
  • Bambu Lab printer(s) on the same local network
  • Printer in LAN Only Mode with Developer Mode enabled
  • Printer access code and serial number (found in printer Settings > WLAN / Device)

Installation

Quick Start with npx

bash
npx @griches/bambu-mcp

Claude Code

bash
claude mcp add bambu -- npx @griches/bambu-mcp

Claude Desktop

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "bambu": {
      "command": "npx",
      "args": ["@griches/bambu-mcp"]
    }
  }
}

Build from Source

bash
git clone https://github.com/griches/bambu-mcp.git
cd bambu-mcp
npm install
npm run build

Then configure with the absolute path:

json
{
  "mcpServers": {
    "bambu": {
      "command": "node",
      "args": ["/absolute/path/to/bambu-mcp/dist/index.js"]
    }
  }
}

Adding Printers

Once the server is running, add printers using the add_printer tool. You'll need the following from each printer:

  • IP Address — found on the printer's touchscreen under Settings > WLAN, or in Bambu Studio's Device tab
  • Access Code — found on the touchscreen under Settings > WLAN, or in Bambu Studio's Device tab
  • Serial Number — found on the touchscreen under Settings > Device, or in Bambu Studio's Device tab

Example (via an AI assistant):

"Add my P1S at 192.168.0.136 with access code 30430928 and serial 01P00A3B0900744"

Printer configurations are saved to ~/.bambu-mcp/printers.json and automatically reconnect on server restart.

Tools

Management

ToolDescription
add_printerAdd a printer to the fleet (IP, access code, serial number)
remove_printerRemove a printer and disconnect
reconnect_printerReconnect a printer (or all) after network changes
list_printersList all configured printers with connection status

Status

ToolDescription
get_statusGet printer status — print progress, temperatures, speed, AMS, lights
get_versionGet firmware and module version information

Print Control

ToolDescription
start_printStart printing a file from the printer's SD card. Auto-detects plate number for 3MF files
pause_printPause the current print
resume_printResume a paused print
stop_printCancel the current print
skip_objectsSkip specific objects in a multi-object print

Hardware

ToolDescription
set_speedSet print speed — silent, standard, sport, ludicrous, or custom %
set_lightControl chamber and work lights
set_temperatureSet nozzle or bed temperature (with safety limits)
set_nozzleSet nozzle diameter for profile selection

File Management

ToolDescription
list_filesList files on the printer's SD card
upload_fileUpload a .3mf or .gcode file to the printer
download_fileDownload a file from the printer
delete_fileDelete a file from the printer

Camera

ToolDescription
set_recordingEnable or disable camera recording
set_timelapseEnable or disable timelapse recording

AMS / Filament

ToolDescription
change_filamentChange to a different AMS filament tray
unload_filamentUnload filament from the extruder

G-code

ToolDescription
send_gcodeSend raw G-code commands (dangerous commands blocked for safety)

Security

ToolDescription
sign_messageSign a message with the Bambu Lab X.509 certificate

Printer Targeting

Every printer-targeting tool accepts an optional printer parameter:

  • Specific printer — use the printer ID (e.g. "p1s-alpha")
  • All printers — use "all" to run the command on every connected printer in parallel
  • Auto-select — omit the parameter and it will auto-select if only one printer is configured

Connection Details

This server communicates with printers using:

  • MQTT (port 8883, TLS) — for commands and status updates
  • FTP (port 990, implicit FTPS) — for file operations

Printers must be in LAN Only Mode with Developer Mode enabled. See Printer Setup above.

X.509 Certificate Authentication

Post-January 2025 firmware requires certificate-based authentication for local access. This server includes the publicly extracted X.509 certificate from the Bambu Connect desktop application by default.

To override with your own certificate, set these environment variables:

bash
export BAMBU_APP_PRIVATE_KEY="<REDACTED>"
export BAMBU_APP_CERTIFICATE="-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"

License

MIT

Cài đặt

TypingMind
{
  "mcpServers": {
    "bambu-mcp": {
      "command": "npx",
      "args": [
        "@griches/bambu-mcp"
      ]
    }
  }
}

Dùng MCP Bambu MCP với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Bambu MCP, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Bambu MCP làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Bambu MCP.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "bambu-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@griches/bambu-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Bambu MCP, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Bambu MCP.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Bambu MCP giúp tôi làm việc này không?
Bambu MCP
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Bambu MCP.

Câu hỏi thường gặp

Máy chủ MCP Bambu MCP dùng để làm gì?

Bambu MCP là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Bambu MCP với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Bambu MCP với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Bambu MCP với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Bambu MCP, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Bambu MCP với TypingMind?

Bambu MCP hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Bambu MCP cung cấp những công cụ nào trong TypingMind?

Bambu MCP cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Bambu MCP không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Bambu MCP yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇