wrong-nebula/forma
Media & DesignA pure-Rust 3D B-rep engine with a pipe scripting language, CLI, and MCP server for AI agents to build CAD models.
This project ships 1 agent skillsSkill list and install →What it does
Forma is a compact 3D modeling engine written in pure Rust, positioned as a headless alternative to Blender's bpy scripting workflow for agents that build and export CAD-style models. Instead of integer vertex indices, it uses Forma-Pipe, a declarative pipe language with semantic selectors (vertical, top_rim, sides), so a model can be expressed as chains such as box | bevel | shell | cut.
The kernel provides a double-precision polyhedral B-rep, booleans aimed at watertight results, bevel/shell/subsurf operations, and patterns, threading, sweep, and text primitives. It also includes relational placement (| on(base), | align(...)) and spatial queries such as clearance(a, b) and section(part, z). Output paths cover .glb, .obj, .stl, .step, .3mf, .svg, .png, and optional .blend through a Blender bridge; rendering is CPU-only, producing 4-view studio PNGs and dimensioned SVG blueprints.
The project is aimed at AI-agent workflows, not at interactive modelers: integration is offered through an MCP server with four tools (eval, inspect, tx, export), a CLI, an Agent Skill, and a GBNF grammar for constrained decoding (integration guide, grammar).
Quickstart
To try it without installing anything, run the npm/WASM package with a pipe script on standard input:
npx -y forma-3d eval --strict --out flange.glb --render flange.png --draw flange.svg <<'EOF'
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)
EOF
This writes flange.glb, a rendered flange.png, and a vector blueprint flange.svg. To build the native binary instead, clone the repository, run cargo build --release, and invoke ./target/release/forma eval --strict --out flange.glb --render flange.png --draw flange.svg script.forma with a script file, as described in the quickstart.
For agent use, configure an MCP client with npx -y forma-3d-mcp as the server command, or call forma spec to get a short language reference before writing scripts. The npm package forma-3d also exposes evalPipe, exportMesh, and renderPng for JavaScript/TypeScript use (npm package).
Constraints
- The tool is a scripting/CLI engine, not a GUI modeler; geometry is authored in
Forma-Pipesyntax. - The optional
forma-serverHTTP worker is a separate crate built withcargo build --release -p forma-serverand is not part of the core CLI, MCP server, or WASM bundle. .blendexport requires the optional Blender bridge; other formats are handled natively.- Rendering is CPU-based by design, so preview output is a studio-style raster image and SVG blueprint rather than an interactive viewport.
- The project is MIT licensed (LICENSE).
Performance claims
The README reports benchmarks against stock headless Blender 5.3 with bpy: a 16.9 ms cold-start eval plus GLB export, 1.2 MB binary versus 953 MB, roughly 2.16 MB peak memory, and higher pass rates on a 12-model agent suite (full benchmark report, verification report). These are the maintainers' own measurements and methodology; they are not independently reproduced here.
HotRepo's take
Forma appeared on the new-project feed on 2026-12-02, recording 150 stars and 11 forks within roughly three hours of the measured window. That is a single new-period snapshot, with no all-language daily rank recorded, so it shows early attention rather than a sustained trend. The more notable technical point is the positioning: a 1.2 MB Rust binary with an MCP interface and constrained-decoding grammar targets agent-driven geometry work, a niche where Blender scripting is the incumbent. Whether the benchmark gains hold outside the maintainers' task set is the question to watch.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- earthtojake/text-to-cadLets coding agents generate manufacturable 3D CAD parts and export STEP, STL or 3MF files locally.
- Sandflow-ai/sand3dPython library for building parametric, articulated 3D models as short programs, designed for LLMs to write and humans to read.
- f3d-app/f3dA fast, minimalist 3D viewer for many mesh, CAD and scientific formats, with CLI control and a C++/Python/Java/JS rendering library.
- ahujasid/mcp-for-blenderLets an LLM drive Blender through MCP so you can build and edit 3D scenes with prompts instead of manual modeling.
- islandmed/SculptForgeOpen-source digital sculpting for Linux, macOS and Windows, with game-ready LODs, Unreal and Blender links, and built-in AI brush and 3D model generation.