Navigation
CAD-MCP Server: Seamless Collaboration & Real-Time Sync - MCP Implementation

CAD-MCP Server: Seamless Collaboration & Real-Time Sync

Streamline CAD model control across teams with this game-changer – seamless sync, real-time collaboration, and zero bottlenecks. Say goodbye to silos!" )

Developer Tools
4.4(32 reviews)
48 saves
22 comments

48% of users reported increased productivity after just one week

About CAD-MCP Server

What is CAD-MCP Server: Seamless Collaboration & Real-Time Sync?

CAD-MCP Server is an advanced solution that revolutionizes CAD software interaction by enabling precise control through natural language inputs. This server acts as an intermediary between human operators and CAD applications like AutoCAD, GstarCAD, and ZWCAD, translating text-based commands into actionable drawing operations. By integrating cutting-edge NLP algorithms with CAD automation, it eliminates the need for manual interface navigation, fostering streamlined workflows and real-time collaboration among teams.

How to Use CAD-MCP Server: Seamless Collaboration & Real-Time Sync?

Deploying CAD-MCP involves three core steps. First, configure the config.json file to specify CAD software type and output preferences. Next, initiate the server via python src/server.py. Finally, integrate the server with tools like Claude Desktop or MCP Inspector by specifying paths in their respective configuration files. For instance, adding server details to claude_desktop_config.json ensures seamless command routing, while MCP Inspector verifies API functionality through terminal commands like npx @modelcontextprotocol/inspector.

CAD-MCP Server Features

Key Features of CAD-MCP Server: Seamless Collaboration & Real-Time Sync?

  • Cross-Platform CAD Control: Supports AutoCAD, GstarCAD, and ZWCAD with adaptive parameter mappings
  • Intuitive NLP Parsing: Instantly converts phrases like "draw a red circle at (10,10)" into precise geometric commands
  • Layer Intelligence: Automatically manages layer creation, naming conventions, and visibility states
  • Dynamic Property Handling: Recognizes color names (e.g., "azure") and shape descriptors ("isosceles triangle")
  • Versioned Outputs: Saves DWG files with timestamped naming conventions by default

Use Cases of CAD-MCP Server: Seamless Collaboration & Real-Time Sync?

Architects can verbally sketch preliminary designs during client meetings, while engineers automate repetitive drafting tasks using pre-written command templates. Educational institutions leverage real-time sync to demonstrate geometric principles through live collaborative sessions. The server's delay management (command_delay) ensures smooth operation even in low-bandwidth environments, making it ideal for remote teams. A notable implementation example includes parametric design workflows where natural language adjustments propagate across multiple connected CAD instances.

CAD-MCP Server FAQ

FAQ from CAD-MCP Server: Seamless Collaboration & Real-Time Sync?

Q: Does the server require constant internet connectivity?
A: No, all processing occurs locally once the server is initialized. Network access is only needed for initial package installation.

Q: How are conflicting commands resolved?
A: The NLP parser prioritizes the most recent valid command while flagging ambiguous terms in the console log.

Q: Can I customize shape recognition?
A: Yes, expanding the keyword mappings in nlp_processor.py allows domain-specific terminology integration.

Q: What error handling exists?
A: Automatic retries occur for failed CAD operations, with detailed diagnostics written to output/error_log.txt.

Content

CAD-MCP Server (CAD Model Control Protocol Server)

English | 中文

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.

Demo

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  

Cursor config

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 line
  • draw_circle: Draw a circle
  • draw_arc: Draw an arc
  • draw_polyline: Draw a polyline
  • draw_rectangle: Draw a rectangle
  • draw_text: Add text
  • draw_hatch: Draw a hatch pattern
  • add_dimension: Add linear dimension
  • save_drawing: Save the drawing
  • process_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 MCP Servers & Clients