nexus3d
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@nexus3dgenerate a torus knot and export as OBJ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ Nexus 3D Scene Studio
A pure Python 3D mathematical geometry engine, WebGL Material 3 studio (design influenced by Material 3), and Model Context Protocol (MCP) server for generative 3D modeling and autonomous AI agents.
Live Studio Web UI โข Procedural Primitives โข MCP Integration โข Python API โข CLI Commands
๐ Highlights & Capabilities
๐จ Material 3 Light Mode Studio: Interactive WebGL 3D canvas (design influenced by Material 3), system fonts, smooth OrbitControls, wireframe/solid shading, lighting rigs, and real-time geometry telemetry HUD.
๐ง Marching Tetrahedra Volumetric Isosurface Engine: Watertight, ambiguity-free 3D isosurface polygonizer with analytical central finite-difference normal estimation and vertex normal-map coloring.
๐งฌ Triply Periodic Minimal Surfaces (TPMS): Analytic Gyroid infill scaffold, Schwarz P primitive crystal, and Neovius porous minimal surfaces.
๐งฎ Analytic Signed Distance Functions (SDF) & CSG Booleans: Primitives (sphere, box, torus, cylinder, capsule) with exact and polynomial smooth Boolean operators (union, intersection, subtraction) and non-linear axial twist deformers.
๐ 3D Mandelbulb Fractal & Organic Metaballs: High-power 3D hypercomplex Mandelbulb fractal fields and multi-center organic metaball clusters.
๐ฎ 4D Hypercube (Tesseract) Engine: Real-time 4D rotation matrices in $SO(4)$ Lie group projected into 3D space via stereographic projection.
๐ Parametric Space Curves & Surfaces: Torus knots $(p, q)$ with Frenet-Serret tube framing, Superquadrics with taper/twist/bend deformations, Fibonacci golden spiral spherical lattices, Buckyballs (Fullerene C60), and Mรถbius ribbons.
๐๏ธ Procedural Fractal Terrain: Multi-octave Fractional Brownian Motion (fBm) elevation heightfields with analytical normal gradient calculations.
๐พ 1-Click Multi-Format Exporters: Wavefront
.obj+.mtl, ASCII & Binary.stl(3D printing ready),.ply, Three.js BufferGeometry.json, and single-file standalone.htmlviewers.๐ค Model Context Protocol (MCP) Server: Native stdio / JSON-RPC 2.0 interface for Claude Desktop, Cursor IDE, Cline, Zed, and autonomous AI coding agents with dedicated isosurface polygonization and CSG Boolean evaluation tools.
โก Pure Standard Library Core: 100% Python standard library geometry computation without NumPy/SciPy dependency requirements.
Related MCP server: mcp-printable
๐๏ธ System Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ NEXUS 3D SCENE STUDIO โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐จ Web Studio HUD โ ๐ค AI Agent / MCP Hub โ ๐ป CLI Interface โ
โ (Material 3 Studio UI) โ (FastMCP / JSON-RPC 2) โ (`nexus3d` commands) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโฌโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CORE MATHEMATICAL ENGINE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ฎ 4D Stereographic Proj โ ๐ (p,q) Torus Knots โ ๐ Superquadrics + Deform โ
โ ๐ป Fibonacci Spiral Lattice โ โฝ Buckyball C60 Mesh โ โพ๏ธ Mรถbius Strip Ribbon โ
โ ๐๏ธ Multi-Octave fBm Terrain โ ๐ Platonic Solids โ ๐ Mesh Telemetry & VRAM โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโฌโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ EXPORT & PACKAGING PIPELINE โ
โ โข Wavefront OBJ + MTL โข ASCII / Binary STL โข Three.js BufferGeometry JSON โ
โ โข Standalone HTML Viewer โข PLY Point Cloud & Mesh โข GLTF 2.0 / GLB Layout โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ Procedural Primitives Catalog
Primitive | Mathematical Formula / Algorithm | Key Parameters |
4D Tesseract | $\mathbf{p}{3D} = \frac{s}{d - w} R{yw}(\phi) R_{xw}(\theta) \mathbf{v}_{4D}$ |
|
$(p, q)$ Torus Knot | $r = \cos(qu) + 2$, $\mathbf{r} = (r\cos pu, r\sin pu, -\sin qu)$ with Frenet framing |
|
Superquadric | $\mathbf{S}(\eta, \omega) = (a_1 C(\eta, s_1)C(\omega, s_2), a_2 C(\eta, s_1)S(\omega, s_2), a_3 S(\eta, s_1))$ |
|
Fibonacci Sphere | $z_i = 1 - \frac{2i}{N-1}$, $\phi_i = i \cdot \pi(3-\sqrt{5})$, $r_i = \sqrt{1-z_i^2}$ |
|
Buckyball C60 | Truncated regular icosahedron ($\chi = 60 - 90 + 32 = 2$) |
|
Mรถbius Strip | $\mathbf{S}(u, v) = ((R + v\cos\frac{nu}{2})\cos u, (R + v\cos\frac{nu}{2})\sin u, v\sin\frac{nu}{2})$ |
|
Fractal Terrain | $h(x, z) = \sum_{k=0}^{M-1} A \rho^k \mathcal{N}(f \lambda^k x, f \lambda^k z)$ |
|
TPMS Gyroid | $\cos x \sin y + \cos y \sin z + \cos z \sin x = 0$ via Marching Tetrahedra |
|
Schwarz P Minimal Surface | $\cos x + \cos y + \cos z = 0$ implicit crystal lattice |
|
Neovius Minimal Surface | $3(\cos x + \cos y + \cos z) + 4\cos x \cos y \cos z = 0$ |
|
3D Mandelbulb Fractal | $v_{n+1} = v_n^8 + c$ spherical hypercomplex iteration |
|
Smooth CSG Blend | $f_{\text{union}} = \text{smin}(d_1, d_2, k) = d_2 + (d_1-d_2)h - kh(1-h)$ |
|
Detailed mathematical derivations and proofs are documented in docs/PROCEDURAL_GEOMETRY_MATH.md.
๐ Quickstart
Installation
# Clone the repository
git clone https://github.com/nexus-3d/nexus-3d-scene-studio.git
cd nexus-3d-scene-studio
# Install in editable mode
pip install -e .Python API Quickstart
from nexus_3d_scene_studio.geometry_engine import (
generate_torus_knot,
generate_tesseract_4d,
generate_superquadric,
)
from nexus_3d_scene_studio.mesh_exporter import MeshExporter
# 1. Generate a Parametric (3, 7) Torus Knot
mesh = generate_torus_knot(p=3, q=7, tubular_segments=180, radial_segments=24)
# 2. Inspect Mesh Telemetry
print(f"Vertices: {mesh.vertex_count}")
print(f"Triangles: {mesh.triangle_count}")
print(f"Surface Area: {mesh.compute_surface_area():.3f}")
# 3. Export to Wavefront OBJ with Normals
MeshExporter.export_obj(mesh, "torus_knot_3_7.obj")
# 4. Export to 3D-Printing ASCII STL
MeshExporter.export_stl(mesh, "torus_knot_3_7.stl")
# 5. Export to Standalone Offline HTML 3D Viewer
MeshExporter.export_html_viewer(mesh, "torus_knot_viewer.html")๐ป CLI Interface
# Generate and export a 4D Hypercube Tesseract
nexus3d generate tesseract --rotation-4d 0.8 --export tesseract.obj
# Generate a Parametric Torus Knot
nexus3d generate torus-knot --p 3 --q 5 --tube-radius 0.4 --export knot.stl
# Launch the interactive Nexus 3D Studio Web UI
nexus3d serve --port 8080
# Inspect geometry telemetry of any OBJ file
nexus3d inspect knot.obj๐ค AI Agent & MCP Server
Nexus 3D Scene Studio implements the Model Context Protocol (MCP), allowing AI agents to generate, inspect, and export 3D scenes autonomously.
Available MCP Tools:
generate_mesh: Generates any of the 7 procedural primitives with custom math parameters.export_scene: Exports scenes to OBJ, MTL, STL, PLY, Three.js JSON, or Standalone HTML.transform_mesh: Applies translation, rotation, scale, taper, twist, and bend deformations.inspect_geometry: Returns live vertex counts, face counts, bounding box, surface area, and Euler characteristic.list_primitives: Returns available primitives and parameter schema.
Claude Desktop Integration
Add to claude_desktop_config.json:
{
"mcpServers": {
"nexus3d": {
"command": "python",
"args": ["-m", "nexus_3d_scene_studio.mcp_server"],
"env": { "PYTHONPATH": "src" }
}
}
}Full setup guides for Cursor, Cline, and Zed are available in docs/MCP_GUIDE.md.
๐งช Testing
Run the comprehensive unit test suite:
PYTHONPATH=src pytest tests/ -v๐ License
This project is open-source under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
Cloud Blender for AI agents: scenes, assets, renders, MP4, STL, GLB โ over hosted remote MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceExposes 50+ Blender tools (object manipulation, materials, animation, etc.) via MCP for AI-driven 3D workflows and automation.1MIT
- AlicenseAqualityBmaintenanceConnects MCP-capable agents to Blender and OpenSCAD for AI-driven 3D modeling, with tools and rules optimized for FDM-printable geometry.292MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to create and manipulate 3D models using OpenSCAD through MCP tools for code-based modeling, preview, and export.1MIT

gitcadofficial
AlicenseNot gradedqualityBmaintenanceEnables agents to create and manipulate 3D CAD models using natural language via MCP, with git-based versioning and manufacturing output generation.1Apache 2.0