Three.js DevTools MCP
v0.2.1Inspect and edit Three.js scenes, materials, shaders, lights in real time from any AI agent
Values you need
| Variable | What it is | |
|---|---|---|
DEV_PORT | optional | Dev server port to proxy (auto-detected from package.json if not set) |
BRIDGE_PORT | optional | Bridge proxy port (default: 9222) |
BROWSER | optional | Set to 'none' to disable auto-opening browser |
HEADLESS | optional | Set to 'true' for headless browser mode (CI) |
CHROME_PATH | optional | 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.1Add 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: scene_tree, object_details, material_list, material_details, shader_source, shader_list, texture_list, texture_details, ….
- 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