
Three.js DevTools MCP
io.github.DmitriyGolubPublished by GitHub account DmitriyGolubv0.2.1Updated Oct 26, 2026
Inspect and edit Three.js scenes, materials, shaders, lights in real time from any AI agent
Overview
Local MCP server that lets an AI assistant inspect and live-edit Three.js scenes in the browser, then turn the changes into code.
- What you can do
- Inspect scene trees, objects, materials, shaders, textures, lights and cameras in a running Three.js scene
- Live-preview changes such as material properties, lights and camera, with before-to-after code and revert support
- Debug visuals like wireframes, bounding boxes and helpers, plus an in-browser devtools overlay
- Audit websites for canvas, texture, shadow, color-space and draw-call problems, and capture frame sequences for video
- Export changes to vanilla Three.js or React Three Fiber code, and drive scenes from Playwright or Puppeteer tests
- When to use it
- Useful when developing Three.js or React Three Fiber projects and you want an assistant to diagnose invisible models, tune looks interactively, audit rendering performance, or record promo clips without editing the project first.
- Requirements
- Runs locally via npx (Node.js) over stdio. A Three.js dev server must be running; the port is auto-detected from package.json or set with DEV_PORT. A browser is opened automatically at the bridge port (BRIDGE_PORT, default 9222) unless BROWSER is set to none; CHROME_PATH and HEADLESS are optional. The browser tab must stay open while tools are used.
Installation
In SourceWeft
- Open Three.js DevTools MCP in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
threejs-devtools-mcp
[npm version] [license] [build] [MCP Registry]
MCP server for inspecting Three.js scenes in real time, trying changes live in the browser, and turning them into code. 69 tools cover objects, materials, shaders, textures, animation, performance and memory, plus website audits, video frame capture and Playwright helpers.
Zero changes to your project. Works with vanilla Three.js and React Three Fiber, on WebGLRenderer and WebGPURenderer.
Setup
1. Add the MCP server
Claude Code
Claude Desktop
Add to claude_desktop_config.json:
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
VS Code (Copilot)
Add to .vscode/mcp.json:
OpenCode
Add to opencode.json in your project:
2. Start your dev server and open the browser
Start your Three.js dev server as usual (npm run dev). The MCP server auto-detects the port from package.json and opens a browser at localhost:9222 with the devtools bridge injected.
Keep the browser tab open. The MCP server talks to your scene through a WebSocket bridge. Close the tab = tools stop working.
3. Ask the AI about your scene
Look now vs. change the code
Every tool is labelled, so you and the AI always know what touches your files:
Every live-preview change is recorded. pending_changes returns each one as before → after with ready-to-paste code (vanilla Three.js and React Three Fiber) and where to find it in your project. revert_changes undoes them in the browser.
For websites and videos
web_audit: checks for a blurry canvas (pixel ratio, missing resize), battery drain (rendering while idle or off-screen), heavy textures (oversized, not KTX2), expensive shadows, wrong color space and too many draw calls. Each finding comes with the fix.capture_frames: records a frame sequence for promo clips and reels. Time is virtualised, so the output is perfectly smooth at 30/60 fps even if your scene renders slowly. You get theffmpegcommand for MP4/WebM.
Skills
Ready-made workflows show up as slash commands in Claude Code, Cursor and other clients: inspect-scene, try-look, apply-to-code, web-perf-audit, prepare-video, debug-invisible, playwright-setup.
Playwright & Puppeteer
Three ways to connect, same tools in all of them: your own browser (default), a Chrome launched by the server (HEADLESS / CDP_PORT, shareable with Playwright MCP), or your own tests:
See Browsers, Puppeteer & Playwright.
In-browser overlay
A built-in devtools panel with live performance stats, interactive scene graph, material editor, and 3D object preview. Activated automatically or via the toggle_overlay tool.
Tip: name your objects
Unnamed objects show as (unnamed) in the scene tree. Named objects are easier to find and modify:
Documentation
- Tools reference — all 69 tools by mode, skills, parameters
- Browsers, Puppeteer & Playwright — connection modes, e2e tests, CI tips
- Advanced setup — animations, scene export, configuration, transports
- Cursor setup — step-by-step guide for Cursor
- Token-efficient workflow — best practices for saving context
License
MIT
Source: README.md at commit 8151443
Tools
0Version history
1- v0.2.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts