SolidWorks MCP Bridge
SolidWorks MCP Bridge 🌉 ⚙️
Model Context Protocol (MCP) に基づく統合ブリッジサーバーで、ローカル言語モデル(Ollama 経由)と SolidWorks の COM API を連携させます。
これにより、qwen3:8b や qwen3:30b-a3b などの LLM が、設計状態の検査、フィーチャーツリーの解析、寸法の読み取り、方程式の参照、質量特性の抽出、技術ファイルの書き出しを、自動化かつ構造化された形で実行できます。
🎯 プロジェクトの範囲
レベル 1(現行フェーズ - 読み取り): パーツ、アセンブリ、寸法、方程式、質量、FEA スタディの非破壊的検査。
レベル 2(将来フェーズ - 編集): 寸法パラメータの変更、グローバル変数の編集、制御された再構築。
レベル 3(将来フェーズ - 生成): 2D/3D スケッチ、フィーチャー、自動化マクロの作成。
Related MCP server: solidworks-mcp
📂 プロジェクト構造
LOCAL LLM/
├── requirements.txt # Dependencias Python (mcp, pywin32, pydantic, ollama, etc.)
├── pyproject.toml # Configuración del paquete y testing
├── .env.example # Plantilla de variables de entorno
├── .env # Configuración activa local
├── src/
│ └── sw_bridge/
│ ├── config.py # Carga de configuración (pydantic-settings)
│ ├── logging_config.py # Logging estructurado JSON por sesión
│ ├── server.py # Servidor MCP (fastmcp / stdio / sse)
│ ├── sw_connection/ # Conexión COM a SolidWorks
│ │ ├── connector.py # Singleton y reconexión automática
│ │ ├── exceptions.py # Excepciones tipadas
│ │ └── models.py # Modelos de datos Pydantic
│ └── tools/ # Herramientas de Nivel 1
│ ├── document_tools.py
│ ├── feature_tree_tools.py
│ ├── dimension_tools.py
│ ├── mass_props_tools.py
│ ├── export_tools.py
│ └── fea_tools.py
├── tests/ # Pruebas automatizadas (pytest)
├── scripts/
│ ├── test_tool_calling.py # Validación de llamadas a funciones con Ollama
│ └── smoke_test.py # Smoke test contra SolidWorks
└── docs/ # Especificaciones y resolución de problemas
├── alcance.md
├── tool_schemas.md
└── troubleshooting.md🚀 インストールとセットアップ
1. 仮想環境の有効化
.\sw-mcp-env\Scripts\activate2. Ollama モデルの確認
ツールサポート対応のモデルが利用可能であることを確認してください:
ollama list
ollama show qwen3:8b3. ローカル LLM によるツール呼び出しのテスト
.\sw-mcp-env\Scripts\python scripts/test_tool_calling.py4. テストスイートの実行
.\sw-mcp-env\Scripts\pytest tests/ -v5. MCP サーバーの起動(stdio モード)
.\sw-mcp-env\Scripts\python -m sw_bridge.server --transport stdio🛠️ 利用可能なツール(レベル 1)
ツール | 説明 |
| SolidWorks が COM 経由で応答しているか確認します。 |
| タイプ、パス、構成、保存状態を取得します。 |
| セッション内で読み込まれているすべてのドキュメントを一覧表示します。 |
| フィーチャーマネージャーから完全なフィーチャーツリーを抽出します。 |
| フィーチャーの定義とパラメータを検査します。 |
| モデルまたはフィーチャーの数値寸法を一覧表示します。 |
| 方程式マネージャーから方程式とグローバル変数を読み取ります。 |
| 質量 (kg)、体積、重心、慣性を計算します。 |
| アクティブなモデルをニュートラルな STEP 形式で書き出します。 |
| 2D 図面またはアクティブなビューを PDF に書き出します。 |
| 高解像度のスクリーンショットを PNG 形式で保存します。 |
| 有限要素解析 (FEA) スタディを一覧表示します。 |
| フォンミーゼス応力と安全率の結果を照会します。 |
⚙️ Antigravity / Claude Desktop での MCP サーバー設定
クライアントに以下の設定を追加してください:
{
"mcpServers": {
"solidworks-bridge": {
"command": "C:\\Users\\said\\Desktop\\LOCAL LLM\\sw-mcp-env\\Scripts\\python.exe",
"args": ["-m", "sw_bridge.server", "--transport", "stdio"],
"cwd": "C:\\Users\\said\\Desktop\\LOCAL LLM"
}
}
}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
- FlicenseNot gradedqualityDmaintenanceMCP server that exposes CAD geometry reasoning over STEP files to LLMs, allowing natural language queries about parts, assemblies, dimensions, holes, and mass properties.
- AlicenseNot gradedqualityBmaintenanceMCP bridge server for SolidWorks that enables AI assistants to control SolidWorks programmatically via COM automation.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI (e.g., Claude) to control SolidWorks via natural language, automating part creation, sketching, and feature operations through the Model Context Protocol.1MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that drives SolidWorks 2023+ on Windows, exposing CAD operations like sketching, extrusions, assemblies, and exports through tools for AI assistants like Kimi and Claude.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for generating rough-draft project plans from natural-language prompts.
MCP server for AI dialogue using various LLM models via AceDataCloud
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/Said-AER/solidworks-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server