Content
# CAD-MCP Server
[中文说明](README_zh.md) | [English](README_en.md)
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.

## 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
- [中文说明](README_zh.md)
- [English README](README_en.md)
## Quick Start
```bash
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:
```json
{
"mcpServers": {
"cad-mcp": {
"command": "/absolute/path/to/.venv/bin/python",
"args": ["/absolute/path/to/mcp-cad/src/server.py"]
}
}
}
```
## License
MIT