All articlesTechnology

How to Connect ChatGPT to SolidWorks (GPT-6 Astra, 2026)

Branislav HrivnákBranislav Hrivnák16 min read
ChatGPT and SOLIDWORKS wordmarks above three boxes: Codex on the PC with codex mcp add, chatgpt.com through OpenAI's Secure MCP Tunnel, and no connection at all with a VBA macro pasted into SolidWorks

Connecting ChatGPT to SolidWorks means running a community MCP server on the Windows PC that has SolidWorks, and pointing an OpenAI client at it. The server is the same one Claude users install. What changes is the client: Codex and the ChatGPT desktop app launch a local server directly, the chatgpt.com website only reaches it through OpenAI's Secure MCP Tunnel, and the route most people searching for this actually want, a macro written by ChatGPT, needs no connection at all. We registered a SolidWorks server with Codex CLI on this machine, ran OpenAI's tunnel client up to the point where it asks for an API key, and read the installer that claims to set ChatGPT up for you. We did not have SolidWorks or a paid OpenAI account, and the article says so wherever that matters.

Our articles are still written by humans!

Get human written articles in your Google feed.

Add as preferred source TechDraw AI, opens in a new window
FreeUpload a photo · freeGet the drawing a chatbot cannot give youPhotograph the part and get real geometry with real dimensions, not a picture of a drawing. Your first drawing is free, no card needed.Drop a photo here, or click to choose. JPG, PNG or HEIC.

What connecting ChatGPT to SolidWorks means

Three different things hide behind this phrase, and most tutorials mix them up. The first is ChatGPT driving SolidWorks: an AI client calls tools such as “sketch a circle” or “extrude 10 mm” and the application does it, live, on your screen. That takes an MCP server, a small program that wraps the SolidWorks COM API and exposes it over the Model Context Protocol. The second is ChatGPT reading what SolidWorks made: you give it a STEP, DXF or PDF and ask questions, which needs nothing installed. The third, and by far the oldest, is ChatGPT writing a macro that you run yourself.

Only the first is a connection, and that is the part this article walks through, because it is where people get stuck. The protocol does not care which model is on the other end: the servers written for Claude expose the same tools to Codex. What differs between Anthropic and OpenAI is the client landscape, and that difference decides whether your server ever shows up.

A SOLIDWORKS Design Premium 2026 window with a robot assembly in the model area and, on the right, a SOLIDWORKS Labs panel in which Dassault's AURA assistant answers an engineer's question
This is not ChatGPT. It is AURA, Dassault's own assistant inside SOLIDWORKS Design 2026. Dassault has shipped no ChatGPT or OpenAI connector. Screenshot: Dassault Systèmes, from solidworks.com.

Start from that fact. On solidworks.com the AI story is AURA, which answers questions about your design, and LEO, which turns prompts into parametric CAD, both inside SOLIDWORKS Design with Cloud Services. Neither page mentions OpenAI, ChatGPT or MCP. If you are on that licence, try LEO before you install anything from GitHub. The rest of this is for everyone who wants ChatGPT specifically, or is not on that licence.

The three routes, and which client each needs

OpenAI's own Codex documentation states the split in two sentences: ChatGPT web can use remote MCP-backed tools supplied by plugins, and local Codex clients can also connect directly to MCP servers and share their configuration. It then names the local clients: the ChatGPT desktop app, Codex CLI and the IDE extension support MCP servers and share MCP configuration for the same Codex host.

OpenAI's Model Context Protocol page for Codex CLI, stating that ChatGPT web uses remote MCP-backed tools supplied by plugins while local Codex clients connect directly to MCP servers, and that the ChatGPT desktop app, Codex CLI and IDE extension share MCP configuration
The sentence that decides your setup, on learn.chatgpt.com: the website uses remote tools, the local Codex clients connect directly and share one config. Captured 10 October 2026.

Which OpenAI client can reach a SolidWorks server, as documented on 10 October 2026

