zwcad-platform
ZWCAD Platform MCP
MCP プロトコルを介して ZWCAD の Windows ローカルサービスを制御し、WorkBuddy およびその他の MCP stdio 対応クライアントから呼び出せるようにします。このプロジェクトは 26 個の ZWCAD 自動化ツールを提供します。
機能
カテゴリ | ツール |
2D/3D 作図 |
|
注釈と寸法記入 |
|
照会と編集 |
|
スタイル、ビュー、ドキュメント |
|
テーブル、選択セット、ブロック |
|
システムとアプリケーション |
|
拡張データとツール |
|
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 を実行してインストールを確認することもできます。
インストール
プロジェクトを固定ディレクトリ(例:
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 installed
Maintenance
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
- AlicenseNot gradedqualityCmaintenanceControls 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.85Apache 2.0
- 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.6125MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to drive ZWCAD drawing, modification, query, and plotting via natural language.1MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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