Labsco
daobataotie logo

CAD-MCP

β˜… 435

from daobataotie

Control CAD software with natural language instructions to perform drawing operations.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

CAD-MCP Server (CAD Model Context 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

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