DT

dmitriygolub/threejs-devtools-mcp

Developer tools
85 stars 0 forks Качество 55 Тренд 55

MCP server for inspecting and modifying Three.js scenes in real time — for objects, materials, shaders, textures, animations, performance monitoring, memory diagnostics, and code generation.

Обзор

MCP server for inspecting and modifying Three.js scenes in real time — for objects, materials, shaders, textures, animations, performance monitoring, memory diagnostics, and code generation.

README

threejs-devtools-mcp

MCP server for inspecting and modifying Three.js scenes in real time — 59 tools for objects, materials, shaders, textures, animations, performance monitoring, memory diagnostics, and code generation.

Zero changes to your project. Works with vanilla Three.js, React Three Fiber, and any framework.

Setup

1. Add the MCP server

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

"show me the scene tree"
"why is my model invisible?"
"make the car red"
"check for memory leaks"
"what's my FPS?"
"generate a React component from character.glb"

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:

// Three.js
mesh.name = "player";
// React Three Fiber

Documentation

License

MIT

View this README on GitHub

Установка

npx -y threejs-devtools-mcp

Конфигурация

{ "mcpServers": { "threejs-devtools-mcp": { "command": "npx", "args": ["-y", "threejs-devtools-mcp"] } } }