CAD-MCP  by daobataotie

Natural language control for CAD software

Created 11 months ago
259 stars

Top 97.8% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a CAD Model Context Protocol (MCP) server that translates natural language instructions into automated drawing operations for popular CAD software. It targets CAD users seeking to streamline workflows by enabling text-based creation and modification of drawings, abstracting away complex GUI interactions. The primary benefit is increased efficiency and accessibility for CAD tasks through intuitive language commands.

How It Works

The CAD MCP Server integrates Natural Language Processing (NLP) with CAD automation libraries. It parses user-issued text commands, extracting parameters for shapes, actions, colors, and dimensions. These parsed instructions are then translated into specific API calls or commands executed against supported CAD applications like AutoCAD, GstarCAD, and ZWCAD via Windows COM interfaces. This approach allows for a hands-off, command-line driven CAD experience.

Quick Start & Requirements

  • Installation: Install dependencies via pip install -r requirements.txt.
  • Prerequisites: Requires a Windows operating system and an installed CAD software package (AutoCAD, GstarCAD, or ZWCAD). Python dependencies include pywin32>=228, mcp>=0.1.0, pydantic>=2.0.0, and typing>=3.7.4.3.
  • Configuration: Modify src/config.json to specify the CAD software type, adjust startup wait times, command delays, and output settings.
  • Running: Execute the server using python src/server.py.
  • Integration: Configuration examples are provided for integration with Claude Desktop, Windsurf, and Cursor MCP clients.

Highlighted Details

  • Supports core CAD functions: line, circle, arc, rectangle, polyline drawing, text addition, pattern filling, and dimension annotation.
  • Includes layer management and DWG file saving capabilities.
  • NLP features encompass command parsing, color recognition, and mapping for shape and action keywords.
  • Compatible with AutoCAD, GstarCAD (GCAD), and ZWCAD.

Maintenance & Community

No specific details regarding project maintainers, community channels (e.g., Discord, Slack), sponsorships, or a public roadmap are provided in the README.

Licensing & Compatibility

The project is released under the MIT License, which generally permits broad use, modification, and distribution, including for commercial purposes and integration into closed-source applications.

Limitations & Caveats

This project is strictly limited to Windows operating systems due to its reliance on pywin32 for CAD software interaction. Users must have one of the supported CAD applications installed and configured correctly. The system may exhibit timing sensitivities, indicated by configurable startup_wait_time and command_delay parameters.

Health Check
Last Commit

7 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
24 stars in the last 30 days

Explore Similar Projects

Starred by Boris Cherny Boris Cherny(Creator of Claude Code; MTS at Anthropic), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
3 more.

TagUI by aisingapore

0.1%
6k
Free RPA tool for automating repetitive tasks on websites, desktop apps, and command lines
Created 9 years ago
Updated 1 month ago
Feedback? Help us improve.