ClientLocal stdio server on the SolidWorks PCServer on another PC on your LANWhat it needs
Codex CLIYes, codex mcp addYes, if the server speaks Streamable HTTPA ChatGPT sign-in or API key; runs on Windows
ChatGPT desktop app and Codex IDE extensionYes, same config.toml as the CLISame as the CLIThe desktop app installed on the SolidWorks PC
chatgpt.com websiteOnly through Secure MCP TunnelOnly through Secure MCP TunnelA Platform organization, a tunnel id, a runtime API key, tunnel-client running
Responses API (your own code)tunnel_id in the mcp toolserver_url if public, else tunnel_idAPI billing; each tool call needs approval by default
Our GPT-6 Astra and AutoCAD guide from September said the website cannot reach a local server at all. That was true of the connectors it described, and it is no longer the whole story: OpenAI's tunnel-client has been public since December 2025 and the Plugins docs now list a Tunnel option next to the public URL. We have updated that article. Codex remains the simpler path.

Before you start

What every route in this article requires

RequirementWhy
Windows 10 or 11 with SolidWorks installed, licensed and openSolidWorks runs only on Windows and every server drives it through COM, which only exists there
The SolidWorks version your server was written forHarrierPigeon: 2022 or later, tested on 2025. SolidPilot: 2026. alisamsam: 2023 to 2025. haunchen: tested on 2021 only
Codex CLI, the ChatGPT desktop app or the Codex IDE extension on that PCThese are the clients that launch a local server. The website is not
Python on Windows itself, unless the installer brings its ownThe servers use pywin32. Run them under WSL and they cannot see SolidWorks. HarrierPigeon's installer ships uv, so Python is not needed
Admin rights to match SolidWorksHarrierPigeon's README: if SolidWorks runs elevated, run the AI client elevated too, because COM will not cross that boundary

One thing to settle before any of it: what you want the model to do. If the answer is “write me a macro”, skip to the macro route. If it is “answer questions about my part”, export a STEP and read can GPT-6 Astra read CAD files. The five steps below are for the one case that needs wiring: the model building and editing in a live SolidWorks session.

Step 1: pick a server that knows about ChatGPT

We listed the SolidWorks MCP servers and read their code for the Claude version of this guide on 29 September. For ChatGPT the useful question is narrower: which of them say anything about OpenAI clients, and what exactly. Here is what each repository says as of 10 October 2026.

SolidWorks MCP servers and what their own documentation says about OpenAI clients, checked 10 October 2026

ServerStars, licence, SolidWorksWhat it says about ChatGPT or Codex
HarrierPigeon/Solidworks-MCP-Server21, MIT, 2022 or later (tested on 2025)Requirements list Claude Desktop, Codex, or the ChatGPT desktop app. The installer auto-detects Codex or ChatGPT desktop and registers the server. Codex covers the local Codex clients and ChatGPT desktop MCP configuration; it does not enable the hosted ChatGPT web app
haunchen/solidworks-mcp4, MIT, 2021 (only version tested)Lists Codex CLI among compatible clients with a config.toml block, url = http://<sw-host>:8080/mcp, and the OpenAI Agents SDK as a framework
SolidPilot (eyfel/mcp-server-solidworks)382, AGPL-3.0, 2026Not a Claude-only plugin; OpenAI-based agents are also targeted. The only adapter shipped is adapters/claude; the README says any MCP client can point at the same server.py
alisamsam/Solidworks-MCP153, MIT, 2023 to 2025No mention of OpenAI, ChatGPT or Codex anywhere in the README. Last commit March 2026
ashuein/solidworks-agent2, MIT, add-inNot MCP. A task-pane add-in with its own chat, OpenAI and Anthropic providers, default model gpt-5.4, per-action approval. Billed through an API key, not a ChatGPT plan
SWAPI Pilot (arthurle3210)31, no licence stated, anyDocumentation search only. Works in Codex like any stdio server; it never touches your model
The Requirements section of the HarrierPigeon Solidworks-MCP-Server README on GitHub: Windows, SolidWorks 2022 or later tested on 2025, and Claude Desktop, Codex, or the ChatGPT desktop app, followed by the start of the Installation section
The only SolidWorks server whose requirements name the ChatGPT desktop app. github.com/HarrierPigeon/Solidworks-MCP-Server, captured 10 October 2026.

