OpenSCAD

v1.0.0Developer Toolsstable

Enables AI assistants to render 3D models by providing tools to execute OpenSCAD code and generate single or multi-perspective views. It returns high-quality PNG renderings directly to LLM applications for visual feedback and 3D model visualization.

openscad-mcp-servermcpai-integration
Share:
151
Stars
0
Downloads
0
Weekly
0/5

What is OpenSCAD?

OpenSCAD is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai assistants to render 3d models by providing tools to execute openscad code and generate single or multi-perspective views. it returns high-quality png renderings directly to llm application...

Enables AI assistants to render 3D models by providing tools to execute OpenSCAD code and generate single or multi-perspective views. It returns high-quality PNG renderings directly to LLM applications for visual feedback and 3D model visualization.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Enables AI assistants to render 3D models by providing tools

Use Cases

Enables AI assistants to render 3D models by providing tools to execute OpenSCAD
jhacksman

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 14, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx openscad-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use OpenSCAD

OpenSCAD MCP Server enables AI assistants to create, render, and visualize 3D models by executing OpenSCAD code and returning high-quality PNG images directly in the conversation. It supports single-view and multi-perspective rendering, AI-driven 3D model generation from text prompts or images via Gemini, optional CUDA Multi-View Stereo for depth reconstruction, and remote 3D printer discovery and printing. Developers and makers use it to iterate on parametric 3D designs using natural language without leaving their AI assistant.

Prerequisites

  • Python 3.10+ with pip and venv support
  • OpenSCAD installed (Ubuntu: `sudo apt-get install openscad`; macOS: `brew install openscad`; Windows: download from openscad.org)
  • A Google Gemini API key if you want AI-driven text-to-3D or image-to-3D generation
  • Optional: CUDA-capable GPU and CUDA toolkit for multi-view stereo 3D reconstruction
  • An MCP client such as Claude Desktop
1

Clone the repository

Clone the OpenSCAD MCP Server repository and enter the project directory.

git clone https://github.com/jhacksman/OpenSCAD-MCP-Server.git
cd OpenSCAD-MCP-Server
2

Create a virtual environment and install dependencies

Set up an isolated Python environment and install all required packages from requirements.txt.

python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt
3

Configure environment variables

Create a .env file in the project root with your API keys and optional remote rendering settings. GEMINI_API_KEY is required for AI-driven generation; the REMOTE_CUDA_MVS variables are only needed if you have a remote multi-view stereo server.

GEMINI_API_KEY=your-gemini-api-key
VENICE_API_KEY=your-venice-api-key
REMOTE_CUDA_MVS_ENABLED=False
REMOTE_CUDA_MVS_API_KEY=
REMOTE_CUDA_MVS_USE_LAN_DISCOVERY=False
REMOTE_CUDA_MVS_SERVER_URL=
4

Start the MCP server

Launch the server. It will listen for MCP connections over stdio by default.

python src/main.py
5

Configure Claude Desktop

Add the server to your Claude Desktop configuration file. Use the full absolute path to your virtual environment's Python binary to ensure the correct interpreter is used.

{
  "mcpServers": {
    "openscad": {
      "command": "/absolute/path/to/OpenSCAD-MCP-Server/venv/bin/python",
      "args": ["/absolute/path/to/OpenSCAD-MCP-Server/src/main.py"]
    }
  }
}

OpenSCAD Examples

Client configuration

Claude Desktop config using the venv Python interpreter to run the MCP server script directly.

{
  "mcpServers": {
    "openscad": {
      "command": "/Users/yourname/OpenSCAD-MCP-Server/venv/bin/python",
      "args": ["/Users/yourname/OpenSCAD-MCP-Server/src/main.py"],
      "env": {
        "GEMINI_API_KEY": "your-gemini-api-key"
      }
    }
  }
}

Prompts to try

Once connected, use these prompts to generate and visualize 3D models interactively.

- "Generate a 3D model of a low-poly rabbit and show me a PNG render."
- "Create an OpenSCAD model of a simple gear with 20 teeth and render it from 4 angles."
- "Write OpenSCAD code for a parametric phone stand and render a preview image."
- "Generate a 3D model from this text description: a cube with a cylindrical hole through the center."
- "Export the last generated model as an OBJ file."

Troubleshooting OpenSCAD

Server fails to start with 'openscad: command not found'

Ensure OpenSCAD is installed and on your system PATH. On macOS with Homebrew run `brew install openscad`; on Ubuntu run `sudo apt-get install openscad`. You can verify with `openscad --version`.

Gemini-based generation returns an API error or authentication failure

Check that GEMINI_API_KEY is set correctly in your .env file and that the key has access to the `gemini-2.0-flash-exp-image-generation` model. Obtain or verify your key at https://aistudio.google.com/apikey.

PNG renders are generated but not displayed in Claude Desktop

Make sure Claude Desktop supports image content in tool responses (requires Claude Desktop version 0.7+). Also verify the output directory is writable and that the absolute paths in your config are correct.

Frequently Asked Questions about OpenSCAD

What is OpenSCAD?

OpenSCAD is a Model Context Protocol (MCP) server that enables ai assistants to render 3d models by providing tools to execute openscad code and generate single or multi-perspective views. it returns high-quality png renderings directly to llm applications for visual feedback and 3d model visualization. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install OpenSCAD?

Follow the installation instructions on the OpenSCAD GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with OpenSCAD?

OpenSCAD works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is OpenSCAD free to use?

Yes, OpenSCAD is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "openscad-mcp-server": { "command": "npx", "args": ["-y", "openscad-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use OpenSCAD?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides