Skip to main content
Glama
FlashForge MCP

FlashForge MCP

by ildargiv

FlashForge MCP — AI 3D printing agent for Flash Studio & OrcaSlicer

FlashForge MCP is a Model Context Protocol server that lets an AI agent prepare and slice 3D models for FlashForge printers — choose orientation, supports, brim, material and temperatures, then produce a ready-to-print .gcode file. It drives the Flash Studio CLI (the OrcaSlicer fork bundled with FlashForge printers), so slicing stays local, deterministic and identical to the desktop app.

Ask your agent "slice this bracket for my AD5X in PETG, supports auto, and check it fits" — and get a sliced file with a print summary instead of a dozen GUI clicks.

At a glance

  • What it is: MCP server (stdio, JSON-RPC 2.0), zero npm dependencies, Node.js 18+.

  • What it does: STL / 3MF / OBJ → G-code with geometry-aware orientation, supports and adhesion.

  • Learns: remembers your printers, materials, habits and failed prints, then applies them next time.

  • Printers: FlashForge AD5X, Adventurer 5M / 5M Pro / A5 / 3, Creator 5 / 5 Pro, Guider 2s / 3 Ultra / 4 / 4 Pro (incl. HF hotends).

  • Clients: Claude Desktop, Claude Code, ChatGPT/Codex, Cursor, OpenCode, Cline, Windsurf — any MCP-capable agent.

  • Not included: sending jobs to the printer. This tool slices only.


Table of contents


Related MCP server: cura-mcp

Why this exists

Slicing for a 3D printer is a chain of small decisions: does the model fit, which side goes down, do overhangs need supports, will the first layer hold, is the filament dry. A GUI hides all of that behind previews and dropdowns, and an AI agent cannot click through it.

The Flash Studio CLI looks like an easy answer, but it has sharp edges that silently ruin prints:

  • It does not resolve inherits in process and filament profiles. Pass a profile as-is and speeds fall back to Orca defaults — walls at 60 mm/s instead of 200, prints twice as long.

  • It rejects some bundled profiles that lack "from": "system" / "instantiation": "true" with a cryptic from unsupported.

  • It refuses Bambu/Orca .3mf containers newer than the bundled CLI (File Version 2.5.x not supported).

  • It gives no feedback on whether the settings you asked for were actually applied.

This server fixes those problems, adds a geometry analysis step, and exposes the whole workflow as four MCP tools an agent can reason about.

Features

  • Geometry analysis before slicing — bounding box, volume, surface area, bed contact and overhang area, plus five alternative orientations with a fit check for the selected printer.

  • Automatic orientation — rotates the model only when it clearly removes overhangs or makes it fit (--orient 1).

  • Automatic supports — tree/organic supports are enabled only when the analyzed overhang is real, with material-aware gaps (0.26 mm for PETG, 0.18 mm for PLA).

  • Automatic brim — outer brim for tall narrow parts and small contact areas.

  • Material presets — pla, petg, abs, asa, tpu set the right profile, nozzle/bed temperatures and support gap.

  • Fine-grained overrides — support style, angle, interface layers, XY clearance, base pattern, raft, fuzzy skin, fan, first-layer speed.

  • Verification after slicing — the server compares requested settings with the generated G-code and warns when the slicer changed something.

  • Learns your setup — remembers the machine, material, quality and override habits you actually use, records failed prints and corrections, and applies them to the next slice. Local JSON, no cloud, opt-out.

  • Personalized advice — flash_advise prints a ready-to-paste flash_slice call with orientation, supports, brim and risks based on the model and your history.

  • Portable profile resolution — machines, processes and filaments are matched by compatible_printers, not by filename guesses, so the whole FlashForge lineup works with short names like "Creator 5" or "Guider4 HF".

  • Multi-material — up to 4 filaments on AD5X/Guider 4 (IFS), 4 hotends on Creator 5, 2 on Guider 3 Ultra.

  • 3MF fallback — if the CLI rejects a newer 3MF, the server extracts the mesh itself and slices an STL.

Supported printers