Two honest notes on that table. HarrierPigeon's server has 21 stars against SolidPilot's 382; it is the ChatGPT-aware one, not the popular one, and we have not run it. And the stars on alisamsam's server, the one in most demo videos, say nothing about ChatGPT compatibility either way. MCP is MCP; it should work from Codex. We just cannot point you at anyone who has shown it.

If you only want ChatGPT to answer SolidWorks API questions and write better macros, the documentation servers are the low-risk pick: they give the model the real method signatures without giving it control of anything. Register SWAPI Pilot with Codex the same way as any server below.

Step 2: install it on the SolidWorks PC

HarrierPigeon's README offers a one-line PowerShell install that fetches a script from GitHub and runs it. Before running anything like that we read the script, and it is worth describing because it is the only place that documents what “set up for ChatGPT” means in practice.

The Easy install section of the HarrierPigeon README: open PowerShell and paste a one-line command that downloads install.ps1 from raw.githubusercontent.com, with the explanation that the script installs uv, downloads the latest release and auto-detects Claude Desktop and Codex or ChatGPT desktop
The one-line install. It is convenient, and it is also a script from the internet run with execution policy bypassed, so read it first. Captured 10 October 2026.
Two excerpts of install.ps1 set in type: a Test-CodexInstalled function that looks for the codex command or a ChatGPT desktop package under LOCALAPPDATA, and the registration block that backs up config.toml, removes any existing solidworks entry and runs codex mcp add solidworks with the virtual environment's Python and the server path
What the installer does for ChatGPT, from its source: detect, back up, then codex mcp add. Lines 56 to 67 and 211 to 228 of scripts/install.ps1, 10 October 2026.

What the script does, in order: installs uv, which brings its own Python; downloads the latest release into %LOCALAPPDATA%\SolidWorksMCP; creates a virtual environment; then looks for clients. Codex counts as detected if the codex command is on your PATH or a ChatGPT desktop package exists under %LOCALAPPDATA%\Packages. For registration, though, it needs the command: it backs up ~\.codex\config.toml, removes any existing solidworks entry, and runs codex mcp add solidworks -- <venv python> <server.py>. If you have the ChatGPT desktop app but no Codex CLI, it prints instructions instead: “In ChatGPT desktop, use Settings > MCP servers > Add server > STDIO”, with the command and argument to paste. We could not verify that menu path ourselves, since the app was not on this machine; it is the script author's wording.

For the manual route, or any other server: clone it, install its requirements with pip install -r requirements.txt, and note the full path to its entry script. SolidPilot also needs its C# layer built with MSBuild first. Keep the path free of spaces if you can; it saves a round of quoting trouble in the next step.

Step 3: register it with Codex

This is the one command the whole article turns on, and it is the same on Windows and on a Mac. The syntax from OpenAI's docs is codex mcp add <name> -- <command> for a local process, and codex mcp add <name> --url <url> for a server reached over HTTP.

OpenAI's Codex MCP page: config.toml at ~/.codex/config.toml is shared by the ChatGPT desktop app, Codex CLI and IDE extension; the codex mcp add syntax with --env and a stdio server command; codex mcp list, codex mcp --help and codex mcp login; and /mcp in the terminal UI
The syntax and the verification commands, from learn.chatgpt.com. Note the line about the desktop app, CLI and IDE extension sharing this configuration. Captured 10 October 2026.
codex mcp add solidworks -- python C:\Tools\Solidworks-MCP-Server\server.py

