AI CAD Guide
INTERACTIVE MCP CONFIG GENERATOR

SolidCraft MCP & Claude Setup Generator

Generate ready-to-paste SolidCraft MCP configurations for Claude Code, Claude Desktop, OpenAI Codex CLI, and Cursor IDE, plus copy-ready parametric 3D CAD prompts.

Run in your terminal

  

Generated locally in your browser. Verify that solidcraft-cli is installed before starting your agent session.

NEMA 17 Motor Mount

Create a 42mm x 42mm parametric plate, 4mm thick, with a 22mm center bore, four M3 mounting holes at 31mm spacing, and 2mm corner fillets.

Snap-Fit Electronics Box

Build an open-top enclosure 90mm x 60mm x 32mm with 2.4mm walls, 3mm outer fillets, and four 6mm corner standoffs for M2.5 screws.

Desk Cable Comb

Design a 110mm x 28mm cable organizer bar, 12mm tall, with six 6.5mm rounded slots spaced evenly along the front edge and two countersunk mounting holes.

How SolidCraft MCP Connects AI Agents to Parametric CAD

Unlike mesh-only text-to-3D generators that output non-editable triangle soup, SolidCraft ships with a native Model Context Protocol (MCP) server built directly into solidcraft-cli. When you connect Claude Code, Claude Desktop, OpenAI Codex CLI, or Cursor IDE, the AI assistant executes the exact same B-rep engine commands as the desktop toolbar—creating constrained 2D sketches, extruding exact solids, applying fillets, measuring clearances, exporting STEP/3MF/STL, and saving an editable feature timeline locally.

Workflow diagram showing Claude, OpenAI Codex, or Cursor sending commands through solidcraft-cli mcp to create editable B-rep 3D CAD parts

For upstream protocol and engine command specs, see the official SolidCraft MCP guide on solidcraft.io and the tangency-labs/solidcraft docs/mcp.md reference on GitHub.

Step-by-Step Setup for Claude Code, Claude Desktop, Codex & Cursor

  1. Install SolidCraft & Verify solidcraft-cli: Install the official desktop package or CLI binary using our SolidCraft Install Guide, then verify your terminal can find the binary by running solidcraft-cli --version.
  2. Try Automatic Setup (Optional Shortcut): SolidCraft includes a built-in setup helper—preview detected clients safely with solidcraft-cli mcp setup --dry-run, then run solidcraft-cli mcp setup to write configs automatically.
  3. Or Generate Your Exact Configuration Above: Select your AI client (Claude Code, Claude Desktop, OpenAI Codex CLI, or Cursor IDE) and operating system in the interactive generator at the top of this page, set your workspace directory, and click Copy Configuration.
  4. Apply the Config & Restart Your Client:
    • Claude Code (CLI): Run claude mcp add solidcraft -- solidcraft-cli mcp . inside your CAD workspace directory. On Windows, quote the full path to solidcraft-cli.exe so stdio launching succeeds reliably.
    • Claude Desktop (JSON): Merge the mcpServers.solidcraft JSON block into claude_desktop_config.json, then completely quit and relaunch Claude Desktop so the stdio server initializes.
    • OpenAI Codex CLI (solidcraft mcp codex): Register directly via codex mcp add solidcraft -- solidcraft-cli mcp ., or add the [mcp_servers.solidcraft] block generated above to ~/.codex/config.toml.
    • Cursor IDE: Save the JSON output to .cursor/mcp.json in your project root, open Cursor Settings → MCP, and confirm the solidcraft tool list turns green.
  5. Run a Verification Prompt: Copy one of the starter parametric prompts above—or customize millimeter dimensions in our SolidCraft CLI & Parametric Prompt Builder—and confirm the agent creates a .sc file and reports exact bounding-box dimensions back to you.

Headless Mode vs. Live Desktop Bridge (solidcraft-cli)

