Skip to main content
Glama

πŸš€ Local3D Studio β€” Universal 16GB-Safe AI-to-3D Manufacturing & MCP Server

License: MIT MCP Compatible Memory Safety Hardware Documentation


Local3D Studio is an open-source, production-grade 3D generative manufacturing suite and Model Context Protocol (MCP) server. It converts raw text prompts and 2D photos into high-definition, watertight 3D-printable figurines (.stl), modular keyed assemblies (.3mf), and game-ready digital assets (.glb).

Designed as a 100% local-first, zero-cloud alternative to platforms like Meshy AI and Tripo3D, Local3D Studio executes entirely on consumer hardware within a strict 16 GB unified RAM/VRAM budgetβ€”without requiring proprietary CUDA compilation flags or mandatory background daemon servers. By using the client AI's native visual generator (or user-provided photos) for 2D concepts, 100% of your 16 GB of RAM/VRAM is dedicated exclusively to 3D neural reconstruction (Hunyuan3D-2) and headless Blender manufacturing.

πŸ“– Read in Italian / Leggi in Italiano: README_IT.md
πŸ›οΈ Architecture Deep-Dive: docs/ARCHITECTURE.md
πŸ”Œ MCP Client Setup Guide: docs/MCP_GUIDE.md
🌐 MCP Directories & Community: docs/SUBMISSIONS.md


🌟 Key Feature Highlights

1. Complete Meshy AI Open-Source Alternative (17 Native MCP Tools + Resources & Prompts)

Local3D Studio 3.0 provides a full local replacement for commercial 3D generation suites:

  • Direct Image-to-3D + 2D Albedo Projection (direct_image_to_3d): 1-click transformation of any 2D concept or photo into a 3D mesh with automatic 2D-to-3D Albedo color projection (colored .glb + K-Means quantized multi-color .3mf for Anycubic ACE Pro & Bambu AMS), optional 3D embossed pedestal text (pedestal_label), and Printability Doctor telemetry (overhangs >45Β°, static CoG stability, plate fit).

  • Auto Split 2.0 & True-Centroid Hexagonal Keying (auto_split_model): Scans cross-section perimeters to cut at true anatomical narrowings (neck, waist, shoulders, limbs), computes the exact 3D centroid of every cut face (zero floating pegs!), and adds anti-rotation 6-sided hexagonal pegs & sockets (0.22mm clearance for 0.4mm nozzles).

  • Total Anycubic Ecosystem Integration (slice_or_open_in_anycubic): Auto-detects Anycubic Slicer Next v2.0+ and your active printer profile (Anycubic Kobra X / Kobra 3 / S1 / Kobra 4), auto-arranges on plate via CLI, maps ACE Pro multi-color slots (1–8), prepares Anycubic Photon SLA resin models (2.0mm hollowing + 2 anti-suction drain holes), and launches Anycubic Slicer Next in 1 click.

  • 1-Click 3D Auto-Rigging (auto_rig_model): Builds a 19-bone Mixamo/Game-Engine humanoid armature (or quadruped skeleton) with automatic skinning weights in headless Blender and exports an animation-ready _rigged.glb.

  • ControlNet OpenPose Guidance (canonicalize_humanoid_pose): Builds a side-by-side reference sheet with an 18-joint OpenPose canonical target skeleton (A-Pose 35Β°-45Β°, T-Pose 90Β°, Action Pose) to prevent limb webbing.

  • AI Retopology Engine (retopologize_mesh): Generates clean topology via Quadriflow 100% All-Quad or Decimate Triangle Collapse.

  • PBR & UV Albedo Texture Baking (bake_pbr_textures): Bakes UV Albedo BaseColor, tangent-space Normal maps, and Ambient Occlusion (AO) up to 4096px via headless Blender Cycles, exporting PBR .glb + multi-color .3mf.

2. Pure In-Process MCP Execution (Zero Daemons Required)

Unlike systems that require running background FastAPI servers on localhost:8000, Local3D Studio's MCP server (server.py) communicates directly over stdio. Connect it to Google Antigravity, Claude Desktop, Cursor, or Continue.dev simply by pointing your client configuration to server.py or run_mcp.sh.

3. Universal Hardware Auto-Detection & Dynamic Tiering

