Logo van Threejs Devtools MCP

Threejs Devtools MCP

Community
DmitriyGolub

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

UitgeverDmitriyGolub
Repositorythreejs-devtools-mcp
TaalTypeScript
Forks
11
Sterren
108
Beschikbare tools
60
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    Threejs Devtools MCP biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 60 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    108 sterren en 11 forks in de gekoppelde 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

Installatie

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

Beschikbare 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.

Gebruik Threejs Devtools MCP MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra Threejs Devtools MCP is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg Threejs Devtools MCP toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van Threejs Devtools MCP.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "threejs-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "threejs-devtools-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van Threejs Devtools MCP in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van Threejs Devtools MCP in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je Threejs Devtools MCP gebruiken om me hiermee te helpen?
Threejs Devtools MCP
Zeker. Ik heb het gelezen.
Dit vond ik met Threejs Devtools MCP.

Veelgestelde vragen

Waarvoor wordt de MCP-server Threejs Devtools MCP gebruikt?

Threejs Devtools MCP is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik Threejs Devtools MCP MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je Threejs Devtools MCP gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom Threejs Devtools MCP MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als Threejs Devtools MCP verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik Threejs Devtools MCP MCP met TypingMind?

Threejs Devtools MCP werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt Threejs Devtools MCP MCP in TypingMind?

Threejs Devtools MCP biedt 60 MCP-tools die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om Threejs Devtools MCP MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als Threejs Devtools MCP authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