Skip to main content
Glama
Jerri-Z

zwcad-platform

by Jerri-Z

ZWCAD Platform MCP

MCP プロトコルを介して ZWCAD の Windows ローカルサービスを制御し、WorkBuddy およびその他の MCP stdio 対応クライアントから呼び出せるようにします。このプロジェクトは 26 個の ZWCAD 自動化ツールを提供します。

機能

カテゴリ

ツール

2D/3D 作図

draw_entity, draw_batch, draw_3d_solid

注釈と寸法記入

add_annotation, add_dimension, insert_block

照会と編集

query_dimensions, transform_entity, modify_entity, get_entity_info, set_entity_properties, find_object, get_objects_in_model

スタイル、ビュー、ドキュメント

zoom, manage_style, manage_view, manage_document

テーブル、選択セット、ブロック

manage_table, select_entities, manage_block

システムとアプリケーション

get_variable, set_variable, get_app_info

拡張データとツール

manage_dictionary, manage_xdata, manage_utility

Related MCP server: AutoCAD MCP Server

環境要件

  • Windows 10/11

  • ZWCAD(起動後、少なくとも 1 枚の DWG を開いていること)

  • Python 3.9 以降

  • Python と ZWCAD のビット数は一致させることを推奨

Python をインストールする際は Add Python to PATH にチェックを入れてください。コマンドラインから py -3 --version を実行してインストールを確認することもできます。

インストール

  1. プロジェクトを固定ディレクトリ(例: D:\Tools\ZWCAD-Platform-MCP)に解凍します。

  2. install.bat をダブルクリックします。

  3. スクリプトが .venv を作成し、依存関係をインストールするのを待ちます。

単独起動テスト

  1. ZWCAD を起動し、テスト用 DWG を開きます。

  2. start.bat をダブルクリックします。

  3. コマンドウィンドウが起動したままクライアントの接続を待つのは正常な動作です。MCP stdio サービス自体には Web インターフェースはありません。

WorkBuddy の設定

workbuddy-mcp.json を開き、2 箇所の D:\\YOUR_PATH をプロジェクトの実際のディレクトリに置き換えます。例えばプロジェクトが D:\Tools\ZWCAD-Platform-MCP にある場合:

{
  "mcpServers": {
    "zwcad-platform": {
      "command": "D:\\Tools\\ZWCAD-Platform-MCP\\.venv\\Scripts\\python.exe",
      "args": ["D:\\Tools\\ZWCAD-Platform-MCP\\server.py"],
      "env": {"PYTHONUTF8": "1"}
    }
  }
}

mcpServers 設定を WorkBuddy の MCP 設定にマージし、保存して WorkBuddy を再起動します。

初回検証

テスト用 DWG で以下の順に呼び出すことを推奨します:

  1. get_app_info

  2. get_objects_in_model(limit=10)

  3. draw_entity(entity_type="line", params={"x1":0,"y1":0,"x2":100,"y2":0})

  4. zoom(mode="extents")

最初のステップで接続に失敗した場合は、以下を確認してください:

  • ZWCAD が起動し、DWG が開かれていること;

  • WorkBuddy が .venv\Scripts\python.exe を使用していること;

  • WorkBuddy が設定変更後に完全に再起動されていること;

  • ウイルス対策ソフトが Python によるローカル COM サービスへのアクセスをブロックしていないこと。

旧バージョンで mbcs codec can't decode bytes が発生していた場合は、このプロジェクトの最新版の server.py を使用し、WorkBuddy を完全に再起動してください。このサービスは comtypes がメモリ内で ZWCAD インターフェースラッパーを生成するようにし、システムの ANSI コードページが生成ファイルの読み取りに失敗するのを防ぎます。

使用上の注意

一部のツールは現在の図面を直接変更します。削除、ドキュメントのクローズ、上書き保存、システム変数の変更を実行する前に、バックアップを保存し、WorkBuddy で操作前に手動確認を求めることを推奨します。

License

MIT License。詳細は LICENSE を参照してください。

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

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • 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
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables natural-language control of AutoCAD LT for automation and headless DXF generation, supporting drawing, entity, layer, block, annotation, P&ID, and system operations via an MCP interface.
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    MCP server for full AutoCAD automation, AutoCAD LT automation, and headless DXF generation. It provides 8 consolidated tools for drawing, entity, layer, block, annotation, P&ID, view, and system operations via MCP stdio transport.
    6
    12
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP CAD services; bundles with SmartScale (measure to CAD).

  • Connect any MCP client to MetaTrader 4/5 to read prices, manage positions, and place trades.

  • 36 MCP tools for projects, tasks, workers, QR/NFC tags, and AI remediation. Task. Scan. Done.

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/Jerri-Z/ZWCAD-Platform-MCP'

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