Automatically inspects system capabilities (psutil + PyTorch device inspection) and selects one of 4 auto-scaling performance tiers:

  • Apple Silicon (macOS): Native mps backend with torch.float16.

  • AMD Radeon (Windows / Linux): Native AMD ROCm/HIP (torch.version.hip) or DirectML (torch-directml), completely free of CUDA lock-in.

  • NVIDIA GeForce / RTX: Native cuda backend with SDPA attention.

  • Blender Discovery: Autonomously locates Blender across macOS, Windows, and Linux.

Tier

Target Hardware

3D Engine Configuration

Remesh Resolution & Triangles

TIER 1 ECO

Mac 16GB / PC VRAM $\le 8$GB or RAM $\le 16$GB

Mini 320p (25 steps)

0.0025m (80,000 tris)

TIER 2 BALANCED

Mac 24-36GB / PC 10-12GB VRAM

Mini 320p (25 steps)

0.0060m (65,000 tris)

TIER 3 PRO 64GB

Mac $\ge 48$GB / PC $\ge 15$GB VRAM

Full 1.1B 384p (25 steps)

0.0025m (90,000 tris)

TIER 4 ULTRA

PC $\ge 22$GB VRAM / Mac $\ge 64$GB

Full 1.1B 512p (35 steps)

0.0035m (120,000 tris)

4. Multi-View Turnaround Calibration (tools/multiview_aligner.py)

Eliminates rear-side hallucinations and occlusion:

  • Connected-Component Isolation: Eliminates adjacent panel bleed-over using alpha mask segmentation (scipy.ndimage).

  • Y-Bounding-Box Lock: Standardizes character height to 400px on a 512x512 canvas, locking the feet to $Z=0$ ($Y=456$) and crown to $Y=56$.

  • CLAHE Normal Enhancement: Enhances fine surface relief in albedo textures before 3D reconstruction.

