CAD-MCP is an open-source Model Context Protocol server for turning natural language, sketches, diagrams, and pattern descriptions into CAD drawing operations.
The project exposes CAD tools such as line, circle, arc, polyline, rectangle, text, hatch, dimension, save, and natural-language command processing to MCP clients including Cherry Studio, Claude Desktop, Cursor, and Windsurf.
- Pattern-to-CAD workflow: describe a layout, symbol, sketch, or reference image, then let an MCP-enabled agent convert the pattern into CAD primitives.
- Direct CAD automation: draw geometry in AutoCAD, GstarCAD/GCAD, or ZWCAD through the exposed MCP tools.
- Chinese and English command parsing: parse shape, color, coordinate, dimension, hatch, and save instructions.
- Layer, color, lineweight, hatch, text, and dimension support.
- Extensible controller layer for future macOS AutoCAD and image-vectorization backends.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python src/server.pyUse an absolute path in your MCP client configuration:
{
"mcpServers": {
"cad-mcp": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/mcp-cad/src/server.py"]
}
}
}MIT
