Quick Answer: Forma is a pure-Rust, headless 3D polyhedral modeling engine built for AI agents. It ships as a ~1.7 MB native binary or a ~0.8 MB WASM module, exposes a declarative Forma-Pipe language, and includes an MCP server. It works as a headless Blender alternative for agents that need watertight parts, not the full Blender feature set.

If you're looking for a headless Blender alternative that an LLM agent can drive without a 953 MB install, you're not alone. Most agent pipelines end up generating Blender Python against bpy, and that works until it doesn't. Forma, published by wrong-nebula on GitHub, takes a different route: a small Rust binary, a compact modeling language, and an MCP server with four tools. Here's what it trades away and what it gains.

Why bpy scripting breaks down for agents

The common advice is simple: LLMs know Python, so let the agent write bpy code. That advice is incomplete. The failure surface isn't the language. It's the size of the API the agent has to get right.

Stock headless Blender 5.3 is a large dependency. According to the Forma README, its install footprint is 953 MB, and its cold-start evaluate-plus-GLB-export time is 1,306.8 ms. Its peak resident memory is 223 MB. Those numbers matter less than the failure mode: a script can run cleanly and still produce geometry that is not what you asked for.

Consider a flange with four bolt holes. An agent writes a bpy script that creates a box, adds boolean modifiers, and exports a GLB. Every step succeeds. The export contains an open mesh with a stray non-manifold edge, and nothing in the pipeline reports it. That's the silent failure that matters.

The README's own benchmark reports a 79.1% pass rate for bpy across 12 models and 9 labs, compared with 95.5% to 100% for Forma. Treat those numbers as the project's self-reported results, not an independent audit, but the direction matches the failure mode described above.

How Forma-Pipe changes what the agent writes

Forma-Pipe is a declarative chain language. You describe a part as a pipeline of primitives and operations, and the engine handles the geometry underneath. The README's flange example looks like this:

flange = box(4, 2, 0.4)
  | mat("brushed_steel", color=(0.55, 0.68, 0.85), metallic=0.9, roughness=0.25)
  | cut(cyl(0.5, 1))
  | cut(cyl(0.25, 1), at=[(-1.4,-0.5,0), (-1.4,0.5,0), (1.4,-0.5,0), (1.4,0.5,0)])
section(flange, 0.0)

Two design choices matter here. First, selectors are semantic. Instead of referencing vertex 214, you select top_rim, bottom_rim, outer_rim, vertical, top, or sides. An agent that guesses an integer index will get a plausible-looking wrong answer, and semantic selectors remove that guessing step.

Second, the language is small enough to fit in a prompt. The README states that forma spec returns a language reference of about 485 tokens. Smaller grammars are easier to constrain. Forma also ships a GBNF grammar (grammar/forma_pipe.gbnf) for constrained decoding, so a local model can be restricted to syntactically valid output.

Here's where most people expect a trade-off. A smaller language sounds less capable. In practice, for the part families it targets, the constraint is the feature: fewer valid ways to write a bad script means fewer bad scripts.

Strict booleans: why a failure is the right answer

Forma's booleans are strict by default. The README describes BVH-localized CSG with automatic batch chunking and fallback for multi-hole patterns, and it describes the kernel as a double-precision polyhedral mesh kernel that produces watertight manifold output.

Here's the cause-and-effect chain. When an input would produce a non-manifold result, strict mode makes the eval fail. The agent receives an error, not a file. The agent can then retry with a different operation order or different dimensions. Without strict mode, the same input might produce a file that looks correct in a preview and fails in a slicer.

The README also describes --strict as part of a transactional eval. Each run produces a spatial diff (around 100 tokens, per the README) that lets the agent see what changed. Transactional snapshots mean a failed edit doesn't corrupt the previous state.

Most guides skip this part. A failing eval is more useful to an agent than a passing one that hides a defect. Strict mode turns a silent failure into a loud one, and loud failures are what agent loops can recover from.

Reading the benchmarks critically

The README benchmarks six exact-dimension tasks: flange_plate, pipe_tee, beveled_enclosure, hex_nut, subdiv_mug, and pedestal_bowl. It says the outputs were checked independently with trimesh and scipy, using Chamfer distance, Hausdorff-99, generalized winding number volumetric IoU, watertight and non-manifold checks, and 16-layer planar sliceability.

Here is the README's headline comparison, with the numbers as published:

