Transforms natural language descriptions into parametric 3D models through a pipeline of image generation, object segmen...
Created byApr 22, 2025
OpenSCAD MCP Server
A Model Context Protocol (MCP) server that enables users to generate 3D models from text descriptions or images, with a focus on creating parametric 3D models using multi-view reconstruction and OpenSCAD.
Features
AI Image Generation: Generate images from text descriptions using Google Gemini or Venice.ai APIs
Multi-View Image Generation: Create multiple views of the same 3D object for reconstruction
Image Approval Workflow: Review and approve/deny generated images before reconstruction
3D Reconstruction: Convert approved multi-view images into 3D models using CUDA Multi-View Stereo
Remote Processing: Process computationally intensive tasks on remote servers within your LAN
OpenSCAD Integration: Generate parametric 3D models using OpenSCAD
Parametric Export: Export models in formats that preserve parametric properties (CSG, AMF, 3MF, SCAD)
3D Printer Discovery: Optional network printer discovery and direct printing
Architecture
The server is built using the Python MCP SDK and follows a modular architecture:
Installation
Clone the repository:
Create a virtual environment:
Install dependencies:
Install OpenSCAD:
Install CUDA Multi-View Stereo:
Set up API keys:
Remote Processing Setup
The server supports remote processing of computationally intensive tasks, particularly CUDA Multi-View Stereo reconstruction. This allows you to offload processing to more powerful machines within your LAN.
Server Setup (on the machine with CUDA GPU)
Install CUDA Multi-View Stereo on the server machine:
Start the remote CUDA MVS server:
The server will automatically advertise itself on the local network using Zeroconf.
Client Configuration
Configure remote processing in your .env file:
Alternatively, you can specify a server URL directly:
Remote Processing Features
Automatic Server Discovery: Find CUDA MVS servers on your local network
Job Management: Upload images, track job status, and download results
Fault Tolerance: Automatic retries, circuit breaker pattern, and error tracking
Authentication: Secure API key authentication for all remote operations
Health Monitoring: Continuous server health checks and status reporting
Contributions are welcome! Please feel free to submit a Pull Request.
OpenSCAD MCP Server
A Model Context Protocol (MCP) server that enables users to generate 3D models from text descriptions or images, with a focus on creating parametric 3D models using multi-view reconstruction and OpenSCAD.
Features
AI Image Generation: Generate images from text descriptions using Google Gemini or Venice.ai APIs
Multi-View Image Generation: Create multiple views of the same 3D object for reconstruction
Image Approval Workflow: Review and approve/deny generated images before reconstruction
3D Reconstruction: Convert approved multi-view images into 3D models using CUDA Multi-View Stereo
Remote Processing: Process computationally intensive tasks on remote servers within your LAN
OpenSCAD Integration: Generate parametric 3D models using OpenSCAD
Parametric Export: Export models in formats that preserve parametric properties (CSG, AMF, 3MF, SCAD)
3D Printer Discovery: Optional network printer discovery and direct printing
Architecture
The server is built using the Python MCP SDK and follows a modular architecture:
Installation
Clone the repository:
Create a virtual environment:
Install dependencies:
Install OpenSCAD:
Install CUDA Multi-View Stereo:
Set up API keys:
Remote Processing Setup
The server supports remote processing of computationally intensive tasks, particularly CUDA Multi-View Stereo reconstruction. This allows you to offload processing to more powerful machines within your LAN.
Server Setup (on the machine with CUDA GPU)
Install CUDA Multi-View Stereo on the server machine:
Start the remote CUDA MVS server:
The server will automatically advertise itself on the local network using Zeroconf.
Client Configuration
Configure remote processing in your .env file:
Alternatively, you can specify a server URL directly:
Remote Processing Features
Automatic Server Discovery: Find CUDA MVS servers on your local network
Job Management: Upload images, track job status, and download results
Fault Tolerance: Automatic retries, circuit breaker pattern, and error tracking
Authentication: Secure API key authentication for all remote operations
Health Monitoring: Continuous server health checks and status reporting