We ran exactly that on this Mac with Codex CLI 0.162.1, plus a second entry for a server on another machine, the way haunchen's README shows it. The Windows path is a placeholder, because SolidWorks is not installed here; the commands and the file they write are real.

Terminal transcript: codex --version prints codex-cli 0.162.1; codex mcp add solidworks with a Python command prints Added global MCP server solidworks; codex mcp add solidworks-lan --url http://192.168.1.20:8080/mcp prints the same; codex mcp list shows both enabled, the stdio one with Auth Unsupported; and cat ~/.codex/config.toml shows the two mcp_servers tables
Both forms, on this machine, 10 October 2026. The stdio entry shows Auth as Unsupported, which is normal: a local process has nothing to log in to. The LAN entry warns it may need a login, because Codex cannot know until it connects.

Three things in that output matter. The stdio server's Auth column reads Unsupported; that is not an error, local processes do not authenticate. The config file writes the arguments in single quotes, so the backslashes in a Windows path survive as typed. And the file is ~/.codex/config.toml, which is why the ChatGPT desktop app and the IDE extension see the server too without any further setup, as OpenAI's page says.

[mcp_servers.solidworks]
command = "python"
args = ['C:\Tools\Solidworks-MCP-Server\server.py']

[mcp_servers.solidworks-lan]
url = "http://192.168.1.20:8080/mcp"

Set the model explicitly if you want a particular one. Codex takes -m gpt-6-astra for a session, or a model line in the same config.toml; a config file written before a release can pin an older model. Which model you use changes how well it plans a part. It changes nothing about whether the server connects.

Step 4: check it is there, then build something small

  1. Open SolidWorks first. HarrierPigeon's README says starting it before the AI client is the most reliable order, and alisamsam's server attaches to a running instance rather than launching one.
  2. Run codex mcp list to see the entry, then start codex and type /mcp. OpenAI documents the same /mcp in the desktop app's composer and a gear menu entry, MCP servers, in the IDE extension.
  3. Ask for something you can check with your eyes in five seconds. The installer's own suggestion is a 50 mm cube. Ours would be a 70 by 49 by 1.5 mm plate, because it is the part we have ground truth for.
  4. If the tools do not appear, it is the path nine times out of ten: the Python the config names is not the Python with pywin32, or the script path is wrong. codex mcp get solidworks shows what is stored.

What a working session looks like is in this clip, and it is also the only ChatGPT-side SolidWorks demonstration we could find that is not a macro tutorial. Matthew Stewart found a broken SolidWorks MCP server, fixed it, wrote his own C# add-in as the bridge, and connected it to Codex. He gives Codex a screenshot of a SolidWorks drawing and asks it to rebuild the 3D part. His own description calls it a hobby project and the part simple, which is the right level of claim.

Codex rebuilding a simple part in SolidWorks from a drawing screenshot, through the author's own C# add-in. Matthew Stewart, February 2026, 3 minutes. An independent hobby test, not a vendor demo.

Step 5 (optional): reach it from chatgpt.com through a tunnel

Skip this if Codex does what you need. It exists for one situation: you want the server available in the ChatGPT website, for example so a colleague on another machine can use it, and you cannot or will not expose a public HTTPS endpoint. OpenAI's answer is Secure MCP Tunnel: a daemon called tunnel-client runs on the SolidWorks PC, opens an outbound HTTPS connection to OpenAI, pulls queued MCP requests, forwards them to the local server and returns the answers. No inbound port, no public URL.

