
How to add SolidWorks MCP to Windsurf
Automate SolidWorks over COM from your AI client: sketches, features, drawings, exports and VBA generation (alpha). Paste the config into ~/.codeium/windsurf/mcp_config.json and restart Windsurf.
Last updated June 14, 2026 · 193★ · stdio · no auth
Windsurf config for SolidWorks MCP
git clone https://github.com/vespo92/SolidworksMCP-TS.git && cd SolidworksMCP-TS && npm install && npm run build{
"mcpServers": {
"solidworks-mcp": {
"command": "node",
"args": [
"C:/path/to/SolidworksMCP-TS/dist/index.js"
],
"env": {
"SOLIDWORKS_PATH": "C:\\Program Files\\SOLIDWORKS Corp\\SOLIDWORKS",
"ADAPTER_TYPE": "winax-enhanced"
}
}
}
}Setup steps
- 1Open Windsurf → Cascade → the hammer/MCP icon → Configure (or edit ~/.codeium/windsurf/mcp_config.json).
- 2Paste the SolidWorks MCP config below.
- 3Fill in placeholder secrets, then save.
- 4Click Refresh in the MCP panel.
- 5SolidWorks MCP's tools become available to Cascade.
Before you start
- Windows 10/11 (COM interop is Windows-only)
- Licensed SolidWorks 2021–2025 installed
- Node.js 20+ (npm install compiles the winax native module locally)
What SolidWorks MCP can do in Windsurf
create_partCreate a new part document.
create_extrusionExtrude a sketch into a solid feature.
create_revolveCreate a revolve feature.
create_sweepCreate a sweep feature.
create_loftCreate a loft feature.
create_filletAdd a fillet to edges.
create_chamferAdd a chamfer to edges.
create_sketchOpen a sketch on a plane.
Security
Alpha software driving a licensed CAD seat over COM — most tools are untested against live SolidWorks, so run it on copies of parts rather than production assemblies. Complex operations execute auto-generated VBA macros inside SolidWorks, which is effectively arbitrary code execution in that session; no credentials or network access are involved.
SolidWorks MCP + Windsurf FAQ
Where is the Windsurf config file?
Windsurf reads MCP servers from ~/.codeium/windsurf/mcp_config.json. Paste the SolidWorks MCP config there under the "mcpServers" key and restart the client.
Is SolidWorks MCP safe to use with Windsurf?
Alpha software driving a licensed CAD seat over COM — most tools are untested against live SolidWorks, so run it on copies of parts rather than production assemblies. Complex operations execute auto-generated VBA macros inside SolidWorks, which is effectively arbitrary code execution in that session; no credentials or network access are involved.
Is SolidWorks MCP production-ready?
No — the author labels it alpha/experimental. Basic sketching and simple extrusions are demonstrated; drawings, exports and analysis tools have only mock/unit tests, and there is no CI against a real SolidWorks instance yet. Treat it as a promising testbed and report results.
Why does it generate VBA macros instead of always calling the API?
Because Node.js COM bridges fail on SolidWorks methods with 13+ parameters (FeatureExtrusion3 takes 20+). The complexity analyzer sends small calls direct via winax and generates a VBA macro — executed by SolidWorks — for the big ones, falling back automatically when a call fails.
Can I run it without SolidWorks, or on macOS/Linux?
No. COM interop is Windows-only, and the server drives a licensed SolidWorks 2021–2025 installation. Unit tests can run anywhere with USE_MOCK_SOLIDWORKS=true, but real automation needs Windows plus the app.