About Kiln
Kiln is an MCP server published by instruktlabs in the Gaming category: build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export. Conduid read 44 tools from its source: kiln_assets, kiln_capabilities, kiln_discover, kiln_export, kiln_import, kiln_inspect and 38 more. It is published to npm as @instruktlabs/kiln and starts with npx.
The repository has 359 stars and 43 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v1.10.1 (29 Nov 2026): Kiln 1.10.1 fixes two problems in 1.10.0. It follows v1.10.0 (29 Nov 2026), and the 5 most recent releases go back to v1.7.0 (8 Nov 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include 3d, 3d-assets, 3d-modeling, agent-tools, asset-pipeline and cli.
Install
claude mcp add kiln-0acd -- npx -y @instruktlabs/kilnnpx -y @instruktlabs/kilngit clone https://github.com/instruktlabs/kilnTools (44)
kiln_assetsBrowse saved assets: collections discovers storage; catalog searches all configured collections; list searches one. Both searches paginate. get returns a build record/downloads; restore loads exact source for kiln_source/kiln_edit. Collection is not project membership. Binary-only assets cannot restore source.| Parameter | Type | Description |
|---|---|---|
| action | string | |
| limit | number | |
| offset | number | |
| query | string |
kiln_capabilitiesInspect declared host capabilities, execution limits and available storage. Observed rendering fidelity is returned by each render.kiln_discoverDiscover Kiln operations, assemblies, recipes, tool-input shapes and current host capabilities. Omit arguments for a compact overview. Search with ordinary modeling language using query; refine with family, kind or tags. Fetch complete contracts/examples with ids (up to six exact IDs, executable names or shape: ids). Overview/search pages default to six summaries. Recipes guide construction without restricting the asset. Search runs locally without models or network calls.kiln_exportExport one saved revision, or the GLB a programRef builds. With programRef, nothing is saved: it returns a resource for the bytes kiln_save would persist, so a destination audit can read them before a save. Default editable returns exact GLB, source, preview, and manifest descriptors; configured hosts may include portable editable ZIP download URLs. Opt-in runtime returns a standalone GLB plus a versioned metadata sidecar: it moves Kiln review clips out of GLB extras, keeps native animation and application metadata, and marks the parameters it carries, listing them in the sidecar. Resource URIs remain readable through resources/read. Canonical revisions never change; no binary bytes are placed in tool text.kiln_importCopy a pinned asset revision between configured collections, preserving identity and provenance. Copies never track later edits automatically. For a GLB or downloaded ZIP on disk, use kiln import <file> --collection <name> in the CLI.kiln_inspectList complete part paths with listParts and image:false; query filters names/paths, offset/limit paginate. Follow partListing.nextOffset. ZOOM IN on one part: renders a single 512x512 close-up framed to the named part (the node name you gave createPart, matched case-insensitively with a substring fallback) and its descendants, from one camera. Use it after kiln_render reveals a suspect region — a floating part, a bad joint, a wrong proportion — to see fine detail one grid cell cannot show. args: part (omit to frame the whole asset in one large view), view (front/right/back/left/top/three-quarter, default three-quarter), azimuthDeg + elevationDeg (orbit to ANY angle instead of a named view: azimuth 0 = front, 90 = right, 180 = back, 270 = left; elevation 0 = eye level, positive looks down, clamped to -89..89), zoom (padding multiplier around the part bounds, 1 = tight crop up to 4 = wide context, default 1.2), isolate (hide everything except that part, default false). Reach for the orbit angles when a named view puts the thing you need to judge edge-on or behind something — the reply always tells you the azimuth/elevation it used, so you can step from there. If the part name does not resolve you get the list of available part names back — pick one and retry. By default surrounding geometry stays visible for context and can occlude the part: either pick a different view, or set isolate:true to hide everything else and see the part unobstructed (use it for anything buried inside or behind other geometry). A view that changes only the camera is rendered from the artifact GLB bytes; isolate, hide or a lower level of detail renders from a deterministic derivative GLB. viewFidelity names the bytes, whether they are a retained reviewed artifact, and why a geometry-flat fallback was used. Writes no files.kiln_materialManage optional immutable material resources in this workspace. presets lists shipped recipes; create-preset uses explicit seed, creator and license; list returns revision summaries; get returns provenance, hashes, sampling and a portable material spec. create-procedural accepts legacy layer drafts or schemaVersion 2 drafts with explicit samplers and bounded RGBA or named atlas recipes. Atlas resource sources require exact saved revisions; import requires complete normalized records and dependencies with embedded PNG bytes. Read shape:material-draft or shape:material-import through kiln_discover for full fields. No action downloads URLs or executes source. Pin the returned materialId/revisionId through per-invocation materialDependencies or project dependencies before evaluation; no project or mesh is required.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| creator | string | create-preset. |
| presetId | string | create-preset: an id from presets. |
| seed | number | create-preset. |
| size | any | create-preset: map edge in pixels; default 256. |
kiln_material_createCreate and retain one immutable material from a preset or procedural definition. Presets require explicit seed, creator and license. Pin the returned materialId/revisionId for rendering. Does not fetch URLs or execute source.| Parameter | Type | Description |
|---|---|---|
| definition * | string |
kiln_presentPresent one exact saved revision. Supporting MCP App clients show an interactive 3D card with GLB, editable ZIP, and source downloads. Every host receives exact artifact descriptors with resource URIs in the JSON result; verified hosts may also receive core MCP resource-link blocks. This tool does not launch a local browser in coding harnesses. Call after saving or when the user wants to see or download an asset.kiln_projectManage optional shared workspace projects: list discovers IDs; get reads the current or an exact historical configuration; create adds a project; update needs the exact expectedRevision and replaces each supplied top-level field. Assets and materials are authored, saved and exported without a project, and creating one never binds unrelated authoring. Design preferences, inventory, references, delivery profiles and pinned material dependencies are versioned; review annotations do not change trusted QA or authorize a release.kiln_renderBuild the current asset and return geometry metrics, exact part paths and images. Omit capture for six orthographic views. Choose preset/cells for a smaller orbit sheet, or version kiln.capture.v1 with shots for per-part framing, local axes, perspective and separate images. +X is forward, +Y up, +Z right. Review silhouette, attachments, proportion and ground contact. GPU PBR shading supports textured or metallic materials; a flat-shaded CPU render supports geometry review. Read viewFidelity; do not judge material fidelity from CPU views. Failed builds return errors without images.kiln_rendererReprobe after renderer setup/repair to refresh this session and reset failed starts; check status with kiln_renderer_status. Never installs, starts, stops or renders. Preserves CPU/local/remote selection; environment/credential changes require a host restart.| Parameter | Type | Description |
|---|---|---|
| action | string |
kiln_renderer_statusRead renderer status: ready, activeRoute (gpu or cpu) and fallback say what the next render uses; an active fallback means CPU geometry views, not material evidence. Read-only: never reprobes, installs, starts or renders. Read viewFidelity after rendering.kiln_reviewRead persisted Kiln observation history, pin an operation against normal retention, or save an exact completed reviewed operation into a collection without re-execution. Pinning does not pause an agent. save requires the displayed expectedRevision and matching trusted host requirements, preserves exact source/GLB/capture, and does not assert QA acceptance. Missing or evicted evidence is an error.| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| description | string | save. |
| expectedRevision | number | save: the revision the listing displayed. |
| limit | number | list: page size; default 20. |
| name | string | save. |
| offset | number | list: page start; default 0. |
| pinned | boolean | pin: true keeps the operation past normal retention. |
| tags | array | save. |
kiln_saveSave a completed source revision into the user-requested collection, or project when none was requested. Persists exact GLB, source, preview and build record. Use programRef returned by render/edit. To revise an asset, pass assetId and parentRevision; earlier revisions stay intact, and the result comparison gives triangle, vertex, draw and material deltas, the bounds delta and geometryIdentical against the parent. Returns downloadable resources; draft renders never populate collections.| Parameter | Type | Description |
|---|---|---|
| attribution | object | |
| backdrop | string | Preview backdrop: the one the reviewed sheet used. |
| brief | string | |
| description | string | |
| name * | string | |
| programRef * | string | |
| tags | array |
kiln_screenshot_animationReview a named animation clip at sampled phases, with phase-labeled images and poseBounds in world metres. Use this to check motion against the brief: pivots, attachment, ground clearance, travel and which parts remain fixed. Choose a camera that reveals the movement and inspect intermediate phases; symmetric parts can look stationary at regularly spaced phases. poseBounds reports scene geometry and the selected shot subject before camera isolation. Optional measureParts selects 1..16 exact names/paths for simultaneous per-part bounds and world origin; empty subtrees return null bounds, so locators are read from origin. Sampled bounds do not certify continuous collision or physical contact. args: clip (required), frameTimes (ordered fractions 0..1) or frames (2..6, default 6), camera (default right; also front/back/left/top/three-quarter) or shot, and perFrame (separate images). Nonempty unresolvedTracks names targets that do not exist; correct the track names. Images use deterministic posed GLB bytes: GPU PBR when available, otherwise geometry-flat CPU fallback. Read viewFidelity before judging materials; writes no files.kiln_skill_resourceRead a bounded text reference from a configured native skill. Omit path to list exact available reference keys. Offsets count UTF-16 characters; follow nextOffset for another page. Reads the immutable run snapshot, without filesystem access or script execution.| Parameter | Type | Description |
|---|---|---|
| limit | number | |
| offset | number | |
| path | string | |
| skill * | string |
kiln_validateStatically validate Kiln source code before rendering. Checks for the required `meta` const and `build()` function, `value:` keyframe typos, infinite loops, recursive build() calls, retired globals and syntax errors. Returns { valid, errors, issues, warnings }; issues include stable codes, lines and repair hints where available. Warnings are advisory only (they never make code invalid). There is NO triangle budget: density is never warned about, so build as much detail as the asset deserves. Run this to catch mistakes cheaply before kiln_render.| Parameter | Type | Description |
|---|---|---|
| code * | string | Kiln source code (defines `meta` + `build()`, optional `animate()`). |
scene_clusterScatter N copies of an asset around a point — overlap-free by construction. Use it for organic density: a cluster of crates, rocks, tents, debris. `spread` is the rough diameter. Serializes as a single line and is addressable as one unit (alias) or per-instance (alias#i).| Parameter | Type | Description |
|---|---|---|
| alias | string | Alias for the cluster (default <name>_cluster). |
| asset * | string | The generationId to scatter. |
| count * | number | How many copies. |
| group | string | Optional group name. |
| scale | number | Uniform scale (default 1). |
| spread * | number | Approximate cluster diameter in world units. |
scene_faceRe-orient a placement: "center" faces the scene origin, "out" faces away, [x,z] faces that point, or pass degrees. For a ring, "out"/"center" flips faceOut. Facing is how a scene reads as intentional — point heroes at the viewer, turn supporting rows to frame them.| Parameter | Type | Description |
|---|---|---|
| target * | string | The placement alias (or stmtId) to re-orient. |
scene_finalizeLock in the current scene as the FINAL composition. Call this exactly once, after scene_render reads as a cohesive, overlap-free, intentional scene. No argument — it finalizes exactly what you have placed. Returns the final program + placement/overlap counts.scene_groupBind several placements into a named group, optionally nudging (`delta`) or relocating (`to`) them together — so a courtyard, a market row, or a camp moves as one unit. Returns the group name and its members.| Parameter | Type | Description |
|---|---|---|
| name | string | Group name (default group_N). |
| targets * | array | Placement aliases (or stmtIds) to group. |
scene_layoutLay out a set of assets into an overlap-free BASELINE, then refine by hand. Explodes into one editable placement per asset (each independently movable). Good as a first pass; omit `assets` to lay out the whole catalog. anchor "zonedCenters" spreads them across four districts + a centre; "single" packs them around the origin.| Parameter | Type | Description |
|---|---|---|
| anchor | string | Layout anchoring (default single). |
| assets | array | generationIds to lay out (default: all in the catalog). |
| facing | string | How laid-out assets face (default scene-in: toward the centre; zone-in: toward their district; scene-out: away; random / none). |
| scale | number | Uniform scale applied to every laid-out asset (default 1). |
| seed | number | Layout seed (deterministic; default the scene seed). |
| spacing | number | District spacing for zonedCenters (default 95). |
scene_list_assetsList the assets you can place in this scene — each generationId with its name, footprint size [w,h,d], and tags. These are the ONLY assets available; place them by generationId. Call this first to plan your composition.scene_moveMove a placement (by alias or stmtId): `to` sets an absolute ground point [x,z], `delta` nudges it by [dx,dz] (pass scene_validate’s separation x,z here to resolve an overlap), and `scale` resets its scale. Targets a cluster/ring by its alias to move the whole group.| Parameter | Type | Description |
|---|---|---|
| scale | number | New uniform scale. |
| target * | string | The placement alias (or stmtId) to move. |
scene_paintPAINT the ground to match your layout — flat zones drawn onto the terrain (NOT placed assets), so the town reads as built on purpose. Pass the full set of zones at once; this REPLACES any previous paint. Coordinates are the same [x,z] world units you place assets in. Kinds: stone-path (a paved avenue/courtyard), gravel (raked garden), flagstone, concrete, sand, grass, asphalt, snow, ice. Two shapes: a "strip" is a long band — { type:"strip", axis:"x"|"z", offset:<the fixed cross-axis coord>, half:<half-width>, from:<start along axis>, to:<end along axis> } — use it for the central avenue (e.g. a stone-path strip down the axis from the entrance gate to the hero); a "rect" is a patch — { type:"rect", x, z, hx:<half-x>, hz:<half-z> } — use it for a market plaza or a garden. Author a few deliberate zones (an avenue + a plaza or two), sized to span the assets they sit under. Call once, after you have placed the buildings so the paint lines up.| Parameter | Type | Description |
|---|---|---|
| zones | array | The full set of ground-paint zones (replaces any previous paint). |
scene_placePlace ONE asset at a ground point [x,z] (the scene centre is [0,0]; assets are authored facing +X). Pick `face` deliberately: "center" to face the origin, "out" away from it, [x,z] to face a point, or degrees. `role` (hero/support/fill) signals intent. Returns the placement alias to address it later.| Parameter | Type | Description |
|---|---|---|
| alias | string | A friendly alias to address this placement (default derived from the name). |
| asset * | string | The generationId to place (from scene_list_assets). |
| group | string | Optional group name to bind this placement into. |
| scale | number | Uniform scale (default 1). |
| y | number | Explicit Y (default: grounded so the base sits on the terrain). |
scene_removeRemove a placement (by alias or stmtId) from the scene — for a cluster/ring this drops the whole group. Use it to declutter or swap an asset out. Returns the remaining placement count.| Parameter | Type | Description |
|---|---|---|
| target * | string | The placement alias (or stmtId) to remove. |
scene_renderRender the WHOLE scene from three canonical angles (a labelled grid) so you can SEE the composition: spacing, facing, groupings, silhouette, and any overlaps the numbers miss. Call it after a batch of placements/edits, judge it, then refine. No argument.scene_ringPlace N copies evenly on a circle of `radius` around a centre — overlap-free. Use it for deliberate radial structure: columns around a plaza, lanterns around a well, stones in a circle. `faceOut:true` turns the copies to face outward (default: face the centre).| Parameter | Type | Description |
|---|---|---|
| alias | string | Alias for the ring (default <name>_ring). |
| asset * | string | The generationId to ring. |
| count * | number | How many copies on the circle. |
| faceOut | boolean | Face outward instead of toward the centre (default false). |
| group | string | Optional group name. |
| radius * | number | Ring radius in world units. |
| scale | number | Uniform scale (default 1). |
scene_screenshot_cameraRender the scene from ONE camera you specify — position [x,y,z] and the target [x,y,z] it looks at (optional fovDeg). Use it to inspect a specific vantage: a player entry view, a sightline down a row, or a close read of one cluster. Returns a single image.| Parameter | Type | Description |
|---|---|---|
| fovDeg | number | Vertical field of view in degrees (default ~50). |
scene_set_backdropSet ONE atmosphere backdrop rendered as a sky billboard on the horizon (not a placed asset): "fuji" a snow-capped Mt. Fuji (use it for a Japanese / Edo scene), "sun-disc" a low sun, "aurora" northern lights, "mushroom-cloud". Place it far behind the composition on the view axis (default pos [0, 20, -160]); scale it up to dominate the skyline. Optional — omit if no backdrop fits. Call it once, early.| Parameter | Type | Description |
|---|---|---|
| scale | number | Visual scale multiplier (default 1). |
scene_set_environmentSet the scene's ground + sky THEME (terrain colour, sun, fog) — a scene-level choice, not a placement. Match it to the setting: "edo" for a Japanese / Edo castle-town scene (warm earth ground, soft hanami sky), "desert"/"egypt" for arid, "snow"/"arctic" for cold, "meadow" for green, "plaza"/"studio"/"night" for neutral or dark. Call it once, early. Does not affect placements or overlaps.scene_validateCheck the scene for footprint overlaps. Returns each colliding pair (a, b) with a penetration depth and a `separation` vector [x,y,z] — pass its x and z to scene_move as a delta on one of the pair to push them apart. An empty list means the scene is clean.scene_viewRead the current scene: the serialized scene program (the diffable source of truth), the placement aliases, and the live placement / overlap counts. Use it to see what you have built before deciding the next move.scene_world_fill_pathRepeat one existing object along a path with deterministic arc-length spacing and tangent facing.| Parameter | Type | Description |
|---|---|---|
| count * | number | |
| idPrefix * | string |
scene_world_set_collisionSet one object collision policy to none, asset bounds, selected authored GLB mesh nodes, or a deterministic generated bounds-box artifact. Artifact policies require bounded host ports.scene_world_set_heightfieldGenerate and bind one bounded seeded heightfield with optional road/path/pad stamps.| Parameter | Type | Description |
|---|---|---|
| height * | number | |
| stamps * | array | |
| width * | number |
scene_world_set_pathsReplace authored navigational paths using world-space X/Y/Z points.| Parameter | Type | Description |
|---|---|---|
| paths * | array |
scene_world_set_presentationReplace persisted ordered camera/grid/lighting/receipt parameters. Do not send artifactBinding; Engine binds the post-edit world hash. Total requested pixels are capped at 16,777,216.scene_world_set_socketsReplace named anchors/portals with compatibility, capacity, and portal clearance.| Parameter | Type | Description |
|---|---|---|
| sockets | array |
scene_world_set_spawnsReplace player/actor spawns, each with a positive clearance radius.| Parameter | Type | Description |
|---|---|---|
| spawns * | array |
scene_world_set_zonesReplace bounded reserved/portal/spawn-clearance zones. Rect halfExtents must be positive.| Parameter | Type | Description |
|---|---|---|
| zones * | array |
scene_world_snapSnap one compatible object exactly to a named socket; fails when incompatible or full.Security checks
Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.5K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by bun.lock and 3 more.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 1.5K words, fetched 2 days ago. The original in the repository is authoritative.
Read full README