Family

Build volume, mm

Nozzles

Notes

FlashForge AD5X (default)

220 × 220 × 220

0.25 / 0.4 / 0.6 / 0.8

IFS, 4 spools, open frame, PEI

Adventurer 5M / 5M Pro

220 × 220 × 220

0.25 / 0.4 / 0.6 / 0.8

single material

Adventurer A5

220 × 220 × 220

0.25 / 0.4 / 0.6 / 0.8

single material

Adventurer 3 Series

150 × 150 × 150

0.4 / 0.6

compact bed

Creator 5 / 5 Pro

256 × 256 × 256

0.25 / 0.4 / 0.6 / 0.8

4 independent hotends

Guider 2s

280 × 250 × 300

0.4

enclosed, PLA-oriented profiles

Guider 3 Ultra

300 × 330 × 600

0.4 / 0.6 / 0.8

2 hotends, tall chamber

Guider 4 / 4 Pro

300 × 300 × 300

0.4 / 0.6 / 0.8 + HF

IFS, high-flow hotends

Machine names are resolved by family: machine: "AD5X", "AD5X 0.6 nozzle", "Creator 5", "Guider 3 Ultra", "Guider4 0.4 HF". If no nozzle is given, 0.4 mm is used. flash_profiles lists every concrete profile with its build volume.

Requirements

  • Node.js 18+ (no npm packages to install).

  • Flash Studio (the Orca-Flashforge desktop app) installed — it ships the CLI and all printer profiles.

    • Windows default: C:\Program Files\Flashforge\Flash Studio Desktop\flash studio.exe

    • Override with FLASHSTUDIO_BIN and, if needed, FLASHSTUDIO_PROFILES.

  • A MCP-capable agent: Claude Desktop, Claude Code, Cursor, OpenCode, Cline, Windsurf, ChatGPT/Codex via an MCP bridge, etc.

Flash Studio is a Windows desktop application. On Linux/macOS, point FLASHSTUDIO_BIN at a compatible Flash Studio/Orca-Flashforge build.

Install

git clone https://github.com/ildargiv/flashforge-mcp.git
cd flashforge-mcp
node --version          # 18 or newer
node smoke.mjs flash_profiles   # verifies the install and lists printer profiles

Nothing to npm install — the server uses only the Node standard library.

Connect your AI agent

Claude Desktop

Edit claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "flashforge": {
      "command": "node",
      "args": ["C:\\path\\to\\flashforge-mcp\\server.mjs"]
    }
  }
}

Cursor

~/.cursor/mcp.json uses the same shape:

{
  "mcpServers": {
    "flashforge": {
      "command": "node",
      "args": ["C:\\path\\to\\flashforge-mcp\\server.mjs"]
    }
  }
}

OpenCode

opencode.json:

{
  "mcp": {
    "flashforge": {
      "type": "local",
      "command": ["node", "C:\\path\\to\\flashforge-mcp\\server.mjs"],
      "enabled": true
    }
  }
}

Restart the client and ask: "What FlashForge printers can you slice for?" — the agent should call flash_profiles.

Tools

Tool

Purpose

flash_profiles

List machines (with build volumes), processes and filaments from the installed Flash Studio. filter narrows the list, e.g. "AD5X", "PETG", "Creator".

flash_printer

Inspect one printer or the whole lineup: build volume, nozzle, layer range, multi-material capacity, enclosure, compatible processes and filaments, temperature envelope, plus learned usage and notes.

flash_analyze

Geometry report without slicing: size, volume, bed contact, overhang area, five rotated orientations, fit check, recommendations. Works with STL, OBJ and 3MF.

flash_advise

Personalized plan before slicing: machine/material/quality from memory, orientation, supports, brim, risks, similar past prints and a ready-to-paste flash_slice call.

flash_slice

Slice a mesh to .gcode. Returns time, layers, filament usage, supports/brim weight, temperatures, applied settings and warnings. Records the job in memory.

flash_info

Parse an existing .gcode: printer, time, layers, filament, supports, infill, temperatures, file size.

