Logo vun Threejs Devtools MCP

Threejs Devtools MCP

Communautéit
DmitriyGolub

Three.js MCP server — inspect and edit scenes, materials, shaders, lights in real time from any AI agent

EditeurDmitriyGolub
Repositorythreejs-devtools-mcp
SproochTypeScript
Forks
11
Stären
108
Disponibel Tools
60
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Threejs Devtools MCP stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 60 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    108 Stären an 11 Forks aus dem verlinkte Repository.

threejs-devtools-mcp

npm version license build MCP Registry

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.

Annotated screenshot

Setup

1. Add the MCP server

bash
claude mcp add threejs-devtools-mcp -- npx threejs-devtools-mcp

Add to claude_desktop_config.json:

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

Add to .cursor/mcp.json in your project:

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

Or use the HTTP transport — see Cursor setup guide.

Add to ~/.codeium/windsurf/mcp_config.json:

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

Add to .vscode/mcp.json:

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

Add to opencode.json in your project:

json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "threejs-devtools-mcp": {
      "type": "local",
      "command": ["npx", "-y", "threejs-devtools-mcp"],
      "enabled": true
    }
  }
}

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.

Overlay panel

Tip: name your objects

Unnamed objects show as (unnamed) in the scene tree. Named objects are easier to find and modify:

js
// Three.js
mesh.name = "player";
jsx
// React Three Fiber
<mesh name="player" geometry={geometry} material={material} />

Documentation

License

MIT

Installatioun

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

