mcpField
T
Three.js Mcp

Three.js Mcp

Local
github.com/CharlieKerfootDeveloper Tools2Updated 33w ago

About Three.js Mcp

Three.js Mcp is an MCP server for generating Three.js code, aimed at developers building 3D scenes. Its tools cover scene setup, rendering, interaction, animation, physics, and more.

Key features

  1. 01Create scenes and renderers
  2. 02Generate cameras, geometry, and materials
  3. 03Configure lighting and controls
  4. 04Load models, textures, and environments
  5. 05Handle animation, interaction, and physics
  6. 06Set up post-processing and XR

Use cases

  1. 01Lay out a Three.js scene structure
  2. 02Generate geometry, materials, and lighting
  3. 03Add animation and user interaction
  4. 04Include physics or XR in a scene

MCP support

It runs as a standard stdio MCP server and exposes Three.js code-generation tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Threejs-mcp

A Three.js code-generation MCP server.

Tools

CategoryTools
Scene & Rendererscene_setup, html_template
Camerasperspective_camera, orthographic_camera
Geometrygeometry, extrude_geometry, lathe_geometry, tube_geometry
Materialsmaterial, shader_material
Meshesmesh, instanced_mesh, group
Lightingambient_light, directional_light, point_light, spot_light, hemisphere_light, rect_area_light
Controlsorbit_controls, fly_controls, pointer_lock_controls, transform_controls
Loadersgltf_loader, texture_loader, cube_texture_loader, hdr_environment, fbx_loader
Animationanimation_loop, keyframe_animation, tween_animation
Interactionraycaster
Helpersdebug_helpers, light_helpers
Post-processingpostprocessing_setup
Environmentground_plane, skybox, water_surface, particles, reflective_surface, lensflare
UIcss2d_label
Physicsrapier_physics
XRwebxr_setup
Utilitiesmath_utils, dispose_resources

Prerequisites

  • Python 3.13+
  • uv

Installation

Clone this repository, then update the path in run.sh to point to the cloned directory:

#!/bin/zsh
source ~/.zshrc
exec uv run --directory /path/to/threejs-mcp threejs-mcp

Make the script executable:

chmod +x run.sh

Then follow the instructions for your MCP client below. Replace /path/to/threejs-mcp/run.sh with the actual path to the script.

Claude Code
claude mcp add threejs -s user -- /path/to/threejs-mcp/run.sh

The scope (-s) can be user, project, or local.

Claude Desktop

Open Settings > Developer > Edit Config and add to claude_desktop_config.json:

{
  "mcpServers": {
    "threejs": {
      "command": "/path/to/threejs-mcp/run.sh"
    }
  }
}
Cursor

Open Settings > MCP > Add new global MCP server and add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "threejs": {
      "command": "/path/to/threejs-mcp/run.sh"
    }
  }
}

Or add to .cursor/mcp.json in your project root for project-scoped configuration.

Windsurf

Open Settings > MCP > Add Server > Add custom server and add to your MCP config:

{
  "mcpServers": {
    "threejs": {
      "command": "/path/to/threejs-mcp/run.sh"
    }
  }
}
VS Code / GitHub Copilot

Add to your user or workspace settings.json:

{
  "mcp": {
    "servers": {
      "threejs": {
        "command": "/path/to/threejs-mcp/run.sh"
      }
    }
  }
}

Or create .vscode/mcp.json in your project root:

{
  "servers": {
    "threejs": {
      "command": "/path/to/threejs-mcp/run.sh"
    }
  }
}
Zed

Add to your Zed settings (~/.config/zed/settings.json):

{
  "context_servers": {
    "threejs": {
      "command": {
        "path": "/path/to/threejs-mcp/run.sh"
      }
    }
  }
}
Cline

Open Settings > MCP Servers > Edit MCP Settings and add to the config:

{
  "mcpServers": {
    "threejs": {
      "command": "/path/to/threejs-mcp/run.sh"
    }
  }
}
Continue

Add to your ~/.continue/config.yaml:

mcpServers:
  - name: threejs
    command: /path/to/threejs-mcp/run.sh
Roo Code

Open Settings > MCP > Edit MCP Settings and add:

{
  "mcpServers": {
    "threejs": {
      "command": "/path/to/threejs-mcp/run.sh"
    }
  }
}
Any other MCP client

This is a standard stdio MCP server. Run it with:

/path/to/threejs-mcp/run.sh

Scraping docs

The docs/ directory contains condensed markdown scraped from the Three.js documentation. To regenerate:

uv run python scrape_docs.py

This requires the httpx and beautifulsoup4 packages (not included in the main dependencies).

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.