OpenAI's Secure MCP Tunnel documentation page: connect private MCP servers to supported OpenAI products without exposing them to the public internet, with a note that it does not support public plugin submission, and the explanation that tunnel-client is an outbound-only connection from inside your network
OpenAI's description: an outbound-only connection from a host inside your network to an OpenAI-hosted MCP endpoint, for ChatGPT, Codex and the Responses API. Captured 10 October 2026.
The openai/tunnel-client repository on GitHub with 551 stars, 111 forks, 19 tags and 622 commits, described as a customer-run client for Secure MCP Tunnel that connects private or localhost MCP servers to ChatGPT, Codex, the Responses API and AgentKit
The client is open source under Apache-2.0. Release v0.0.16 of 6 October 2026 ships Windows, macOS and Linux builds. Captured 10 October 2026.

What you need, from OpenAI's docs and the client's end-user guide: a Platform organization (the API side of OpenAI, separate from your chat plan), a tunnel_id created in Tunnels management, and a runtime API key whose permissions are restricted to Tunnels Read and Use. The guide is explicit that the daemon should never get an admin key. On Windows you download the release zip; on a Mac the supported route is brew install openai/tools/tunnel-client, which is what we did.

tunnel-client init --sample sample_mcp_stdio_local --profile solidworks \
  --tunnel-id tunnel_<your id> --mcp-command "python C:\Tools\Solidworks-MCP-Server\server.py"
tunnel-client doctor --profile solidworks --explain
tunnel-client run --profile solidworks
Terminal transcript: tunnel-client init creates a profile named solidworks from the sample_mcp_stdio_local sample and prints a note to create the ChatGPT connector only while tunnel-client is running; tunnel-client doctor then passes the config and profile checks and fails control_plane_api_key because CONTROL_PLANE_API_KEY is not set, with numbered steps to create a runtime key
As far as we could go without a Platform key, on this Mac, 10 October 2026. The init preflight had already refused a command whose script did not exist, which is a good sign about how carefully the client checks its inputs.

The transcript shows two things worth knowing before you try it. The client checks that the MCP command actually exists before it writes a profile; our first attempt with a placeholder path was refused. And doctor tells you precisely what is missing and where to get it. From there, the ChatGPT side is documented on OpenAI's plugin pages.

OpenAI's Connect and test your plugin page, Add the MCP server: account and workspace policies apply; go to ChatGPT Plugins, select the plus button then Add custom MCP server, enter a name, choose a public endpoint with the /mcp path or select Tunnel and enter its tunnel_id, configure authentication, review the risk warning and select I understand and want to continue, then Create as a plugin
The seven steps on the ChatGPT side, including the Tunnel option and the risk warning you have to accept. developers.openai.com, captured 10 October 2026.
  1. Start tunnel-client run on the SolidWorks PC and leave it running. OpenAI's note: create or verify the connector only while it is running, and keep it up for every call from ChatGPT.
  2. In ChatGPT, go to Plugins, select the plus button, then Add custom MCP server.
  3. Under Connection choose Tunnel, pick the tunnel if ChatGPT lists it or paste the tunnel_id.
  4. Configure authentication, read the risk warning, confirm, and Create as a plugin. Review the tools it discovered.
  5. If the tunnel does not appear, OpenAI's troubleshooting is that it must be associated with the ChatGPT workspace, not only with a Platform organization, and the creator needs Tunnels Read and Use.
OpenAI's Secure MCP Tunnel page, Connect from ChatGPT and Connect from the Responses API: the ChatGPT steps, a note that the tunnel must be associated with the target workspace, and a curl example calling the Responses API with model gpt-6-astra and an mcp tool that uses tunnel_id instead of server_url
The same tunnel from code: OpenAI's own example passes tunnel_id to the mcp tool, with gpt-6-astra as the model. Captured 10 October 2026.
We did not complete a tunnel. Doing so needs a Platform organization and a key we were not going to create for an article, and SolidWorks itself was not here to be driven. What we can say is that the client installs, validates and fails exactly as its documentation describes, and that the ChatGPT steps are documented by OpenAI rather than inferred by us.

Which ChatGPT plan you need

