Skip to main content
Glama
bambu-studio

bambu-studio

bambu-mcp

MCP-connector voor Bambu Studio op de Mac. Hiermee kan Claude (of een andere MCP-client) modellen op een plaat zetten, slicen en het resultaat bekijken, en het daarna in de Bambu Studio-app openen. Daar loop je het zelf na en stuur je het naar de printer.

De connector stuurt alleen de opdrachtregel van Bambu Studio aan. Hij praat niet met de printer: geen IP-adres, geen toegangscode, geen LAN-modus, geen versturen, status of camera. De instellingen van Bambu Studio worden alleen gelezen.

Gebouwd en getest met Bambu Studio 02.09.02.62 op macOS, voor een X1 Carbon met 0.4 nozzle.

Installeren

Vereist: macOS, uv en Bambu Studio in /Applications.

Claude Code (alle projecten), met het pad naar deze map:

claude mcp add --scope user bambu-studio -- uv run --directory /pad/naar/bambu-mcp bambu-mcp

Claude Desktop, in ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "bambu-studio": {
      "command": "/opt/homebrew/bin/uv",
      "args": ["run", "--directory", "/pad/naar/bambu-mcp", "bambu-mcp"]
    }
  }
}

Staat de app ergens anders, zet dan BAMBU_STUDIO_APP=/pad/naar/BambuStudio.app.

Related MCP server: OrcaSlicer-mcp

Tools

Tool

Doet

list_presets

printers, procesprofielen en filamenten (systeemprofielen van Bambu Lab plus je eigen profielen); met printer alleen wat bij die printer past

model_info

afmetingen, volume, driehoeken, aantal lichamen en waterdichtheid van een STL of 3MF; bij een Bambu-project ook printer, proces, filament en wat op welke plaat staat

prepare_project

één of meer STL's op een plaat (optioneel schikken en automatisch oriënteren) met printer, proces en filament, bewaard als project-3MF

slice

project of STL slicen naar .gcode.3mf; geeft printtijd, gram en meter filament, aantal lagen, of er steun is gemaakt, en de waarschuwingen

render_plate

PNG van de plaat (512 px), schuin of van boven, om plaatsing en oriëntatie te bekijken

open_in_bambu_studio

project of geslicet bestand openen in de app

Gebruikelijke volgorde: list_presets → model_info → prepare_project → slice → render_plate → open_in_bambu_studio.

Losse instellingen geef je mee met settings, met de sleutelnamen van Bambu Studio:

{"enable_support": true, "sparse_infill_density": "25%", "wall_loops": 3}

Ze worden in het project vastgelegd als wijziging op het gekozen profiel.

Hoe het werkt

  • Profielen platslaan. Een profiel van Bambu Studio bevat alleen de afwijkingen van zijn ouder (inherits) en losse stukken (include). Geef je zo'n bestand rechtstreeks aan de opdrachtregel, dan meldt die succes maar rekent met standaardwaarden: bij de proef kwam "Generic PETG" eruit als PLA met 0 gram. De connector volgt daarom zelf de hele keten (ouder, dan include, dan het profiel zelf) en geeft één volledig json-bestand mee.

  • Tijdelijke map. Elke aanroep draait met een eigen --datadir en --outputdir in een tijdelijke map en met een tijdslimiet. Zonder --outputdir laat Bambu Studio een result.json achter in de map waar je staat.

  • Reparatie na --orient. Bambu Studio 02.09 schrijft bij automatisch oriënteren het hele procesprofiel op elk object, met ongeldige XML als gevolg; de opdrachtregel kan zijn eigen bestand dan niet meer lezen. De connector haalt die kopieën weg.

  • Bouwplaat. Standaard de plaat van het printermodel (X1 Carbon: Textured PEI Plate). Met de standaard van de opdrachtregel (Cool Plate) wordt PETG geweigerd.

Beperkingen

  • Niets richting printer. Versturen, status en camera blijven in de app.

  • Eén filament voor alle objecten; geen meerkleurendruk.

  • prepare_project neemt alleen STL. Een 3MF zonder Bambu-instellingen (bijvoorbeeld uit Fusion) wordt niet omgezet.

  • Het plaatje toont de modellen, niet het bed en niet de printbanen.

  • Alleen de profielen van Bambu Lab (BBL) en je eigen profielen, niet die van andere merken.

  • Printtijd en gewicht zijn schattingen van de slicer.

  • Bij een update van Bambu Studio kunnen opties en bestandsopbouw veranderen; draai dan de tests opnieuw.

Testen

uv run pytest -q
uv run python tests/e2e_fiat.py

Het tweede script roept alle tools aan via de MCP-server en slicet twee STL's uit het project fiat-sleutelhoes (verwacht naast deze map, of zet FIAT_STL_DIR). Met --open opent het daarna het project in Bambu Studio. Uitvoer komt in work/. Er wordt niets geprint.

