zwcad-platform
ZWCAD Platform MCP
MCP プロトコルを介して ZWCAD の Windows ローカルサービスを制御し、WorkBuddy およびその他の MCP stdio 対応クライアントから呼び出せるようにします。このプロジェクトは 26 個の ZWCAD 自動化ツールを提供します。
機能
カテゴリ | ツール |
2D/3D 作図 |
|
注釈と寸法記入 |
|
照会と編集 |
|
スタイル、ビュー、ドキュメント |
|
テーブル、選択セット、ブロック |
|
システムとアプリケーション |
|
拡張データとツール |
|
Related MCP server: CAD MCP Server
環境要件
Windows 10/11
ZWCAD(起動後、少なくとも 1 枚の DWG を開いていること)
Python 3.9 以降
Python と ZWCAD のビット数は一致させることを推奨
Python をインストールする際は Add Python to PATH にチェックを入れてください。コマンドラインから py -3 --version を実行してインストールを確認することもできます。
インストール
プロジェクトを固定ディレクトリ(例:
D:\Tools\ZWCAD-Platform-MCP)に解凍します。install.batをダブルクリックします。スクリプトが
.venvを作成し、依存関係をインストールするのを待ちます。
単独起動テスト
ZWCAD を起動し、テスト用 DWG を開きます。
start.batをダブルクリックします。コマンドウィンドウが起動したままクライアントの接続を待つのは正常な動作です。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 で以下の順に呼び出すことを推奨します:
get_app_infoget_objects_in_model(limit=10)draw_entity(entity_type="line", params={"x1":0,"y1":0,"x2":100,"y2":0})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 を参照してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Read and edit the Revit 2024–2027 model on your PC. Needs the free Revit MCP add-in.
Run your Zenning AI employees and act across 2,000+ connected apps from any MCP client.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP 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.1241MIT
- AlicenseCqualityCmaintenanceEnables MCP clients to create and edit technical drawings, manage layers and geometry, process GIS/research mapping data, generate previews and layouts, and automate AutoCAD documents on Windows through COM.225207 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants like Claude for Desktop or Cursor to control CAD applications (AutoCAD, ZWCAD, GstarCAD, and BricsCAD) on Windows through natural language or direct tool calls for drawing, layer, entity, block, and file operations. It exposes 7 unified MCP tools covering 56 CAD commands for tasks ranging from simple shape creation to complex multi-step automation.-
- FlicenseNot gradedqualityAmaintenanceEnables users to control multiple CAD applications such as AutoCAD, ZWCAD, GstarCAD, and BricsCAD through MCP-compatible AI assistants for drawing, layer/block/entity management, file operations, and data export.-