MCP Directory

How to add SolidWorks MCP to Cursor

Automate SolidWorks over COM from your AI client: sketches, features, drawings, exports and VBA generation (alpha). Paste the config into ~/.cursor/mcp.json and restart Cursor.

Last updated June 14, 2026 · 193 · stdio · no auth

Cursor 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

  1. 1Open Cursor → Settings → MCP → Add new MCP server (or edit ~/.cursor/mcp.json directly).
  2. 2Paste the SolidWorks MCP config below into the "mcpServers" object.
  3. 3Fill in placeholder secrets, then save.
  4. 4Cursor reloads MCP servers automatically — check Settings → MCP for a green status dot.
  5. 5Ask Cursor to use one of SolidWorks MCP's tools to confirm it's connected.

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 Cursor

create_part

Create a new part document.

create_extrusion

Extrude a sketch into a solid feature.

create_revolve

Create a revolve feature.

create_sweep

Create a sweep feature.

create_loft

Create a loft feature.

create_fillet

Add a fillet to edges.

create_chamfer

Add a chamfer to edges.

create_sketch

Open 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 + Cursor FAQ

Where is the Cursor config file?

Cursor reads MCP servers from ~/.cursor/mcp.json. Paste the SolidWorks MCP config there under the "mcpServers" key and restart the client.

Is SolidWorks MCP safe to use with Cursor?

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.

View repo Full SolidWorks MCP page