This is the question we could not answer from a primary source, so we will not pretend to. OpenAI's page for adding a custom MCP server says only that account and workspace policies apply. Its help centre article on connectors returned an error on every attempt we made to read it. The third-party guides we checked contradict each other: one says custom servers are for Business, Enterprise and Edu workspaces; another says individual Plus and Pro accounts get read-only tools; two more say Plus and Pro get everything. Open your own Plugins page and look for the plus button; that is the real answer for your account.

What is not in doubt: the Codex route needs a Codex sign-in, which comes with ChatGPT plans or an API key; the tunnel route needs a Platform organization whatever chat plan you have; and the Responses API route is billed per token. Free ChatGPT accounts can do the macro route below and nothing else on this page.

The route that needs no connection: macros

Type “chatgpt solidworks” into Google and the suggestions that follow are macro, api and plugin, in that order of age. People have been asking ChatGPT to write SolidWorks VBA since 2023, long before MCP existed, and it still covers most of what a working engineer wants from “AI in SolidWorks”: rename every file in a folder, export every drawing to PDF with the revision in the name, write custom properties, build a bolt from a table.

A GrabCAD tutorial page titled SOLIDWORKS Making SolidWorks Makro with ChatGPT, Advanced, by NonCad Keys, dated 29 July 2023, describing an automatic bolt macro driven by an Excel database, with 3,726 views and 4 likes
The oldest form of this: a July 2023 GrabCAD tutorial where a ChatGPT-written macro builds bolts from an Excel table. Captured 10 October 2026.

The method is the same in every tutorial. Describe the task, ask for a SolidWorks VBA macro, open SolidWorks, Tools, Macro, New, paste, run. The thing that goes wrong is also the same every time: the SolidWorks API is enormous, and a model writing from memory invents method names, swaps argument order and mixes up versions. Three fixes, cheapest first: record the action once with the macro recorder and ask ChatGPT to generalise that code rather than write from nothing; paste the relevant API help page into the chat; or, if you are in Codex anyway, register SWAPI Pilot so the model looks up the real signature before it writes.

Generate, debug and run a SolidWorks VBA macro with ChatGPT, including the debugging loop when the first version fails. Ankur Dhiman, CADxAI, October 2025, 2 minutes.

Be honest about what this route is and is not. It is ChatGPT writing code that you run; the model never sees SolidWorks and never learns whether the macro did what you meant. It is also the only route that involves no third-party server, no plan beyond the chat window and no trust in anyone's GitHub, which is why it is still the one we would hand to a colleague first.

What we tested, and what we could not

Exactly what this article is based on, 10 October 2026

ClaimHow we know
codex mcp add registers a stdio and an HTTP SolidWorks server and writes config.tomlRan it on this Mac with Codex CLI 0.162.1; the transcript above is unedited apart from the placeholder paths
tunnel-client installs, creates a profile, and stops without a Platform keyRan it on this Mac, version 0.0.16 from OpenAI's Homebrew tap; doctor fails on control_plane_api_key as shown
What HarrierPigeon's installer does for ChatGPTRead scripts/install.ps1 in full; the excerpt in the figure is the detection and registration code
Which servers mention OpenAI clientsRead each README on 10 October 2026; star counts and licences from the GitHub API the same day
The ChatGPT steps for a custom MCP server and a tunnelOpenAI's own documentation, captured in the figures; not clicked through, no paid account was used
A GPT-6 model building a SolidWorks part through any of thisNot tested. SolidWorks is Windows only and was not installed here. The one independent demonstration we found is the Codex video above
What ChatGPT reads from an SLDPRTNot tested with a GPT-6 model. Our blind test of the native file, STEP, DXF and PDF was run with Claude and is in the Claude guide

What to read before you trust any of it

Everything in the Claude guide's security section applies unchanged, because the servers are the same. The two findings worth repeating: alisamsam's server ships an execute_python tool that puts Python's os module in the model's hands, and haunchen's binds to 0.0.0.0 on port 8080 with no authentication unless you set a host. Both are documented by their authors; both are defaults you have to change.

