# 3D Build: full guide for AI agents

> Draw it, squish it, print it. A free 3D maker that runs in the browser, built for fingers on an iPad and for AI agents over MCP.

Site: https://3dbuild.thetempleofdoom.com
Version: 1.1.0. Units: millimetres. No API key. Free.

## What this is

- Doodle to solid: draw any outline with a finger or Apple Pencil on the plate or on a face and it becomes a 3D part; on a face it can stick out or cut in.
- Sculpt like clay: Pull, Push, Smooth, Drag and Squash brushes, with a mirror switch for faces and creatures.
- 21 ready parts (box, gear, star, heart, arch, stairs, tube, dome and more), each with typed sizes in real millimetres.
- Solid tools: Join, Cut, Push/Pull a face, round edges, hollow into a cup, twist, taper, bend, bulge, mirror, repeat in a ring or a row.
- Hold-and-slide wheel menu: Hole here, Peg here, Words here, right where the finger is.
- Kits to remix: keychain, name sign, phone stand, car, cup, moving hinge, robot.
- Print check: measures the model against the printer plate and fixes what it can in one tap.
- Exports STL, 3MF (with colours), OBJ, GLB, SVG, DXF and PNG at real size.
- Share link: one tap makes a link that opens a copy of the model in anyone's browser, with its own preview picture in chats.
- Keep it safe: a "Save my code" card with a QR square (picture or printout), a zip backup of every project, restore from file, and undo that survives a reload.
- A print-in-place moving hinge kit, and two-finger push/pull on any flat face.
- No accounts, no ads, no install. A workshop code keeps a family's profiles and projects in sync across devices; it saves by itself.
- Built for AI agents too: a keyless REST API and an MCP server turn a JSON parts list into printable files and a four-view picture in seconds.

## When to use it

Use 3D Build when someone asks for a printable or game-ready 3D object that can be described as simple solids added and cut: brackets, boxes, name plates, keychains, toys, wheels, gears, stands, cups, signs, organisers. It is not a photo-to-3D or text-to-mesh generator: you describe the parts, it builds exact geometry.

## Connect over MCP

Streamable HTTP: https://3dbuild.thetempleofdoom.com/mcp
Legacy SSE: https://3dbuild.thetempleofdoom.com/sse

```json
{
  "mcpServers": {
    "build3d": {
      "type": "http",
      "url": "https://3dbuild.thetempleofdoom.com/mcp"
    }
  }
}
```

Claude Code: `claude mcp add --transport http build3d https://3dbuild.thetempleofdoom.com/mcp`

Tools:
- `list_parts`: part types, parameters, rules and examples. Call it first.
- `build_model`: build a model from a parts list. Returns sizes, download links, an editor link and a four-view picture.
- `get_model`: look up a model built earlier, including the spec that made it.

## Use the REST API

- `GET https://3dbuild.thetempleofdoom.com/api/v1`: index, rules, JSON schema, examples
- `GET https://3dbuild.thetempleofdoom.com/api/v1/parts`: part catalogue
- `POST https://3dbuild.thetempleofdoom.com/api/v1/models`: build (body = spec JSON). Returns 201 with id, size, downloads, open_in_editor, expires
- `GET https://3dbuild.thetempleofdoom.com/api/v1/models/{id}`: look up a model and its spec
- `GET https://3dbuild.thetempleofdoom.com/assets/{id}/model.stl|glb|3mf|obj`, `preview.png`, `views.png`: files

```bash
curl -s https://3dbuild.thetempleofdoom.com/api/v1/models -H 'content-type: application/json' -d '{"name":"Mug","join":true,"parts":[{"type":"cylinder","d":80,"h":95,"name":"body"},{"type":"cylinder","d":72,"h":95,"at":[0,0,51.5],"op":"cut"},{"type":"torus","d":60,"t":10,"rotate":[90,0,0],"at":[44,0,48]},{"type":"cylinder","d":71,"h":90,"at":[0,0,50],"op":"cut"}]}'
```

## Rules