FactorFormaStock headless Blender 5.3 (bpy)
Install / binary footprint~1.7–1.8 MB native (~0.8 MB WASM)953 MB
Cold-start eval + GLB export16.9 ms (5.4 ms batch flange)1,306.8 ms
Peak memory RSS~6–14 MB223 MB
Scripting interfaceDeclarative Forma-PipePython bpy API

Read these with three caveats in mind:

  • The benchmark is six tasks. That's a narrow set of part families, not a general measure of 3D capability.
  • The comparison comes from the project's own repository. Independent replication is the right next step.
  • The token-efficiency claim (3.49× fewer completion tokens on average, up to 15.5×) depends on which models you test with.

Even with those caveats, the footprint and cold-start numbers are large enough that the direction is hard to dispute.

Where Forma runs that Blender can't

The footprint difference opens deployment options that a 953 MB desktop stack rules out. The README says wasm/forma.wasm is a zero-import WebAssembly module with no WASI and no top-level node:* imports. It documents Cloudflare Workers, Vercel Edge, Deno Deploy, and browsers as targets, and it lists static musl Linux binaries of about 1.3 MB for serverless containers.

That matters for agents that run in restricted environments. The README describes a no-network sandbox option: a zip containing the static forma binary, a zero-dependency sandbox/forma.py wrapper, and SKILL.md. The wrapper copies the binary to /tmp when the mount is noexec, which is a real failure mode in some hosted VMs.

Here's the practical implication. If your agent runs inside a serverless function with a 256 MB memory ceiling, a 223 MB Blender process leaves almost no headroom. A 6–14 MB Forma process does not.

Limitations you should plan around

A good replacement tells you what it can't do. Forma has several.

  • STEP export is faceted. The README describes .step output as a watertight planar-face solid, with no analytic cylinders or NURBS. If a downstream CAD tool expects true curved surfaces, you'll get faceted geometry.
  • Blend export needs a bridge. .blend output goes through an optional Blender bridge. Without Blender installed, you don't get native .blend files.
  • Scope is mesh modeling. The README positions Forma as a replacement for Blender's 3D mesh modeling, boolean, and studio-preview workflow. It doesn't claim to cover Blender's full feature set, and you shouldn't assume it does.
  • Import is limited to three formats. The README lists .glb, .obj, and .stl importers. Other formats need conversion first.

That said, there's a real catch with the faceted STEP output: if your part needs a precise cylindrical bore for a press fit, a faceted approximation can differ from the nominal diameter by more than your tolerance. Check the facet count against your tolerance budget before you ship.

Getting a first part running in five minutes

You don't need to adopt Forma wholesale to test it. Here's the fastest path:

  1. Run the zero-install WASM build with npx -y forma-3d eval --strict --out flange.glb --render flange.png --draw flange.svg script.forma.
  2. Open the rendered flange.png and the flange.svg blueprint to check dimensions visually.
  3. Add the MCP server to your client config using npx -y -p forma-3d forma-3d-mcp. The README says it exposes four tools (eval, inspect, tx, export) with a schema budget of 723 o200k tokens.
  4. Point your agent at forma spec so it has the language reference in context.

The forma-3d package is also available on npm for JavaScript and TypeScript embedding.

Frequently Asked Questions

Is there a headless Blender alternative for AI agents?

Yes. Forma is a pure-Rust headless 3D modeling engine with a CLI, a WASM build, and an MCP server. It targets mesh modeling, booleans, and studio previews, and it produces watertight output in GLB, OBJ, STL, 3MF, and STEP formats. It doesn't replicate all of Blender, so check whether your workflow falls inside its scope.

How do I connect Forma to an AI agent?

Add the MCP server to your client's config with npx -y -p forma-3d forma-3d-mcp. Then run forma spec to load the Forma-Pipe language reference into the agent's context. Use forma eval --strict so failed geometry returns an error the agent can act on.

Why does a strict Forma eval fail on a boolean?

Strict mode rejects operations that would produce a non-manifold or non-watertight result. The eval fails instead of writing a broken file. Adjust the dimensions, reorder the operations, or split a multi-hole cut into batches, then rerun.

Can Forma export to .blend files?

Only through an optional Blender bridge. The README lists .blend as an export format that depends on that bridge, so you need a Blender installation for it. Without one, export to GLB, STEP, 3MF, or OBJ instead.

Start with one part this week

A headless Blender alternative only matters if it fits your pipeline, and the fastest way to find out is to run one part. Pick a flange or bracket your agent currently builds in bpy, write the same part in Forma-Pipe, and compare the eval time, the strict-mode result, and the spatial diff. Pass this to whoever on your team is fighting Blender installs in CI, and ask them to run the flange example with --strict and report what breaks.