MCP Server For Bambu logo

MCP Server For Bambu

Connects AI assistants to Bambu Lab 3D printers over local MQTT for monitoring, print control, AMS data, and maintenance tracking.

Install MCP Server For Bambu

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server-for-bambu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-for-bambu"
      ],
      "env": {
        "BAMBU_IP": "YOUR_VALUE_HERE",
        "BAMBU_SERIAL": "YOUR_VALUE_HERE",
        "BAMBU_ACCESS_CODE": "YOUR_VALUE_HERE",
        "BAMBU_READ_ONLY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 15 tools correctly ().

Overview

mcp-server-for-bambu connects AI assistants to Bambu Lab 3D printers through the printer’s local MQTT interface, without using Bambu’s cloud. It exposes live status, AMS inventory, HMS warnings, print history, maintenance tracking, and controls for printing, lighting, speed, heating, and tray selection. The server was built and tested with the P1S, while other MQTT-capable models such as the P1P, X1C, and A1 should work. Reach for it when an assistant needs to inspect or operate a printer on the same LAN.

Use cases

  • Monitor a Bambu Lab printer’s live job status
  • Inspect AMS filament slots and remaining material
  • Review HMS warnings and maintenance deadlines
  • Pause, resume, preheat, or adjust an active print
  • Log completed printer maintenance locally

Key features

  • Local MQTT connection without Bambu cloud
  • Live printer, temperature, progress, and Wi-Fi status
  • AMS filament inventory and active-slot reporting
  • Maintenance ledger with due-date forecasting
  • Print, heating, lighting, speed, and G-code controls
  • Confirmation checks and read-only mode

Tools15

What MCP Server For Bambu lets your agent do. Expand a tool for its parameters.

Verified live~1.5k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 15 tools this server returned when we ran it; 15 declare their own safety hints.

Can delete or modify data · 3Makes changes · 9Makes network requests · 1Read-only tools · 6
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age213 days
Maintainers1

Observed 2026-11-29 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 20h ago via OSV.dev · mcp-server-for-bambu (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed15Callable tools this server registers over MCP.

How MCP Server For Bambu works

What mcp-server-for-bambu does

mcp-server-for-bambu gives MCP-compatible assistants access to a Bambu Lab 3D printer over the local network. It reads printer state, temperatures, progress, layer information, Wi-Fi signal, AMS contents, and active HMS warnings. It also keeps a local maintenance ledger based on print hours, including lubrication, cleaning, inspection, and other due tasks.

The control surface covers pausing or resuming a print, changing the chamber light, selecting a speed profile, setting nozzle or bed temperatures, switching the active AMS slot, and sending raw G-code. Cancelling a print is supported but cannot be undone. The project is unofficial and is not affiliated with Bambu Lab.

How it works

The server communicates directly with the configured printer through its local MQTT service on port 8883. No Bambu cloud connection or telemetry service is used. The printer must be on the same network and have LAN Mode Liveview enabled.

On first launch, setup mode exposes setup_printer. You provide the printer IP address, serial number, and eight-character LAN access code. The tool validates the values and tests the connection before saving credentials. Alternatively, credentials can be supplied through environment variables. A built-in printer simulator can be started with npm run sim for demonstrations and tests.

Safety controls distinguish read operations from actions that can affect the printer. Stopping a print, sending G-code, and changing the active AMS tray require an explicit confirmation value. Read-only mode registers only inspection tools. The printer uses a self-signed certificate, so MQTT traffic is encrypted but the printer identity is not independently verified.

Setup and configuration

Node.js 20 or newer is required. Install the server as a stdio MCP server with npx -y mcp-server-for-bambu, then add that command to an MCP client configuration. The repository includes examples for Claude Desktop, Cursor, and VS Code, as well as a Claude Code plugin installation.

For setup through the assistant, read these values from the printer:

  • IP address: Settings → WLAN → the connected network
  • Serial number: Settings → Device → Device Info
  • Access code: Settings → WLAN → LAN Mode Liveview

The access code is not the Wi-Fi password. After successful setup, restart or reconnect the MCP server so the printer tools become available. Credentials saved on macOS and Linux use owner-only file permissions. BAMBU_READ_ONLY=1 disables operations that can pause, cancel, heat, or move the printer.

Tools and capabilities

  • Inspect current state, temperatures, progress, layers, Wi-Fi, and HMS warnings with get_status.
  • Review AMS slot filament type, color, remaining percentage, and active slot with get_ams_info.
  • List active HMS warnings and their Bambu wiki links.
  • Check maintenance totals, forecast upcoming tasks, review recent print sessions, and record completed maintenance.
  • Pause or resume prints, change speed profiles, control the chamber light, and preheat the nozzle or bed.
  • Stop a print, switch the active AMS tray, or send raw G-code with confirmation.

Limitations and notes

The server is designed for LAN access to one configured printer and rejects addresses outside permitted private, loopback, link-local, and Tailscale ranges. Do not expose the printer’s MQTT port to the internet. Heating commands leave heaters at their requested targets until changed, so set temperatures to zero before leaving the printer unattended. The implementation was tested against the P1S; compatibility with the P1P, X1C, and A1 depends on their MQTT behavior.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server For Bambu

mcp-server-for-bambu is an MCP server that connects AI assistants to Bambu Lab 3D printers over local MQTT. Its main tools report printer status, AMS filament data, HMS warnings, maintenance, recent prints, and controls for pausing, preheating, lighting, speed, tray selection, stopping, and raw G-code.

Install it as a stdio server with `npx -y mcp-server-for-bambu` in an MCP client configuration. The project provides setup examples for Claude Desktop, Cursor, and VS Code, plus a Claude Code plugin installation. Node.js 20 or newer is required.

The server was built and tested against the Bambu Lab P1S, and the P1P, X1C, and A1 should work when they provide the expected MQTT interface. The printer must be reachable on the local network with LAN Mode Liveview enabled.

Use the `setup_printer` tool with the printer’s local IP address, serial number, and LAN access code. It tests the connection before saving credentials. You can instead provide `BAMBU_IP`, `BAMBU_SERIAL`, and `BAMBU_ACCESS_CODE` as environment variables.

Yes. Stopping a print, sending raw G-code, and changing the active AMS tray require explicit confirmation. Setting `BAMBU_READ_ONLY=1` registers only read tools, preventing pause, cancellation, heating, and movement operations.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server For Bambu AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-server-for-bambu?style=directory)](https://allmcps.com/mcp/mcp-server-for-bambu)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-server-for-bambu"><img src="https://allmcps.com/api/badge/mcp-server-for-bambu?style=directory" alt="MCP Server For Bambu on AllMCPs" /></a>