Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FORGE3D_WORKDIRNoAbsolute path to the working directory used by the forge3d MCP server for outputs (models, viewers, job records).
FORGE3D_EXEC_MODENoSet to 'subprocess' to run agent code in a killable child process with rlimits instead of inside the server (HTTP mode forces subprocess isolation).
FORGE3D_THREE_URLNoURL of a local mirror of three.js used when building the single-file viewer page, for air-gapped machines (defaults to a CDN).
FORGE3D_HTTP_TOKENNoBearer token required by the HTTP transport for any non-loopback bind (e.g. set via openssl rand -hex 32). The server refuses a public bind without a token.
FORGE3D_ALLOW_CODE_EXECNoSet to false to disable execution of agent-written code by the procedural, cadquery and blender backends.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": true
}
resources
{
  "subscribe": false,
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_backendsA

List every geometry engine with its availability, strengths and weaknesses.

Call this first when a model needs something other than the default. The available flag is ground truth for this machine — do not guess.

doctorA

Diagnose this runtime: OS, Python, which engines exist, what is missing and how to fix it.

Call this when a backend reports itself unavailable, or before telling a user that something cannot be done. It returns copy-pasteable install commands for the current OS rather than a generic error.

plan_modelB

Turn a vague request into a checkable model spec, before generating anything.

purpose is print | web | game | cad | any and it changes what "correct" means. dimensions are real-world sizes in units, e.g. {"x": 180, "y": 90, "z": 75}. The response lists what is still missing — ask the user for those instead of inventing them.

create_modelB

Generate a 3D model and return its card, validation report and viewer link.

backend='auto' routes from the spec; pass an explicit engine when you know better. source is the code that builds the model for the code backends: procedural — python defining build() -> trimesh object openscad — OpenSCAD CSG source blender — a bpy script cadquery — python assigning result hosted — optional prompt override for a text-to-3D service

Returns path (the mesh), viewer (a single-file HTML page you can hand to anyone) and validation. Always read validation.ok before calling it done.

get_jobA

Read one generation job by id (status, output path, log, error).

list_jobsC

Recent generation jobs, newest first.

inspect_modelB

Geometry facts for a model file: triangles, dimensions, watertightness, bodies.

Cheap and safe on broken meshes. Use this instead of opening the file.

validate_modelA

Check a mesh against a delivery profile: print, web, game, cad or any.

Each failure carries a hint. ok is false only when an error-severity check fails — warnings are judgement calls, errors are blockers.

repair_modelB

Merge, drop, fill, re-orient — and optionally decimate — a broken mesh.

Writes a new file (never overwrites the input unless you pass the same path). Returns the actions taken so you can tell a human what changed.

convert_modelB

Convert between mesh formats: stl, obj, ply, off, glb, gltf, dae.

Delivery cheat-sheet: print -> stl, web/game -> glb, archival/CAD -> step (step needs the cadquery backend, not this tool).

render_modelA

Render CPU preview images (iso, front, right, top) so you can see the model.

Use this after every generation. A model you have not looked at is a guess.

make_viewerB

Build a single self-contained Three.js HTML page with the model embedded.

The mesh is embedded as a data URI, so the page needs no server, no CORS and no hosting — send the file to anyone. Note that three.js itself loads from a CDN by default: for an air-gapped machine, set FORGE3D_THREE_URL to a local mirror before building the page. For embedding inside an existing web app, use the forge3d-viewer custom element instead (viewer_assets/forge3d-viewer.js).

create_planetA

Generate a procedural rocky planet: terrain, craters, optional canyon, baked PBR maps.

Deterministic — the same seed always produces the same planet, so a website hero image is reproducible. Writes albedo, normal and metallic-roughness textures with correct spherical UVs and embeds them in the GLB.

Use this instead of writing noise code inside create_model: the crater profile, seamless 3D noise sampling and UV layout are already correct here, and a hand-rolled version usually gets at least one of them wrong.

radius is in world units. subdivisions: 4 = ~5k faces, 5 = ~20k, 6 = ~82k. texture_resolution 0 disables baking (vertex colours only, much smaller file).

make_scene_viewerC

Compose several models into ONE self-contained Three.js page.

list_shapesA

Catalogue of maths-defined shapes, with the equation and parameters for each.

Call this before create_shape. Every entry states whether it is a closed solid (safe to print) or an open surface (visual only), and what each parameter does — so you can pick a family instead of writing vertex loops.

create_shapeA

Build a shape from a mathematical equation and export it to any mesh format.

Pick a family with list_shapes, then pass the numbers. Everything is deterministic: the same shape and params give the same mesh every time.

resolution controls detail (12-512). It is the one knob you usually need — raise it for a hero asset, lower it for a game prop or a phone scene.

export_format: glb (default, web), stl (print), obj, ply, off, gltf, dae. GLB and STL are always written; export_format adds one more.

Shapes marked closed: false (mobius, helicoid, catenoid) are open surfaces — visually correct, but not printable solids. validate_model will say so.

list_providersA

List text-to-3D providers: what is configured here, and what is verified.

Call this before choosing backend="hosted". available means credentials exist on this machine; verified means the adapter has been exercised against a live account by the maintainer. Most commercial adapters are NOT verified — pass check=true to make a real authenticated request and settle it.

model_cardA

A ~300-token summary of a model file — the only safe way to describe it in context.

Never read mesh data directly; call this and pass the path onward.

checklistA

Get a review checklist: brief, geometry, print, web, game or delivery.

Tick items as they are verified and carry the dict into the handoff.

create_handoffB

Write a handoff packet (JSON + Markdown) so the next agent or teammate needs no context.

owners maps a role to a name, e.g. {"design": "priya", "geometry": "agent-a"}.

review_modelA

One call for the whole review loop: validate + render + card.

Use this as the last step before telling a user the model is ready, and after every repair.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.3/5.0

Scored across 21 tools

Disambiguation4/5

Most tools target distinct pipeline stages: backend discovery, planning, generation, inspection, validation, repair, conversion, rendering, viewing, and handoff. There is some potential overlap between create_model, create_shape, and create_planet, and review_model intentionally aggregates validate/render/card, but the descriptions clearly explain when each is appropriate.

Naming Consistency4/5

The set is mostly consistent verb_noun naming (list_backends, create_model, inspect_model, validate_model, repair_model, convert_model, render_model, make_viewer, create_handoff, review_model). A few outliers such as doctor, model_card, and checklist are still readable and domain-appropriate, but they break the otherwise predictable convention.

Tool Count3/5

At 21 tools, the surface is heavy for an MCP server and sits at the borderline of the recommended range. The broad 3D generation/validation/delivery domain justifies many of them, but some grouping or consolidation could reduce cognitive load.

Completeness4/5

The core lifecycle is well covered: plan, generate, inspect, validate, repair, convert, render, review, and hand off. Minor gaps remain around job/model cleanup or cancellation, explicit scene creation, and direct STEP export, but agents can generally work around these.

Maintenance

ActivityNo data
ResponsivenessOutdated data