There are two practical ways to use Claude with SOLIDWORKS. The first is to connect Claude Desktop or Claude Code to a live SOLIDWORKS session through an MCP (Model Context Protocol) server: community open-source servers run on a Windows PC, call the SOLIDWORKS COM API and let Claude create sketches, parts, assemblies and drawings from plain-language requests. The second needs no setup at all: ask Claude in a normal chat to write or fix a VBA macro or API code, then paste it into the SOLIDWORKS macro editor and run it yourself. Neither route is an official Dassault Systèmes or Anthropic integration, so you test on copies of your files and check every model, drawing and macro Claude produces before you use it.
For every server, its setup and its data risks, see our guide to SOLIDWORKS MCP servers.
How do you connect Claude to SOLIDWORKS with an MCP server?
Here is the route with one public example, SolidworksMCP-python, an MIT-licensed community project:
- Check the PC. You need Windows 10 or 11 and SOLIDWORKS installed and opened at least once. The project says it is tested on SOLIDWORKS 2026; earlier versions may work but are untested.
- Install Claude. Claude Desktop runs on Windows; Claude Code works too.
- Run the setup. In PowerShell, install the uv tool, open a new window and run uvx solidworks-mcp-python setup. It finds Claude Desktop and Claude Code, backs up their settings and adds a SOLIDWORKS entry.
- Or add it by hand. In Claude Desktop open Settings, then Developer, then Edit Config, and add the server under mcpServers in claude_desktop_config.json.
- Test it. Open SOLIDWORKS, quit and restart Claude completely, and ask: "What model is open in SOLIDWORKS?"
From there you describe what you want, for example a bracket with four holes, and Claude calls the server's tools step by step while you watch the feature tree grow.
Can Claude write SOLIDWORKS macros without an MCP server?
Yes. Describe the task in a Claude chat, such as exporting every configuration of a part to STEP, and ask for a VBA macro. Create a new macro in SOLIDWORKS (Tools, Macro, New), paste the code into the editor and run it on a test part first. This needs no extra software, but Claude cannot see your model, so expect to paste error messages back and refine. Our article on what to check before running AI-written SOLIDWORKS macros lists the checks.
What should you check before Claude drives SOLIDWORKS?
An MCP server runs with your own Windows rights, so it can open, save and export any file you can reach, including PDM working folders. What Claude inspects or measures is sent to Anthropic's cloud model. Run it under a separate Windows account with copies of the files it needs, and agree a company policy first: our guide to keeping CAD files out of AI tools includes a template. Before a design you care about goes near any AI service, register it with the BORIS add-in for SOLIDWORKS, which records the file's fingerprint and a timestamp as dated proof that the design was yours.