- All sizes are millimetres. Z is up; the floor is z = 0. X is left-right, Y is front-back.
- Each part has a "type" plus its size parameters written straight on the part (for example {"type":"box","w":40,"d":20,"h":10}). Missing parameters use the defaults.
- "at": [x, y] puts the centre of the part there and rests it on the floor. "at": [x, y, z] puts the centre of the part at that exact point (use this to stack parts or float them).
- "rotate": [rx, ry, rz] turns the part in degrees about X, then Y, then Z, before it is placed. Cylinders, cones and tubes stand along Z; rotate [90,0,0] lays them along Y, [0,90,0] along X.
- "op": "add" (default) adds a part. "cut" removes this shape from every earlier part (or only from the one named in "target"). "intersect" keeps only the overlap. Parts are processed in order.
- "reshape": [{"kind":"twist","amount":90}] twists (degrees over the height), "taper" scales the top (0.05-3, 1 = unchanged), "bend" bends over (degrees, -180 to 180), "bulge" swells the middle (-0.9 to 2).
- "round_edges": 2 rounds every edge of a simple part by 2 mm. "hollow": {"wall":2,"open":true} makes a cup. Both only work on low-detail parts (boxes, plates, prisms, low quality cylinders).
- "color" is a hex colour like "#ff8800" or a name (red, orange, yellow, green, blue, purple, pink, brown, black, white, grey, cyan, teal, gold, silver). "name" labels the part.
- Top level: "name", "join": true to merge everything into one printable solid, "quality": "low" | "medium" | "high" (roundness), "formats": any of stl, glb, 3mf, obj (default all).
- STL, 3MF and OBJ are written in mm, Z up. GLB is written in metres, Y up (the glTF standard) unless "glb_units": "mm".
- "scale": 1.5 or [sx, sy, sz] stretches a part (a sphere with scale [1,1,0.5] is a flattened ball). "mirror": "x" adds a mirrored twin across the plane x = 0 (also "y", "z", or "xy" for four copies).
- "repeat": {"count": 6} makes 6 copies evenly round the Z axis through the origin (place the first one off-centre with "at"); add "angle": 180 to spread them over part of a circle. "repeat": {"count": 4, "step": [20, 0, 0]} makes a straight row. Mirror and repeat also work on cut parts (bolt circles, rows of slots).
- Type "text" makes raised stroke lettering (capitals, digits and - . ! + / :): {"type":"text","text":"MAX","size":12,"h":2,"at":[0,0,5]}. Sit it on a surface, or use "op":"cut" to engrave. Letters lie flat reading along +X; rotate [90,0,0] stands them upright facing the front.
- Type "hull" wraps a smooth skin round several parts: {"type":"hull","of":[{"type":"sphere","d":30,"at":[0,0,15]},{"type":"sphere","d":12,"at":[40,0,6]}]} gives a teardrop body. Use it for organic, blended or tapered shapes.
- The picture returned by build_model has four views: top-left three-quarter view, top-right front (camera on -Y looking along +Y, X to the right), bottom-left right side (camera on +X, Y to the right), bottom-right top (X right, Y up). Check all four before telling the user it is done.
- Limits: 60 parts, 2000 mm per size, 400 000 triangles, 30 s per build.

## Part types

### box (Box)
- `w`: Width (mm), default 20
- `d`: Depth (mm), default 20
- `h`: Height (mm), default 20
- `round`: Round edges (mm), default 0
- `bevel`: Bevel edges (mm), default 0

### cylinder (Cylinder)
- `d`: Diameter (mm), default 20
- `h`: Height (mm), default 20
- `round`: Round edges (mm), default 0

### sphere (Ball)
- `d`: Diameter (mm), default 20

### cone (Cone)
- `d`: Base diameter (mm), default 20
- `top`: Top diameter (mm), default 0
- `h`: Height (mm), default 25

### torus (Ring)
- `d`: Outside diameter (mm), default 30
- `t`: Thickness (mm), default 8

### wedge (Ramp)
- `w`: Length (mm), default 30
- `d`: Depth (mm), default 20
- `h`: Height (mm), default 15

### tube (Tube)
- `d`: Outside diameter (mm), default 20
- `wall`: Wall (mm), default 2
- `h`: Height (mm), default 25

### plate (Plate)
- `w`: Width (mm), default 60
- `d`: Depth (mm), default 40
- `h`: Thickness (mm), default 3
- `round`: Corner radius (mm), default 4

### pyramid (Pyramid)
- `sides`: Sides (count), default 4
- `d`: Base size (mm), default 24
- `h`: Height (mm), default 20

### prism (Prism)
- `sides`: Sides (count), default 6
- `d`: Size (mm), default 24
- `h`: Height (mm), default 15

### dome (Dome)
- `d`: Diameter (mm), default 24

