# @dshworks/dsh-solidworks [Health: Active]

**Category:** 📐 Architecture & Design  
**Repository:** https://github.com/dshworks/dsh-solidworks  
**GitHub Stars:** 7  
**npm Downloads (last month):** 1601  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dshworks-dsh-solidworks

## Description
SOLIDWORKS for DeepSeek Harness: dsh reads, edits, rebuilds, renders and exports the models in a SOLIDWORKS 2016 or later, on the same Windows PC or in a Windows VM on your Mac. Read-only by default; the Windows side decides what may be written.

## Tools
Capabilities this server exposes over MCP:

- **sw_status** — Release (2016 SP1, 2019 SP0, ...), every SOLIDWORKS instance, the open documents, and any dialog SOLIDWORKS is waiting on. Called first.
- **sw_open** — Open a `.sldprt`, `.sldasm` or `.slddrw`, read-only unless asked, and activate it.
- **sw_new** — A new, empty part or assembly from SOLIDWORKS' default template.
- **sw_inspect** — Type, units, configurations, material, custom properties, bounding box, body and component counts.
- **sw_features** — The feature tree with suppression state and rebuild errors.
- **sw_parameters** — Every dimension (`D1@Sketch1`, value, unit, driven or not) and equation, global variables marked.
- **sw_components** — An assembly's component tree: file, configuration, state, fixed, position.
- **sw_mass_properties** — Mass, volume, surface area, density, centre of mass.
- **sw_probe** — What is at a point: the face, edge or vertex there, with its surface or curve, area or length, normal or axis, diameter and the feature that made it. Without points, whatever the user has selected in SOLIDWORKS right now. Two entities also give the distance and angle between them.
- **sw_edit** — In memory, then one rebuild: configuration, suppress/unsuppress, global variables, dimensions, custom properties. Each change comes back with before, after and its own outcome.
- **sw_build** — Model a part in steps: sketch (lines, polylines, rectangles, circles, arcs, centerlines) on a plane or a face, extrude or cut (blind, through all, mid-plane, draft), revolve, fillet, chamfer, shell, offset plane, delete. A failing step undoes the call. Returns each feature with its dimensions, and…
- **sw_study** — Up to 50 variants of dimensions and variables in one call, each rebuilt and measured (mass, volume, area, centre of mass, size); every value put back and checked afterwards.
- **sw_rebuild** — Rebuild and list every feature that fails, with the reason.
- **sw_assemble** — Insert saved parts with their origin at a point, mate planes, faces, edges or vertices (coincident, concentric, parallel, perpendicular, tangent, distance, angle), fix and float.
- **sw_interference** — Every pair of components that overlap, with the shared volume, largest first.
- **sw_bom** — Bill of materials: each file and configuration with its quantity and custom properties, flattened to parts or top-level; optionally a CSV.
- **sw_drawing** — A drawing of a saved model: views in first- or third-angle projection, the largest standard scale that fits the sheet, the model's dimensions brought in.
- **sw_export** — A copy in STEP, IGES, Parasolid, ACIS, STL, PDF, DXF/DWG, eDrawings, JPG/PNG/TIF, or native. Path, size and SHA-256 back; fetched into the dsh workspace when the bridge is on another machine.
- **sw_save** — Save as a new file in an allowed folder (how new documents get one), or over the source file if the bridge was started with `--allow-save`.
- **sw_close** — Close a document; unsaved changes are discarded only if this bridge made them.
- **sw_view** — A PNG of the model: one standard view or up to six on one labelled picture, shaded, wireframe or hidden-line. The user's view is put back afterwards.

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `npx` (confidence: medium):

```json
"mcpServers": {
  "dsh-solidworks": {
    "command": "npx",
    "args": ["-y","@dshworks/dsh-solidworks"]
  }
}
```

## Documentation

## What @dshworks/dsh-solidworks does

@dshworks/dsh-solidworks exposes 21 MCP tools for driving an existing SOLIDWORKS installation. It supports SOLIDWORKS 2016 and later and works with parts, assemblies, and drawings. The toolset covers both inspection and modeling: an agent can read document metadata, feature trees, dimensions, equations, components, mass properties, and selected geometry, then make controlled edits or build a part step by step.

The server also handles downstream engineering tasks. It can assemble saved parts with mates, identify overlapping component pairs, produce a bill of materials, create projected drawing views, render model views, and export copies in common CAD, image, and document formats.

## How it works

A Windows bridge communicates with the SOLIDWORKS application that is already running. On the same Windows PC, the bridge is bundled with the package and starts when the first SOLIDWORKS request is made. For a Mac-based workflow, dsh can run on the Mac while the bridge runs inside a Windows VM; the included pairing script connects the Windows user session to dsh.

The package also includes a plain stdio MCP mode through `swbridge.exe mcp`, allowing other MCP clients to launch the bridge directly. Geometry uses model-space points in millimetres, with a consistent coordinate convention across tools. Document paths, file names, or open-document titles can identify the target document, with the active document used by default.

## Setup and configuration

Install the package through dsh with:

```text
dsh plugin --profile web add @dshworks/dsh-solidworks
```

The dsh workflow requires dsh 0.2.0-rc.2 or later and pnpm on the PATH. SOLIDWORKS 2016 or later must be running. On Windows, no separate runtime or administrator installation is required. For a VM or another Windows machine, copy the generated `~/.dsh/dsh-solidworks/windows/` directory and run `pair.cmd` as the SOLIDWORKS user. The `advertise` profile setting can override the host address when the VM cannot reach the address included in the pairing kit.

For direct stdio use, configure an MCP client to run the bundled executable, for example:

```text
claude mcp add solidworks -- C:\tools\swbridge.exe mcp
```

## Tools and capabilities

- Check SOLIDWORKS instances, open documents, release information, and blocking dialogs with `sw_status`.
- Open or create parts and assemblies, inspect metadata, examine features and parameters, and query geometry with `sw_open`, `sw_new`, `sw_inspect`, `sw_features`, `sw_parameters`, and `sw_probe`.
- Edit dimensions, variables, configurations, suppression states, and custom properties with `sw_edit`.
- Create feature-based parts with sketches, extrusions, cuts, revolves, fillets, chamfers, shells, planes, and deletions through `sw_build`.
- Test up to 50 parameter variants with `sw_study`, then rebuild and report failed features with `sw_rebuild`.
- Assemble components, inspect interference, generate BOMs, create drawings, render views, export files, save, and close documents.

## Limitations and notes

Files are read-only by default. Saving to a new file uses an allowed folder, while overwriting the source requires starting the bridge with `--allow-save`. Closing a document discards unsaved changes only when those changes were made by the bridge. A failed `sw_build` step is rolled back. The bridge connects outward from a Windows VM, so the Windows side does not need an incoming firewall port.

_Full upstream README: https://allmcps.com/mcp/dshworks-dsh-solidworks/readme_

