
daobataotie/cad-mcp
API development이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
CAD MCP 서버
개요
CAD-MCP는 자연어 명령어를 통해 CAD 소프트웨어를 제어하여 그리기 작업을 수행할 수 있는 혁신적인 CAD 제어 서비스입니다. 이 프로젝트는 자연어 처리와 CAD 자동화 기술을 결합하여, 사용자가 CAD 인터페이스를 수동으로 조작하지 않고도 간단한 텍스트 명령으로 CAD 도면을 생성하고 수정할 수 있도록 합니다. - : AutoCAD, GstarCAD(GCAD), ZWCAD를 포함한 주류 CAD 소프트웨어 지원 - : - 선 그리기 - 원형 그리기 - 호 그리기 - 직사각형 그리기 - 폴리선 그리기 - 텍스트 추가 - 패턴 채우기 - 치수 주석 - : 레이어 생성 및 전환 - : 현재 드로잉을 DWG 파일로 저장 - : 자연어 명령을 CAD 연산 매개변수로 파싱 - : 텍스트에서 색상 정보를 추출하여 드로잉 객체에 적용 - : 다양한 도형 설명 단어 인식 지원 - : 다양한 그리기 및 편집 동작 인식 - 윈도우 운영체제 - 설치된 CAD 소프트웨어(AutoCAD, GstarCAD, 또는 ZWCAD) 그...
개요(AI 번역)
영어 | 中文 | ไทย
프로젝트 소개
CAD-MCP는 자연어 명령어를 통해 CAD 소프트웨어를 제어하여 그리기 작업을 수행할 수 있는 혁신적인 CAD 제어 서비스입니다. 이 프로젝트는 자연어 처리와 CAD 자동화 기술을 결합하여, 사용자가 CAD 인터페이스를 수동으로 조작하지 않고도 간단한 텍스트 명령으로 CAD 도면을 생성하고 수정할 수 있도록 합니다.
버전 2.0은 최신 MCP 사양(FastMCP, 구조화 출력, 도구 주석, 진행 알림, 스트리밍 가능한 HTTP)을 기반으로 완전히 업그레이드되었으며, 쿼리, 편집, 레이어, 드로잉 관리, 블록, 명령 패스스루 등 총 35개의 도구를 추가하여 완전한 “드로우 → 검사 →” 피드백 루프를 형성합니다.
특징
CAD 제어 기능
- 다중 CAD 소프트웨어 지원: AutoCAD, GstarCAD(GCAD), ZWCAD 등 주류 CAD 소프트웨어 지원
- 기본 드로잉 기능:
- 선 그리기
- 원형 드로잉
- 호 그리기
- 타원형 드로잉
- 직사각형 드로잉
- 폴리선 드로잉
- 텍스트 추가
- 패턴 채우기
- 차원 주석
- 쿼리 기능(AI가 실제 그림 내용을 볼 수 있음):
- 모든 계층 목록
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
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.
Version 2.0 is fully upgraded based on the latest MCP specification (FastMCP, structured output, tool annotations, progress notifications, Streamable HTTP), and adds 35 tools in total covering querying, editing, layers, drawing management, blocks, and command passthrough — forming a complete “draw → inspect → correct” feedback loop.
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
- Ellipse drawing
- Rectangle drawing
- Polyline drawing
- Text addition
- Pattern filling
- Dimension annotation
- Query Functions (the AI can see the actual drawing content):
- List all layers
- List entities in model space (returns editable entity handles)
- Query detailed entity properties by handle (coordinates/radius/text content, etc.)
- Screenshot of the CAD window for preview
- Editing Functions: erase, move, rotate, scale, copy, mirror, offset, array (linear/polar), undo/redo
- Layer Management: Create and switch layers, query layer states
- Drawing Management: New / open / close / save drawings (DWG/DXF)
- Block Operations: Create, insert, and list blocks
- Command Passthrough: Execute any CAD command via
send_command(an escape hatch for everything else)
MCP Protocol Features
- Structured Output: All tools return
structuredContentwith anoutputSchemathat clients can parse directly - Tool Annotations: Query tools are marked
readOnlyHint; destructive operations are markeddestructiveHintfor client confirmation policies - Progress Notifications: Long-running operations (CAD startup, saving) send message notifications to the client
- Dual Transport Modes:
stdio(local, single client) andstreamable-http(remote / multiple clients sharing one CAD instance) - Error Semantics: Input validation errors are returned as tool errors, enabling model self-correction
Natural Language Processing Functions (legacy interface)
- 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.
설치
npx -y @modelcontextprotocol/inspector python C:\\cad-mcp\\src\\server.py설정
{
"mcpServers": {
"CAD": {
"command": "python",
"args": [
# Your actual path, such as:"C:\\cad-mcp\\src\\server.py"
]
}
}
}