solidworks-cad
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@solidworks-cad Plan a 100 mm x 60 mm x 10 mm plate with a centered 10 mm hole"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TEXT2CAD
SolidWorks CAD Agent(on going)
Use the SolidWorks tools directly in a Codex chat, or open the Windows CAD terminal. Both can plan designs with Codex and execute checked operations in SolidWorks.
Related MCP server: SolidWorks MCP Server
Use Codex
In a new Codex chat with the solidworks-cad MCP server enabled, describe the part or edit you want. For example, ask Codex to plan a plate with a centered hole. The chat handles planning and can call the SolidWorks tools directly. The configured server uses SOLIDWORKS_PLANNER=host to avoid launching a second planner.
In the CAD terminal, type codex plan a new rectangular solid 80 mm long, 40 mm wide and 12 mm thick. Review the result and type build plan in the same terminal to apply it. Free-form planning sends the design conversation and relevant catalog excerpts to Codex using your sign-in and internet connection. Explicit CAD commands and catalog searches can run locally. Type model status to check which planner is configured.
Run the agent
ANSI and ASME dimensional references
Codex can read the installed SOLIDWORKS Toolbox ANSI Inch and ANSI Metric measurement sheets through lookup_standard_dimensions. It checks standard components individually during design. The source table, native length unit, part family and available options accompany each result. Specify a family ID and exact field filters to retrieve a size or thread variant. Related option tables provide values such as available bolt lengths and thread lengths. Lengths in inches convert to CAD millimetres by multiplying by 25.4. Thread counts, angles, and ratios retain their own units.
find standard M8 regular flat washer
standard sheet AI_TYPE_BS:15 size=1/4, pitch=20
standard sheet AI_TYPE_BS:15 option=Length, size=1/4, length=1
plan a new ANSI M8 regular flat washerOnce the family and size are known, the agent uses the matching reference dimensions. Give a custom measurement whenever you need one. For example, plan a new M8 regular flat washer with a thickness of 3 mm uses the sheet for both diameters. You can also start with plan a new metric regular flat washer and reply M8, 3 mm thick when it asks for the size. The plan lists your changes alongside the original sheet values.
The agent reads offline-standards/toolbox.sqlite when present and falls back to the installed Toolbox database. Set SOLIDWORKS_TOOLBOX_DB to override either location. Toolbox values are modeling dimensions and can be customized. For a tolerance or specified edition, check the applicable published sheet. ASME standards · ANSI Webstore
Offline measurement library
Type roller chain to find matching files and guide pages. Type make a roller chain to start a design. When the agent is waiting for a design answer, you can type look up roller chain and then return to the question. Use offline standards to list the library or find standard [DIN] hex nut to search DIN Toolbox families. The MCP tools expose the same searches through offline_standards and the library argument of lookup_standard_dimensions. Check the table headings and units on the referenced page when using its values.
The local snapshot contains the entire installed Toolbox database. The manufacturer guides have a local text index. The agent lists user-supplied PDFs and spreadsheets by filename from the configured reference folder. The environment variable SOLIDWORKS_STANDARDS_FOLDER overrides that folder.
To refresh the snapshot and index after a Toolbox update, run .\.venv\Scripts\python.exe -m solidworks_mcp.agent.offline_standards. Add --download-public to fetch missing public guides, or --licensed-folder "C:\CAD\Standards" to register a document folder. On a fresh installation the optional standards-index dependency provides the PDF reader for indexing. Table lookup and page search run locally without signing in. Free-form Codex planning still uses the internet.
Codex consults the local Desktop/mechanical parts library.md catalog for relevant part families, variants and standard designations. Try find part DIN 6888 to look up a Woodruff key, or plan a Woodruff key for my shaft to discuss the design. The catalog is read on request, so edits take effect immediately. Set SOLIDWORKS_PARTS_LIBRARY to use a different file path.
From this project folder, double-click interactive_designer.bat. For live modeling, install SolidWorks and the project dependencies in .venv. From a new checkout, use py -3.12 -m venv .venv and .\.venv\Scripts\python.exe -m pip install -e .. Set SOLIDWORKS_MOCK_MODE=1 to use the simulator. The terminal displays whether it is using live SolidWorks or simulation.
Enter one command per line, or join steps with then. The agent checks every step for missing design details before it changes the model. Answer in the same terminal. You can give the first value it asks for, or answer several questions with named values.
make a new bracket 100 x 60 x 10
add a 6 mm hole at (20, 10)
repeat at (-20, 10)
show features
make a new flange with outer diameter=80, thickness=12 and 6 bolt holes
make a helical gear having outer diameter of 15 dia and inter 10 diaFor the helical gear example, the agent remembers the 15 mm outer diameter and 10 mm bore and asks for tooth count, face width, helix angle and normal pressure angle. Try answering:
24 teeth, face width=5 mm, helix angle=25 degrees, pressure angle=20 degreesYou can also type use defaults to accept the values shown in the question. If a required dimension has no suggested value, the agent still asks for it. Type cancel to discard a pending request. For an external helical gear, OD means tooth-tip diameter and inner, inter, ID or bore means the central hole.
To resize a spur or helical gear made by the agent, activate its part and enter change the teeth to 30 & outer dia to 50. This edits the gear's existing tooth sketch. For a spur gear, those values give a module of 1.5625 mm. You can also give this command while the agent is collecting the original gear dimensions.
Lengths are in millimetres. The agent edits the active part. Use new for a separate part. Type help for more command examples or exit to quit. This is a command-based agent with a supported vocabulary. If it cannot parse a request, it returns guidance. For a multi-step request, it stops on the first execution error and returns the operations already performed.
In an assembly containing the agent's metric nut and bolt, type move bolt on the nut. The nut stays in place while the bolt lines up with its bore, with the tip flush with the outer face. Use move nut onto the bolt to hold the bolt in place instead. If several matching instances exist, choose one by name or list number. The agent reports when the pair is already seated or when an assembly mate controls the move.
To couple rotation and travel, say it should rotate on the nut's thread. The agent adds a native screw mate using the pair's coarse thread pitch. Use turn bolt a quarter turn to advance or turn bolt 90 degrees counterclockwise to back out. Clockwise is viewed from the bolt head. An M8 bolt advances 0.3125 mm per quarter turn.
To hold the bolt still, say tighten the nut or loosen the nut. Each command turns the nut one revolution unless you give an amount, such as tighten the nut half a turn or loosen the nut 90 degrees. Viewed from the bolt tip, clockwise tightening moves the nut toward the head. On the agent's coarse M8 pair, one turn moves the nut 1.25 mm. The command reuses the existing screw mate when switching which component moves.
Custom parts and machine assemblies
For a metric hex nut and bolt, enter make a nut and bolt and answer the size question with, for example, M8 x 30. The 30 mm is measured under the bolt head. Reply yes to build the bolt with an external right-hand thread and the nut with a matching internal thread. M8 uses a 1.25 mm coarse pitch. Both editable components stay inside the unsaved assembly. To update a smooth pair made by an earlier version, activate its assembly and enter add threads to the nut and bolt. You can also specify just the nut or bolt. Native threading uses the installed SOLIDWORKS Metric Tap and Metric Die profiles. The hex dimensions use ISO 4017 head dimensions and ISO 4032 nut dimensions.
Type plan a transfer machine to discuss the machine without connecting to SolidWorks. Describe each component's geometry, dimensions and placement. In the guided assembly workflow you can also provide existing component paths or request separate output files. Use build plan in the same conversation to execute reviewed steps.
Describe a custom outline using lengths and relationships. Codex can derive the sketch points. For example:
Features
Autonomous "Prompt-to-CAD" Live Engine:
create_live_design: Interprets commands like "Make a 60mm diameter mounting flange with 6 bolt holes" or "Design a spur gear with 24 teeth" and builds complete parametric CAD models.modify_live_design: Modifies or adds features (holes, cuts, pockets, bosses, fillets, chamfers, shells, dimension updates) to the active SolidWorks part document without creating a new document.
Intelligent Incremental Modifications (Active Part Preservation):
When a part is active in SolidWorks, follow-up commands (e.g. "add a 10mm hole in the center", "fillet edges to 3mm", "cut a 20x20 pocket 5mm deep", "change thickness to 15mm") are applied directly to that same part.
Brand new part documents are created only when explicitly commanded (e.g. "make a new flange", "new part", "start fresh"), or when no document is open.
Parametric Mechanical Component Generators:
Mounting Brackets & Plates: Custom rectangular geometry, clearance bolt holes, corner stress-relief fillets.
Flanges: Circular pipe and shaft flanges with center bore and pitch circle diameter (PCD) bolt hole patterns.
Spur & Helical Gears: AGMA/ISO standard involute teeth, pitch diameter, face width, bore, and drive keyway.
Connecting Rods & Cranks: Complete slider-crank link geometries with pin and journal bearing bosses.
Stepped Shafts: Multi-diameter rotational shafts with chamfers and axial transitions.
Bushings & Plain Bearings: Precision sleeve bushings and flanged collar bushings.
Dowel & Locating Pins: Cylindrical pins with chamfered lead-in ends.
Structural Tubes & Profiles: Square hollow structural sections (SHS) and round pipe/tubing.
Enclosures & Electronic Housings: Box shells with uniform wall thickness and internal screw mounting posts.
Thermal Heat Sinks: Baseplates with extruded cooling fin arrays.
Granular Parametric CAD Tools:
Full toolset for
create_sketch,sketch_rectangle,sketch_circle,sketch_line,feature_extrude_boss,feature_extrude_cut,feature_revolve_boss,feature_fillet,feature_chamfer,feature_shell,feature_circular_pattern.
Physical Inspection & Live Feedback:
get_mass_properties: Real-time mass (kg), volume (mm³), surface area (mm²), center of mass.capture_viewport_preview: Isometric viewport screenshot saved directly to disk.
Direct Python COM Execution (
execute_solidworks_script):The AI can write custom mathematical geometry scripts using
swApp,model,sketch_mgr, andfeat_mgrexecuted live with error safety.
Dual Mode (Live COM + High-Fidelity Simulation):
Connects to live SolidWorks on Windows.
Also includes a built-in simulation adapter (
SOLIDWORKS_MOCK_MODE=1) for headless development and testing.
Available Tools
47 toolsadd_boss_to_partAdd Boss To PartA
Adds an extruded circular or rectangular boss to the currently active part, modifying that same document. Use for follow-up additions; do not call new_part first. Dimensions and depth are in mm.
Inputs: xc, yc, dim1, dim2, +3 more. Returns: object
add_hole_to_partAdd Hole To PartB
Adds a circular cut hole to the currently active part document, preserving and modifying that part. Use for follow-up requests such as adding holes; do not call new_part first.
Inputs: diameter (required), xc, yc, depth, +2 more. Returns: object
add_pocket_to_partAdd Pocket To PartB
Cuts a circular or rectangular blind pocket into the currently active part, modifying that same document. Use for follow-up cut requests; do not call new_part first. Dimensions and depth are in mm.
Inputs: xc, yc, depth, shape, +3 more. Returns: object
ai_designAi DesignC
Design a part or continue a pending design with the user's reply and conversation_id.
Inputs: prompt (required), conversation_id. Returns: object
cad_agentCad AgentC
Run CAD commands. On needs_input, ask the user and send their answer with the returned conversation_id.
Inputs: prompt (required), conversation_id. Returns: object
capture_viewport_previewCapture Viewport PreviewB
Captures a high-resolution isometric screenshot/rendering of the 3D model currently in the SolidWorks viewport.
Inputs: output_path, include_base64. Returns: object
close_modelClose ModelB
Closes the active document in SolidWorks.
Inputs: no named parameters. Returns: object
create_live_designCreate Live DesignC
Work in the active design. Request a new document explicitly. Continue questions with the same conversation_id.
Inputs: prompt (required), dimensions, design_type, conversation_id. Returns: object
create_sketchCreate SketchB
Starts a new 2D sketch on a standard plane ('Front Plane', 'Top Plane', 'Right Plane') or planar face.
Inputs: plane_or_face. Returns: object
design_bushingDesign BushingC
Creates a precision cylindrical sleeve bushing / bearing or flanged bushing in SolidWorks.
Inputs: length, chamfer, inner_diameter, outer_diameter, +2 more. Returns: object
design_connecting_rodDesign Connecting RodB
Creates a mechanical connecting rod link for slider-crank mechanisms / engines with big-end and small-end bearing bores.
Inputs: beam_width, big_end_od, big_end_bore, small_end_od, +3 more. Returns: object
design_dowel_pinDesign Dowel PinC
Creates a precision cylindrical dowel pin or locating pin with chamfered ends in SolidWorks.
Inputs: length, chamfer, diameter. Returns: object
design_flangeDesign FlangeC
Creates a precision circular pipe or shaft mounting flange with center bore and PCD radial bolt holes in SolidWorks.
Inputs: thickness, hub_length, hub_diameter, outer_diameter, +4 more. Returns: object
design_mounting_bracketDesign Mounting BracketC
Creates a parametric rectangular mounting plate/bracket with 4 corner mounting holes and edge fillets in SolidWorks.
Inputs: width, length, thickness, hole_margin, +2 more. Returns: object
design_spur_gearDesign Spur GearC
Creates an involute spur gear with tooth profile, pitch diameter, center bore, and keyway in SolidWorks.
Inputs: module, num_teeth, face_width, keyway_depth, +3 more. Returns: object
design_structural_tubeDesign Structural TubeB
Creates a hollow structural profile tube (round tube / pipe or square box section SHS) in SolidWorks.
Inputs: shape, length, outer_size, wall_thickness. Returns: object
execute_solidworks_scriptExecute Solidworks ScriptA
Executes custom Python CAD code directly against the live SolidWorks COM API. Variables available in scope: swApp, model, part, sketch_mgr, feat_mgr, sel_mgr, ext, mm_to_m, m_to_mm, math. Ideal for custom mathematical curves, airfoils, complex lofting, or specialized mechanical geometry.
Inputs: python_code (required). Returns: object
exit_sketchExit SketchB
Closes and exits the active 2D sketch.
Inputs: no named parameters. Returns: object
feature_chamferFeature ChamferC
Bevels edges of the solid body with a chamfer (distance in mm, angle in degrees, default 45°).
Inputs: distance (required), angle_degrees. Returns: object
feature_circular_patternFeature Circular PatternC
Patterns features circularly around the central axis (e.g. bolt holes, gear teeth, spokes).
Inputs: count (required), total_angle. Returns: object
feature_extrude_bossFeature Extrude BossB
Extrudes the currently open or selected 2D sketch into a 3D solid feature (depth in mm).
Inputs: depth (required), mid_plane, draft_angle. Returns: object
feature_extrude_cutFeature Extrude CutC
Cuts through the 3D solid model using the active or selected sketch (depth in mm).
Inputs: depth (required), flip_dir, through_all. Returns: object
feature_filletFeature FilletC
Rounds edges of the solid body with a constant-radius fillet (radius in mm).
Inputs: radius (required). Returns: object
feature_revolve_bossFeature Revolve BossC
Revolves a 2D sketch profile around its centerline to create a rotational solid (e.g. shaft, cylinder, sphere).
Inputs: angle_degrees. Returns: object
feature_revolve_cutFeature Revolve CutC
Cuts material from the solid body by revolving a sketch profile around a centerline axis.
Inputs: angle_degrees. Returns: object
feature_shellFeature ShellC
Hollows out the solid body leaving a specified wall thickness (in mm).
Inputs: thickness (required). Returns: object
find_solidworks_commandsFind Solidworks CommandsB
Search the installed desktop command names. Page with offset and limit.
Inputs: limit, query, offset. Returns: object
get_feature_treeGet Feature TreeA
Inspects and lists all features in the FeatureManager design tree with their names, types, and suppression status.
Inputs: no named parameters. Returns: object
get_mass_propertiesGet Mass PropertiesA
Calculates mass (kg), volume (mm³), surface area (mm²), center of mass, and density of the active SolidWorks part.
Inputs: no named parameters. Returns: object
insert_assembly_componentInsert Assembly ComponentA
Insert a saved part or subassembly at the given origin (mm), aligned to assembly axes. Returns its instance name.
Inputs: x (required), y (required), z (required), file_path (required). Returns: object
lookup_standard_dimensionsLookup Standard DimensionsA
Search ANSI Inch/Metric Toolbox families, then read their source dimensions by family_id and exact field filters. A blank query browses families. Page with offset. Select an option for related length/pitch/configuration tables. Length units apply to dimensional lengths only. Edition and tolerances require the applicable publisher sheet.
Inputs: query, offset, option, filters, +2 more. Returns: object
mate_component_planesMate Component PlanesA
Mate two component planes coincident. Use Plane@Instance for each reference, for example Front Plane@Frame-1.
Inputs: first (required), second (required). Returns: object
modify_live_designModify Live DesignA
Modifies, edits, or adds features (holes, cuts, pockets, bosses, fillets, chamfers, shells, or dimension changes) to the currently active SolidWorks part document. Always modifies the same active part without creating a new document. Examples: 'add a 10mm hole in the center', 'fillet edges to 3mm', 'cut a 20x20 pocket 5mm deep', 'change thickness to 15mm'.
Inputs: prompt (required), conversation_id. Returns: object
new_assemblyNew AssemblyB
Creates a new SolidWorks Assembly document (.SLDASM).
Inputs: no named parameters. Returns: object
new_partNew PartA
Creates a separate brand new empty SolidWorks Part document (.SLDPRT). Call only when the user explicitly asks for a new part/document; do not call for edits or additions to the active part.
Inputs: no named parameters. Returns: object
offline_standardsOffline StandardsB
Search local public guide pages or list offline libraries and reference filenames. Page results with offset. Pass a library name (or 'all') to lookup_standard_dimensions to search beyond the default ANSI systems.
Inputs: query, offset. Returns: object
rebuild_modelRebuild ModelB
Regenerates and rebuilds the active SolidWorks model (EditRebuild3).
Inputs: no named parameters. Returns: object
save_modelSave ModelB
Saves the active SolidWorks document to a specified path.
Inputs: file_path (required). Returns: object
set_dimensionSet DimensionB
Changes an existing named dimension in the active part and rebuilds it. Use this to edit the current model; it does not create a new document. Dimension names commonly include a name and feature suffix, such as D1@Sketch1.
Inputs: value_mm (required), dimension_name (required). Returns: object
set_materialSet MaterialC
Assigns an engineering material to the active part (e.g., '6061 Alloy', 'Plain Carbon Steel', 'AISI 304', 'Brass', 'ABS').
Inputs: material_name (required), database. Returns: object
sketch_circleSketch CircleB
Draws a circle in the active sketch at center (xc, yc) with radius in mm.
Inputs: xc (required), yc (required), radius (required). Returns: object
sketch_lineSketch LineA
Draws a line segment between (x1, y1) and (x2, y2) in mm. Set is_centerline=True for construction / axis of revolution.
Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +1 more. Returns: object
sketch_polygonSketch PolygonC
Draws a regular polygon (e.g. hexagon, pentagon) with N sides centered at (xc, yc) with radius in mm.
Inputs: xc (required), yc (required), radius (required), sides, +1 more. Returns: object
sketch_rectangleSketch RectangleA
Draws a rectangle in the active sketch (dimensions in mm). center_based=True uses (x1, y1) as center and (x2, y2) as corner.
Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +1 more. Returns: object
sketch_slotSketch SlotB
Draws a straight slot between two center points (x1, y1) and (x2, y2) with slot width in mm.
Inputs: x1 (required), x2 (required), y1 (required), y2 (required), +1 more. Returns: object
solidworks_connectSolidworks ConnectA
Connects to a running SolidWorks instance or launches a new one on Windows.
Inputs: no named parameters. Returns: object
start_solidworks_commandStart Solidworks CommandC
Invoke an exact native command requested by the user. Interactive features may need selections in SolidWorks.
Inputs: name (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 47 tools
Several tools have clearly overlapping purposes: cad_agent, ai_design, and create_live_design all act as conversational design entry points with conversation_id, while modify_live_design explicitly covers holes/cuts/pockets/bosses that the separate add_hole_to_part, add_boss_to_part, and add_pocket_to_part tools also perform. add_boss_to_part versus feature_extrude_boss and lookup_standard_dimensions versus offline_standards further blur boundaries, so an agent can easily misselect.
There are readable sub-namespaces (sketch_*, feature_*, design_*) that group related tools, but the base convention is mixed: verbs come first in some (get_mass_properties, add_hole_to_part, save_model) and last in others (new_part, new_assembly, feature_extrude_boss), and a few tools have no clear verb-noun form at all (offline_standards, cad_agent, ai_design). It is understandable but not predictable.
47 tools is well above a comfortable working set and includes redundant entries (three conversational design tools, duplicate boss/hole/pocket paths) that inflate the surface. A CAD server legitimately needs breadth, but this count reflects overlap rather than cleanly earned scope.
The sketch and feature lifecycle, materials, mass properties, feature-tree inspection, assembly insertion/mating, and save/close are covered, which is substantial. However, notable gaps remain: no export/save-as STEP/STL, no delete or suppress-feature operation, no read-back of dimensions or part metadata beyond mass properties, and only plane-coincident mating in assemblies.
Maintenance
Related MCP Connectors
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Text-to-CAD: build exact STEP or 3MF/STL on the server, each stated requirement measured.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Claude to create and manipulate SolidWorks CAD models through natural language commands, automating part creation, sketching, and extrusion.12-
- AlicenseNot gradedqualityBmaintenanceEnables Claude to drive SolidWorks in natural language, creating parts and assemblies, sketching and modeling features, editing dimensions, setting materials, and exporting CAD files. It also exposes selection, mass-property, and viewport-capture tools so 3D designs can be built and verified conversationally.MIT
- FlicenseBqualityCmaintenanceEnables AI agents to drive SolidWorks for parametric modelling, aerospace part generation, sheet metal, weldments, assemblies, drawings, simulation, inspection, and file export. It provides approval-gated operations, verification tools, and journaling for safe, recoverable design automation.94-
- AlicenseAqualityBmaintenanceLets your AI app build real SOLIDWORKS parts, sheet metal, weldments, assemblies and drawings on Windows: fully defined sketches, 121 tools, and every result measured from the model. One-click Windows installer.1213MIT