Stand van zaken en wat niet is getest: docs/voortgang.md.

Licentie

MIT. Bambu Studio zelf is van Bambu Lab en valt onder zijn eigen licentie (AGPL-3.0); deze connector bevat er geen code van en roept alleen de geïnstalleerde app aan.

Available Tools

6 tools
list_presetsA

Printer, process and filament presets known to Bambu Studio (Bambu Lab system presets plus the user's own).

Without arguments: the printers. With printer (exact preset name, e.g. "Bambu Lab X1 Carbon 0.4 nozzle"): that printer's details plus the process and filament presets that are compatible with it. kind limits the answer to one list; search filters names (case-insensitive substring). source is "system" or "user".

Inputs: kind, search, printer.

model_infoA

Size (mm), volume (cm3), triangle count, number of bodies and watertightness of an STL or 3MF, per object. For a Bambu Studio 3MF it also reports the stored printer, process, filament and what is on each plate.

Inputs: path (required).

open_in_bambu_studioA

Open a project .3mf, a sliced .gcode.3mf or an STL in the Bambu Studio app, where the user reviews it and sends it to the printer. This is the last step; printing itself is not available here.

Inputs: path (required).

prepare_projectA

Put one or more STL files on a plate with the chosen printer, process and filament and save a Bambu Studio project (.3mf). Nothing is sliced yet.

process defaults to the printer's default process. arrange spreads the objects over the plate; orient lets Bambu Studio pick an orientation (off by default: the STL's own orientation is kept). bed_type defaults to the printer's default plate (e.g. "Textured PEI Plate", "Cool Plate", "Engineering Plate", "High Temp Plate"). settings overrides single values of the presets by their Bambu key, e.g. {"enable_support": true, "sparse_infill_density": "25%", "wall_loops": 3, "brim_type": "outer_only"}. output defaults to a .3mf next to the first model. One filament for all objects; no multi-colour.

Inputs: models (required), printer (required), filament (required), orient, +5 more.

render_plateA

Picture (512 px PNG) of a plate of a project/sliced .3mf, or of a single STL, so you can check placement and orientation. It shows the models, not the bed and not the toolpaths. view "top" uses the top view stored in the 3MF. With output the PNG is also saved there.

Inputs: model (required), view, plate, output.

sliceA

Slice a project .3mf (from prepare_project or saved in Bambu Studio) or one or more STL files and write a .gcode.3mf. Returns per plate and in total: print time, filament in grams and metres, layer count, whether support material was generated, and the slicer's warnings.

For a project the stored presets are used; pass printer/process/filament or settings only to change them. For STL files printer and filament are required. Check warnings and support_used before telling the user the part is ready to print: support is only generated when the process enables it.

Inputs: models (required), orient, output, arrange, +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool maps to a distinct stage of the Bambu Studio workflow: inspect a model, list presets, build a project, slice it, render a preview, or hand off to the app. Boundaries between prepare_project, slice, and render_plate are clearly described by input/output types (.3mf vs .gcode.3mf vs PNG). No two tools target the same resource+action.

    Naming Consistency4/5

    Four of six names follow a verb_noun pattern (list_presets, prepare_project, open_in_bambu_studio, render_plate) with snake_case throughout. Deviations are minor: model_info is noun-first and slice is a bare verb, but both remain immediately readable and unambiguous.

    Tool Count5/5

    Six tools is well-scoped for a focused slicer-assistant pipeline, and each tool covers a necessary step with no redundancy. Nothing feels padded or missing for the stated purpose.

    Completeness4/5

    The surface covers the full lifecycle end-to-end: inspect, choose presets, arrange/orient, slice with overrides, visually verify, and open for printing. Gaps are minor and partly intentional: no direct print dispatch (delegated to the app), no multi-filament/multi-colour support, and no way to edit an existing project beyond slice-time setting overrides.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to load and edit saved 3MF projects, adjust slicer settings, and regenerate G-code using an explicitly bound installed native slicer engine.
      AGPL 3.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables MCP clients to slice STL/3MF models through an official, unmodified slicer CLI, list machine/process/filament profiles, apply setting overrides, and inspect G-code statistics.
      10
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to flatten and audit Bambu Studio presets, slice models with GUI-matching results, check STL/3MF/OBJ printability and part clearance, and compose non-destructive project edits without controlling printers.
      16
      82 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Lets MCP clients such as Claude drive the PrusaSlicer 2.9.x command-line interface headlessly: discovering installed printers and profiles, inspecting and previewing models, suggesting print orientation, slicing with real presets, and reading back print time and filament use. Runs slicing as a separate process so the GUI can stay open, and supports transforms, hole capping, and 3MF projects that keep their saved settings.
      7
      37 PyPI
      MIT