zwcad-platform
ZWCAD Platform MCP
MCP プロトコルを介して ZWCAD の Windows ローカルサービスを制御し、WorkBuddy およびその他の MCP stdio 対応クライアントから呼び出せるようにします。このプロジェクトは 26 個の ZWCAD 自動化ツールを提供します。
機能
カテゴリ | ツール |
2D/3D 作図 |
|
注釈と寸法記入 |
|
照会と編集 |
|
スタイル、ビュー、ドキュメント |
|
テーブル、選択セット、ブロック |
|
システムとアプリケーション |
|
拡張データとツール |
|
Related MCP server: AutoCAD MCP Server - Codex Edition
環境要件
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
61 text, security, converter, calculator, and PDF tools -- callable via MCP on one host.
Work your Luca workspace from any MCP client: 183 API tools + 15 task tools for leads and calls.
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Generate, edit, merge, translate and PDF-convert PowerPoint (.pptx) over MCP. 8 tools.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseAqualityAmaintenanceMCP 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.1215MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that controls SolidWorks via COM, enabling CAD automation with 138 tools for sketching, 3D features, assemblies, drawings, and more.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI/natural-language-driven 2D drafting automation on a running Windows AutoCAD, exposing drawing, dimensioning, layer/block management, and mechanical drawing tools such as title blocks, BOM, and balloons to any MCP client.MIT