SolidCraft Guidesource-checked notes

Automation · updated 27 Nov 2026

SolidCraft MCP: Connect Claude or Cursor to Your CAD

SolidCraft ships a Model Context Protocol server inside its CLI. That means Claude Code, Cursor or any MCP-capable agent can model in real CAD — sketch, constrain, extrude, export STEP — by calling the same commands the interface uses. Here is the exact setup, including the Windows path problem that catches everyone.

Server commandsolidcraft-cli mcpClaude Codeclaude mcp add solidcraft -- solidcraft-cli mcpAttach mode--connect drives the running appWin default pathC:\Program Files\SolidCraft\solidcraft-cli.exe

The feature no other mainstream CAD has

SolidCraft's CLI ships a Model Context Protocol server. MCP is the standard that lets an AI client — Claude Code, Cursor, Claude Desktop, or your own agent — call tools in another program. In practice it means an agent can create a design, sketch on a plane, constrain it, extrude it, fillet it and export a STEP file, by calling the same commands your mouse clicks.

The key architectural point: everything you can click is a command with JSON parameters, and the GUI, dialogs, scripts, the CLI, the control channel and the MCP server all execute those commands. There is no second, reduced API for agents.

Connect in one command

For Claude Code the registration is a single line:

claude mcp add solidcraft -- solidcraft-cli mcp

Any other MCP client takes the same pair — command solidcraft-cli, argument mcp — in whatever configuration shape that client uses:

{
  "mcpServers": {
    "solidcraft": {
      "command": "solidcraft-cli",
      "args": ["mcp"]
    }
  }
}

Where that JSON file lives depends on the client and on the client's version. Check your client's MCP documentation for the path; the contents above are the part that matters.

The Windows path trap

If you installed SolidCraft with the Windows installer, the CLI may not be on your PATH. Use the full path in the MCP configuration instead of the bare command:

{
  "mcpServers": {
    "solidcraft": {
      "command": "C:\\Program Files\\SolidCraft\\solidcraft-cli.exe",
      "args": ["mcp"]
    }
  }
}

That default path comes from the project's own documentation. If you chose a different install folder, or built from source with cargo, point at your binary instead.

Headless, or driving the app you are watching

The MCP server can work two ways:

  • Headless. Started on its own, the server runs its own design session in the background. Good for scripted jobs, batch exports and CI: nothing pops up, the agent does the work, the files appear.
  • Attached. Started with --connect, the server drives an already-running SolidCraft instance. You watch the geometry appear in the viewport as the agent works — by far the fastest way to learn what an agent can and cannot do with CAD.

Start with attached mode. Watching three failed attempts teaches you more about prompt design than any guide.

Check the connection before you trust it

The command registry is public and printable:

solidcraft-cli commands

Ask your agent to run that first. If it returns the list of commands grouped by area, the transport works. If it fails, the problem is almost always the binary path, not the agent.

You can also test a script path without any AI at all, using the examples that ship with the repository:

solidcraft-cli run examples/bracket.json --out bracket.step

If that produces a STEP file, your CLI is healthy and the remaining problem is MCP configuration.

What to ask an agent first

  1. A parametric box for a PCB. Give the board dimensions and wall thickness, ask for a shelled enclosure with four bosses. Short, checkable, uses shell and pattern.
  2. A bracket from a drawing description. Two holes, a 90-degree bend, a fillet. Ask for the STEP file and the volume, then verify the number by hand.
  3. A parameter sweep. Ask it to rebuild the same part at three wall thicknesses and export three files. This is where agents beat humans outright.

Avoid opening with "design me a chair". Open-ended aesthetic work is the weakest case for a command-driven agent and the fastest way to conclude, wrongly, that the feature does not work.

Scripts and MCP are not the same thing

A script is a JSON list of commands run by solidcraft-cli run — deterministic, versionable, reviewable in a pull request. MCP is an interactive session where a model chooses the commands. Use scripts for anything you will do twice, and MCP for exploration. The same command set sits underneath both, which is why a successful MCP session can be turned into a script.

Risk, stated plainly

An agent with CAD tools can overwrite your files. Work on copies, keep designs in version control as .sc plus exported STEP, and prefer headless sessions on throwaway directories for experiments. Plugin code is a separate mechanism with its own approval step — merely enabling plugins does not execute them, and running a plugin requires an explicit request with a hash approval. Agents are not granted a bypass for that.

Troubleshooting, in order

  • Agent says the tool does not exist: binary path wrong, or the MCP client needs a restart to pick up config changes.
  • Tool exists, every call errors: the server started but the CLI cannot find its resources — run solidcraft-cli commands in the same shell to confirm the environment.
  • Nothing appears on screen: you are in headless mode. Add --connect if you want to watch.
  • Model produces nonsense geometry: give it a dimensioned sketch description and ask it to constrain before extruding. Free-form instructions fail; dimensional ones succeed.

Frequently asked

What is SolidCraft MCP?

It is a Model Context Protocol server built into solidcraft-cli. It lets an AI client such as Claude Code or Cursor call SolidCraft's modelling commands directly, so the agent can sketch, constrain, extrude and export without a separate plugin.

How do I connect SolidCraft to Claude Code?

One command: claude mcp add solidcraft -- solidcraft-cli mcp. If the CLI is not on your PATH, use the full executable path instead of solidcraft-cli, for example C:\Program Files\SolidCraft\solidcraft-cli.exe.

Does the agent need the SolidCraft window open?

No. Headless mode runs its own design session in the background, which suits batch jobs and CI. Add --connect if you want the agent to drive a running app so you can watch the model being built.

Can an AI agent export a STEP or STL file?

Yes. Export is part of the same command set: the project's own example is solidcraft-cli run examples/bracket.json --out bracket.step. Through MCP the agent calls the same commands, and the file lands where you tell it to.

Is it safe to let an agent drive CAD?

Work on copies and keep designs under version control. An agent with file access can overwrite a design. Plugin code is a separate path with its own explicit approval, but modelling commands will happily save over your work if you point them at it.

MCP server behaviour, the Claude Code registration line, the Windows default install path and the bracket example command were read from the official repository README on 27 Nov 2026. MCP client configuration formats differ by client and version; check your client's documentation for the config file location.