bambu-gateway-mcp
Provides tools for managing Bambu Lab 3D printers, including listing printers, checking AMS filament states, creating print sessions from 3MF/STL files, and starting prints with user approval.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bambu-gateway-mcplist my printers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bambu-gateway-mcp
An MCP server that exposes the bambu-gateway print-session HTTP API to an LLM agent, enabling agent-driven Bambu Lab 3D printer control.
Setup
pip install -e .
cp .env.example .env
# Edit .env and set GATEWAY_BASE_URL to your bambu-gateway instanceRelated MCP server: BambuStudio MCP Server
Configuration
Variable | Default | Description |
| — | URL of the bambu-gateway instance, e.g. |
|
| Whether |
Running
bambu-gateway-mcpThe server listens on stdio and is ready for an MCP client (Claude Code, Cursor, etc.) to connect.
Tools
The MCP server exposes the following tools:
list_printers— List configured printers (id, name, machine, online status)get_ams(printer_id)— Get AMS tray/filament state for filament selectionset_ams_filament(printer_id, ams_id, tray_id, setting_id, tray_color="")— Assign a slicer filament profile to one AMS tray (tray_idis the per-AMS slot 0..3;ams_id=255/tray_id=254for the external spool)list_filaments— Available slicer filament profileslist_processes— Available slicer process profilescreate_print_session(model_path, printer_id, ...)— Configure a print from a local 3MF/STL file. Returnsjob_id,slicedstatus, andhandoff_urlto review/tweak in the browser.get_print_session(session_id)— Poll session status andhandoff_urlstart_print(session_id)— Start printing a configured, sliced session (elicitation-gated — asks for approval first)
Typical Flow
Call
list_printersto pick a target printerCall
get_ams(printer_id)to see filament availabilityCall
create_print_session(model_path, printer_id, ...)with your 3MF/STL and desired profilesShare the returned
handoff_urlwith the user to review/adjust in the browserOnce ready, call
start_print(session_id)— the server asks for confirmation before printing
Safety
start_print asks for explicit user approval in the conversation by default. No print starts silently; the tool prompts for elicitation and only proceeds if the user confirms. Clients that don't support elicitation fail safe (no print).
If your client can't elicit, set REQUIRE_PRINT_CONFIRMATION=false to let start_print print directly (the not-sliced guard still applies). Only do this when you trust the agent driving the printer.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceEnables interaction with 3D printer management systems through an MCP server, supporting STL file manipulation, slicing, and control of printers like OctoPrint, Klipper, Duet, and more.58222GPL 2.0
- Alicense-quality-maintenanceProvides end-to-end 3D printing automation for Bambu Lab printers, allowing users to generate, slice, and monitor prints using natural language. It features model generation from text or images, real-time camera monitoring, and automated print quality improvement.
- AlicenseAqualityBmaintenanceEnables comprehensive control and monitoring of Bambu Lab 3D printers through Claude using local MQTT, FTPS, and X.509 authentication. Users can manage print jobs, monitor real-time status, handle filament through AMS, and adjust hardware settings like temperature and lighting.243017MIT
- Alicense-qualityAmaintenanceEnables AI agents to control hardware devices like Arduino, Raspberry Pi, 3D printers, CNC machines, and custom robots via serial ports and HTTP. Provides tools for device discovery, command sending, sensor reading, servo control, G-code execution, and emergency stops with safety features.MIT
Related MCP Connectors
Operate your Linux servers from your LLM. Every action runs through an auditable allowlist.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/leolobato/bambu-gateway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server