Platform and Connectivity¶
This guide explains how to run SolidWorks MCP when your day-to-day workflow is Linux/WSL but real SolidWorks automation must run on Windows.
Mental Model¶
- SolidWorks + COM bridge live on Windows.
- Your editor, tests, docs, and most development can run on Linux/WSL.
- Linux/WSL clients connect to the Windows-hosted MCP server in remote HTTP mode.
Typical Setup Patterns¶
| Pattern | Works for tests/docs | Works for real SolidWorks automation |
|---|---|---|
| Windows only | Yes | Yes |
| WSL/Linux only | Yes | No |
| WSL/Linux dev + Windows host server | Yes | Yes |
| Linux container only | Yes | No |
Start Server on Windows Host¶
Equivalent forms for different env managers:
Connect From Linux / WSL Client¶
Remote clients (including Linux/WSL machines) can connect to the Windows host running the MCP server in remote mode using the server's IP address and port.
Verify SolidWorks Is Actually Reachable¶
Run these checks on Windows where SolidWorks is installed.
If COM dispatch fails:
- Launch SolidWorks manually once, then try again.
- Ensure you are using Windows Python (not WSL Python) for this check.
- Reinstall/repair
pywin32inside the active environment.
Container Notes¶
Containers are useful for:
- Running tests in mock mode
- Linting and docs builds
- CI pipelines
Containers are not sufficient by themselves for real SolidWorks automation because COM and SolidWorks are Windows-native.
Recommended Beginner Workflow¶
- Install and open SolidWorks on Windows.
- Install repo dependencies and run the server on Windows.
- Develop and run most tests on Linux/WSL.
- For real CAD verification, call the Windows-hosted server.