griches/bambu-mcp 是从 https://github.com/griches/bambu-mcp. 导入的 MCP 服务器候选。
概览
griches/bambu-mcp 是从 https://github.com/griches/bambu-mcp. 导入的 MCP 服务器候选。
概述(AI 翻译)
一款用于控制Bambu Lab 3D打印机的模型上下文协议(MCP)服务器。可通过任何兼容MCP的AI助手管理一台打印机或整个打印机群。
特色
- 多打印机车队管理 — 针对特定打印机、所有打印机,或在仅配置一台时自动选择
- 全打印控制 — 开始、暂停、继续、停止打印并跳过打印中目标。自动检测多版3MF文件中的正确版块
- 文件管理 — 通过FTP列出、上传、下载和删除文件
- 硬件控制 — 灯光、温度、转速曲线、喷嘴配置
- AMS支持 — 更换耗材托盘,卸载耗材
- 摄像机 — 启用/禁用录制和延时
- 原始G代码——发送带有安全限制的自定义命令
- 持久配置 — 打印机凭证保存在
~/.bambu-mcp/printers.json
支持的打印机
测试对象:
- Bambu Lab P1S
- Bambu 实验室 H2D
- Bambu Lab A1 Mini
应该可以兼容任何支持 MQTT over LAN 的 Bambu Lab 打印机(X1C、X1、P1P、A1 等)。
打印机设置
在使用该MCP服务器之前,每台打印机必须配置本地访问:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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:
-
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.
-
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.
-
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
npx @griches/bambu-mcp
Claude Code
claude mcp add bambu -- npx @griches/bambu-mcp
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bambu": {
"command": "npx",
"args": ["@griches/bambu-mcp"]
}
}
}
Build from Source
git clone https://github.com/griches/bambu-mcp.git
cd bambu-mcp
npm install
npm run build
Then configure with the absolute path:
{
"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:
安装
npx @griches/bambu-mcp配置
{
"mcpServers": {
"bambu": {
"command": "npx",
"args": ["@griches/bambu-mcp"]
}
}
}