SolidWorks MCP
16 Nov 2026 · Re-tested every Monday
io.github.andrewbartels1/solidworks-mcp-python
SolidWorks MCP 2.0.0 is Audited (re-tested 16 Nov 2026). In our sandbox, with the network off, it completed the MCP handshake in 3.6 s and listed 156 tools, including open_model, create_part and create_assembly. All 8 checks passed: 0 known advisories, no install scripts, no credential patterns in the package, MIT license. Context cost: about 48,300 tokens.
Drive SolidWorks from AI agents: parts, assemblies, drawings and export over the COM API.
What it does
This Python MCP server automates SolidWorks through its COM API, with tools to open and create parts, assemblies and drawings, add features such as extrusions and revolves, and read or set dimensions and units. It also includes an optional layer for testing agents and prompts on AI-assisted workflows.
Summary from the project's README and tool list.
Tools (156)
Context cost: ~48,300 tokens (156 tools) how measured
First 80 of 156 shown.
- open_model Open a part, assembly or drawing from disk and make it the active document. Use it to start work on an existing file. To switch to a document that is already open, use `activate_document`. Needs: the file on disk (a vault file must be chec
- create_part Create a new, empty part document and make it active, ready for `create_sketch`. Uses `template` (a .prtdot) or the default part template, then sets `units` if given, and assigns `material` if given. The part is not saved until `save_part`
- create_assembly Create a new, empty assembly document and make it active, ready for `insert_component`. Uses `template` (an .asmdot) or the default assembly template. It is not saved until `save_assembly`. Needs: SolidWorks running. Changes: opens a new a
- create_drawing Create a new, empty drawing document and make it active. Uses `template` (a .drwdot) or the default drawing template. Then place views with `create_drawing_view`; for a whole drawing from a model in one call, use `generate_drawing_package`
- close_model Close the active document, saving it first only if asked. Use it when you are done with a document. Unsaved changes are lost unless `save` is on. Needs: an open, active document. Changes: closes the document, and with `save` writes it firs
- create_extrusion Extrude the sketch you just closed into a solid boss, added to the active part. Use it after `exit_sketch`; to remove material, use `create_cut_extrude`. It extrudes the sketch `sketch_name` names, or the one `exit_sketch` closed last; a n
- create_revolve Revolve a closed sketch around an axis, adding a solid to the active part. Use it for turned shapes (shafts, knobs). It revolves the sketch `sketch_name` names, or the one `exit_sketch` closed last, about the reference axis `axis_entity` n
- get_dimension Read one dimension of the active model by its full name, e.g. "D1@Sketch1". Find names with `list_model_dimensions`. Needs: an open part or assembly. Read-only. Returns: `dimension` with `name`, `value` and `units`: "mm" for a length, "deg
- set_dimension Change one length dimension of the active model, in mm, and rebuild. Use it to resize an existing model; find the full name with `list_model_dimensions` and check the result with `rebuild_model` or `verify_model`. The value is always milli
- set_units Set the active document's length units: mm, cm, m, in or ft. Use it on a new part before sketching if you want other than the template's units. Aliases such as "inch" are accepted. The setting is read back, so success means it applied. Too
- create_cut_extrude Cut material from the active part with a closed sketch profile: holes, slots, windows. Use it after `exit_sketch`. Pass `sketch_name` unless the sketch you just closed is the one: with no name only that sketch is used, and any doubt is an
- add_fillet Round edges of the active part with a constant-radius fillet. Name the edges as "Edge<1>", a point "x,y,z" (metres) or "face:x,y,z" for every edge of a face; or leave `edge_names` empty to use the current selection (e.g. from `select_face_
- add_chamfer Bevel edges of the active part with a chamfer: `distance` along one face at `angle` (45 by default). Name the edges as "Edge<1>", a point "x,y,z" (metres) or "face:x,y,z" for every edge of a face; or leave `edge_names` empty to use the cur
- create_sweep Sweep a closed profile sketch along a path sketch to make a solid (Insert > Boss/Base > Sweep). Draw the closed profile and the open path as two sketches first. The profile is the sketch you closed last that isn't the path. Needs: an open
- create_loft Loft a solid through two or more closed profile sketches, in order (Insert > Boss/Base > Loft). Use it for shapes that change section, such as a wing or a transition duct. Put each profile on its own plane (see `create_reference_plane`). N
- insert_component Insert a part or sub-assembly file into the active assembly at a position in mm. Use it after `create_assembly`, then position components with `add_mate`. The file must contain solid geometry; an empty or missing file is an error. Needs: a
- add_mate Mate two components of the active assembly: coincident, concentric, parallel, perpendicular, tangent, distance or angle. Each side is a named reference plane or axis (`entity_a`, e.g. "Front Plane"), or a face given by a point on it (`face
- set_component_state Fix or float a component of the active assembly, or make a sub-assembly rigid or flexible. Float a part so mates can position it (the first part inserted is fixed); fix one to hold it still. Make a sub-assembly flexible so its own mates mo
- list_components List the top-level components of the active assembly by instance name, e.g. "bracket-1". Use it before `add_mate`, which takes these names. Needs: an open, active assembly. Read-only. Returns: `components` (instance names).
- delete_feature Delete a feature or sketch from the active model, along with the features that depend on it. Ask the user before you call it: deleting a sketch also deletes every feature built from it (a cut, a boss), and deleting a feature deletes everyt
- suppress_feature Suppress or unsuppress a feature of the active model; suppressed features stay in the tree but are not built. Use it to turn off a feature that breaks the rebuild without deleting it. Needs: an open part or assembly. Changes: the feature's
- rename_feature Rename a feature in the active model's feature tree. Use it to give features meaningful names (e.g. "MountingHoles"). The new name is read back: a name another feature already uses is an error. Renaming to the current name succeeds with no
- select_feature Select a feature, sketch, plane or component by name in the active document. Use it to set up a selection that the next SolidWorks operation acts on. `append` adds to the selection instead of replacing it. A name that can't be selected is
- select_face_edges Select every edge of one face of the active part, ready for `add_fillet` or `add_chamfer` with no edge names. Pick the face with one of `point` (a point on it, mm), `side` (top, bottom, front, back, right, left or +X..-Z; the furthest flat
- rebuild_model Rebuild the active model and report each feature that fails, with the reason and a fix. Use it after `set_dimension` or other edits to confirm the model is sound. Failing features make the call an error whose `data.errors` names each one,
- undo Undo the last operations in the active model (Edit > Undo). Use it to step back after a feature went wrong. SolidWorks accepts an undo with nothing to undo, so the reply says whether the feature tree changed. Needs: an open document. Chang
- create_reference_plane Add a reference plane offset from, at an angle to, or on a plane or flat face. Use it to sketch somewhere other than the three default planes: pass the new plane's name to `create_sketch`. Offset: `reference` and a non-zero `offset` (mm).
- create_axis Add a reference axis along the model's x, y or z direction, through the origin. Use it before `pattern_circular`, which rotates features about an axis. It is built where two default planes meet. Needs: an open part. Changes: adds an axis f
- create_reference_point Add a reference point on an edge (at a distance or percentage along it) or at the centre of a face. Use it to mark a position for a later feature or measurement. Pick the edge or face with a point on it in mm. Needs: an open part with that
- mirror_feature Mirror solid bodies or features of the active part about a plane. Use it for symmetric parts: model one half, then mirror. Body mirroring (the default) is what works for lofts and sweeps; to mirror a cut, name the cut and set `mirror_bodie
- pattern_circular Repeat features of the active part around an axis, e.g. a ring of bosses or ribs. Create the axis first with `create_axis`. Bosses and cuts both work (a ring of holes is a patterned cut). It fails when the volume doesn't change, which mean
- create_sketch Open a new sketch on a plane of the active part, ready for lines, circles and other sketch entities. Use it first in every feature: sketch, draw, `exit_sketch`, then `create_extrusion` or `create_cut_extrude`. Planes: Front, Top, Right (or
- add_line Draw a straight line between two points in the open sketch, in mm. Use it for profiles made of straight edges; for a closed box, use `add_rectangle`, and for a revolve axis, `add_centerline`. Needs: an open sketch (`create_sketch`). Change
- add_circle Draw a circle in the open sketch from its centre and radius, in mm. Use it for holes and round bosses. Needs: an open sketch (`create_sketch`). Changes: adds a circle (a construction circle with `construction`). Returns: `circle` with `id`
- add_rectangle Draw a closed, axis-aligned rectangle in the open sketch from two opposite corners, in mm. Use it for blocks, plates and rectangular cut-outs. Needs: an open sketch (`create_sketch`). Changes: adds four connected lines. Returns: `rectangle
- exit_sketch Close the open sketch so a feature can use it. Call it after drawing and before `create_extrusion`, `create_revolve` or `create_cut_extrude`; those use the sketch closed last. Needs: an open sketch. Changes: leaves sketch editing; the sket
- check_sketch_fully_defined Check whether a sketch is fully defined, under-defined or over-defined. Use it after adding relations and dimensions, to see if the sketch still has free geometry. Needs: an open part with the sketch. Read-only. Returns: `sketch` with `ske
- add_arc Draw a circular arc in the open sketch from its centre, start point and end point, in mm. Use it for rounded ends and curved edges of a profile. Needs: an open sketch (`create_sketch`). Changes: adds an arc. Returns: `arc` with `id`, `cent
- add_spline Draw a smooth spline through a list of points in the open sketch, in mm. Use it for free-form curves such as an aerofoil or a handle profile. Needs: an open sketch (`create_sketch`). Changes: adds a spline. Returns: `spline` with `id`, `co
- add_centerline Draw a centreline (construction line) in the open sketch, in mm. Use it as the axis for `create_revolve`, or as the line for `sketch_mirror` and symmetric relations. It is never part of the profile. Needs: an open sketch (`create_sketch`).
- add_polygon Draw a regular polygon (e.g. a hexagon) in the open sketch from its centre, radius and number of sides. Use it for nuts, hex bosses and pockets. Needs: an open sketch (`create_sketch`). Changes: adds the polygon's sides. Returns: `polygon`
- add_ellipse Draw an ellipse in the open sketch from its centre and axis lengths, in mm. Use it for oval holes and bosses. Needs: an open sketch (`create_sketch`). Changes: adds an ellipse. Returns: `ellipse` with `id`, `center`, `major_axis` and `mino
- add_sketch_constraint Add a geometric relation between sketch entities: horizontal, vertical, parallel, perpendicular, tangent, coincident, concentric, equal, symmetric, collinear or fix. Use it to hold design intent, then check with `check_sketch_fully_defined
- add_sketch_dimension Add a driving dimension to sketch entities: linear, angular, radial or diameter. Use it to fix a size so the sketch is fully defined and can be changed later with `set_dimension`. Entities are the `id`s the add_* tools returned; two connec
- sketch_linear_pattern Repeat sketch entities in a straight line at a fixed spacing. Use it for rows of holes or slots before one cut. Needs: an open sketch (`create_sketch`). Changes: adds copies of the entities. Returns: `pattern` with `id`, `entities`, `count
- sketch_circular_pattern Repeat sketch entities around the sketch origin, e.g. a bolt circle. The centre is always the sketch origin, so draw the first entity at the radius you want from it. Then cut once with `create_cut_extrude`. Needs: an open sketch (`create_s
- sketch_mirror Mirror sketch entities about a centreline in the open sketch. Use it for symmetric profiles: draw one half, add a centreline with `add_centerline`, then mirror. Needs: an open sketch (`create_sketch`). Changes: adds mirrored copies. Return
- sketch_offset Offset sketch entities by a distance in mm, outward or inward, e.g. for a wall or a clearance. Needs: an open sketch (`create_sketch`). Changes: adds the offset entities. Returns: `offset` with `id`, `entities`, `distance` and `direction`
- sketch_tutorial_simple_hole Demonstrate the sketch steps: draw a 5 mm circle at the origin on the Top plane and close the sketch. It is a fixed example; for a real hole, use `create_sketch`, `add_circle`, `exit_sketch` and `create_cut_extrude`. Needs: an open part. C
- tutorial_simple_hole Draw a circle on a plane and cut it as a hole, as one worked example. Not available yet on real SolidWorks: its cut step has no COM implementation, so the call draws and closes the sketch, then fails. It is planned for a future release. Us
- create_drawing_view Place one named view of a part or assembly on the active drawing sheet. Use it to add views one at a time; for the three standard views in one call, use `create_technical_drawing`, and for a whole drawing from a model, use `generate_drawin
- add_dimension Add one dimension between drawing entities at a position on the sheet. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. To bring the model's
- add_note Place a text note on the active drawing sheet at a position in millimetres. Use it for general notes such as material or finish. For a title block, use `generate_drawing_package`, which fills one. Needs: an open, active drawing. Changes: a
- create_section_view Cut a section view along a line across a drawing view. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. Use SolidWorks directly (Insert > Dr
- create_detail_view Magnify a circular area of a drawing view as a detail view. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. Use SolidWorks directly (Insert
- update_sheet_format Change the active drawing's sheet format file and title-block fields. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. `generate_drawing_pac
- auto_dimension_view Dimension a drawing view automatically with SolidWorks' auto-dimension scheme. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. Use `insert_
- check_drawing_standards Check the active drawing against a drafting standard and score it. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. SolidWorks Design Checke
- create_technical_drawing Place a model's three standard views (front, top and side) on the active drawing sheet in one call. Use it to start a drawing's views quickly; for one view, use `create_drawing_view`, and to create and save a complete drawing from a model
- add_drawing_view Place one named view of a part or assembly on the active drawing sheet; the same as `create_drawing_view`. Prefer `create_drawing_view`; this tool reaches the same code and is kept for existing callers. It only adds views: an `operation` o
- add_annotation Add an annotation (a note, balloon or surface-finish symbol) to the active drawing. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. For a t
- update_title_block Fill in the active drawing's title-block fields (title, drawn by, drawing number and so on). Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release
- list_drawing_views List the views on the active drawing, by name. Use it before `auto_center_marks`, `insert_model_dimensions` or any tool that takes a view name. Needs: an open, active drawing. Read-only. Returns: `views` (names, sheet formats left out) and
- auto_center_marks Insert centre marks on the holes, slots and (optionally) fillets of one drawing view. Use it after placing views, before dimensioning holes. Adding none is still a success: the view may have no unmarked circular edges. Needs: an open drawi
- analyze_drawing_comprehensive Run every drawing check (dimensions, views, annotations, standards) on a drawing file in one call. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future r
- analyze_drawing_dimensions Check a drawing's dimensions for consistent precision, tolerance formatting and completeness. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future releas
- analyze_drawing_annotations Check a drawing's notes, symbols and text styles for consistency. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. Read-only. Returns: once
- check_drawing_compliance Check a drawing's title block and sheet format against a drafting standard (ISO, ANSI or DIN). Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future relea
- analyze_drawing_views Check how a drawing's views are chosen and laid out. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. To list the views on the active drawin
- generate_drawing_report Write a quality report that combines every drawing check. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. Read-only. Returns: once availabl
- compare_drawing_versions Compare two drawing files on disk: whether they are byte-identical, and how their sizes differ. Use it to tell whether a drawing changed between two saved versions. It does not open SolidWorks, so it can't say which views, dimensions or no
- validate_drawing_completeness Check that a drawing carries everything needed to manufacture the part. Not available yet: no adapter implements it, so every call returns an error with `error_type: "not_supported"`. It is planned for a future release. Read-only. Returns:
- insert_model_dimensions Bring the model's dimensions into the active drawing's views, each dimension shown once. Imports the model's "marked for drawing" dimensions view by view; a repeat in a later view is deleted. Pictorial views (isometric, dimetric, trimetric
- arrange_dimensions Move drawing dimensions out of their views into tidy rows so nothing overlaps, then check the sheet. Rows start 8 mm outside each view, 7 mm apart, shortest span nearest the view. A dimension with no room stays put and is listed in `unplac
- insert_bom_table Insert a bill-of-materials table for an assembly view on the active drawing. Use it on an assembly drawing after placing a view of the assembly (see `list_drawing_views` for view names). Needs: an open, active drawing with a view of an ass
- add_gtol Add a GD&T feature control frame to the active drawing, e.g. position Ø0.2 (M) to A|B|C. Attach it to a drawing dimension (`dimension_view` + `dimension_name`; the frame sits under the dimension's text, the usual place for a hole's positio
- add_datum_tag Add a datum feature symbol (A, B, C, ...) on an edge of the active drawing. Use it to mark the datums a feature control frame from `add_gtol` refers to. Needs: an open, active drawing with an edge at the attach point. Changes: adds the dat
- set_sheet_scale Set the active drawing sheet's scale, e.g. 1:2; views that use the sheet scale follow it. Use it when views are too large for the sheet, or when `arrange_dimensions` reports overlaps it can't clear. Needs: an open, active drawing. Changes:
- generate_drawing_package Create a complete A3 drawing of a part or assembly in one call, and save it with a PDF. It opens a new drawing with an A3 ISO frame and fills the title block (title, number, material, weight, drawn by, date, revision). It places front, pla
- list_model_dimensions List every dimension in the active part or assembly with its full name and value. Use it to find a dimension in an existing model before changing it: each `full_name` (e.g. "D1@Sketch1") is the name `get_dimension` and `set_dimension` take
Install
uvx solidworks-mcp-python==2.0.0
Version history
- : version 2.0.0, Audited
- : first listed at version 1.5.0, Audited
Audit report
Automated checks, not a security guarantee or a certification by any client. Payment never changes a score or a tier. How listings are checked.
- Version
- 2.0.0
- Audited
- 16 Nov 2026 · Re-tested every Monday
- Package
- pypi solidworks-mcp-python
- Advisories
- 0 critical, 0 high, 0 medium, 0 low
- Network
- Disabled
- Pass Version. Pinned pypi solidworks-mcp-python@2.0.0
- Pass Known vulnerabilities
- Pass License. MIT
- Pass Install scripts
- Pass Credential patterns
- Pass Package size. 618.3 KB
- Pass Maintainer activity. Active 14 days ago.
- Pass Sandbox. MCP handshake completed. 156 tools listed.
Sandbox log excerpt
│
╰──────────────────────────────────────────────────────────────────────────────╯
[11/16/26 09:52:13] INFO Starting MCP server 'SolidWorks transport.py:241
MCP Server' with transport 'stdio'
[32m2026-11-16 09:52:13[0m | [1mINFO [0m | [36msolidworks_mcp.server[0m:[36mstop[0m:[36m455[0m | [1mStopping SolidWorks MCP Server...[0m
[32m2026-11-16 09:52:13[0m | [1mINFO [0m | [36msolidworks_mcp.server[0m:[36mstop[0m:[36m463[0m | [1mServer stopped[0m Built for
Any MCP client.
Transports: stdio.
Links
Metadata checks
- Repository activity: Active in the last 180 days
- License: Recognized SPDX id
- Metadata quality: High
Audited by AddonAudit · 16 Nov 2026
Free to use; updates after each weekly re-test. Dark, HTML and self-hosted formats.
Badge
[](https://addonaudit.com/addon/io-github-andrewbartels1-solidworks-mcp-python/)
Seal
[](https://addonaudit.com/addon/io-github-andrewbartels1-solidworks-mcp-python/)