Bambu MCP logo

Bambu MCP

Community
griches

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

Publishergriches
Repositorybambu-mcp
LanguageTypeScript
Forks
17
Stars
57
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Bambu MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    57 stars and 17 forks from the linked repository.

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

Installation

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

Use Bambu MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Bambu MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Bambu MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Bambu MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "bambu-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@griches/bambu-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Bambu MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Bambu MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Bambu MCP to help me with this task?
Bambu MCP
Sure. I read it.
Here is what I found using Bambu MCP.

Frequently asked questions

What is the Bambu MCP MCP server used for?

Bambu MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Bambu MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Bambu MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Bambu MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Bambu MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Bambu MCP MCP to TypingMind?

Bambu MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Bambu MCP MCP provide in TypingMind?

Bambu MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Bambu MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Bambu MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