API & MCP
Everything a person can do on 3D Mesh Repair (STL, OBJ, PLY), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://renderloommeshrepair.usefulweb.site/api/v1/calculate– run 3D Mesh Repair (STL, OBJ, PLY)GET https://renderloommeshrepair.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
3D Mesh Repair (STL, OBJ, PLY)
Repair an STL, OBJ or PLY mesh: weld duplicate vertices, remove zero-area and duplicate triangles, make the winding consistent with outward normals and fill small holes. Download the repaired file and a before/after report.
| Field | Type | Default | Description |
|---|---|---|---|
file | file | — | Mesh file (STL, OBJ, PLY or GLB). Binary or ASCII STL, OBJ, ASCII/binary PLY, or GLB (glTF 2.0 binary; geometry in metres, read with every node transform) up to 30 MB and 500000 triangles. |
meshText | textarea | — | Or paste an ASCII STL, OBJ or PLY mesh |
output | select (same, stl-binary, stl-ascii, obj, ply-binary, ply-ascii, glb) | "same" | Output format |
unit | select (mm, cm, m, in) | "mm" | Model units (for GLB output). GLB stores metres. Choose the units the model was drawn in; GLB input is already in metres. |
weld | select (auto, exact, loose) | "auto" | Vertex welding |
fillHoles | boolean | true | Fill small holes |
maxHoleEdges | integer | 64 | Largest hole to fill (edges) |
Example request
Close an open box, fix a flipped and a duplicated triangle (OBJ → binary STL)
curl -X POST https://renderloommeshrepair.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"file":{"filename":"open-box.obj","contentType":"model/obj","contentBase64":"IyBSZW5kZXJsb29tIG1lc2ggKHVzZWZ1bHdlYi5zaXRlKQp2IDAgMCAwCnYgMjAgMCAwCnYgMjAgMjAgMAp2IDAgMjAgMAp2IDAgMCAyMAp2IDIwIDAgMjAKdiAyMCAyMCAyMAp2IDAgMjAgMjAKZiAxIDIgMwpmIDEgNCAzCmYgMSAyIDYKZiAxIDYgNQpmIDIgMyA3CmYgMiA3IDYKZiAzIDQgOApmIDMgOCA3CmYgNCAxIDUKZiA0IDUgOApmIDEgNiA1Cg=="},"output":"stl-binary"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://renderloommeshrepair.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
renderloom_mesh_repair - Local stdio connector:
node src/mcp-stdio.ts --tool=renderloom-mesh-repair
{
"mcpServers": {
"renderloom-mesh-repair": { "type": "http", "url": "https://renderloommeshrepair.usefulweb.site/mcp" }
}
}