CAD-MCP
Control CAD software with natural language instructions to perform drawing operations.
CAD-MCP Server (CAD Model Context Protocol Server)
Project Introduction
CAD-MCP is an innovative CAD control service that allows controlling CAD software for drawing operations through natural language instructions. This project combines natural language processing and CAD automation technology, enabling users to create and modify CAD drawings through simple text commands without manually operating the CAD interface.
Features
CAD Control Functions
- Multiple CAD Software Support: Supports mainstream CAD software including AutoCAD, GstarCAD (GCAD) and ZWCAD
- Basic Drawing Functions:
- Line drawing
- Circle drawing
- Arc drawing
- Rectangle drawing
- Polyline drawing
- Text addition
- Pattern filling
- Dimension annotation
- Layer Management: Create and switch layers
- Drawing Save: Save the current drawing as a DWG file
Natural Language Processing Functions
- Command Parsing: Parse natural language instructions into CAD operation parameters
- Color Recognition: Extract color information from text and apply it to drawing objects
- Shape Keyword Mapping: Support recognition of various shape description words
- Action Keyword Mapping: Recognize various drawing and editing actions
Demo
The following is the demo video.

Installation Requirements
Dependencies
pywin32>=228 # Windows COM interface support
mcp>=0.1.0 # Model Control Protocol library
pydantic>=2.0.0 # Data validation
typing>=3.7.4.3 # Type annotation support
System Requirements
- Windows operating system
- Installed CAD software (AutoCAD, GstarCAD, or ZWCAD)
Configuration
The configuration file is located at src/config.json and contains the following main settings:
{
"server": {
"name": "CAD MCP Server",
"version": "1.0.0"
},
"cad": {
"type": "AutoCAD",
"startup_wait_time": 20,
"command_delay": 0.5
},
"output": {
"directory": "./output",
"default_filename": "cad_drawing.dwg"
}
}
- server: Server name and version information
- cad:
type: CAD software type (AutoCAD, GCAD, GstarCAD, or ZWCAD)startup_wait_time: CAD startup waiting time (seconds)command_delay: Command execution delay (seconds)
- output: Output file settings
Usage
Starting the Service
python src/server.py
Claude Desktop & Windsurf
# add to claude_desktop_config.json. Note: use your path
{
"mcpServers": {
"CAD": {
"command": "python",
"args": [
# your path, e.g.: "C:\\cad-mcp\\src\\server.py"
"~/server.py"
]
}
}
}
Cursor
# Add according to the following diagram Cursor MCP. Note: use your path

Note:The new version of cursor has also been changed to JSON configuration, please refer to the previous section
MCP Inspector
# Note: use your path
npx -y @modelcontextprotocol/inspector python C:\\cad-mcp\\src\\server.py
Service API
The server provides the following main API functions:
draw_line: Draw a linedraw_circle: Draw a circledraw_arc: Draw an arcdraw_polyline: Draw a polylinedraw_rectangle: Draw a rectangledraw_text: Add textdraw_hatch: Draw a hatch patternadd_dimension: Add linear dimensionsave_drawing: Save the drawingprocess_command: Process natural language commands
Project Structure
CAD-MCP/
├── imgs/ # Images and video resources
│ └── CAD-mcp.mp4 # Demo video
├── requirements.txt # Project dependencies
└── src/ # Source code
├── __init__.py # Package initialization
├── cad_controller.py # CAD controller
├── config.json # Configuration file
├── nlp_processor.py # Natural language processor
└── server.py # Server implementation
License
MIT License
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
CC Token Saver
Use a local LLM for smaller or specialized tasks within Claude to save tokens.
NetMind ParsePro
Parses PDF files from a URL into structured formats like JSON and Markdown.
MCP Bench Router
Claude Code sucks at design. Let it delegate it's tasks to better models. Claude will use the MCP to get leaderboard of best design models and query specific code changes using OpenRouter.
Advent of Code MCP Server
Interact with the Advent of Code website. Requires a session cookie for authentication.
Maven
Tools to query latest Maven dependency information
MCP-Think
A Think Tool for LLMs to record and retrieve their thinking processes during reasoning.
APIWeaver
A universal bridge to convert any web API into an MCP server, supporting multiple transport types.
MCP‑Stack
A Docker Compose-based collection of MCP servers for LLM workflows, featuring centralized configuration and management scripts.
Lokalise MCP Tool
Add translation keys to Lokalise projects. Requires a Lokalise API key.
Code Scanner Server
Scans code files for definitions, respects .gitignore, and outputs in LLM-friendly formats like XML or Markdown.