SolidWorks MCP Bridge
SolidWorks MCP Bridge 🌉 ⚙️
Server und Integrations-Bridge basierend auf Model Context Protocol (MCP) zur Kommunikation lokaler Sprachmodelle (über Ollama) mit der COM-API von SolidWorks.
Ermöglicht es LLMs wie qwen3:8b und qwen3:30b-a3b, den Konstruktionszustand zu inspizieren, den Feature-Baum zu analysieren, Bemaßungen zu lesen, Gleichungen abzufragen, physikalische Masseeigenschaften zu extrahieren und technische Dateien automatisiert und strukturiert zu exportieren.
🎯 Projektumfang
Stufe 1 (Aktuelle Phase - Lesen): Zerstörungsfreie Inspektion von Teilen, Baugruppen, Bemaßungen, Gleichungen, Masse und FEA-Studien.
Stufe 2 (Zukünftige Phase - Bearbeiten): Parametrische Änderung von Bemaßungen, globalen Variablen und kontrollierter Neuaufbau.
Stufe 3 (Zukünftige Phase - Generieren): Erstellung von 2D/3D-Skizzen, Features und automatisierten Makros.
Related MCP server: solidworks-mcp
📂 Projektstruktur
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🚀 Installation und Inbetriebnahme
1. Virtuelle Umgebung aktivieren
.\sw-mcp-env\Scripts\activate2. Modelle in Ollama überprüfen
Stellen Sie sicher, dass das Modell mit Werkzeugunterstützung verfügbar ist:
ollama list
ollama show qwen3:8b3. Tool Calling mit dem lokalen LLM testen
.\sw-mcp-env\Scripts\python scripts/test_tool_calling.py4. Testsuite ausführen
.\sw-mcp-env\Scripts\pytest tests/ -v5. MCP-Server starten (stdio-Modus)
.\sw-mcp-env\Scripts\python -m sw_bridge.server --transport stdio🛠️ Verfügbare Werkzeuge (Stufe 1)
Werkzeug | Beschreibung |
| Stellt fest, ob SolidWorks über COM antwortet. |
| Ruft Typ, Pfad, Konfigurationen und Speicherstatus ab. |
| Listet alle in der Sitzung geladenen Dokumente auf. |
| Extrahiert den vollständigen Feature-Baum (FeatureManager). |
| Inspiziert Definition und Parameter eines Features. |
| Listet numerische Bemaßungen des Modells oder eines Features auf. |
| Liest die Gleichungen und globalen Variablen des Gleichungsmanagers. |
| Berechnet Masse (kg), Volumen, Schwerpunkt und Trägheit. |
| Exportiert das aktive Modell in das neutrale STEP-Format. |
| Exportiert die 2D-Zeichnung oder aktive Ansicht als PDF. |
| Speichert einen Screenshot in hoher Auflösung im PNG-Format. |
| Listet Finite-Elemente-Analyse-Studien (FEA) auf. |
| Fragt von-Mises-Spannungen und Sicherheitsfaktoren ab. |
⚙️ Konfiguration als MCP-Server in Antigravity / Claude Desktop
Fügen Sie Ihrem MCP-Client die folgende Konfiguration hinzu:
{
"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