# Three-Live 3D, CAD & Spatial XR Compiler

> Three-Live 3D, CAD & Spatial XR Compiler is an open-source MCP server for design and media. Compile, lint, simulate and render Three.js scenes to GLB, USDZ and native XR. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Web, Android, iOS, macOS
- **Repository:** https://github.com/google/three-live
- **MCP Registry name:** io.github.google/three-live
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Three-Live compiles standard Three.js code in a sandboxed Rust VM and renders it natively on Android (Google Filament and Jetpack XR), iOS and visionOS (RealityKit) and the web (WebGL2 and WebXR). The README argues that models and developers write concise Three.js better than platform-specific 3D and AR boilerplate. The project states it is not an officially supported Google product.

The MCP server is the CLI's mcp command, run over stdio, for agents that need to check their own 3D output. Tools include validation, rendering a headless four-up contact sheet with no GPU, conversion, scene generation from an image, texture baking, a 60 Hz simulation, share links, and a reset, step and close gym that lets an agent play a scene to confirm a level is winnable. No machine learning is involved in the gym. A reference image can be compared with an overlay and IoU guidance.

On the web, the `<three-live>` element can use any chat-completions endpoint for AI scene edits, and each edit is compiled and auto-repaired once before it replaces the live scene.

## Features

- **Headless rendering:** Four-up contact sheets for agents, with no GPU needed.
- **Spatial linting:** Reports frustum and overlap telemetry as JSON.
- **Native export:** Compiles scenes to GLB and USDZ.
- **Image-to-scene:** from-image builds and checks a procedural scene from a photo or sketch.
- **Agent gym:** Reset and step tools let an agent play a scene to test it.
- **Safe AI edits:** Web edits are compiled first and only then hot-swapped.

## Good for

- Let a coding agent check a generated 3D scene visually
- Export Three.js scenes to USDZ for iOS AR
- Build a scene from a blueprint and compare against it
- Run Three.js natively on Android XR
- Test whether a game level is winnable

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add three-live -- npx -y three-live
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "three-live": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add three-live -- npx -y three-live
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.three-live]
command = "npx"
args = ["-y", "three-live"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user three-live npx -- -y three-live

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "three-live": {
      "command": "npx",
      "args": [
        "-y",
        "three-live"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 10 tools reads data; 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `three_live_validate` (name suggests: reads): Validate a scene.
- `three_live_render`: Render a scene to a headless image sheet.
- `three_live_convert`: Convert a scene to GLB or USDZ.
- `three_live_from_image`: Generate a scene from a reference image.
- `three_live_bake_textures`: Bake AI textures for a scene.
- `three_live_sim`: Run a scene simulation.
- `three_live_link`: Create a playground link for a scene.
- `three_live_gym_reset`: Reset the agent gym environment.
- `three_live_gym_step`: Take one step in the gym.
- `three_live_gym_close`: Close the gym session.

## FAQ

### How do I add the MCP server?

Run claude mcp add three-live -- npx -y -p three-live three-live-cli mcp.

### Does rendering need a GPU?

No. The headless contact sheet needs zero GPU.

### Is Three-Live 3D, CAD & Spatial XR Compiler an official Google product?

The README says it is not an officially supported Google product.

### Do AI textures work offline?

Texture baking needs THREE_LIVE_AI_IMAGE_ENDPOINT to be set.

### Is Three-Live 3D, CAD & Spatial XR Compiler free?

Yes. Three-Live 3D, CAD & Spatial XR Compiler is open source, so you can use and self-host it for free.

### How do I add Three-Live 3D, CAD & Spatial XR Compiler to Claude Code?

Run this command in your terminal: claude mcp add three-live -- npx -y three-live

### What are the best alternatives to Three-Live 3D, CAD & Spatial XR Compiler?

The closest alternatives to Three-Live 3D, CAD & Spatial XR Compiler are REA, HyperFrames by HeyGen, Context7, Chrome DevTools MCP and Codebase Memory.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [HyperFrames by HeyGen](https://ai-powered.com/mcp/hyperframes-by-heygen): HyperFrames by HeyGen is a freemium MCP server for design and media.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/three-live-3d-cad-and-spatial-xr-compiler
