Forma Shrinks AI 3D Modeling From 953 MB to 1.2 MB
A 1.2 MB Rust binary replaces a 953 MB Blender install, cuts token usage up to 15x, and runs headless 3D modeling at agent speed.
Takeaways
- Forma is a 1.2 MB pure-Rust rewrite of headless Blender, replacing a 953 MB stack for AI agents (repo)
- Declarative Forma-Pipe DSL with semantic selectors eliminates fragile vertex-index scripting common in bpy
- Cold-start eval plus GLB export runs in 16.9 ms, roughly 77x faster than Blender 5.3
- Completion tokens drop 3.49x on average and up to 15.5x across 12 models and 10 labs
- Ships CLI, MCP server (789 tokens, 4 tools), GBNF grammar, and zero-GPU 4-view studio renderer
- Exports .glb, .step, .3mf, .stl, .obj, .svg, .png and .blend via optional Blender bridge; MIT licensed
LLM agents commonly automate 3D modeling by generating Python against Blender’s bpy API. That approach provides access to Blender’s mature toolset, but it also requires a roughly 953 MB installation, incurs process startup costs, and produces scripts that can fail when mesh operations change numbered vertex, edge, or face indices.
Forma narrows the scope to CAD-style geometry and procedural assets. The project combines a Rust modeling engine, command-line interface, declarative language, and Model Context Protocol server. Its author reports a 1.2 MB release binary, a 16.9 ms cold start, and substantial reductions in generated code and token use compared with headless Blender.
Pipes replace index-heavy Python
Forma-Pipe expresses models as chains of operations such as box | bevel | shell | cut. Each stage receives geometry from the previous stage, which gives models a compact grammar and removes much of the Python scaffolding required to create objects, switch modes, select mesh elements, and invoke Blender operators.
Semantic selectors such as vertical, top_rim, bottom_rim, outer_rim, top, and sides identify geometric features by meaning. Generated scripts therefore depend less on integer indices that may change after a bevel, Boolean operation, or subdivision.
The engine stores solids as a double-precision polyhedral boundary representation, or B-rep, built from connected faces, edges, and vertices. Its published capabilities include:
- Solid operations: BVH-localized Boolean operations, batch constructive solid geometry for repeated holes, shells, sweeps, lofts, pipes, and helical threads.
- Surface operations: ring-preserving bevels, crease-aware Catmull-Clark subdivision, and coplanar simplification constrained by the mesh Link Condition.
- Procedural tools: 3D text plus linear and radial patterns.
- Inspection: a CPU-based four-view renderer that the project reports can produce PNG previews in about 4 ms.
- Drawings: SVG engineering views through
forma draw.
Published benchmarks favor smaller prompts
The repository’s headline comparison runs Forma against stock Blender 5.3 on six exact-dimension modeling tasks. A separate verifier uses trimesh and scipy to measure Chamfer distance, 99th-percentile Hausdorff distance, and volumetric intersection over union. These metrics capture average surface mismatch, large local errors, and the overlap between generated and reference volumes.
| Metric | bpy |
Forma | Reported change |
|---|---|---|---|
| Distribution size | 953 MB | 1.2 MB | About 794× smaller |
| Cold start plus GLB export | 1,306.8 ms | 16.9 ms | 77.3× faster |
| Peak resident memory | 223 MB | 2.16 MB | About 103× lower |
| Mean completion tokens across 12 models | 294,661 | 84,551 | 3.49× fewer |
| Pass rate across models from 10 labs | 79.1% | 95.5% to 100% | 16.4 to 20.9 percentage points higher |
Across the project’s 12-task suite and 144 trials, median generated-code length falls from 644 tokens with bpy to 115 with Forma. Mean volumetric intersection over union rises from 0.84 to 0.98 in the same results. The complete four-tool MCP schema occupies 789 tokens under OpenAI’s o200k tokenizer.
A flange with a central opening and four mounting holes illustrates the source of those savings:
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)
These figures remain project-reported, although the geometry checks use libraries outside Forma itself. Startup time and memory use will vary with the operating system, hardware, compiler settings, and Blender installation, so production evaluations need representative workloads and target machines.
Four routes into an agent stack
The CLI can run without a local Rust build through the published npm package:
npx -y forma-3d
MCP clients can launch the companion server and expose Forma’s tools directly to an agent. Client configuration formats vary, but a typical entry uses npx as the command:
{
"mcpServers": {
"forma": {
"command": "npx",
"args": ["-y", "forma-3d-mcp"]
}
}
}
Agent runtimes can also load the repository’s skill file and llms.txt index. Local inference systems can use the supplied GBNF grammar to constrain decoding to Forma-Pipe syntax, reducing malformed commands before execution.
The scope ends at CAD-style geometry
Forma concentrates on procedural solids, mechanical parts, printable objects, and engineering drawings. It omits animation, sculpting, shader-graph editing, and an interactive 3D viewport. Teams building film scenes, character assets, or game environments would still need a broader digital-content creation package.
The repository lists native GLB export with PBR materials and automatic triplanar UVs, along with STEP, 3MF, STL, OBJ, SVG, and PNG output. Exporting a .blend file uses an optional Blender bridge, which adds Blender back to that specific workflow.
Model capability remains a limiting factor. The project reports that DeepSeek v4.1-flash completed three of six Forma tasks, showing that valid syntax and semantic selectors cannot eliminate geometric planning errors. Evaluation should cover dimensional accuracy, Boolean robustness, export compatibility, and recovery from invalid operations for each intended model and part family.
Forma is available under the MIT license and can also be compiled from source with cargo build --release. Its compact grammar and runtime make it a focused option for agents that generate parametric parts without requiring Blender’s full application stack.