5. Production 3-Step Protocol & Hard Approval Gate

  • Prompt Compiler (compile_3d_master_prompt): Generates an ultra-detailed, photogrammetry-grade prompt in the Meshy AI Single-Master 3/4 profile with strict anti-occlusion directives (A-pose, separated limbs, zero smoke, zero auras, zero pedestals).

  • Native Client AI 2D / User Photo (100% RAM Dedicated to 3D): Fully decouples 2D concept generation to the client AI assistant (e.g. Antigravity's native multimodal generator) or user-supplied reference photos. By eliminating local 2D diffusion pipelines, 100% of the 16 GB unified RAM/VRAM budget is dedicated to 3D neural reconstruction (Hunyuan3D-2) and headless Blender manufacturing, completely avoiding system freezes and maximizing polygon fidelity.

  • Hard Approval Gate: Execution strictly pauses after saving output/<name>_concept.png. The agent must display the concept and wait for explicit user confirmation before proceeding.

  • Direct 3D Reconstruction (direct_image_to_3d): Preprocesses the approved image with background removal (rembg_engine.py), CLAHE local contrast, and $Z=0$ ground lock, followed by isolated neural 3D reconstruction and headless Blender manufacturing.

  • Tempfile Hygiene: Intermediate texture slices, masks, and raw neural meshes are kept inside tempfile.TemporaryDirectory(). Only the final .stl, .glb, .3mf, and lookdev_sheet.png are written to output/.


Related MCP server: clayform

πŸ“‚ Repository Structure

Local3D-Studio/
β”œβ”€β”€ .env.example                     # Reference environment configuration
β”œβ”€β”€ .gitignore                       # Git ignore for virtualenvs, caches, outputs
β”œβ”€β”€ LICENSE                          # MIT Open Source License
β”œβ”€β”€ CONTRIBUTING.md                  # Contribution guidelines & code standards
β”œβ”€β”€ README.md                        # English Master Documentation
β”œβ”€β”€ README_IT.md                     # Italian Master Documentation
β”œβ”€β”€ requirements.txt                 # Universal dependencies (zero C++ build flags)
β”œβ”€β”€ setup_env.py                     # Universal installer & hardware bootstrapper
β”œβ”€β”€ server.json                      # Official MCP Catalog Specification Manifest
β”œβ”€β”€ run_mcp.sh / .bat                # In-process stdio MCP server launchers
β”œβ”€β”€ update.sh / .bat                 # One-click automated updater scripts
β”œβ”€β”€ start_worker.sh / .bat           # Optional Web Studio GUI launchers
β”œβ”€β”€ server.py                        # Root MCP Server & Unified CLI (17 Tools, Resources & Prompts)
β”œβ”€β”€ worker_api.py                    # Optional FastAPI Web Studio & Three.js server
β”‚
β”œβ”€β”€ core/                            # Hardware abstraction, diagnostics & client layer
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ config.py                    # Environment variables & directory paths
β”‚   β”œβ”€β”€ hardware_backend.py          # HardwareManager (MPS / ROCm / CUDA / 4 Tiers)
β”‚   β”œβ”€β”€ diagnostics.py               # Local3D Doctor diagnostic & health inspection
β”‚   β”œβ”€β”€ client_setup.py              # Automated multi-client setup & skill deployment
β”‚   β”œβ”€β”€ updater.py                   # Automated GitHub release pull & dependency sync
β”‚   β”œβ”€β”€ response_envelope.py         # Standardized MCP result and error contracts
β”‚   β”œβ”€β”€ memory.py                    # VRAM/RAM garbage collector & cache cleaner
β”‚   └── client.py                    # Unified REST client (optional LAN offload)
β”‚
β”œβ”€β”€ skills/                          # Bundled AI Agent Skills
β”‚   └── local3d-studio/
β”‚       β”œβ”€β”€ SKILL.md                 # Production 3-Step Protocol for Antigravity
β”‚       └── references/              # Slicer & hardware tier reference guides
β”‚
β”œβ”€β”€ tools/                           # Modular Generative & Manufacturing Engines
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ prompt_enhancer.py           # Dynamic style router & Meshy AI prompt compiler
β”‚   β”œβ”€β”€ pose_canonicalizer.py        # Humanoid Pose Guidance (A-Pose/T-Pose overlay)
β”‚   β”œβ”€β”€ concept_engine.py            # Concept engine & fallback generator
β”‚   β”œβ”€β”€ rembg_engine.py              # Pure Python background removal (u2net/ONNX)
β”‚   β”œβ”€β”€ multiview_aligner.py         # Anti-bleed & Y-bounding-box lock calibration
β”‚   β”œβ”€β”€ neural_3d_engine.py          # Hunyuan3D-2 shape generation (Mini & Full)
β”‚   β”œβ”€β”€ blender_pipeline.py          # Blender headless remesh, 2D Albedo projection, Print Doctor, PBR
β”‚   β”œβ”€β”€ model_splitter.py            # Splitter 2.0: cross-section narrowing & true-centroid hex pegs
β”‚   β”œβ”€β”€ anycubic_engine.py           # Anycubic Slicer Next CLI, ACE Pro 3MF & Photon resin hollowing
β”‚   β”œβ”€β”€ rigging_engine.py            # 1-Click 19-bone Mixamo/Quadruped 3D Auto-Rigging
β”‚   └── pipeline_engine.py           # Master execution pipeline & atomic state gate manager
β”‚
β”œβ”€β”€ tests/                           # End-to-end verification suite (Blender, Splitter 2.0, Anycubic)
β”‚   └── test_local3d_suite.py
β”‚
β”œβ”€β”€ frontend/                        # Web Studio Three.js GUI (Optional)
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── web_viewer.py                # Three.js 3D viewport, wireframe inspect, telemetry
β”‚
β”œβ”€β”€ docs/                            # In-depth technical guides
β”‚   β”œβ”€β”€ ARCHITECTURE.md              # Technical deep-dive & subsystem diagrams
β”‚   └── MCP_GUIDE.md                 # Client setup (Antigravity, Claude, Cursor)
β”‚
└── output/                          # Production deliverables (.stl, .glb, .3mf)
    └── .gitkeep

⚑ Quickstart Guide

1. Installation

git clone https://github.com/Jaco2308/Local3D_Studio.git
cd Local3D_Studio

# Run the universal installer (auto-detects Apple Silicon, AMD ROCm, NVIDIA CUDA)
python3 setup_env.py

setup_env.py automatically:

  1. Detects your OS and GPU accelerator.

  2. Installs the matching PyTorch wheels (mps, rocm, cuda, or cpu).

  3. Installs requirements (mcp, trimesh, rembg, scipy, psutil, fastapi, transformers).

  4. Autonomously locates your Blender installation.

  5. Initializes your .env configuration file.


2. Universal local3d CLI Suite

Inspired by the REA architecture, Local3D Studio provides a system-wide unified CLI command (local3d):

# 1. Automated Health Diagnostics (Blender, PyTorch, Memory Tiers, MCP Client drift)
local3d doctor

# 2. Automated 1-Click Update (GitHub release sync, pip dependencies, skill refresh)
local3d update
# (or double-click update.bat on Windows / ./update.sh on macOS/Linux)

# 3. 1-Command Automated MCP Client Registration & Skill Deployment
local3d setup --client antigravity
local3d setup --client claude_desktop
local3d setup --client cursor

# 4. View Active Hardware Telemetry & Performance Tier
local3d status

# 5. Start Native Stdio MCP Server
local3d mcp

3. Connecting to Your MCP Client

Local3D Studio MCP Server runs 100% locally in-process over stdio.

You can configure your client automatically with:

local3d setup --client antigravity
# Supported clients: antigravity, claude_desktop, cursor, vscode, gemini_cli

Or manually add Local3D Studio to your client's configuration file:

{
  "mcpServers": {
    "local3d": {
      "command": "/absolute/path/to/Local3D-Studio/.venv/bin/python",
      "args": [
        "/absolute/path/to/Local3D-Studio/server.py"
      ],
      "env": {
        "PYTHONUNBUFFERED": "1",
        "PYTHONIOENCODING": "utf-8"
      }
    }
  }
}

For complete configuration examples for Antigravity, Claude Desktop, Cursor, Continue.dev, and Windsurf, see docs/MCP_GUIDE.md.


3. Optional: Interactive Three.js Web Studio GUI

If you want to view models in a web browser with drag & drop uploads, wireframe inspection, and real-time hardware telemetry:

# macOS / Linux:
./start_worker.sh

# Windows:
start_worker.bat

Then open http://localhost:8000 in your web browser.


πŸ› οΈ MCP Tools Reference (Complete 17-Tool Suite)

Tool Name

Arguments

Description

get_hardware_status

(none)

Returns CPU, GPU backend (CUDA/ROCm/MPS), system RAM/VRAM, active Performance Tier (1-4), and Blender binary path.

set_quality_preset

preset

Sets active quality mode across the platform (fast_draft, auto, ultra_production).

enhance_prompt_for_3d

prompt, mode, art_style, multiview, add_pedestal_base, humanoid_pose

Expands raw prompts into photogrammetry-grade 3D prompts across 5 styles and standard pose angles.

compile_3d_master_prompt

subject, art_style, key_details, add_pedestal_base, humanoid_pose, generation_strategy

Compiles an ultra-detailed Meshy AI Single-Master 3/4 prompt for Antigravity native generation with anti-occlusion & zero-effects directives.

align_multiview_concept

concept_path

Crops quadrants, isolates main subject via connected components, locks Y-bounding-box, and enhances albedo.

confirm_concept_and_build_3d

concept_path, output_filename, quality_preset, target_height_mm, add_pedestal, art_style, target_triangles, voxel_size, auto_split

Hard Approval Gate: Invocable after user confirmation to execute 3D neural reconstruction and Blender pipeline.

direct_image_to_3d

image_path, output_filename, quality_preset, generation_strategy, add_pedestal, target_height_mm, art_style, target_triangles, voxel_size, auto_split

Primary 3D Entry Point: Converts approved 2D concept or user image to 3D with rembg, CLAHE, Hunyuan3D-2, and Blender manufacturing.

retopologize_mesh

input_mesh_path, output_filename, mode, target_count

AI Retopology: Converts dense sculpts into clean topology: Quadriflow all-quads (rigging) or fixed tri budget (games).

bake_pbr_textures

input_mesh_path, output_filename, texture_resolution, bake_normal, bake_ao, reference_image_path, ace_pro_slots

PBR + Albedo Baker: Projects 2D Albedo UV map and bakes Normal & AO maps via Blender Cycles, exporting PBR GLB + multi-color 3MF.

auto_split_model

input_mesh_path, output_filename, subject_category, add_connectors, connector_size_mm, exploded_distance_mm, connector_shape, clearance_mm

Auto Split 2.0 (Hex Pegs): Cuts at anatomical cross-section narrowings with true-centroid hexagonal pegs (0.22mm clearance), exploded GLB & 3MF.

slice_or_open_in_anycubic

input_mesh_path, output_filename, printer_preset, ace_pro_colors, auto_orient, auto_arrange, run_slice, open_in_slicer, resin_hollow_mm

Total Anycubic Integration: Prepares Kobra X / Kobra 3 / S1 / ACE Pro 3MF (or Photon SLA resin hollowing + drain holes) and launches Anycubic Slicer Next.

auto_rig_model

input_mesh_path, output_filename, rig_type

1-Click 3D Auto-Rig: Binds a 19-bone Mixamo/Game-Engine humanoid armature (or quadruped skeleton) in Blender and exports _rigged.glb.

canonicalize_humanoid_pose

image_path, target_pose, output_filename, art_style

OpenPose Guidance: Generates a side-by-side 18-keypoint ControlNet OpenPose target sheet for canonical poses.

image_to_high_detail_stl

image_path, output_filename, quality_preset, target_height_mm, target_triangles, voxel_size, add_pedestal, art_style

Full end-to-end manufacturing pipeline with automatic Approval Gate validation and 3D print preparation.

recalculate_in_ultra_production

output_filename

1-Click recalculation: Re-runs 3D generation on the latest concept using 100k polygon budget and dense remeshing.

prepare_for_3d_print

input_mesh_path, output_filename, target_height_mm, target_triangles, voxel_size, smooth_iterations, add_pedestal

Repairs existing meshes, normalizes scale to millimeters, forces Z=0 bed grounding, and guarantees watertightness.

capture_multiview_sheet

mesh_path, output_filename

Renders a 4-view studio LookDev sheet (Isometric 3/4 Hero, Front Close-Up, Profile, Rear View).


πŸ–¨οΈ Anycubic Slicer Next (ACE Pro / Photon SLA) & Bambu AMS Multi-Color Workflow

When using auto_split_model, bake_pbr_textures, or slice_or_open_in_anycubic:

  1. Local3D Studio finds true anatomical cross-section narrowings (neck, waist, joints) and cuts your mesh cleanly (Head, Torso, Legs, Arms).

  2. Generates individual watertight .stl files in output/<name>_parts/ with true-centroid anti-rotation hexagonal pegs (0.22mm tolerance clearance).

  3. Compiles multi-color .3mf files quantized for Anycubic ACE Pro (4/8 slots) or Bambu Studio / OrcaSlicer AMSβ€”and supports Anycubic Photon SLA Resin hollowing (2.0mm wall) with dual drain holes.

  4. Invoke slice_or_open_in_anycubic (or drag <name>_split.3mf / <name>_multicolor.3mf into Anycubic Slicer Next / Bambu Studio):

    • Auto-orients and arranges on the active bed (e.g., Anycubic Kobra X 260Γ—260Γ—260mm), binds ACE Pro / AMS filament slots, and opens directly in the slicer GUI!


🌐 MCP Directories & Ecosystem

Local3D Studio is built to seamlessly integrate with any standard Model Context Protocol client:

1-Click Install via Smithery.ai

npx -y @smithery/cli install @Jaco2308/Local3D_Studio --client claude

Official Registries & Communities


🀝 Contributing

We welcome community contributions, bug reports, and pull requests! Please read our CONTRIBUTING.md for architectural guidelines, manifold geometry invariants, and code formatting rules.


πŸ“„ License

Local3D Studio is released under the MIT License. See LICENSE for details. Free for personal, commercial, and research use.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI clients to generate 3D models through natural language, including text-to-3D and image-to-3D, with tools for checking balance, refining models, converting formats, and a local 3D viewer that works without external network access.
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to model, sculpt, rig, animate and bake particle effects by editing a semantic scene document, with built-in software rendering, measurable critics that flag floating or broken geometry, and game-ready glTF export. It exposes templates, atomic edit batches, motion and effect previews, undo history, and no GPU, browser, or Blender required.
      52 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to run a fully local 3D asset production pipeline: submit a reference image and a plain-language brief, generate a textured GLB, render multi-view images, inspect results against the renders, and export Blender-checkable scenes through self-describing figure_* tools. Every run also writes a provenance ledger recording inputs, commands, backend versions and output hashes so any artifact can be reproduced or audited.
      2
      AGPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding assistants and agents to natively generate images, videos, 3D meshes, Gaussian splats, and speech, and to manage media assets, through natural language commands or automated scripts over the Model Context Protocol. It exposes 55 tools alongside a Python CLI automation suite for batch generation, camera-orbit passes, credit/cost estimation, and companion API bridge integration.
      56
      Apache 2.0