### capsule (Capsule)
- `d`: Diameter (mm), default 12
- `h`: Height (mm), default 30

### star (Star)
- `points`: Points (count), default 5
- `d`: Size (mm), default 30
- `inner`: Pointiness (ratio 0.15-0.95), default 0.45
- `h`: Thickness (mm), default 5

### heart (Heart)
- `w`: Width (mm), default 30
- `h`: Thickness (mm), default 5

### gear (Gear)
- `teeth`: Teeth (count), default 12
- `d`: Diameter (mm), default 36
- `h`: Thickness (mm), default 6
- `hole`: Hole (mm), default 6

### arch (Arch)
- `w`: Width (mm), default 40
- `d`: Depth (mm), default 10
- `h`: Height (mm), default 35
- `t`: Thickness (mm), default 6

### stairs (Stairs)
- `w`: Width (mm), default 20
- `d`: Length (mm), default 40
- `h`: Height (mm), default 20
- `steps`: Steps (count), default 5

### extrude (Flat outline pulled up)
- `points`: Outline as [[x,y],...] in mm, at least 3 points, not self-crossing
- `holes`: Optional list of hole outlines, each [[x,y],...], default []
- `h`: Height (mm), default 10
- `twist`: Twist over the height (degrees), default 0
- `taper`: Top scale, 1 = straight, 0 = point (ratio 0-4), default 1
- `round`: Round the outline corners (mm), default 0

### text (Raised lettering (single-line stroke letters: A-Z, 0-9 and - . ! + / :))
- `text`: The words, up to 40 characters; lower case is drawn as capitals, default "HI"
- `size`: Letter height (mm), default 10
- `h`: Thickness (how far the letters stand up) (mm), default 2
- `weight`: Stroke width; default is 14% of the letter height (mm)

### hull (Smooth skin stretched around several parts (for blended, organic or tapered bodies))
- `of`: List of ordinary parts (each with type, sizes, at, rotate). The result is the tightest convex shape that wraps them all, placed where they are.

### revolve (Profile spun around the Z axis (vase, wheel, knob))
- `points`: Half profile as [[radius,height],...] in mm, radius >= 0
- `deg`: Sweep angle (degrees), default 360

## Examples

### Mug

```json
{"name":"Mug","join":true,"parts":[{"type":"cylinder","d":80,"h":95,"name":"body"},{"type":"cylinder","d":72,"h":95,"at":[0,0,51.5],"op":"cut"},{"type":"torus","d":60,"t":10,"rotate":[90,0,0],"at":[44,0,48]},{"type":"cylinder","d":71,"h":90,"at":[0,0,50],"op":"cut"}]}
```

### Name plate

```json
{"name":"Name plate","parts":[{"type":"plate","w":70,"d":24,"h":3,"round":4,"color":"blue","name":"plate"},{"type":"text","text":"MAX","size":12,"h":1.5,"at":[0,0,3.75],"color":"white"},{"type":"cylinder","d":4,"h":10,"at":[30,0,1.5],"op":"cut","target":"plate","mirror":"x"}]}
```

### Wheel

```json
{"name":"Wheel","join":true,"parts":[{"type":"revolve","points":[[4,0],[30,0],[32,2],[32,10],[30,12],[4,12]],"name":"wheel"},{"type":"cylinder","d":10,"h":14,"at":[18,0,6],"op":"cut","repeat":{"count":5}}]}
```

### Toy fish

```json
{"name":"Toy fish","parts":[{"type":"hull","color":"orange","name":"body","of":[{"type":"sphere","d":30,"scale":[1,0.6,1],"at":[0,0,20]},{"type":"sphere","d":8,"at":[38,0,20]}]},{"type":"extrude","points":[[0,0],[16,12],[16,-12]],"h":3,"rotate":[90,0,0],"at":[46,0,20],"color":"orange"},{"type":"sphere","d":5,"at":[-9,8,24],"color":"black","mirror":"y"}]}
```

## Tips for good results

- Look at all four views in the picture before saying it is done; fix anything floating or poking through.
- Use "join": true when the result should print as one piece.
- Keep walls 1.2 mm or thicker for home printers.
- Give the person the open_in_editor link: they can doodle, sculpt and resize the model by hand, then export it.

## The editor, for people

https://3dbuild.thetempleofdoom.com/ opens the editor. No sign-up: tap "Start a new workshop", pick a name, build. Works with touch, Apple Pencil, mouse and keyboard. Installable as a home-screen app.
