User guide · Updated December 2, 2026
Setting up a local AgentCAD MCP
Install AgentCAD on your Mac, connect it to ChatGPT desktop, and open your first CAD preview. Follow the steps yourself or ask ChatGPT to walk you through them.
Before you start
MCP is the connection that lets ChatGPT call AgentCAD tools. AgentCAD runs the CAD work on your Mac and saves model files there. ChatGPT still uses its online AI service; “local” describes where the CAD tools run.
- Open the ChatGPT Mac app and sign in. Use a Work task with local computer access for this walkthrough.
- Open Terminal: press Command–Space, type Terminal, and press Return.
- Keep a browser available for the interactive model viewer.
- Allow time for the first install to download the CAD dependencies. AgentCAD needs no cloud account or AgentCAD API key for this local setup.
This guide uses AgentCAD 0.8.3 and Python 3.12. AgentCAD 0.8.3 supports Python 3.10–3.12. Do not substitute Python 3.13 or newer. The app connection instructions follow the linked OpenAI documentation; app versions and workspace policies can change which controls appear.
Have ChatGPT walk you through it
Paste this prompt into a new ChatGPT conversation. It asks ChatGPT to read this guide and give you one step at a time. You can also follow the numbered steps below yourself.
Prompt for ChatGPT
Read https://agentcad.dev/setting-up-a-local-agentcad-mcp/markdown and walk me through setting up AgentCAD in the ChatGPT Mac app as a first-time user. Give me one step at a time, starting with checking Python. Wait for my result before continuing. Explain where to click or paste each command and what success looks like. Keep installation in Terminal and connection in the ChatGPT app. Do not introduce Codex CLI setup or cloud hosting. If my screen differs from the guide, ask for a screenshot instead of guessing menu labels. Do not say the MCP is connected until an actual AgentCAD tool call succeeds.1. Check Python
In Terminal, paste the command below and press Return. Copy only the command, not a terminal prompt such as a dollar sign or your username.
Check Python 3.12
python3.12 --versionSuccess looks like Python 3.12 followed by a patch number. If you see “command not found,” install Python before continuing.
Open the downloaded .pkg and follow the installer. Python 3.12.10 is the final 3.12 release with the standard macOS installer. Close and reopen Terminal, then repeat the version check. If you already have a maintained Python 3.12 from another installer, keep it.
2. Install AgentCAD
Run these commands in Terminal, one at a time. The first creates a dedicated Python environment for AgentCAD. The second installs AgentCAD and MCP support inside it. You do not need to activate the environment or install Codex CLI.
Create the AgentCAD environment
python3.12 -m venv ~/.local/share/agentcad-local/venvInstall AgentCAD with MCP support
~/.local/share/agentcad-local/venv/bin/python -m pip install --upgrade 'agentcad[mcp]==0.8.3'Wait until the installation finishes and Terminal returns to its prompt. On a repeat run, “Requirement already satisfied” is normal. If installation ends with an error, stop and share that output with your helper.
3. Check the installation
Check the AgentCAD version
~/.local/share/agentcad-local/venv/bin/python -c 'from importlib.metadata import version; print("AgentCAD", version("agentcad"))'The output should include 0.8.3. Next check that the MCP server can load.
Check MCP support
~/.local/share/agentcad-local/venv/bin/python -c 'import agentcad.mcp.server; print("AgentCAD MCP import OK")'You should see “AgentCAD MCP import OK.” This confirms installation only. The connection is tested in step 6.
4. Create a place for your models
Run these commands one at a time to create a demo project in Documents. This keeps your models separate from the tool installation.
Create and initialize the demo project
mkdir -p ~/Documents/agentcad-demo
cd ~/Documents/agentcad-demo
~/.local/share/agentcad-local/venv/bin/agentcad init --name "My first CAD project"If the folder is already an AgentCAD project, keep it and skip initialization. Print the two full paths below. You will use them in the next steps.
Print the Python command and project folder
~/.local/share/agentcad-local/venv/bin/python -c 'from pathlib import Path; print("Python command:", Path.home() / ".local/share/agentcad-local/venv/bin/python"); print("Project folder:", Path.home() / "Documents/agentcad-demo")'Use the paths printed on your Mac. Do not copy a username from someone else’s screenshot, and do not paste the labels “Python command:” or “Project folder:” into a path field.
5. Connect AgentCAD to ChatGPT
Switch to the ChatGPT Mac app. Open Settings (Command–comma), then MCP servers. Choose Add server. These are the controls documented by OpenAI for the desktop app.
- Name: agentcad-local
- Transport: STDIO. This means the app launches a local program.
- Command: paste the full Python command path printed in step 4.
- Arguments: enter -m and agentcad.mcp in that order. If the app uses separate argument entries, add one entry for each.
- Working directory, if offered: paste the full project folder printed in step 4.
Save the server, then select Restart if the app offers it; otherwise fully quit ChatGPT with Command–Q and reopen it. The app launches the server for you. You do not need to leave a server command running in Terminal.
If Settings does not contain MCP servers or the form differs, pause here. Share a screenshot of Settings with your helper and confirm the supported connection method for your app version. Do not paste a Python command into a server URL field: local STDIO commands and remote HTTPS connections are different.
6. Test the connection
Start a new Work task with local computer access. Type /mcp to check the connected servers. Then send the prompt below, replacing PROJECT_FOLDER with the full project folder from step 4.
Test the local MCP
Use the agentcad-local MCP to call context with cwd="PROJECT_FOLDER". Report the project name, AgentCAD tool version, and saved version count. Do not change any files. If the tool is unavailable or fails, tell me that instead of using the shell as a substitute.Success means ChatGPT actually calls AgentCAD’s context tool and gets the project response. A saved setting, an import check, or a chat reply saying “connected” is not enough.
7. Open your first model
In the same conversation, send this prompt. Replace PROJECT_FOLDER with your project folder again.
Build and inspect a first model
Use the local AgentCAD MCP in PROJECT_FOLDER to create a 20 × 20 × 20 mm cube. Build it with AgentCAD, inspect the resulting STEP file, show the preview image, and give me the returned local viewer link. Report whether geometry validation passed.Open the returned viewer link on this Mac and rotate the cube. You have finished when an AgentCAD build succeeds, its inspection returns, and you can see the model. No experimental Inspect flag is needed in 0.8.3. Image display depends on your MCP client; the returned local viewer is another way to review the model.
If you get stuck
- Python command not found: finish step 1 before running the installation commands.
- Installation failed: share the last error lines from Terminal. Do not continue with a partial install.
- Server will not start: check the full Python command path and the two arguments, then restart the app.
- Server already exists: inspect and enable the existing agentcad-local entry rather than adding a duplicate.
- MCP is not visible in a task: confirm the task has local computer access and start a new task after restarting. Share the connection error or a screenshot rather than guessing settings.
- Viewer link will not open: ask the agent to check the viewer status and return its actual URL. Local viewer links must be opened on the Mac running AgentCAD.
Your tool installation stays in ~/.local/share/agentcad-local/venv and your demo files stay in ~/Documents/agentcad-demo. Closing Terminal does not delete them. You can reuse this setup for your own existing CAD project by giving AgentCAD that project’s absolute folder path.