Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAD-MCP Server

中文说明 | English

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.

Demo

Highlights

  • 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.

Documentation

Quick Start

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python src/server.py

MCP Client Example

Use 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"]
    }
  }
}

License

MIT

About

MCP server for pattern-to-CAD and conversational CAD automation

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages