solidworks-mcp
solidworks-mcp
AIアシスタントからSolidWorks 2022を直接操作できるMCPサーバー — スケッチ、フィーチャー(押し出し/カット/回転/フィレット/面取り/シェル/パターン)、 寸法と数式の駆動、エクスポート、質量特性の検査に対応。
Windowsのみ対応。 SolidWorksの自動化はWindows COMを介して行われるため、 SolidWorks 2022がインストールされライセンスが有効な同じマシン上で実行する必要があります。
クイックスタート(推奨)
最新リリースをダウンロードしてsetup.batを実行してください — PythonとSolidWorksのインストールを自動検出し、依存関係をインストールして、クライアントを設定します。ワンクリックで完了します。
または手動で:
powershell -ExecutionPolicy Bypass -File setup.ps1Related MCP server: solidworks-mcp
対応クライアント
このリポジトリには、2つのAIクライアント向けの同じMCPサーバーが同梱されています:
クライアント | ディレクトリ | 設定ファイル形式 |
|
| |
|
|
各ディレクトリには、クライアント固有のセットアップ手順を記載した独自のREADMEと、 その下に同じPythonソースコードが含まれています。
solidworks-mcp/
├── README.md ← you are here
├── claude/ ← Claude Desktop
│ ├── README.md
│ ├── claude_desktop_config.example.json
│ ├── server.py
│ ├── connection.py
│ ├── requirements.txt
│ ├── diagnose.py
│ └── tools/
└── opencode/ ← opencode
├── README.md
├── opencode_config.example.jsonc
├── server.py
├── connection.py
├── requirements.txt
├── diagnose.py
└── tools/クイックスタート
お使いのクライアントを選択して、そのREADMEに従ってください:
Claude Desktop:
claude/README.mdopencode:
opencode/README.md
どちらも同じ前提条件が必要です: Windows上のPython 3.10+とSolidWorks 2022。
適切なディレクトリでpip install -r requirements.txtを実行して依存関係をインストールしてください。
仕組み
SolidWorksはネイティブにCOM経由でAPI全体を公開しています — アドオンは不要です。
このサーバーはpywin32を介して実行中のSolidWorksインスタンスに接続し(または起動し)、
モデリングワークフロー全体をカバーする約30のツールを公開します。
APIのenum定数は、インストール済みのSolidWorksタイプライブラリからライブで取得されるため、 お使いのインストール環境で常に正しいことが保証されます。
完全なツールリスト、ワークフローの例、既知の問題については、クライアント固有のREADMEを参照してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
Bitbybit 3D parametric CAD API, version-exact, for coding agents: search, describe, examples, guide
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to automate SolidWorks (open/save parts, modify dimensions, export STEP) via COM, and optionally generate geometry using build123d code-CAD with PNG previews.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to control a running SOLIDWORKS session through its COM API, with tools for sketching, feature creation, assemblies, and visual feedback via screenshots.20Apache 2.0
- FlicenseNot gradedqualityBmaintenanceEnables control of a live SOLIDWORKS session through the Windows COM API, providing native sketch, feature, body, reference-geometry, view, probe, and export operations, along with transactional CAD plans, parametric sketches, multibody tools, and deterministic raster-to-sketch vectorization pipelines.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to build, measure, verify, and correct parametric SolidWorks parts and assemblies locally via the COM API, supporting operations like sketching, extruding, modeling, dimensioning, material assignment, export, and assembly mating.MIT