Skip to main content
Glama

CAD-MCP Server

CAD-MCP サーバー (CAD モデル制御プロトコル サーバー)

英語|中国語

プロジェクト紹介

CAD-MCPは、自然言語による指示を通じてCADソフトウェアの図面操作を制御できる革新的なCAD制御サービスです。このプロジェクトは、自然言語処理とCAD自動化技術を組み合わせ、ユーザーがCADインターフェースを手動で操作することなく、簡単なテキストコマンドでCAD図面を作成および修正できるようにします。

特徴

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

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

自然言語の指示を通じて CAD ソフトウェア (AutoCAD、GstarCAD、ZWCAD) を制御できるため、ユーザーは CAD インターフェイスを手動で操作することなく図面を作成および変更できます。

  1. プロジェクト紹介
    1. 特徴
      1. CAD制御機能
      2. 自然言語処理関数
    2. デモ
      1. インストール要件
        1. 依存関係
        2. システム要件
      2. 構成
        1. 使用法
          1. サービスの開始
          2. クロード・デスクトップ&ウィンドサーフィン
          3. カーソル
          4. MCP検査官
          5. サービスAPI
        2. プロジェクト構造
          1. ライセンス

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              A server that enables natural language interaction with AutoCAD through large language models like Claude, allowing users to create and modify drawings using conversational commands.
              Last updated -
              75
              Python
              • Apple
            • A
              security
              F
              license
              A
              quality
              AI-driven tool that helps developers create beautiful UI components instantly through natural language descriptions, integrating with popular IDEs like Cursor, Windsurf, and VSCode.
              Last updated -
              3
              2
            • -
              security
              A
              license
              -
              quality
              This project provides a robust integration between AI assistants and FreeCAD CAD software using the Model Context Protocol (MCP). It allows external applications to interact with FreeCAD through a standardized interface, offering multiple connection methods and specialized tools.
              Last updated -
              10
              Python
              MIT License
              • Linux
            • A
              security
              A
              license
              A
              quality
              Enables seamless communication between Claude AI and Autodesk Revit, allowing users to access and interact with Revit model information through natural language.
              Last updated -
              6
              13
              TypeScript
              MIT License

            View all related MCP servers

            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