Back to Browse

Threejs Devtools MCP Server

Developer ToolsLow Risk10.0Local
Free

Inspect and edit Three.js scenes, materials, shaders, lights in real time from any AI agent

About

Inspect and edit Three.js scenes, materials, shaders, lights in real time from any AI agent

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

5 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

file_system

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

What You'll Need

Set these up before or after installing:

Dev server port to proxy (auto-detected from package.json if not set)Optional

Environment variable: DEV_PORT

Bridge proxy port (default: 9222)Optional

Environment variable: BRIDGE_PORT

Set to 'none' to disable auto-opening browserOptional

Environment variable: BROWSER

Set to 'true' for headless browser mode (CI)Optional

Environment variable: HEADLESS

Custom Chrome/Edge executable pathOptional

Environment variable: CHROME_PATH

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-dmitriygolub-threejs-devtools": {
      "env": {
        "BROWSER": "your-browser-here",
        "DEV_PORT": "your-dev-port-here",
        "HEADLESS": "your-headless-here",
        "BRIDGE_PORT": "your-bridge-port-here",
        "CHROME_PATH": "your-chrome-path-here"
      },
      "args": [
        "-y",
        "threejs-devtools-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

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

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

Add to claude_desktop_config.json:

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

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

{
  "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:

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

Add to .vscode/mcp.json:

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

Add to opencode.json in your project:

{
  "$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:

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

Documentation

License

MIT

Reviews

5.01 rating
5
1
4
0
3
0
2
0
1
0

No written reviews yet. Be the first!

Version History

v0.4.0Mar 22, 2026Re-scanned
Threejs Devtools MCP Server - Inspect and edit Three.js scenes, materials, shaders, | MCP Marketplace