Set Up the SolidCraft MCP Server
Written against SolidCraft v0.50.0 (released 26 November 2026). Commands and menus come from the official MCP documentation; check it if something here no longer matches your version.
SolidCraft's command-line tool, solidcraft-cli, includes a Model Context Protocol server. An AI agent connected to it models the same way you do: every MCP tool runs the same SolidCraft commands as the toolbar, so it can sketch, extrude, fillet, measure the result, take a screenshot and export STEP or STL. You need SolidCraft installed first; see How to install SolidCraft.
Quick setup: one command for every client
In the app, choose Help > Connect AI assistants…. Or run:
solidcraft-cli mcp setup # every client found on this computer
solidcraft-cli mcp setup --dry-run # show what it would write, change nothing
solidcraft-cli mcp setup --client cursor
Setup adds a solidcraft server to each client's configuration file, using the full path of solidcraft-cli, so nothing has to be on PATH. It changes only its own entries, keeps the previous file as <name>.bak, and leaves a file that does not parse alone. Restart the client afterwards. Add --live to also create solidcraft-live, a second server that drives the app you have open (see below).
Recent versions do this by themselves: when SolidCraft starts it adds the solidcraft entry to each installed client and says once which ones it connected. Settings > Assistant > Make SolidCraft available to AI apps on this computer turns that off and removes the entries it added.
--client |
Configuration file it writes |
|---|---|
claude-code |
~/.claude.json (user-scope mcpServers) |
claude-desktop |
claude_desktop_config.json in Claude's folder (Windows, macOS, Linux, Microsoft Store build) |
cursor |
~/.cursor/mcp.json |
codex |
config.toml in $CODEX_HOME or ~/.codex |
gemini |
~/.gemini/settings.json |
copilot |
~/.copilot/mcp-config.json (GitHub Copilot CLI) |
windsurf |
~/.codeium/windsurf/mcp_config.json |
vscode |
VS Code's user mcp.json |
zed |
Zed's settings.json (context_servers) |
opencode |
~/.config/opencode/opencode.json |
Connect Claude Code
claude mcp add solidcraft -- solidcraft-cli mcp
Or put this in a project's .mcp.json:
{
"mcpServers": {
"solidcraft": { "command": "solidcraft-cli", "args": ["mcp"] }
}
}
If the terminal cannot find solidcraft-cli on Windows (older installers did not add its folder to PATH), give the full path:
claude mcp add solidcraft -- "C:\Program Files\SolidCraft\solidcraft-cli.exe" mcp
Connect Claude Desktop
Open the configuration with Claude Desktop's Settings > Developer > Edit Config rather than by its path, because the Microsoft Store build keeps the file in its own folder. A Windows setup with a headless server and a live one looks like this (backslashes doubled in JSON; replace NAME, and create the folder first):
{
"mcpServers": {
"solidcraft": {
"command": "C:\\Program Files\\SolidCraft\\solidcraft-cli.exe",
"args": ["mcp", "--allow-path", "C:\\Users\\NAME\\SolidCraft-Agent"]
},
"solidcraft-live": {
"command": "C:\\Program Files\\SolidCraft\\solidcraft-cli.exe",
"args": ["mcp", "--connect", "127.0.0.1:7878", "--allow-path", "C:\\Users\\NAME\\SolidCraft-Agent"]
}
}
}
On macOS and Linux use the path of your solidcraft-cli instead. Quit Claude Desktop completely and start it again to load the servers.
Connect Cursor and other clients
Run solidcraft-cli mcp setup --client cursor (or codex, gemini, copilot, windsurf, vscode, zed, opencode). Any other MCP client works too: give it solidcraft-cli as the command and mcp as the argument. The protocol is JSON-RPC over stdio.
Two Linux packages keep the command out of PATH: with Snap use solidcraft.cli as the command, and with Flatpak use flatpak run --command=solidcraft-cli io.tangencylabs.solidcraft with mcp as the argument.
Headless or live: watch the agent in the app
solidcraft-cli mcp on its own runs a headless design session with no window. It is steadier for timing and fine for scripts. To open an existing design, use solidcraft-cli mcp --in part.sc.
To watch the agent model in the SolidCraft window, the app has to accept connections:
- Turn on Preferences > Assistant > Agents through MCP > "Let AI agents connect" (off on a new install). The app then listens on
127.0.0.1:27878, or the next free port, and only your own computer can reach it. A plainsolidcraft-cli mcpfinds the running app. - Or start the app on a fixed port and connect to it:
solidcraft --control 7878 &
solidcraft-cli mcp --connect 127.0.0.1:7878
On Windows, from PowerShell: & "C:\Program Files\SolidCraft\solidcraft.exe" --control 7878, or set it for every launch with setx SOLIDCRAFT_CONTROL_PORT 7878.
What an agent can and can't do
- Can: create and edit designs with any SolidCraft command, run several steps at once with
batch, change parameters,measurevolume and bounding box, take ascreenshot, andopen,saveandexportfiles. - Desktop only: list, switch and close tabs, read display preferences and quit the app cleanly. Headless servers reply that they need the desktop app.
- Limited on purpose: file access is confined to the design's folder unless you add folders with
--allow-path DIR. Saving a mesh or sending it to a slicer asks you first. An agent cannot change plugin access, graphics, file limits or signing settings, and closing a design with unsaved changes is refused unless it explicitly forces it.
Each tool also declares whether it is read-only or destructive, so clients that ask before running tools can show you what is about to happen.
Agent skills for better results
The project ships five Agent Skills (modeling, editing, checking, mechanisms and reporting) in the skills folder. For Claude Code, copy the folders into ~/.claude/skills/. Agents without file access can read the same documents through the skill_reference tool. With them an agent builds a part in a few batch calls and verifies each stage with measure.
Troubleshooting
- The client shows no SolidCraft tools. Restart the client after setup. Run
solidcraft-cli mcp setup --dry-runto see which file it writes, and check thatsolidcraft-cli --versionruns in a terminal. - "command not found" on Windows. Use the full path
C:\Program Files\SolidCraft\solidcraft-cli.exe. - The live server can't connect. Make sure the app is running with "Let AI agents connect" on, or with
--control 7878, and that the port in--connectmatches. - Sandboxed clients. A client that cannot read the per-launch token needs it passed with
--tokenor theSOLIDCRAFT_CONTROL_TOKENenvironment variable. - The agent can't save or export. Add the target folder with
--allow-path; the folder must already exist.
Next steps
- Install SolidCraft on Windows, macOS, Linux or the web
- SolidCraft tutorial: how a part is built
- SolidCraft vs Fusion 360 and SolidCraft vs FreeCAD
FAQ
What is the SolidCraft MCP server?
It is a Model Context Protocol server built into SolidCraft's command-line tool. Run solidcraft-cli mcp and an AI client such as Claude Code or Cursor can create sketches, add features, measure, take screenshots and export files with the same commands as the SolidCraft toolbar.
What is the fastest way to connect SolidCraft to Claude?
Run solidcraft-cli mcp setup, or use Help > Connect AI assistants… in the app. It adds a solidcraft server to every supported client it finds on your computer. Restart the client afterwards. For Claude Code alone, claude mcp add solidcraft -- solidcraft-cli mcp also works.
Can I watch the AI model in the SolidCraft window?
Yes. Start the app with its control channel (solidcraft --control 7878) and point the client at it with solidcraft-cli mcp --connect 127.0.0.1:7878. solidcraft-cli mcp setup --live adds this as a second server called solidcraft-live.
Is it safe to let an agent use SolidCraft?
The app's agent connection is off on a new install and only reachable from your own computer. Each launch uses a token, file access is limited to the design's folder unless you add folders with --allow-path, and saving a mesh or sending it to a slicer asks first.
Does SolidCraft have its own AI assistant?
Yes. The desktop app has an in-app Assistant chat as well. This page covers the MCP server, which lets outside AI clients drive SolidCraft.