Lines 535 to 569 of solidworks_mcp/server.py on GitHub, showing the execute_python tool building an execution context that includes the SolidWorks application, win32com and the os module
The execute_python tool in alisamsam/Solidworks-MCP, captured 29 September 2026 for the Claude guide. Nothing about it changes when Codex is the caller.

The OpenAI side adds its own layer. ChatGPT shows a risk warning before it will add a custom server, and OpenAI's API documentation says the MCP tool defaults to requiring approval of each tool call, which you can relax per tool once you trust the server. The tunnel guide tells you to create the daemon's key as Restricted with only Tunnels Read and Use, never All, and never to hand the daemon an admin key. Add to that the usual rules: run against copies of your models, keep it away from PDM vaults and shared drives, and read the tool list before you install. Running a one-line installer with the execution policy bypassed is exactly the moment to have read the script first.

What it can and cannot do once connected

  • Good at: describable, repetitive modelling. Plates with hole patterns, brackets, families of a part with new dimensions, and the drawing and export chores around them. HarrierPigeon's server adds something the others lack: tools that query faces, mass properties and interference and take labelled screenshots, so the model can check its own work.
  • Good at: macros and API questions, especially with a documentation server in the loop.
  • Not good at: judgement about a physical object. The server is a command channel. The model only knows the part is 60 mm wide because you said so; the README of the ChatGPT-aware server lists “taste” and interpreting complex or degraded drawings as what it cannot do, and we agree.
  • Not good at: surviving edits. Even SolidPilot, the most ambitious server, says its references break when an upstream dimension changes.

If you came here from the AutoCAD side, the same client logic with different servers is in how to connect GPT-6 Astra to AutoCAD, and the cheaper models in how to connect GPT-6 Sol to AutoCAD. For Claude users the SolidWorks servers, with our file-reading test, are in how to connect Claude to SolidWorks.

Where this fits in a real workflow

None of these routes starts from a physical part. A server gives the model a way to make geometry; it does not give it a way to know what the geometry should be. That first step, from a photo of a part to a dimensioned drawing, is what TechDraw AI does: photograph the part, give one measurement, get a drawing you can export as DXF or DWG. SolidWorks imports a DXF straight into a sketch, and SolidPilot has a reader built to rebuild a part from exactly that kind of file. We have not tested that hand-off end to end; treat it as a route to try.

Upload a photo of a part and get a dimensioned drawing with a DXF you can open in SolidWorks. No account needed to try it.

Turn a photo into a drawing

FAQ

Frequently asked questions

Can ChatGPT connect to SolidWorks?

Yes, through a community MCP server running on the Windows PC that has SolidWorks, but the client matters more than the model. Codex CLI, the Codex IDE extension and the ChatGPT desktop app read one shared config file and can launch a local server directly. The chatgpt.com website cannot see your PC on its own; since OpenAI released Secure MCP Tunnel it can reach a local server through tunnel-client, which needs a Platform organization, a tunnel id and an API key. There is no official SolidWorks connector from either Dassault or OpenAI.

Is there an official ChatGPT plugin for SolidWorks?

No. Dassault Systèmes ships its own assistants, AURA and LEO, inside SOLIDWORKS Design, and OpenAI's plugin directory has nothing from Dassault. Everything that lets ChatGPT drive SolidWorks today is community code: an MCP server wrapping the SolidWorks COM API, or a macro ChatGPT wrote for you.

Can I use the chatgpt.com website, or do I need Codex?

For a server on your own PC, Codex or the ChatGPT desktop app is the direct route: codex mcp add solidworks -- python server.py and you are done. The website only reaches servers that are public over HTTPS or connected through OpenAI's Secure MCP Tunnel. The tunnel works, but it is a Platform feature: you create a tunnel in platform.openai.com, run tunnel-client on the SolidWorks PC with a restricted API key, then add the tunnel as a custom MCP server in ChatGPT Plugins. We ran the local half of that on this machine; it stops exactly where you would expect without a key.