flash_memory

Show, set or clear learned preferences; attach facts to a printer/material; report a print outcome and corrections; export/import the profile.

flash_slice parameters

Model and output

Parameter

Description

stl

Path to .stl, .3mf or .obj (absolute or relative to the current directory).

out

Output .gcode path. Defaults to <mesh name>.gcode.

allowOversize

Slice even if the model exceeds the build volume (rejected by default).

Printer and quality

Parameter

Description

machine

Machine name or family: "AD5X", "AD5X 0.6 nozzle", "Creator 5", "Guider 3 Ultra", "Guider4 0.4 HF", "Adventurer 3". Default: Flashforge AD5X 0.4 nozzle.

quality

fine (smallest layer), standard (closest to 0.20 mm), draft (largest). Families without the label (Guider 2s uses Detail/Optimal/Standard) get the nearest layer height.

Material

Parameter

Description

material

pla, petg, abs, asa, tpu — selects the profile, temperatures and support gap.

filament

Explicit profile name (partial match), overrides material. Nozzle-specific variant is chosen automatically.

filaments

Array of up to 4 names for multi-material jobs.

nozzleTemp, bedTemp

Temperature overrides for third-party filament.

color

G-code metadata colour (name or #RRGGBB). The physical colour comes from the spool in the IFS slot.

bedType

Build plate type, default "High Temp Plate".

Geometry and supports

Parameter

Description

orient

"auto" (default), true/"always", false. Auto rotates only when overhang drops sharply or the model starts fitting.

supports

"auto" (default), "none", "tree", "normal", or a number = tree support angle.

supportAngle

Overhang threshold in degrees from vertical.

supportStyle

organic / tree_slim / tree_hybrid for tree; grid / snug for normal.

supportOnBuildPlateOnly

Supports may start only on the build plate.

supportTopZDistance, supportBottomZDistance

Gap between support and part, mm.

supportObjectXyDistance

Horizontal clearance, mm.

supportBasePattern, supportBasePatternSpacing

Support base pattern and spacing.

supportInterfaceTopLayers, supportInterfaceBottomLayers, supportInterfacePattern, supportInterfaceSpacing

Dense interface layers under/over overhangs.

Adhesion

Parameter

Description

brim

"auto", "none", "outer", "ears". Auto adds an outer brim for tall/narrow parts and small contact.

brimWidth, brimGap

Brim width and gap, mm.

raft

true (3 layers) or number of layers.

firstLayerSpeed, closeFanLayers

First-layer speed and fan-off layer count.

Other

Parameter

Description

infill

Sparse infill density, %.

fuzzySkin

none / external / all, with fuzzySkinThickness and fuzzySkinPointDistance.

Quick start

flash_analyze { stl: "bracket.3mf", machine: "AD5X" }
flash_slice   { stl: "bracket.3mf", material: "petg", supports: "auto", brim: "auto" }
flash_slice   { stl: "part.stl", machine: "Creator 5", quality: "fine" }
flash_slice   { stl: "figure.3mf", filaments: ["PLA Basic", "PLA Matte", "PETG Pro", "PLA Silk"] }
flash_info    { file: "bracket.gcode" }

More agent-ready prompts in examples/prompts.md.

How the agent decides

The intended order is fit → orientation → supports → brim → material:

  1. Does it fit? flash_analyze checks every orientation against the build volume. If none fits, scale or cut the model; if a 90° Z rotation helps, rotate the mesh (the CLI cannot rotate around Z).

  2. Orientation. Auto-rotate when overhangs exceed 80 mm² and drop by at least 65%, or when the model stops overflowing the bed. Example: a T-shaped part goes from 1600 mm² overhang and 53 min to 64 mm² and 15 min.

  3. Supports. Auto-enables tree/organic when overhang area exceeds max(40 mm², 0.2% of surface area). Grids, lattices and vases are usually printed without supports.

  4. Adhesion. Auto-brim when height / smallest side > 4, contact area < 30% of the footprint, or contact < 30 mm².

  5. Material. PLA 215/60, PETG 250/80, ABS/ASA 260/100, TPU 225/45, with support gaps tuned so supports don't fuse to the part.

Memory and personalization

The server keeps a small local profile so the agent does not start from zero every time. It lives in ~/.flashforge-mcp/memory.json (override with FLASHFORGE_MCP_HOME), contains no telemetry, and can be turned off with FLASHFORGE_MCP_NO_MEMORY=1.

What it learns:

  • Your defaults — machine, material, quality, supports, brim, infill, bed type. Explicit values always win; omitted arguments are filled from memory and the summary lists what was applied (Из памяти: material=petg, brim=auto).

  • Habits per printer — which quality/support/brim settings you actually choose, and repeated overrides such as supportTopZDistance=0.3 after supports fused. An override is applied automatically only after it repeats (2+ times, 60%+ of choices).

  • Material temperatures — when you pass nozzleTemp/bedTemp for a material three times with the same value, that becomes the remembered temperature for it.

  • Print history — every successful slice is logged (mesh, machine, material, time, grams, supports, brim, orientation, warnings). flash_memory action=feedback marks it success/failed/partial, adds a rating and notes, and records corrections for next time.

  • Facts — flash_memory action=learn attaches free-form notes to a printer or material ("supports fused at 0.26 mm", "dry PETG 4 h").

Typical loop:

flash_printer  { machine: "AD5X" }
flash_advise   { stl: "bracket.3mf" }
flash_slice    { stl: "bracket.3mf" }
# after the print:
flash_memory   { action: "feedback", outcome: "failed",
                 notes: ["supports fused"], corrections: { supportTopZDistance: 0.3 } }

flash_advise combines the geometry report with memory: it states the plan, the risks, what it already knows about you, similar past prints and the exact flash_slice arguments. If nothing is learned yet it says so and the first slice becomes the start of the profile.

Memory is plain JSON — you can edit it, export/import it, or forget a printer, material, print list, corrections, preferences, or everything (section: "all", confirm: true).

Materials and temperatures

material

Nozzle / bed, °C

Support gap, mm

Base profile

pla

215 / 60

0.18

Flashforge PLA Basic

petg

250 / 80

0.26

Flashforge HS PETG

abs

260 / 100

0.20

Flashforge ABS Basic

asa

260 / 100

0.20

Flashforge ASA Basic

tpu

225 / 45

0.22

Flashforge TPU 95A

For third-party PETG, material: "petg" plus nozzleTemp: 245 is a safe start. Dry PETG for 4–6 hours at 65 °C if you hear popping or see stringing.

3MF and Bambu/Orca projects

Bambu Studio and OrcaSlicer save meshes in 3D/Objects/*.model and reference them from 3D/3dmodel.model with a transform. The server parses both the container and the transforms, so analysis works on those files even when the CLI refuses the container version.

If the bundled CLI rejects a newer project (File Version 2.5.x not supported by current cli version 2.4.2), flash_slice extracts the mesh, writes a temporary STL and slices it. Multi-object projects are merged in that fallback — check the preview.

Troubleshooting

Symptom

Fix

from unsupported

A vendor profile is missing "from": "system" / "instantiation": "true". The server patches its own copies; make sure you run the latest version.

File Version 2.5.0.66 not supported

Newer 3MF container. The server falls back to mesh extraction automatically.

Prints take twice as long as in the GUI

Profiles were loaded without flattening inherits. Always slice through this MCP server, not the raw CLI.

Generic PETG picks the wrong printer

It is not compatible with AD5X in the bundled profiles. Use material: "petg" (HS PETG base).

Supports fuse to PETG

Increase supportTopZDistance to 0.28–0.30 mm and keep the part cool.

Model rejected as oversize

Rotate/scale it, or pass allowOversize: true if you know what you are doing.

Nothing to be sliced

The model is outside the printable volume (often after scaling or a transform). Check flash_analyze.

More detail in docs/troubleshooting.md.

FAQ

Can an AI agent slice a 3D model? Yes. The agent needs a deterministic tool that turns a mesh into G-code. This MCP server wraps the Flash Studio/OrcaSlicer CLI and adds the geometry checks an agent needs to make sensible choices, so the result is reproducible.

Does this work with OrcaSlicer or Bambu Studio? It drives Flash Studio, the Orca-Flashforge fork installed with FlashForge printers. Profiles are OrcaSlicer-compatible. Bambu/Orca .3mf projects are read for analysis and can be sliced via the mesh-extraction fallback.

Which printers are supported? FlashForge AD5X, Adventurer 3 / 5M / 5M Pro / A5, Creator 5 / 5 Pro, Guider 2s / 3 Ultra / 4 / 4 Pro. Any printer profile bundled with Flash Studio is resolved automatically, including HF hotends.

Do I need a 3D printer to use it? No. You need Flash Studio installed (for its CLI and profiles). Slicing works offline; only actual printing needs hardware.

Can it choose supports and orientation automatically? Yes. flash_analyze measures overhangs and bed contact, orient: "auto" rotates only on a real win, and supports: "auto" enables tree supports only when overhangs justify them.

Does it work with ChatGPT, Claude, Cursor or OpenCode? Yes — it is a standard stdio MCP server, so any MCP client can use it. Configuration examples are above.

Does it send the file to the printer? No. It slices locally and returns a .gcode file. Uploading/printing is left to Flash Studio, the printer's LAN API or your own automation.

Does the agent remember my printer and preferences? Yes. It stores them locally in ~/.flashforge-mcp/memory.json: default machine/material/quality, per-printer habits, repeated overrides, material temperatures and print history. Later slices use them automatically, and flash_advise explains what it took from memory. Nothing is sent anywhere.

Can I reset or move the learned profile? Yes. flash_memory { action: "forget", section: "all", confirm: true } clears it, export/import moves it to another machine, and FLASHFORGE_MCP_NO_MEMORY=1 disables writing entirely.

Is it free? Yes, MIT licensed. No telemetry, no cloud calls.

Does it support multi-color printing? It can slice with up to 4 filaments (IFS on AD5X/Guider 4, four hotends on Creator 5). Slot assignment happens on the printer/Flash Studio side.

Why not just use the slicer GUI? For a human, the GUI is great. For an agent that has to answer "will this print, and how?", a CLI with geometry analysis and verification is faster, scriptable and auditable.

Contributing

Issues and pull requests are welcome. Please run the checks before opening a PR:

node --check server.mjs
node --test test/mcp.test.mjs

See CONTRIBUTING.md for details.

License

MIT © 2026 ildargiv


Search topics: MCP server for 3D printing · AI 3D printing agent · Model Context Protocol 3D printer · OrcaSlicer MCP · Flash Studio CLI · FlashForge AD5X MCP · Creator 5 · Guider 4 · automatic supports · STL to G-code automation · Claude 3D printing · ChatGPT 3D printing · Cursor MCP · OpenCode MCP

Available Tools

7 tools
flash_adviseA

Personalized print plan before slicing: analyzes the mesh, takes machine/material/quality from memory unless overridden, decides orientation, supports and brim, lists risks (wet PETG, open frame with ABS, tall parts), shows what is already known about this user and similar past prints, and returns a ready-to-paste flash_slice call. Use when the user asks "how should I print this?" or before slicing an unfamiliar model.

Inputs: stl (required), brim, machine, quality, +4 more.

flash_analyzeA

Analyze an STL/OBJ before slicing: bounding box, volume, bed-contact area, overhang area above an angle, and the same metrics for five axis-aligned re-orientations. Returns concrete advice: rotate, supports (tree/normal + angle), brim width, and whether the part fits the AD5X (220x220x220). 3MF gets bounds only.

Inputs: stl (required), angle, machine, material.

flash_infoA

Parse an existing .gcode and report: printer model, estimated time, layers, filament used (mm / cm3 / g), support/brim material, infill, nozzle/bed temps, vase mode, file size.

Inputs: file (required).

flash_memoryA

Local, opt-out memory of the user's printing preferences and history. Status shows learned defaults, per-printer habits, materials, recent prints and corrections. set stores an explicit preference (defaultMachine, defaultMaterial, quality, supports, brim, infill, temps). learn attaches free-form facts to a printer or material. feedback marks a print success/failed/partial, adds notes and records corrections (e.g. supportTopZDistance=0.3 after supports fused) that later advise calls use. forget removes entries; export/import move the profile between machines. Stored at ~/.flashforge-mcp/memory.json; disable with FLASHFORGE_MCP_NO_MEMORY=1.

Inputs: key, file, note, path, +12 more.

flash_printerA

Inspect a printer the way the agent should before advising: build volume, nozzle, layer range, multi-material capacity, enclosed or open frame, every compatible process and filament profile, the temperature envelope from the installed filament profiles, plus everything previously learned about this machine (slices, materials, habits, notes). Omit machine to list the installed lineup with learned usage.

Inputs: machine.

flash_profilesA

List the Flashforge machine/process/filament profiles bundled with the installed Flash Studio. Use to discover valid machine, quality (via process names) and filament arguments for flash_slice. Optionally pass filter (substring, case-insensitive) to narrow the list, e.g. "AD5X" or "PETG".

Inputs: filter.

flash_sliceA

Slice an STL/3MF/OBJ with the installed Flash Studio CLI and return a print summary. Works for the whole bundled Flashforge line (AD5X, Adventurer 3/5M/A5, Creator 5 (Pro), Guider 2s/3 Ultra/4 (Pro), HF variants); defaults to the AD5X 0.4 nozzle (220x220x220, 4-spool IFS). Profiles are flattened (inherits merged), which fixes the silent 60 mm/s generic speeds the CLI otherwise falls back to. Geometry is analyzed to choose orientation, supports and brim; newer 3MF containers the CLI rejects are re-sliced from the extracted mesh. quality: fine (smallest layer), standard (closest to 0.20 mm), draft (largest). Models that do not fit are rejected unless allowOversize=true. Pass up to 4 names in filaments for multi-color jobs. Deliverable is a .gcode file.

Inputs: stl (required), out, brim, raft, +32 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 7 tools

    Disambiguation3/5

    Most tools are clearly separated by resource and action (list profiles, slice, parse gcode, inspect printer, memory). However, flash_analyze and flash_advise overlap substantially: both analyze the mesh and both return orientation/support/brim recommendations, differing mainly in whether memory/personalization is involved, so an agent could easily pick the wrong one. flash_printer and flash_profiles also partially overlap by both enumerating process/filament profiles.

    Naming Consistency4/5

    All tools share a distinctive, predictable flash_ prefix with short single-word suffixes, which keeps them easy to scan and group. The suffix style mixes nouns (profiles, info, printer, memory) with verbs (slice, analyze, advise), a minor deviation rather than a real inconsistency.

    Tool Count5/5

    Seven tools is well-scoped for a slicer/inspection server: discovery, analysis, slicing, verification, machine inspection, personalization, and planning each get one entry point. Nothing feels padded or redundant at the count level, and the broad multi-action memory tool is consolidated rather than split into a dozen setters.

    Completeness4/5

    The lifecycle is largely covered: discover profiles and machine capability, analyze geometry, get a plan, slice, then verify the resulting gcode, all with persistent preferences. Minor gaps exist around file/artifact handling (no tool to list input models, locate or transfer the produced .gcode) and no way to re-slice with corrections other than re-calling flash_slice, but agents can work around these via paths and repeated calls.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to slice 3D models (STL files) headlessly using UltiMaker Cura's CuraEngine, returning ready-to-print G-code and estimated print time.
      12
      AGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Wraps the OrcaSlicer CLI to enable AI agents to slice 3D models, run parameter sweeps, and analyze G-code.
      106 PyPI
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables LLM clients to slice, paint, and verify 3D prints through the installed slicer's command line for any installed Bambu printer, nozzle, and filament, with settings per object type. It never sends jobs to a printer.
      2
      11
      MIT