Because SolidCraft's MCP server sits directly on top of solidcraft-cli, you can choose between headless automation and live visual collaboration:

  • Headless Mode (solidcraft-cli mcp): Runs an isolated stdio session with zero GUI overhead—ideal for Git-tracked hardware scripts, batch exports, and fast generation.
  • Load Existing Project (solidcraft-cli mcp --in part.sc): Starts the MCP session with an existing .sc file already loaded so Claude or Codex modifies your current part cleanly.
  • Live GUI Bridge (solidcraft --control 7878 & + solidcraft-cli mcp --connect 127.0.0.1:7878): Connects your AI client to the open desktop app so you watch sketches, extrusions, and fillets appear live in the 3D viewport. See our complete SolidCraft CLI Cheat Sheet for full examples.

Prompt Engineering Tips for Reliable SolidCraft MCP Parts

Getting clean, printable geometry on the first prompt works best when you speak like a mechanical engineer rather than a concept artist:

  1. Declare Units & Named Parameters First: Always specify millimeters (mm) and ask the agent to define named parameters (wall_thickness = 2.4, bolt_dia = 3.2, mount_spacing = 31.0) before drawing sketches so later revisions take one edit.
  2. Build Feature by Feature: Ask the agent to create the base plate extrusion first, verify bounding-box dimensions, then add mounting bores, standoffs, and edge fillets last. Applying fillets at the end prevents downstream sketch-reference issues.
  3. Include 3D-Printing Clearances Explicitly: Tell Claude or Codex your printer tolerance (for example, add 0.2mm clearance to M3 through-holes so 3.2mm diameter or leave 0.3mm radial gap for snap-fit lids).
  4. Request Verification & Export: End your prompt with "Measure the final bounding box, verify wall thickness is at least 2.4mm everywhere, save the .sc file, and export a .step or .3mf file for OrcaSlicer."

Troubleshooting Common SolidCraft MCP Errors

  • solidcraft-cli: command not found or ENOENT: GUI clients like Claude Desktop often launch with a minimal system PATH that excludes Homebrew or custom user folders. Switch to an absolute executable path—C:\Program Files\SolidCraft\solidcraft-cli.exe on Windows, /opt/homebrew/bin/solidcraft-cli on Apple Silicon Macs, or /usr/local/bin/solidcraft-cli on Intel Macs.
  • Files Saved in an Unexpected Directory: Avoid passing a bare . inside global config files like claude_desktop_config.json or ~/.codex/config.toml. Instead, enter an explicit folder path (such as /Users/you/cad-projects or C:\Users\you\cad-projects) in the Workspace Folder field above.
  • Client Shows Server Connected but No Tools Appear: Make sure your solidcraft-cli binary is up to date from the official GitHub Releases page and test running solidcraft-cli mcp briefly in a terminal to verify it starts cleanly without missing library errors.
  • Also Using FreeCAD With Claude or Codex? Compare setup and RPC bridge workflows in our FreeCAD MCP Setup Guide, or read SolidCraft vs FreeCAD vs Fusion 360 and return to the SolidCraft Guide.

SolidCraft MCP, Claude & Codex FAQ

What is the exact command to add SolidCraft MCP to Claude Code?

The standard command is: claude mcp add solidcraft -- solidcraft-cli mcp . (run inside your CAD project directory, or use the full quoted path to solidcraft-cli.exe on Windows).

Does SolidCraft MCP work with OpenAI Codex CLI?

Yes. Select OpenAI Codex CLI in the generator above to copy either the one-line command (codex mcp add solidcraft -- solidcraft-cli mcp .) or the exact [mcp_servers.solidcraft] block for ~/.codex/config.toml.

Does SolidCraft MCP work with Cursor as well as Claude?

Yes. Select Cursor IDE in our configuration generator above to output the exact .cursor/mcp.json snippet for connecting Cursor to solidcraft-cli mcp.

Do my 3D CAD files get uploaded to a cloud server when using SolidCraft MCP?

No. The SolidCraft MCP server runs completely locally over stdio via solidcraft-cli. Your .sc project files and STEP/STL exports remain on your own computer.

Can I manually edit a 3D model after Claude or Codex generates it in SolidCraft?

Yes. Every part an AI agent builds through SolidCraft MCP is stored as a real parametric feature timeline, so you can open the .sc model in SolidCraft and edit dimensions, fillets, or hole spacing manually at any time.

What does solidcraft-cli do outside MCP?

solidcraft-cli powers headless CAD automation, local scripting, geometry inspection, and format exports (STEP/STL) in addition to running the built-in stdio MCP server.