Which ChatGPT plan do I need?

OpenAI's developer documentation for custom MCP servers names no plan; it says account and workspace policies apply. Third-party guides disagree with each other about whether individual Plus and Pro accounts can add custom servers or only Business, Enterprise and Edu workspaces, so check your own Plugins page rather than any of them, ours included. Codex CLI needs a ChatGPT sign-in or an API key, and Secure MCP Tunnel needs a Platform organization regardless of your chat plan.

Does this work on a Mac?

Only the client side. SolidWorks runs on Windows 10 and 11, and every server we found talks to it through Windows COM, so the server must run on the Windows PC. Codex on a Mac can reach a SolidWorks server across your LAN if the server speaks Streamable HTTP, as haunchen's does, or through a tunnel. What a Mac user can always do is give ChatGPT the STEP, DXF or PDF that SolidWorks exports.

Which SolidWorks MCP server works with ChatGPT?

Any of them in principle, because MCP is the same protocol whichever model calls it. Two name OpenAI clients explicitly: HarrierPigeon's Solidworks-MCP-Server lists Claude Desktop, Codex or the ChatGPT desktop app as requirements and its installer registers the server with Codex for you, and haunchen's solidworks-mcp documents a Codex CLI config block. SolidPilot says OpenAI-based agents are targeted but has shipped only a Claude adapter so far. alisamsam's server, the one most videos show, does not mention OpenAI at all; it should still work, we just have no evidence either way.

Can ChatGPT write SolidWorks macros?

Yes, and that is what most people searching for this actually do. ChatGPT writes VBA against the SolidWorks API, you paste it into Tools > Macro > New and run it. It needs no server, no plan beyond the chat window and no trust in third-party code. The failure mode is wrong method names and argument orders, because the API is huge and the model works from memory; pasting the relevant API help page into the chat, or using a documentation MCP server such as SWAPI Pilot in Codex, fixes most of that.

Is it safe to let ChatGPT control SolidWorks?

Treat the server as code from the internet, because it is. One popular server has a tool that runs arbitrary Python with the os module in scope; another listens on every network interface with no password by default. ChatGPT shows a risk warning before it adds a custom server and OpenAI's API requires approval of each tool call by default. Run it on copies of your models, keep it off PDM vaults and shared drives, and if you use the tunnel give its daemon a restricted key with only Tunnels Read and Use.

Sources

  1. OpenAI: Model Context Protocol in Codex (shared config, codex mcp add, /mcp)
  2. OpenAI: Secure MCP Tunnel (API docs)
  3. openai/tunnel-client on GitHub (Apache-2.0)
  4. openai/tunnel-client: end-user guide
  5. OpenAI: Connect and test your plugin (adding a custom MCP server to ChatGPT)
  6. OpenAI: MCP servers in the Responses API (server_url, tunnel_id, approvals)
  7. HarrierPigeon/Solidworks-MCP-Server (MIT)
  8. HarrierPigeon/Solidworks-MCP-Server: scripts/install.ps1
  9. eyfel/mcp-server-solidworks (SolidPilot, AGPL-3.0)
  10. alisamsam/Solidworks-MCP (MIT)
  11. haunchen/solidworks-mcp (MIT, Streamable HTTP)
  12. ashuein/solidworks-agent (MIT, in-process add-in with OpenAI and Anthropic providers)
  13. arthurle3210/swapi-pilot-solidworks-mcp (SWAPI Pilot)
  14. SOLIDWORKS: AI Built into SOLIDWORKS Design (AURA and LEO)
  15. SOLIDWORKS API Getting Started Overview (2026)
  16. GrabCAD: Making a SolidWorks macro with ChatGPT, Advanced (NonCad Keys, July 2023)
  17. Model Context Protocol: official specification and docs