Three.js DevTools MCP

v0.2.1
io.github.DmitriyGolub/threejs-devtools Checked 3 days ago Published 8 months ago

Inspect and edit Three.js scenes, materials, shaders, lights in real time from any AI agent

Values you need

VariableWhat it is
DEV_PORToptional Dev server port to proxy (auto-detected from package.json if not set)
BRIDGE_PORToptional Bridge proxy port (default: 9222)
BROWSERoptional Set to 'none' to disable auto-opening browser
HEADLESSoptional Set to 'true' for headless browser mode (CI)
CHROME_PATHoptional Custom Chrome/Edge executable path

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add threejs-devtools -- npx -y threejs-devtools-mcp@0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "threejs-devtools": {
      "args": [
        "-y",
        "threejs-devtools-mcp@0.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "threejs-devtools": {
      "args": [
        "-y",
        "threejs-devtools-mcp@0.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "threejs-devtools": {
      "args": [
        "-y",
        "threejs-devtools-mcp@0.2.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.threejs-devtools]
command = "npx"
args = ["-y", "threejs-devtools-mcp@0.2.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: scene_tree, object_details, material_list, material_details, shader_source, shader_list, texture_list, texture_details, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json