Logotipo de Threejs Devtools MCP

Threejs Devtools MCP

Comunidad
DmitriyGolub

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

EditorDmitriyGolub
Repositoriothreejs-devtools-mcp
IdiomaTypeScript
Forks
11
Estrellas
108
Herramientas disponibles
60
Tipo de transportestdio
Categorías
LicenciaMIT
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Threejs Devtools MCP ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 60 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    108 estrellas y 11 forks en el repositorio enlazado.

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

Instalación

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

Herramientas disponibles

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

Usa el MCP de Threejs Devtools MCP con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Threejs Devtools MCP, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Threejs Devtools MCP como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Threejs Devtools MCP.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "threejs-devtools-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "threejs-devtools-mcp"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Threejs Devtools MCP y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Threejs Devtools MCP.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Threejs Devtools MCP para ayudarme con esta tarea?
Threejs Devtools MCP
Claro. Lo he leído.
Esto he encontrado usando Threejs Devtools MCP.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Threejs Devtools MCP?

Threejs Devtools MCP es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Threejs Devtools MCP con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Threejs Devtools MCP con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Threejs Devtools MCP con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Threejs Devtools MCP conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Threejs Devtools MCP a TypingMind?

Threejs Devtools MCP funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Threejs Devtools MCP en TypingMind?

Threejs Devtools MCP ofrece 60 herramientas MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Threejs Devtools MCP?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Threejs Devtools MCP requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