cad-3d-builder
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agentic CAD MCP — Text & Sketch to 3D-Printable STL
An autonomous agentic workflow and local Model Context Protocol (MCP) server that turns natural language descriptions, reference photos, and hand-drawn dimensional sketches into watertight, 3D-printable .stl files using Python (build123d / OpenCascade).
Works out of the box with terminal-first AI coding agents and IDEs:
Claude Code (
claude)Antigravity CLI (
agy)OpenAI Codex CLI (
codex)Cursor & Windsurf
Why Deterministic CAD + Mesh Rendering?
LLMs fail when asked to output raw .stl coordinates directly, and AI image generators hallucinate geometries that cannot be 3D printed. Agentic CAD MCP bridges the gap through a 4-Phase Closed-Loop Pipeline:
Vision-to-Spec Extraction: The agent extracts explicit dimensions ($X, Y, Z$) from your sketch or prompt, checks derived math, and verifies fit against your 3D printer's build volume (default:
220 × 220 × 250 mm).Parametric Code Generation (
build123d): The agent writes clean Python CAD scripts with real-world FDM tolerances (0.45 mmsliding clearance,0.20 mmpress-fit dovetail joints, and automatic part splitting when a model exceeds the print bed).Automated Mesh Validation (MCP): The MCP server executes the script, inspects every generated
.stlwithtrimesh, and returns exact bounding-box dimensions, volume ($\text{cm}^3$), triangle count, bed compatibility, and watertight (manifold) status.Deterministic Visual Self-Correction (MCP): Instead of hallucinating previews with an image model, the server renders a 4-view technical blueprint (
Isometric,Top XY,Front XZ,Side YZ) directly from the compiled.stlmesh. The multimodal agent inspects its own render to catch misplaced holes or boolean errors before delivering the final files.
Related MCP server: gemini-cad-mcp
Quick Installation (Zero-Clone)
Requires Python 3.11 or 3.12. You can install and register the MCP server across your favorite AI agents with a single command—no manual repository cloning or JSON editing required:
curl -fsSL [https://raw.githubusercontent.com/CheckSim/agentic-cad-mcp/main/install.py](https://raw.githubusercontent.com/CheckSim/agentic-cad-mcp/main/install.py) | python3 -The interactive wizard will:
Create an isolated environment in
~/.agentic-cad-mcp/venvand install the CAD engine (build123d,trimesh,matplotlib,fastmcp).Let you choose which agents to configure (Claude Code, Antigravity CLI, Codex CLI, Cursor).
Non-destructively register the
cad-3d-builderMCP server globally (or in your current project folder).
Non-Interactive / Automated Install
For dotfiles or CI setups, pass --clients and --scope directly:
curl -fsSL [https://raw.githubusercontent.com/CheckSim/agentic-cad-mcp/main/install.py](https://raw.githubusercontent.com/CheckSim/agentic-cad-mcp/main/install.py) | python3 - --clients all --scope globalAlternative Installation Methods
Option A: Install via pip
pip install git+[https://github.com/CheckSim/agentic-cad-mcp.git](https://github.com/CheckSim/agentic-cad-mcp.git)
# Run the interactive setup wizard to register the MCP server with Claude, Agy, Codex, or Cursor
agentic-cad-mcp-setupOption B: Local Repository Clone (For Contributors)
git clone [https://github.com/CheckSim/agentic-cad-mcp.git](https://github.com/CheckSim/agentic-cad-mcp.git)
cd agentic-cad-mcp
python3 install.pyOptional: Install f3d for Shaded Studio Renders
By default, the MCP server generates a 4-view orthographic & isometric technical blueprint using matplotlib. If F3D is installed on your system, the server will also generate a shaded 3D studio render with ambient occlusion:
# macOS
brew install f3d
# Ubuntu / Debian
sudo apt install f3d
# Windows
winget install f3d-app.f3dUsage & Example Prompts
Once installed, launch your agent (claude, agy, or codex) in any folder and describe or attach your design:
1. From a Hand-Drawn Dimensional Sketch
"Look at
./sketch_dimensions.jpg. Build an under-monitor organizer with two long front drawers, one side drawer on each wing, and honeycomb cutouts on the side walls and horizontal divider. My print bed is 220x220mm—split oversized parts in half using dovetail joints on the base and flat cuts on the vertical walls."
2. From Natural Language Specifications
"Design a parametric VESA 100x100mm wall mount bracket with 4mm wall thickness, countersunk M4 holes, and a 15-degree downward tilt. Compile the STL, verify it is watertight, and generate the multiview render."
Exposed MCP Tools & Prompts
Type | Name | Description |
Tool |
| Executes a |
Tool |
| Generates a deterministic 4-view technical blueprint PNG ( |
Tool |
| Inspects any existing |
Prompt |
| Injects the 4-phase FDM engineering protocol and tolerance guidelines ( |
Repository Structure
agentic-cad-mcp/
├── AGENTS.md # Universal 4-phase CAD engineering protocol
├── CLAUDE.md # Claude Code entry point
├── install.py # Zero-dependency cross-platform setup wizard
├── pyproject.toml # Python packaging & CLI entrypoints
├── mcp_cad_server/
│ ├── __init__.py
│ ├── AGENTS.md # Packaged protocol for global installations
│ ├── requirements.txt # Python dependencies
│ └── server.py # FastMCP server implementation
└── projects/ # Default workspace for local buildsLicense
Released under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
A browser 3D CAD for your AI: it scripts real-size models, uCAD builds them and returns pictures.
Text-to-CAD: build exact STEP or 3MF/STL on the server, each stated requirement measured.
1CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Related MCP Servers
- AlicenseAqualityBmaintenanceRenders PNG previews and STL geometry from OpenSCAD source code, enabling iterative agent-driven CAD workflows.2177 npm8MIT
- AlicenseAqualityBmaintenanceEnables multimodal AI to convert photos with reference objects into parametric OpenSCAD models and watertight 3D-printable STL files, including calibration, part generation, and printability inspection.7MIT
- AlicenseAqualityBmaintenanceEnables an LLM to design parametric 3D parts in pure NumPy and verify they are actually printable before exporting them. Provides topology checks (watertightness, genus, shell count, wall thickness), self-rendered views, and gated STL/OBJ export that refuses broken solids.7MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to design, modify, and verify exact B-rep 3D CAD models by running build123d scripts on an OpenCascade kernel, with live three.js preview, collision and FDM printability checks, text-based spatial perception, user notes/sketch annotations, version history, and one-click export to OrcaSlicer.1MIT