API & MCP
Everything a person can do on Procedural Material Graph (PBR), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://renderloommaterialgraph.usefulweb.app/api/v1/calculate– run Procedural Material Graph (PBR)GET https://renderloommaterialgraph.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Procedural Material Graph (PBR)
Run a Renderloom Material Nodes graph — noise, Voronoi, bricks, gradients, blends, domain warp, levels, curves and surface-from-height nodes — and get base color, normal, roughness, metallic, ambient occlusion and height maps, a lit sphere and a tiled plane preview, a per-node report and the editable graph. Start from brick, wood, stone, metal or fabric.
| Field | Type | Default | Description |
|---|---|---|---|
preset | select (brick, wood, stone, metal, fabric, custom) | "brick" | Material graph |
graph | textarea | — | Graph JSON (for a custom graph). Format renderloom-material-graph version 1 (schema at /static/apps/renderloom/material-graph.schema.json). Copy it from Renderloom → Material Nodes. |
size | integer | 256 | Map size (px) |
seed | integer | -1 | Graph seed (−1 keeps the graph’s seed) |
Example request
Red brick wall
curl -X POST https://renderloommaterialgraph.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"preset":"brick"}'
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://renderloommaterialgraph.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
renderloom_material_graph - Local stdio connector:
node src/mcp-stdio.ts --tool=renderloom-material-graph
{
"mcpServers": {
"renderloom-material-graph": { "type": "http", "url": "https://renderloommaterialgraph.usefulweb.app/mcp" }
}
}