Disponibel Tools

  • scene_tree

    List all objects in the Three.js scene tree. Returns compact text tree by default (saves tokens). Set compact=false for full JSON.

  • object_details

    Get detailed info about a specific object by name, uuid, or path

  • material_list

    List all materials in the scene with type, color, transparency

  • material_details

    Get full properties of a material: color, maps, uniforms, defines

  • shader_source

    Get compiled vertex/fragment shader source and uniforms for a material

  • shader_list

    List all compiled shader programs with their material associations

  • texture_list

    List all textures: size, format, wrap, filter settings

  • texture_details

    Get detailed info about a specific texture

  • renderer_info

    Get renderer stats: draw calls, triangles, memory, capabilities

  • set_material_property

    Set a material property (color, roughness, wireframe, etc.). IMPORTANT: This is a runtime-only preview (lost on reload). Before calling, ASK the user whether they want a runtime preview or a persistent code change.

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • set_uniform

    Set a shader uniform value on a ShaderMaterial — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • set_object_transform

    Set position, rotation, scale, or visibility of a scene object — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • set_light

    Modify light properties: color, intensity, position, shadows — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • highlight_object

    Highlight an object for debugging (wireframe or visibility toggle). Runtime only — for visual inspection, not persisted.

    Debug only — page reload will reset. No code changes needed.

  • run_js

    Execute arbitrary JavaScript with access to scene, renderer, camera. Returns the result. Runtime only (lost on reload). If the code mutates scene state, ASK the user first: runtime preview or persistent code change?

    SHADER PATCHING RECIPE — when modifying materials via onBeforeCompile:

    1. Reset patch flags: mat._curvedWorldPatched = false; mat._windPatched = false;
    2. Delete old shader refs: delete mat.userData.shakeShader; stop old animations via mesh.userData._stopShake?.();
    3. ONE onBeforeCompile pass (never chain) — include curved world + your effect together
    4. Replace '#include <project_vertex>' with full transform: USE_BATCHING/USE_INSTANCING guards → effect in world space → curved world (worldPos.y -= dist²0.005) → viewMatrixworldPos → gl_Position
    5. Declare uniforms before main(): shader.vertexShader.replace('void main() {', 'uniform float uTime;\nvoid main() {')
    6. Set mat.customProgramCacheKey = () => 'effect-' + Date.now(); — forces recompilation
    7. mat.needsUpdate = tru
  • performance_snapshot

    Get detailed performance analysis: draw calls, triangles, instanced meshes, object counts by type

  • instanced_mesh_details

    Inspect an InstancedMesh: count, max instances, geometry, sample transforms, custom attributes, instance colors

  • set_instanced_mesh

    Modify InstancedMesh properties: count, visibility, frustumCulled — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • camera_details

    Get active camera properties: type, position, FOV, near/far, aspect

  • set_camera

    Modify camera: position, rotation, FOV, near/far, zoom — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • fog_details

    Get scene fog settings: type (Fog/FogExp2), color, near/far or density

  • set_fog

    Modify scene fog: color, near/far (Fog) or density (FogExp2), background color — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • renderer_settings

    Get renderer configuration: toneMapping, exposure, colorSpace, shadowMap, pixelRatio

  • set_renderer

    Modify renderer: toneMapping, exposure, colorSpace, shadows — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • animation_details

    List all AnimationMixers, their actions, clips, weights, and playback state

  • set_animation

    Control animation: mixer timeScale, action play/stop/pause/weight. Runtime only — for testing.

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • skeleton_details

    List all skeletons/bones from SkinnedMesh objects in the scene

  • geometry_details

    Inspect geometry: vertices, attributes, indices, bounding box, morph attributes

  • morph_targets

    List all meshes with morph targets, their target names and current influence values

  • set_morph_target

    Set morph target influence on a mesh — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • raycast

    Cast a ray from camera through screen coordinates and return hit objects

  • layer_details

    Show camera layer mask and objects with non-default layer assignments

  • set_layers

    Set layers on an object or camera — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • add_helper

    Add a visual debug helper to a scene object. Types: box, axes, skeleton, arrow, grid, polar_grid, camera, directional_light, spot_light, point_light, hemisphere_light, plane

    Debug only — page reload will reset. No code changes needed.

  • remove_helper

    Remove a previously added debug helper

    Debug only — page reload will reset. No code changes needed.

  • set_texture

    Modify texture properties: wrap, filter, anisotropy, repeat, offset, colorSpace — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • shadow_details

    Inspect shadow maps: global settings, per-light shadow config (bias, mapSize, camera frustum), cast/receive objects

  • set_shadow

    Modify shadow settings — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?

    Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?

  • scene_background

    Inspect scene background, environment map (IBL), color management, backgroundBlurriness/Intensity

  • find_objects

    Search scene objects by type, material, visibility, name pattern, or custom property. Returns matching objects with details.

  • memory_stats

    Detailed GPU memory analysis: geometry buffers, texture VRAM, instance data, top textures by size

  • dispose_check

    Find potential memory leaks: orphaned geometries/textures not in scene but tracked by renderer, hidden objects with geometry

  • toggle_wireframe

    Toggle wireframe on all materials or a specific object. Runtime only — for visual debugging.

    Debug only — page reload will reset. No code changes needed.

  • bounding_boxes

    Show/hide axis-aligned bounding boxes for scene objects. Runtime only — for debugging frustum culling and object bounds.

    Debug only — page reload will reset. No code changes needed.

  • env_map_details

    Inspect environment maps: scene.environment, scene.background, per-material envMap, IBL settings

  • scene_diff

    Compare scene state over time. First call saves a snapshot, second call shows what changed (added/removed/modified objects, transforms, materials, lights).

  • postprocessing_list

    List post-processing passes from EffectComposer: render passes, shader passes, effects (bloom, SSAO, etc.)

  • console_capture

    Capture browser console output (log/warn/error). Returns last N messages. Call to check for runtime errors and warnings.

  • texture_preview

    Preview a specific texture as a PNG image. Use texture_list first to find names/UUIDs.

  • perf_monitor

    Record FPS and frame times for N seconds. Returns avg/min/max FPS, percentiles, spike and jank counts.

  • click_inspect

    Enable click-to-inspect mode. Cursor changes to crosshair — tell the user to click on an object in the 3D scene. Returns clicked object details.

  • scene_export

    Export scene or specific object as GLB. Requires GLTFExporter in your app (see error message for setup). Saves to screenshots/ folder.

  • gltf_to_r3f

    Convert a GLTF/GLB file to a ready-to-use React Three Fiber component (like gltfjsx)

  • take_screenshot

    Capture a screenshot of the current Three.js scene

  • annotated_screenshot

    Screenshot with labeled object names overlaid at their screen positions. Shows [M]esh, [L]ight, [G]roup, [C]amera tags. Great for AI to understand scene layout visually.

  • toggle_overlay

    Toggle a lightweight scene inspector overlay in the browser. Shows real-time FPS, draw calls, triangles, object count, scene tree, materials, and lights. Click objects in the tree to highlight them with wireframe. Debug only — page reload will reset.

    Debug only — page reload will reset. No code changes needed.

  • overlay_selected

    Get comprehensive details about the object currently selected in the overlay. Returns full material properties, geometry info, transforms, textures, uniforms, shadow settings — everything needed to understand and modify the object in code. The user must first select an object in the overlay by clicking on it.

  • bridge_status

    Check bridge connection and proxy status

  • set_dev_port

    Change the local dev server port the proxy forwards to

  • set_dev_url

    Connect to a remote Three.js app by URL for inspection and visual debugging. Source code changes are NOT possible in remote mode — only runtime/visual modifications.

Threejs Devtools MCP MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Threejs Devtools MCP verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Threejs Devtools MCP als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Threejs Devtools MCP an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "threejs-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "threejs-devtools-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Threejs Devtools MCP. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Threejs Devtools MCP.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Threejs Devtools MCP?
Threejs Devtools MCP
Jo. Ech hunn et gelies.
Dat hunn ech mat Threejs Devtools MCP fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Threejs Devtools MCP benotzt?

Threejs Devtools MCP ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Threejs Devtools MCP MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Threejs Devtools MCP mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Threejs Devtools MCP MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Threejs Devtools MCP verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Threejs Devtools MCP MCP mat TypingMind?

Threejs Devtools MCP leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Threejs Devtools MCP MCP an TypingMind zur Verfügung?

Threejs Devtools MCP stellt 60 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Threejs Devtools MCP MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Threejs Devtools MCP eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