Skip to main content
Glama
daobataotie

CAD-MCP Server

by daobataotie

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ライセンス

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
2dResponse time
Release cycle
Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
  • A
    license
    Not graded
    quality
    C
    maintenance
    Controls CAD applications (AutoCAD, ZWCAD, etc.) via AI assistants through the Model Context Protocol, enabling drawing, layer management, and automation through natural language or direct tool calls.
    85
    Apache 2.0

View all related MCP servers

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.

  • Manage projects, tasks, time tracking, and team collaboration through natural language.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/daobataotie/CAD-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server