alisamsam/Solidworks-MCP
MCP server to automate SolidWorks using Claude AI — 22 tools for parts, sketches & features
ee8f42a1a919Paths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 178 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 71 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
chamfer_edges, close_document, close_sketch, connect_solidworks, create_new_assembly, create_new_part and 19 moreNo tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files25 tools · chamfer_edges, close_document, close_sketch +22
Not all three are present in the tools the scanner traced.
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (71: 71 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
chamfer_edgestool Add chamfer to selected edges.Filesoutside text
Add chamfer to selected edges.
chamfer_edgestool Add chamfer to selected edges.Filesoutside text
Add chamfer to selected edges.
chamfer_edgestool Add chamfer to selected edges.Filesoutside text
Add chamfer to selected edges.
close_documenttool Close the active document.Filesoutside text
Close the active document.
close_documenttool Close the active document.Filesoutside text
Close the active document.
close_documenttool Close the active document.Filesoutside text
Close the active document.
close_sketchtool Close/exit the active sketch. Call this before extrude if sketch is still open.Filesoutside text
Close/exit the active sketch. Call this before extrude if sketch is still open.
close_sketchtool Close/exit the active sketch. Call this before extrude if sketch is still open.Filesoutside text
Close/exit the active sketch. Call this before extrude if sketch is still open.
connect_solidworkstool Connect to SolidWorks. Launches if not running.Filesoutside text
Connect to SolidWorks. Launches if not running.
connect_solidworkstool Connect to SolidWorks. Launches if not running.Filesoutside text
Connect to SolidWorks. Launches if not running.
connect_solidworkstool Connect to SolidWorks. Launches if not running.Filesoutside text
Connect to SolidWorks. Launches if not running.
create_new_assemblytool Create a new assembly document.Filesoutside text
Create a new assembly document.
create_new_assemblytool Create a new assembly document.Filesoutside text
Create a new assembly document.
create_new_assemblytool Create a new assembly document.Filesoutside text
Create a new assembly document.
create_new_parttool Create a new part document.Filesoutside text
Create a new part document.
create_new_parttool Create a new part document.Filesoutside text
Create a new part document.
create_new_parttool Create a new part document.Filesoutside text
Create a new part document.
create_sketchtool Create a new sketch on a plane.Filesoutside text
Create a new sketch on a plane.
create_sketchtool Create a new sketch on a plane.Filesoutside text
Create a new sketch on a plane.
create_sketchtool Create a new sketch on a plane.Filesoutside text
Create a new sketch on a plane.
create_sketch_on_facetool Create a new sketch on an existing body face (by 3D coordinates). Use for cut-extrude on faces instead of reference planes.Filesoutside text
Create a new sketch on an existing body face (by 3D coordinates). Use for cut-extrude on faces instead of reference planes.
cut_extrudetool Cut extrude to remove material.Filesoutside text
Cut extrude to remove material.
cut_extrudetool Cut extrude to remove material.Filesoutside text
Cut extrude to remove material.
cut_extrudetool Cut extrude to remove material.Filesoutside text
Cut extrude to remove material.
draw_arctool Draw an arc by center and angles.Filesoutside text
Draw an arc by center and angles.
draw_arctool Draw an arc by center and angles.Filesoutside text
Draw an arc by center and angles.
draw_arctool Draw an arc by center and angles.Filesoutside text
Draw an arc by center and angles.
draw_circletool Draw a circle in the active sketch.Filesoutside text
Draw a circle in the active sketch.
draw_circletool Draw a circle in the active sketch.Filesoutside text
Draw a circle in the active sketch.
draw_circletool Draw a circle in the active sketch.Filesoutside text
Draw a circle in the active sketch.
draw_linetool Draw a line in the active sketch.Filesoutside text
Draw a line in the active sketch.
draw_linetool Draw a line in the active sketch.Filesoutside text
Draw a line in the active sketch.
draw_linetool Draw a line in the active sketch.Filesoutside text
Draw a line in the active sketch.
draw_polygontool Draw a regular polygon.Filesoutside text
Draw a regular polygon.
draw_polygontool Draw a regular polygon.Filesoutside text
Draw a regular polygon.
draw_polygontool Draw a regular polygon.Filesoutside text
Draw a regular polygon.
draw_rectangletool Draw a rectangle in the active sketch.Filesoutside text
Draw a rectangle in the active sketch.
draw_rectangletool Draw a rectangle in the active sketch.Filesoutside text
Draw a rectangle in the active sketch.
draw_rectangletool Draw a rectangle in the active sketch.Filesoutside text
Draw a rectangle in the active sketch.
execute_pythontool Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.Filesoutside text
Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.
execute_pythontool Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.Filesoutside text
Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.
execute_pythontool Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.Filesoutside text
Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.
extrude_sketchtool Extrude the active sketch (Boss-Extrude).Filesoutside text
Extrude the active sketch (Boss-Extrude).
extrude_sketchtool Extrude the active sketch (Boss-Extrude).Filesoutside text
Extrude the active sketch (Boss-Extrude).
extrude_sketchtool Extrude the active sketch (Boss-Extrude).Filesoutside text
Extrude the active sketch (Boss-Extrude).
fillet_edgestool Add fillet to selected edges.Filesoutside text
Add fillet to selected edges.
fillet_edgestool Add fillet to selected edges.Filesoutside text
Add fillet to selected edges.
fillet_edgestool Add fillet to selected edges.Filesoutside text
Add fillet to selected edges.
get_document_infotool Get information about the active document.Filesoutside text
Get information about the active document.
get_document_infotool Get information about the active document.Filesoutside text
Get information about the active document.
get_document_infotool Get information about the active document.Filesoutside text
Get information about the active document.
get_sketch_statustool Get diagnostic info: active sketch state, sketch count, sketch names in feature tree.Filesoutside text
Get diagnostic info: active sketch state, sketch count, sketch names in feature tree.
get_sketch_statustool Get diagnostic info: active sketch state, sketch count, sketch names in feature tree.Filesoutside text
Get diagnostic info: active sketch state, sketch count, sketch names in feature tree.
get_solidworks_infotool Get SolidWorks installation information.Filesoutside text
Get SolidWorks installation information.
get_solidworks_infotool Get SolidWorks installation information.Filesoutside text
Get SolidWorks installation information.
get_solidworks_infotool Get SolidWorks installation information.Filesoutside text
Get SolidWorks installation information.
list_featurestool List all features in the model.Filesoutside text
List all features in the model.
list_featurestool List all features in the model.Filesoutside text
List all features in the model.
list_featurestool List all features in the model.Filesoutside text
List all features in the model.
list_open_documentstool List all open documents.Filesoutside text
List all open documents.
list_open_documentstool List all open documents.Filesoutside text
List all open documents.
list_open_documentstool List all open documents.Filesoutside text
List all open documents.
open_documenttool Open an existing SolidWorks document.Filesoutside text
Open an existing SolidWorks document.
open_documenttool Open an existing SolidWorks document.Filesoutside text
Open an existing SolidWorks document.
open_documenttool Open an existing SolidWorks document.Filesoutside text
Open an existing SolidWorks document.
save_documenttool Save the active document.Filesoutside text
Save the active document.
save_documenttool Save the active document.Filesoutside text
Save the active document.
save_documenttool Save the active document.Filesoutside text
Save the active document.
set_unitstool Set default unit for dimensions.Filesoutside text
Set default unit for dimensions.
set_unitstool Set default unit for dimensions.Filesoutside text
Set default unit for dimensions.
set_unitstool Set default unit for dimensions.Filesoutside text
Set default unit for dimensions.
Text the model reads (71)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
connect_solidworks tool
Connect to SolidWorks. Launches if not running.
get_solidworks_info tool
Get SolidWorks installation information.
create_new_part tool
Create a new part document.
create_new_assembly tool
Create a new assembly document.
open_document tool
Open an existing SolidWorks document.
save_document tool
Save the active document.
close_document tool
Close the active document.
get_document_info tool
Get information about the active document.
list_open_documents tool
List all open documents.
create_sketch tool
Create a new sketch on a plane.
draw_line tool
Draw a line in the active sketch.
draw_circle tool
Draw a circle in the active sketch.
draw_rectangle tool
Draw a rectangle in the active sketch.
draw_arc tool
Draw an arc by center and angles.
draw_polygon tool
Draw a regular polygon.
extrude_sketch tool
Extrude the active sketch (Boss-Extrude).
cut_extrude tool
Cut extrude to remove material.
fillet_edges tool
Add fillet to selected edges.
chamfer_edges tool
Add chamfer to selected edges.
list_features tool
List all features in the model.
set_units tool
Set default unit for dimensions.
execute_python tool
Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.
connect_solidworks tool
Connect to SolidWorks. Launches if not running.
get_solidworks_info tool
Get SolidWorks installation information.
create_new_part tool
Create a new part document.
create_new_assembly tool
Create a new assembly document.
open_document tool
Open an existing SolidWorks document.
save_document tool
Save the active document.
close_document tool
Close the active document.
get_document_info tool
Get information about the active document.
list_open_documents tool
List all open documents.
create_sketch tool
Create a new sketch on a plane.
draw_line tool
Draw a line in the active sketch.
draw_circle tool
Draw a circle in the active sketch.
draw_rectangle tool
Draw a rectangle in the active sketch.
draw_arc tool
Draw an arc by center and angles.
draw_polygon tool
Draw a regular polygon.
extrude_sketch tool
Extrude the active sketch (Boss-Extrude).
cut_extrude tool
Cut extrude to remove material.
fillet_edges tool
Add fillet to selected edges.
chamfer_edges tool
Add chamfer to selected edges.
list_features tool
List all features in the model.
close_sketch tool
Close/exit the active sketch. Call this before extrude if sketch is still open.
get_sketch_status tool
Get diagnostic info: active sketch state, sketch count, sketch names in feature tree.
set_units tool
Set default unit for dimensions.
execute_python tool
Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.
connect_solidworks tool
Connect to SolidWorks. Launches if not running.
get_solidworks_info tool
Get SolidWorks installation information.
create_new_part tool
Create a new part document.
create_new_assembly tool
Create a new assembly document.
open_document tool
Open an existing SolidWorks document.
save_document tool
Save the active document.
close_document tool
Close the active document.
get_document_info tool
Get information about the active document.
list_open_documents tool
List all open documents.
create_sketch tool
Create a new sketch on a plane.
create_sketch_on_face tool
Create a new sketch on an existing body face (by 3D coordinates). Use for cut-extrude on faces instead of reference planes.
draw_line tool
Draw a line in the active sketch.
draw_circle tool
Draw a circle in the active sketch.
draw_rectangle tool
Draw a rectangle in the active sketch.
draw_arc tool
Draw an arc by center and angles.
draw_polygon tool
Draw a regular polygon.
extrude_sketch tool
Extrude the active sketch (Boss-Extrude).
cut_extrude tool
Cut extrude to remove material.
fillet_edges tool
Add fillet to selected edges.
chamfer_edges tool
Add chamfer to selected edges.
list_features tool
List all features in the model.
close_sketch tool
Close/exit the active sketch. Call this before extrude if sketch is still open.
get_sketch_status tool
Get diagnostic info: active sketch state, sketch count, sketch names in feature tree.
set_units tool
Set default unit for dimensions.
execute_python tool
Execute custom Python code with stdout capture. Access 'sw' (app), 'doc' (active document). Use print() for debug output.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 71 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 71 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 71 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 71 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 71 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 71 capabilities; 71 more call code the scanner could not follow, where it may happen
- Tools that touch files71 of 71 capabilities touch files
- Tools that call the networkNot seen in the traced code of 71 capabilities; 71 more call code the scanner could not follow, where it may happen
Where the code is: 71 handlers in 3 files at commit ee8f42a1a919
solidworks_mcp/backup_20260209_153509/server.pyconnect_solidworks, get_solidworks_info, create_new_part, create_new_assembly, open_document, save_document, close_document, get_document_info, list_open_documents, create_sketch, draw_line, draw_circle +10solidworks_mcp/backup_20260209_164320/server.pyconnect_solidworks, get_solidworks_info, create_new_part, create_new_assembly, open_document, save_document, close_document, get_document_info, list_open_documents, create_sketch, draw_line, draw_circle +12solidworks_mcp/server.pyconnect_solidworks, get_solidworks_info, create_new_part, create_new_assembly, open_document, save_document, close_document, get_document_info, list_open_documents, create_sketch, create_sketch_on_face, draw_line +13
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: requirements.txt
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: requirements.txt: 4 dependency lines carry no exact version, so the installed version was not checked; pin them or add a lockfile
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionmcp >=1.0.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 71 capabilities; 71 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | mcp >=1.0.0 |
| Servers in the code | 3 (solidworks-mcp-server) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-03-23 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | MIT |
| Created | 2026-03-22 |
| Topics | claude-mcp com-api python solidworks solidworks-api |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.