# DX.GL MCP Server
The DX.GL MCP (Model Context Protocol) server lets AI agents — Claude Desktop,
Claude Code, Cursor, Windsurf, and any MCP-compatible client — turn 3D models into
turntable videos and multi-view datasets from natural-language prompts. This page is
the public setup + tool reference. The underlying REST surface is documented in the
[API Reference](./api).
## Overview
The MCP server is a thin wrapper over the DX.GL `/v1` REST API — it forwards your
bearer token and exposes **49 tools** covering the full pipeline: import/upload models,
quote costs, create single and batch renders, poll status, manage overlays/textures/
environments, and download results (streamed or via presigned direct-from-storage URLs).
The server is hosted at `https://mcp.dx.gl/` (Streamable HTTP). There is nothing to install:
point your client at the URL and send your key in the `Authorization` header.
Everything the tools can do is scoped by your API key. **The key implies the workspace** —
a personal key operates on your personal library and bills you; a workspace-bound key
(editor role or above) operates on that team workspace and bills its owner. There is no
workspace parameter on any tool.
## Quick start
1. In Studio, open the account menu → **API** → **Keys**, and create a key. It looks like `dxgl_sk_...` — copy it now; it is shown once. Older keys keep working, whatever their prefix.
2. Add the server to your MCP client. For a `streamableHttp`-capable client (e.g. Claude Code, Claude Desktop):
```json
{
"mcpServers": {
"dxgl": {
"type": "streamableHttp",
"url": "https://mcp.dx.gl/",
"headers": {
"Authorization": "Bearer dxgl_sk_..."
}
}
}
}
```
3. Restart the client. Ask it something like *"Import the GLB at <url> and render a 4K turntable on a white background"* — the agent handles the tool calls.
> The hosted server stores no key — each request carries its own `Authorization` header, so one endpoint serves every user.
## Authentication and keys
Every tool call forwards your key as `Authorization: Bearer dxgl_sk_...` to the REST API,
which validates it and applies scope and role checks. Mint and revoke keys in Studio →
account menu → **API** → **Keys**.
- **Personal vs workspace-bound** — a plain key acts on your personal workspace; a
workspace-bound key (created with the workspace picker, editor role or above) makes every
tool operate on and bill that workspace. `get_account` names the workspace a key operates on (personal or bound) and its role there.
- **Presigned URLs are secrets** — `get_download_url` and `get_model_file_url` return
short-lived links that download directly from storage with **no** auth header. Until they
expire (default 1 h) they are unauthenticated capability links — treat them like passwords.
## Tools
49 tools, grouped.
**Models**
| Tool | Description |
|------|-------------|
| `ingest_model` | Import a 3D model from a URL — GLB registers at once; FBX / OBJ / STL / USDZ / ZIP bundles convert server-side (poll `get_model` for `ingestStatus`); optionally starts a render Gaussian-splat files (`.spz`, splat `.ply`, `.splat`, `.ksplat`) are not accepted yet; they are Studio-only for now. |
| `upload_model` | Upload a GLB sent as base64 (`glbBase64`, up to 32 MB decoded); staged presigned PUT under the hood |
| `list_models` | List models — search (`q`: title / file name / SKU), tag / group filter, `updatedSince` delta polling, cursor pagination |
| `get_model` | Get model details and render history |
| `get_model_inventory` | Every mesh and material, uncut (`get_model`'s name lists stop at 512): collection and batch hide keys, materials with their maps, meshes with material, triangles and collection; paged |
| `update_model` | Update a model's title, SKU, tags and/or group |
| `archive_model` / `unarchive_model` | Hide / restore a model in the library |
| `delete_model` | Soft-delete a model |
| `list_versions` | List a model's versions — number, status, note, size, which is current, renders per version |
| `restore_version` | Roll back: make an earlier version current (pointer move + rebuild) |
| `delete_version` | Delete a non-current version; `force` when renders were made from it |
| `check_hash` | Dedup pre-flight — does this SHA-256 already exist? |
| `get_model_file` | API-streamed download URL for a model's original GLB |
| `get_model_file_url` | Presigned direct-from-bucket GLB URL — no auth header needed |
**A model on your own disk.** The hosted server cannot read your disk, so a model reaches it as a URL
(`ingest_model`) or as base64 (`upload_model`, 32 MB decoded at most). For a larger GLB (up to 1 GB), upload it
with the REST API's staged upload: `POST /v1/models/create-upload-url`, a `PUT` of the file to the URL it
returns, then `POST /v1/models/finalize` with the ticket (see Staged Upload under Models in the
[API Reference](https://dx.gl/docs/api#models)). Use the same key, and the model is in the workspace the MCP tools
work on.
**Groups** — the workspace's categories (Artists / Product groups / Sites …), depth ≤ 4; every model has one home
| Tool | Description |
|------|-------------|
| `list_groups` | List the workspace's groups (flat rows with `parentId`, subtree counts) |
| `create_group` | Create a group — root or nested; `kind` seeds `about`; `fromTag` files every unfiled model carrying the tag |
| `update_group` | Rename, re-parent, hide/unhide, reorder or edit the Markdown `about` |
| `delete_group` | Delete an empty group (owner) |
| `file_models` | File up to 200 models under a group in one call |
**Renders**
| Tool | Description |
|------|-------------|
| `create_render` | Create a video, stills or dataset render (costs credits; idempotent per call) |
| `create_batch_renders` | Create multiple renders atomically (max 100) |
| `list_renders` | List render jobs — status/model filters, `updatedSince` delta polling, cursor pagination |
| `get_render` | Check render status (poll until done) |
| `cancel_render` | Cancel a still-queued render and refund its credits |
| `dismiss_render` | Acknowledge an errored render (no refund) |
| `delete_render` | Permanently delete a terminal render and its stored assets |
| `quote` | Estimate credit cost before committing |
**Billing**
| Tool | Description |
|------|-------------|
| `get_account` | Check credit balance (paid / total; `free` is legacy) + token scopes and the key's workspace (id, name, personal, role) |
| `list_products` | List purchasable credit packs (name, credits, price) |
| `get_purchases` | Credit ledger — purchases, render spends, refunds, grants |
**Downloads** — each returns a URL. API-streamed URLs need your `Authorization` header; the presigned tools don't.
| Tool | Description |
|------|-------------|
| `download_render` | API-streamed video URL for a completed render (`quality=web` for the light variant) |
| `get_download_url` | Presigned direct-from-bucket URL for any render asset (`video`/`web`/`poster`/`full_poster`/`thumb`/`dataset` — the dataset or stills ZIP) |
| `get_poster` | Poster image URL — 960 px WebP by default, `quality=full` for the full-resolution PNG |
| `get_thumb` | Thumbnail loop video (MP4) URL |
| `download_bundle` | ZIP of all assets for a completed render |
| `download_dataset` | ZIP of a dataset render's multi-view images, or of a stills render's PNGs |
| `get_hls` | HLS streaming status + playback URLs |
For large files, prefer the presigned tools: `get_download_url` (render assets) and
`get_model_file_url` (source GLB) return short-lived URLs that download directly from
storage with **no** `Authorization` header — ideal for ProRes videos and dataset ZIPs that
run to tens of GB, and for handing a download to another system.
**Overlays**
| Tool | Description |
|------|-------------|
| `upload_overlay` | Upload a PNG/JPEG/WebP as a reusable asset (≤8 MB via MCP) — layer `background`/`foreground`/`decal`/`texture` |
| `list_overlays` | List overlay assets (yours + system) — ids feed `bgImageId`, `decals[].imageAssetId`, `materialEdits.<name>.mapAssetId` |
| `list_fonts` | List the workspace's Google Font families (added in Studio's Text panel) — ids feed `textOverlays[].font` |
| `list_library` | Browse the free Library — models, HDRIs, backgrounds, stickers (tags, license, credit) |
| `add_from_library` | Copy a Library item into the workspace and get its id — a model for `create_render`, an overlay for `bgImageId` / `decals[].imageAssetId` / `envId` |
| `delete_overlay` | Delete an overlay asset you own (leaves the lists, frees its slot; renders and saved edits that name it keep it) |
**Textures and environments**
| Tool | Description |
|------|-------------|
| `upload_texture` | Upload a diffuse-replacement texture — id feeds `materialEdits.<name>.mapAssetId` (≤8 MB via MCP; content-sha deduped) |
| `upload_env` | Upload a custom HDRI as the pre-encoded gainmap triple — id feeds `envId` |
| `list_assets` | List the workspace's texture or environment assets |
| `delete_asset` | Delete an owned texture/environment asset (leaves the list and the quota; renders and saved edits that name it keep it) |
| `resolve_asset_sha` | Content-sha pre-flight — reuse an existing asset instead of re-uploading |
## Render settings
Render settings are passed to `create_render` / `create_batch_renders` / `quote`. The
schema mirrors the server validator 1:1, so anything the Studio UI can author is reachable.
### Video quality tiers
`quality` is the resolution, `format` the encode (two independent fields).
| `quality` | Display label | Resolution | Credits/sec (H.264) |
|------|------|-----------|---------|
| `draft` | Draft | 480×270 | 1 |
| `share` | Standard | 960×540 | 1 |
| `standard` (server default) | HD | 1920×1080 | 4 |
| `4k` | 4K | 3840×2160 | 16 |
`draft` costs what `share` costs: a quarter of the pixels, for turnaround. `ssaa: false` delivers the frame as rendered instead of 2× supersampled (`true`, and the behaviour when omitted); no price difference.
| `format` | Output | Multiplier |
|------|------|------|
| `h264` (default) | H.264 MP4 | ×1 |
| `hevc` | HEVC MP4 (hvc1) | ×1 |
| `prores422hq` | ProRes 422 HQ .mov, 10-bit 4:2:2 | ×2 |
| `prores4444` | ProRes 4444 .mov, 10-bit 4:4:4, transparent unless `alpha: false` | ×4 |
| `pngseq` | PNG sequence: a zip of one PNG per frame, transparent with `alpha: true` | ×4 |
> **Transparency.** `alpha: true` delivers the model on transparency with no background in the file: a video needs `prores4444` (premultiplied alpha) or `pngseq` (straight alpha), stills come out as PNGs with alpha. `alpha: false` puts the background in the file. With the key omitted a `prores4444` video is transparent, a `pngseq` render has its background, and stills are composited. A transparent file carries the Look, overlay frame, text and fades (as fades of alpha) and leaves out `vignette`. `previewBacking` (`"checker"` or a hex color) is what its previews sit on.
> `quality: "pro"` is a legacy alias for `4k` + `prores4444` (64 credits/sec). The JSON enum values are frozen for API stability; the display labels were renamed and no longer match one-to-one. Pass the JSON value as `quality`.
> **When `quality` is omitted the server defaults to `standard`** (HD, 4 credits/sec) — a bare 6-second render bills 24 credits, not 6. Always pass `quality` explicitly.
### Dataset tiers
| Tier | Views | Resolution | Credits |
|------|-------|-----------|---------|
| `100x800` | 100 | 800×800 | 40 |
| `196x1024` | 196 | 1024×1024 | 160 |
| `400x2048` | 400 | 2048×2048 | 640 |
### Stills
`output: "stills"` with a `stills` array renders one PNG per camera pose (1–64) at the `quality` tier's size, priced per still: `draft` 1, `share` 1, `standard` 2, `4k` 4 credits. Add `pathTraced: true` for path-traced stills (soft shadows, real reflections; any background and HDRI environment, no procedural scene) at `draft` 1, `share` 1, `standard` 4, `4k` 16. Each entry is `{ pose: { position, lookAt, fov }, label? }` — the keyframe pose shape, normalized model frame; `label` (≤ 24 chars) names the file `{model}_{nn}_{label}.png`. `length`, `fps` and `format` do not apply. The ZIP (PNGs + `manifest.json`) comes from `download_dataset`; the render's poster is the contact sheet.
### Camera paths
`turntable` (default), `hero-spin`, `showcase`, `zoom-orbit`, `reveal`, `keyframes` — passed as the `effect` field.
### Full surface
All optional; see each tool's input schema for exact ranges:
- **Output & motion** — `output` (`video` / `dataset` / `stills`), `stills[]` (poses for stills output), `aspect`, `length`, `easing`, `sweepAngle`, `easeOutRatio`, `amplitude`, `zoomStart`/`zoomEnd`, `scaleFrom`, `coverage`, `strictCredits` (legacy: for an account that still holds a legacy free balance, `402` instead of funding from it; no effect otherwise)
- **Model transform** — `panX`, `tiltX`, `rollZ` (model yaw → pitch → roll, in that order, −180…180), `scaleX`/`scaleY`/`scaleZ` (per-axis scale; negative mirrors that axis, uniform is a no-op; 0.01–20), `translateX`/`translateY`/`translateZ` (position offset, ±20; positive `translateY` lifts off the ground), `hiddenMeshNames` (exact case-sensitive mesh names; unknown names are a **silent no-op** — verify against the GLB), `clipBox` (six-plane region of interest in raw GLB units — `{ center, halfSize, quat?, enabled?, castShadows? }`; outside geometry is cut away and casts no shadow; a box saved in Studio applies by default)
- **Camera framing** — `rotateY` (orbit start angle — moves the camera, not the model), `zoom` (0.5 = far, 2.0 = close)
- **Animation** — `animation`, `animationSpeed` (−10…10, non-zero)
- **Keyframe / fly-through** — `camera`, `keyframes[]`, `startAngle`/`endAngle`, `startTilt`/`endTilt`, `startZoom`/`endZoom`, `startFov`/`endFov`, `easeInSeconds`/`easeOutSeconds`, `kfSegmentDuration`, `loop`
- **Background** — `bgColor`, `bgImageId`, `bgAlign`, `bgGradient`
- **Filter / post** — `filter`, `toneMapping` (`filmic`/`neutral`), `vignette` (and `vignetteClear`, 0–0.9: the share of the frame's middle the vignette leaves untouched), `bloomEnabled`/`bloomStrength`, `dofEnabled`/`dofStrength`, `n8aoEnabled`/`n8aoIntensity`, `swayEnabled`/`swayIntensity`, `windEnabled`/`windIntensity`
- **Intro** — `intro` (`none`/`rise`/`dots`/`wire`/`liquid`/`ghost`/`decode`/`charge`/`holo`/`assemble`/`deflate`, video only), `introSeconds`, `introDelay`, `introOutro`, `introDirection`, `introColor`, `introPreset`, `introPattern`, `introLine`, `introDepth`, `introDensity`, `introSize`, `introSpeed`, `introIntensity` (0.25–4, 1 = authored), `introSeed`
- **Fade** — `fadeInSeconds`/`fadeInColor`, `fadeOutSeconds`/`fadeOutColor` (0–5 s eased whole-frame fades, `#rrggbb`; 0 = off; video only)
- **Text** — `textOverlays[]` (titles / captions with time windows and fades, composited above the fades; per block `text`, `anchor`, `x`, `y`, `align`, `width`, `size`, `weight`, `font` (workspace font id from `list_fonts`; absent = Inter), `color` (+ `ink` for `auto`), `from`/`to`, `fadeIn`/`fadeOut`, `opacity`, `steps[]` for a sequence; video only)
- **Shadows & reflector** — `shadows`, `shadowMode`, `shadowDarkness`, `shadowSoftness`, `selfShadow` (0–2, the model shading itself in any ground mode, past 1 shadows the reflections too; omit = legacy), `reflector`, `reflectorMix`, `reflectorFade`, `reflectorDepthBlur`
- **Environment / IBL** — `envId`, `envRotation`, `envExposure`, `envMode`, `envOpacity`, `envBlur`, `envScale`, `envTint`, `envTintStrength`; built-in scenes: `envId: "proc"` + `envRecipe` (`rig`/`sweep`/`sky`/`cyc`/`aurora`/`caustics`), `envVariant`, `envParams`, `envSpeed`, `envRelief`, `envSeed`
- **Lighting** — `spotlightIntensity`, `lightsIntensity`, `ambientIntensity`, `glossIntensity`, `keyLightColor`, `fillLightColor`, `keyLightAzimuth` (−180–180), `keyLightElevation` (−90–90, 90 = overhead); `lights` (up to 32 point / spot lamps, 4 with a shadow, positions in raw GLB units so they turn with the model; intensity 1 = the key's light 1 raw unit away; `size` = the lamp's radius in raw units, bigger = softer shadows, 0 = hard, absent = as soft as the key's default)
- **Materials & decals** — `materialEdits` (per-material overrides keyed by material name), `decals[]`
## Examples
> "Import the GLB at https://example.com/chair.glb and render a 4K turntable video with a white background."
The agent calls `ingest_model` with the URL, `create_render` with `{ quality: "4k", bgColor: "#ffffff" }`, polls `get_render` until done, and returns the URL from `download_render`.
> "How much would it cost to render 50 models at 4K?"
The agent calls `quote` with 50 entries of `{ quality: "4k" }` and reports 4,800 credits (fifty 6-second 4K turntables at 16 credits/second).
> "Render the chair facing the label, leaning slightly toward the camera, with the packaging hidden."
The agent calls `create_render` with:
```json
{ "quality": "share", "panX": 35, "tiltX": -12, "zoom": 1.3, "hiddenMeshNames": ["Packaging"] }
```
`panX`/`tiltX`/`rollZ` rotate the **model** (yaw first, then pitch, then roll); `rotateY`
instead offsets where the **camera's** orbit starts. `hiddenMeshNames` needs exact
case-sensitive mesh names from the GLB — unknown names silently hide nothing.
> "Give me HD stills of the chair from the front, the back and a three-quarter hero angle."
The agent calls `create_render` with `output: "stills"`, `quality: "standard"` and three `stills` entries (`label` front / back / hero, each with a `pose`), polls `get_render` until done (6 credits), and returns the ZIP URL from `download_dataset`.
## Troubleshooting
- **401 Unauthorized** — the key is missing, malformed, or revoked. Confirm the client sends `Authorization: Bearer dxgl_sk_...` in the server's `headers`.
- **Render cost surprise** — you omitted `quality`, so it defaulted to `standard` (HD, 4 credits/sec). Pass `quality` explicitly; use `quote` first to confirm.
- **`hiddenMeshNames` hid nothing** — mesh names are case-sensitive and must match the GLB exactly; an unknown name is a silent no-op. Inspect the model to get exact names.
- **Large downloads stall or need re-auth** — use the presigned tools (`get_download_url`, `get_model_file_url`) instead of the API-streamed ones for multi-GB assets.
- **A GLB over 32 MB** — `upload_model` takes base64 up to 32 MB decoded. Upload a larger file with the REST API's staged upload (see *A model on your own disk* under Tools).
- **`413` on an upload tool** — the JSON body (base64 is ~1.37× the file) exceeded the server's request size cap. Stay under the per-tool decoded caps (`upload_model` 32 MB; `upload_overlay`, `upload_texture` and each `upload_env` part 8 MB) or use the REST API directly (`POST /v1/models/create-upload-url` for GLBs up to 1 GB).