openscad-mcp
Allows AI assistants to design, preview, render, and export 3D models using OpenSCAD.
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., "@openscad-mcpDesign a parametric box with width 30, height 20, depth 10."
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.
title: OpenSCAD MCP emoji: "\U0001F4D0" colorFrom: blue colorTo: green sdk: docker app_port: 7860 pinned: false
OpenSCAD MCP Server
An MCP (Model Context Protocol) server that lets AI assistants like Claude create, edit, render, and export 3D models using OpenSCAD.
Related MCP server: freecad-mcp
What It Does
Connect this server to Claude Desktop and you can ask Claude to:
Design parametric 3D models in OpenSCAD
Preview renders as PNG images
Export to STL, 3MF, AMF, DXF, SVG, and more
Animate models using OpenSCAD's
$tvariableCheck syntax before rendering
Browse an OpenSCAD language cheatsheet
Available Tools
Tool | Description |
| Create a new |
| Read an existing |
| Update an existing |
| Export to STL, 3MF, OFF, AMF, DXF, SVG, PDF |
| Render a PNG preview with camera/color options |
| Render animation frames using |
| Get model render statistics |
| List |
| Dry-run syntax validation |
| OpenSCAD language quick reference |
| Get installed OpenSCAD version |
| List built-in example files |
Quick Start
Prerequisites
Install
git clone https://github.com/sergiudanstan/openscad-mcp.git
cd openscad-mcp
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e .Configure Claude Desktop
Add to your Claude Desktop config:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"openscad": {
"command": "/full/path/to/openscad-mcp/.venv/bin/python",
"args": ["-m", "openscad_mcp"]
}
}
}On Windows, use
".venv\\Scripts\\python.exe"instead.
Restart Claude Desktop — the OpenSCAD tools will appear in the hammer icon.
Examples
The examples/ directory includes sample .scad files:
box.scad — Simple parametric box
gear.scad — Involute spur gear
vase.scad — Curved vase with twist
Project Structure
openscad-mcp/
├── src/openscad_mcp/
│ ├── server.py # FastMCP server setup
│ ├── client.py # OpenSCAD CLI wrapper
│ └── tools/
│ ├── design_tools.py # create / read / edit
│ ├── render_tools.py # preview / export / animate
│ └── library_tools.py # list files / cheatsheet / syntax check
├── examples/ # Sample .scad files
├── tests/ # Test suite
└── pyproject.tomlSecurity
No shell injection — uses
subprocess_exec(argument list, not shell string)Path traversal protection — all file operations are sandboxed to the workspace directory
No credentials or API keys — runs entirely locally
Workspace
All files are created in ~/openscad-mcp-workspace/ by default.
Running Tests
pip install -e ".[dev]"
pytest tests/Full Installation Guide
See openscad-mcp-install-guide.pdf for detailed step-by-step instructions for macOS and Windows.
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
An MCP server that integrates with Discord to provide AI-powered features.
MCP server for OpenAI Sora AI video generation
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to interact with FreeCAD for 3D modeling, macro development, and debugging through 150+ tools supporting multiple connection modes.221MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for FreeCAD that enables AI assistants to create and manipulate 3D models via natural language.MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for generating print-ready 3D models from text descriptions via a multi-agent pipeline, enabling AI assistants to create and optimize STL files.1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants like Codex or ChatGPT to inspect and control a local Blender scene, including creating objects, editing materials, setting cameras and lights, rendering previews, and saving safe copies of .blend files.MIT