M

MCP Server For Bambu

by b84330808 · io.github.b84330808/mcp-server-for-bambu

Enables AI assistants to monitor and control Bambu Lab 3D printers over a local network via MQTT, including real-time status, AMS filament info, print control, and maintenance tracking. It supports guided setup, safety confirmations, read-only mode, and a built-in printer simulator.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-b84330808-mcp-server-for-bambu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-for-bambu"
      ],
      "env": {
        "BAMBU_IP": "<VALUE>",
        "BAMBU_SERIAL": "<VALUE>",
        "BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
        "BAMBU_READ_ONLY": "0",
        "BAMBU_MQTT_PORT": "8883",
        "BAMBU_CONFIG_DIR": "<VALUE>",
        "MAINTENANCE_LEDGER_PATH": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-b84330808-mcp-server-for-bambu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-for-bambu"
      ],
      "env": {
        "BAMBU_IP": "<VALUE>",
        "BAMBU_SERIAL": "<VALUE>",
        "BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
        "BAMBU_READ_ONLY": "0",
        "BAMBU_MQTT_PORT": "8883",
        "BAMBU_CONFIG_DIR": "<VALUE>",
        "MAINTENANCE_LEDGER_PATH": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-b84330808-mcp-server-for-bambu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-for-bambu"
      ],
      "env": {
        "BAMBU_IP": "<VALUE>",
        "BAMBU_SERIAL": "<VALUE>",
        "BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
        "BAMBU_READ_ONLY": "0",
        "BAMBU_MQTT_PORT": "8883",
        "BAMBU_CONFIG_DIR": "<VALUE>",
        "MAINTENANCE_LEDGER_PATH": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-b84330808-mcp-server-for-bambu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-for-bambu"
      ],
      "env": {
        "BAMBU_IP": "<VALUE>",
        "BAMBU_SERIAL": "<VALUE>",
        "BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
        "BAMBU_READ_ONLY": "0",
        "BAMBU_MQTT_PORT": "8883",
        "BAMBU_CONFIG_DIR": "<VALUE>",
        "MAINTENANCE_LEDGER_PATH": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-b84330808-mcp-server-for-bambu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-for-bambu"
      ],
      "env": {
        "BAMBU_IP": "<VALUE>",
        "BAMBU_SERIAL": "<VALUE>",
        "BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
        "BAMBU_READ_ONLY": "0",
        "BAMBU_MQTT_PORT": "8883",
        "BAMBU_CONFIG_DIR": "<VALUE>",
        "MAINTENANCE_LEDGER_PATH": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-b84330808-mcp-server-for-bambu": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-for-bambu"
      ],
      "env": {
        "BAMBU_IP": "<VALUE>",
        "BAMBU_SERIAL": "<VALUE>",
        "BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
        "BAMBU_READ_ONLY": "0",
        "BAMBU_MQTT_PORT": "8883",
        "BAMBU_CONFIG_DIR": "<VALUE>",
        "MAINTENANCE_LEDGER_PATH": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
BAMBU_IP No IP address of the Bambu Lab printer on the LAN. If omitted, the server starts in setup mode and can save credentials via the setup_printer tool.
BAMBU_SERIAL No Printer serial number. Use together with BAMBU_IP and BAMBU_ACCESS_CODE when configuring credentials via environment variables.
BAMBU_ACCESS_CODE secret No Bambu LAN access code from the printer (not the Wi-Fi password). Use together with BAMBU_IP and BAMBU_SERIAL when configuring credentials via environment variables.
BAMBU_READ_ONLY No Set to 1 to register only read-only tools, disabling pause/cancel/heat/G-code and other control tools. Default: 0
BAMBU_MQTT_PORT No MQTT port used to connect to the printer. Useful when pointing the server at the simulator with a non-default SIM_PORT. Default: 8883
BAMBU_CONFIG_DIR No Directory where the saved .env credentials and maintenance ledger are stored. Defaults to the platform-specific user config directory.
MAINTENANCE_LEDGER_PATH No Path to the maintenance ledger JSON file. Defaults to maintenance.json inside the config directory.

Similar servers