agentcad
CAD tool for AI agents. Give your coding agent the ability to design 3D models.
Try it
Install agentcad, then paste this prompt into Claude Code, Cursor, or any coding agent:
Create a Python 3.12 virtual environment, then: pip install agentcad agentcad skill install agentcad --help Read the --help output — it's your operational briefing. Then design me a phone stand: a simple angled cradle that holds a phone at 60 degrees. About 80mm wide, 50mm deep, with a 5mm lip at the bottom to keep the phone from sliding. Show me a preview when you're done.
What it does
Your agent writes CadQuery Python scripts. agentcad handles everything else.
- Execute — run scripts, produce versioned STEP files + geometric metrics
- Render — PNG views from any angle for visual verification
- Export — STL, GLB, OBJ for 3D printing and web viewers
- Validate— pre-execution checks catch errors in <100ms
- Inspect — topology deep-dive for debugging geometry issues
- Diff — compare versions to track design iteration
No boilerplate
Scripts need zero imports. cq, show_object, and 16 geometry helpers are pre-injected:
box = cq.Workplane('XY').box(10, 20, 5)
show_object(box)Install
pip install agentcad
Requires Python 3.10–3.12. CadQuery/OpenCascade does not support 3.13+.
MCP integration
For native tool integration with Claude Code, Cursor, or Windsurf:
pip install agentcad[mcp]
Add to .mcp.json:
{"agentcad": {"command": "python", "args": ["-m", "agentcad.mcp"]}}