AgentCAD

AgentCAD

Open-source MCP server and CLI that lets coding agents design, render and export real CAD geometry.

Open SourceDesignDeveloper ToolsCodeCLI, MCP Server, Python package (PyPI), Web (browser-based three.js viewer)
AgentCAD screenshot

What is AgentCAD?

AgentCAD is an open-source command line tool and Model Context Protocol (MCP) server that gives AI coding agents the ability to produce printable 3D CAD models. It executes build123d or CadQuery Python scripts, generates versioned STEP files with geometric metrics, renders PNG previews from multiple angles, and exports STL, GLB and OBJ meshes. Agents can iterate through a tight loop of execution, rendering, inspection and validation, with fast pre-execution syntax checks. It runs entirely locally, integrates with Claude Code, Cursor and Windsurf, and is free under the Apache 2.0 licence.

Key Features

Script execution

Runs build123d or CadQuery Python scripts and produces versioned STEP files with geometric metrics such as volume, dimensions and validity.

Multi-angle rendering

Generates PNG previews and turntable views from custom angles so agents can visually inspect a design.

Mesh export

Outputs STL, GLB (with auto-colouring per solid) and OBJ formats for 3D printing and web viewers.

Fast validation

Checks syntax and imports in under 100 milliseconds before execution to catch errors early.

Geometry inspection

Provides topology reporting via the inspect command to debug design issues.

Version comparison

A diff command compares design iterations to track changes between versions.

MCP integration

Exposes all commands as native tools for Claude Code, Cursor and Windsurf through .mcp.json configuration.

Pros & Cons

Advantages

  • It is fully open source under the Apache 2.0 licence and free to use with no signup required.
  • It runs entirely locally, so models and scripts stay on the user's own machine.
  • It integrates directly with popular agent clients such as Claude Code, Cursor and Windsurf via MCP.
  • It produces engineering-grade, printable output including STEP files and standard mesh formats.
  • Scripts use pre-injected primitives with zero imports, which reduces friction for agents writing CAD code.
  • Fast pre-execution validation gives agents a quick feedback loop for fixing errors.

Limitations

  • It requires Python 3.10 to 3.12 specifically, due to OpenCascade binding constraints.
  • Users still need to write or have an agent write build123d or CadQuery Python, so some CAD scripting knowledge helps.
  • It is a developer-focused CLI and MCP tool with no graphical CAD editor of its own.
  • There is no managed cloud or hosted option, so all setup and execution is local.

Use Cases

Developers letting an AI agent generate printable 3D-printed parts from natural language prompts.

Engineers automating the creation of versioned STEP files with geometric metrics inside a coding workflow.

Makers using Claude Code, Cursor or Windsurf to iterate on enclosures, brackets and mechanical parts.

Teams who want agents to render and visually validate CAD designs without opening desktop CAD software.

Hobbyists exporting STL, GLB or OBJ meshes for 3D printing or web-based viewers straight from a script.

Software builders embedding programmatic CAD generation into agent-driven design pipelines.