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

Three-Live 3D, CAD & Spatial XR Compiler is an MCP server for Claude Code that compiles Three.js and visually verifies 3D scenes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 475 repo stars
- Author: google · official Google repository
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/google/three-live
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/three-live-3d-cad-spatial-xr-compiler

## What it does

The server converts Three.js code into native assets for Android, iOS, visionOS, and WebXR, enabling AI agents to build and verify 3D scenes autonomously. It utilizes a sandboxed Rust environment to perform JIT compilation and run 60 Hz physics simulations.

Agents gain access to commands for generating 4-up contact sheets, converting models to `.glb` or `.usdz` formats, and performing spatial linting directly in the chat. The tool supports synthesizing 3D scenes from images and closed-loop visual validation for spatial AI tasks.

Setting up AI-powered texture baking requires an active `THREE_LIVE_AI_IMAGE_ENDPOINT`. Ensure the host environment permits the execution of `npx` commands for proper server initialization.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add three-live -- npx -y three-live
```

### Codex

**Platform CLI**
```bash
codex mcp add three-live-3d-cad-spatial-xr-compiler -- npx -y three-live
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "three-live-3d-cad-spatial-xr-compiler": {
            "command": "npx",
            "args": [
                "-y",
                "three-live"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "three-live-3d-cad-spatial-xr-compiler": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "three-live"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add three-live-3d-cad-spatial-xr-compiler npx -y three-live
```

## When to use it
- compile Three.js code into native 3D objects
- verify 3D scene geometry and overlaps
- render contact sheets for AI agents
- synthesize 3D scenes from source images
- simulate physics interactions in 3D

## Example prompts
- three_live_render scene.js --view=quad --annotations -o sheet.png
- three_live_validate scene.js --json
- three_live_from_image photo.jpg -o scene.js

## Similar
- [three.ws 3D Agent Tools](https://affpapa.org/en/nevibecode/mcp/threews-3d-agent-tools.md) — MCP server · ★ 284 repo stars
- [threejs-spatial-data](https://affpapa.org/en/nevibecode/skills/threejs-spatial-data.md) — skill · 587 installs
- [three-best-practices](https://affpapa.org/en/nevibecode/skills/three-best-practices.md) — skill · 1700 installs
- [three.ws Loom](https://affpapa.org/en/nevibecode/mcp/threews-loom.md) — MCP server · ★ 284 repo stars
- [react-three-fiber](https://affpapa.org/en/nevibecode/skills/react-three-fiber.md) — skill · 4300 installs
- [three](https://affpapa.org/en/nevibecode/skills/three.md) — skill · 209 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
