CAD-MCP Server
CAD-MCP サーバー (CAD モデル制御プロトコル サーバー)
プロジェクト紹介
CAD-MCPは、自然言語による指示を通じてCADソフトウェアの図面操作を制御できる革新的なCAD制御サービスです。このプロジェクトは、自然言語処理とCAD自動化技術を組み合わせ、ユーザーがCADインターフェースを手動で操作することなく、簡単なテキストコマンドでCAD図面を作成および修正できるようにします。
Related MCP server: CAD-MCP
特徴
CAD制御機能
複数のCADソフトウェアのサポート:AutoCAD、GstarCAD(GCAD)、ZWCADなどの主要なCADソフトウェアをサポート
基本的な描画機能:
線画
円の描画
円弧描画
長方形の描画
ポリライン描画
テキストの追加
パターン塗りつぶし
寸法注釈
レイヤー管理: レイヤーの作成と切り替え
図面の保存: 現在の図面をDWGファイルとして保存します
自然言語処理関数
コマンド解析:自然言語の指示をCAD操作パラメータに解析します。
色認識: テキストから色情報を抽出し、描画オブジェクトに適用します
形状キーワードマッピング: さまざまな形状の説明語の認識をサポート
アクションキーワードマッピング: さまざまな描画および編集アクションを認識する
デモ
以下はデモビデオです。

インストール要件
依存関係
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システム要件
Windows オペレーティング システム
インストールされた CAD ソフトウェア (AutoCAD、GstarCAD、または ZWCAD)
構成
構成ファイルはsrc/config.jsonにあり、次の主な設定が含まれています。
{
"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 : サーバー名とバージョン情報
キャドバリー:
type: CAD ソフトウェアの種類 (AutoCAD、GCAD、GstarCAD、または ZWCAD)startup_wait_time: CAD 起動待機時間(秒)command_delay: コマンド実行遅延(秒)
出力:出力ファイルの設定
使用法
サービスの開始
python src/server.pyクロード・デスクトップ&ウィンドサーフィン
# 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"
]
}
}
}カーソル
# Add according to the following diagram Cursor MCP. Note: use your path 
注:カーソルの新しいバージョンもJSON構成に変更されました。前のセクションを参照してください。
MCP検査官
# Note: use your path
npx -y @modelcontextprotocol/inspector python C:\\cad-mcp\\src\\server.pyサービスAPI
サーバーは次の主な API 関数を提供します。
draw_line: 線を描くdraw_circle: 円を描くdraw_arc: 円弧を描くdraw_polyline: ポリラインを描くdraw_rectangle: 長方形を描くdraw_text: テキストを追加するdraw_hatch: ハッチパターンを描画するadd_dimension: 線形寸法を追加するsave_drawing: 図面を保存するprocess_command: 自然言語コマンドを処理する
プロジェクト構造
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ライセンス
MITライセンス
This server cannot be deployed
Maintenance
Related MCP Connectors
Convert Revit files to XKT, IFC, or DWG and query BIM data via natural language.
DXF and PDF/X-4 for AI agents: structured facts, PNG renders, an interactive in-chat viewer.
- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
AI Hub for AEC — 50+ 3D formats, clash detection, ACC integration via Autodesk Platform Services.
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.8545MIT
- FlicenseNot gradedqualityDmaintenanceEnables 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.2-
- AlicenseAqualityDmaintenanceEnables automated CAD operations via natural language, supporting both AutoCAD LT on Windows and headless DXF generation on any platform.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to drive ZWCAD drawing, modification, query, and plotting via natural language.4MIT