CAD-MCP Server
Enables controlling AutoCAD through natural language instructions to perform drawing operations including line, circle, arc, rectangle, polyline drawing, text addition, pattern filling, dimension annotation, layer management, and saving drawings as DWG files.
Uses Pydantic for data validation when processing natural language commands and CAD operation parameters.
Runs as a Python-based server that can be configured to work with various CAD applications, processing natural language commands into CAD operations.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CAD-MCP Serverdraw a circle with radius 5 at coordinates 10,10"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: CAD-MCP
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 supportSystem 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.pyClaude 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.pyService 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 implementationLicense
MIT License
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables natural language control of AutoCAD LT through AutoLISP code generation and execution, allowing users to create engineering drawings with conversational prompts.Last updated8422MIT
- Flicense-qualityDmaintenanceEnables users to control CAD software like AutoCAD, GstarCAD, and ZWCAD through natural language instructions via the Model Context Protocol. It supports automated drawing of shapes, layer management, and saving designs to DWG files without manual interface interaction.Last updated2
- Alicense-qualityCmaintenanceControls CAD applications (AutoCAD, ZWCAD, etc.) via AI assistants through the Model Context Protocol, enabling drawing, layer management, and automation through natural language or direct tool calls.Last updated72Apache 2.0
- Alicense-qualityCmaintenanceEnables automated CAD operations via natural language, supporting both AutoCAD LT on Windows and headless DXF generation on any platform.Last updatedMIT
Related MCP Connectors
Convert Revit files to XKT, IFC, or DWG and query BIM data via natural language.
DXF drawings for AI agents: structured facts, PNG renders, and an interactive in-chat viewer.
Manage projects, tasks, time tracking, and team collaboration through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/daobataotie/CAD-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server