AI CAD Guide
OPEN-SOURCE AI CAD · MCP GUIDE

FreeCAD MCP Setup Guide — Claude, Codex & Cursor Integration

Step-by-step installation guide for FreeCAD MCP (neka-nat/freecad-mcp & Robust MCP Bridge), RPC troubleshooting, and honest comparison with SolidCraft native MCP.

Is There an MCP Server for FreeCAD? (Quick Answer)

Yes. FreeCAD supports the Model Context Protocol (MCP) through open-source community bridges—most notably neka-nat/freecad-mcp (installed via uvx freecad-mcp + an in-app RPC Addon) and the Robust MCP Bridge Workbench (documented on the official FreeCAD Wiki). Both allow Claude Desktop, Claude Code, OpenAI Codex CLI, and Cursor to create parametric solids, execute FreeCAD Python macros, inspect documents, and even trigger FEM analyses locally.

Diagram showing AI coding assistants connecting to parametric CAD engines through local MCP servers

FreeCAD MCP Options vs. SolidCraft Native MCP

Before installing an addon, compare the three main open-source AI + Parametric CAD MCP setups available in 2026:

Feature neka-nat/freecad-mcp Robust MCP Bridge Workbench SolidCraft Native MCP (solidcraft-cli mcp)
Official Project github.com/neka-nat/freecad-mcp / PyPI FreeCAD Wiki Bridge First-party built into SolidCraft
Architecture FreeCAD Addon (RPC Server) + Python uvx MCP client Dedicated FreeCAD Workbench + PyPI/Docker MCP server Single pure-Rust binary (stdio headless or live --connect)
Setup Complexity Medium (install Mod addon + start RPC server + uvx) Medium (install Workbench + connect bridge) Low (1 command: solidcraft-cli mcp setup or claude mcp add)
CAD Depth (CAM, FEM, Drawings) Full FreeCAD ecosystem (Part Design, FEM, TechDraw, Python) Full FreeCAD workbench & scripting ecosystem Fast modern B-rep timeline (3D printing & rapid prototyping focus)
Headless / Browser Support Desktop FreeCAD must stay open with RPC running Desktop bridge or Docker deployment Native headless CLI + live desktop bridge + WebAssembly app

How to Install FreeCAD MCP (neka-nat/freecad-mcp) Step by Step

Setting up freecad-mcp takes two coordinated steps: enabling the RPC listener inside FreeCAD, and registering the uvx freecad-mcp server inside your AI client.

Step 1: Install the FreeCAD MCP Addon

  1. Clone the repository from GitHub (or download the ZIP release):
git clone https://github.com/neka-nat/freecad-mcp.git
  1. Copy the addon/FreeCADMCP folder into your operating system's FreeCAD Mod directory:

    • Windows: %APPDATA%\FreeCAD\Mod\
    • macOS: ~/Library/Application Support/FreeCAD/Mod/
    • Linux: ~/.local/share/FreeCAD/Mod/ (or ~/.FreeCAD/Mod/ on older builds)
  2. Launch FreeCAD, open the Workbench dropdown at the top, select MCP Addon, and click Start RPC Server on the toolbar. Keep FreeCAD open while your AI client sends commands.

Step 2: Install uv and Configure Claude Desktop, Cursor or Codex

The Python MCP package runs cleanly without manual virtual environments using uvx (from Astral's uv package manager).

Claude Desktop (claude_desktop_config.json) & Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "freecad": {
      "command": "uvx",
      "args": ["freecad-mcp"]
    }
  }
}

Claude Code & OpenAI Codex CLI

# Claude Code
claude mcp add freecad -- uvx freecad-mcp

# OpenAI Codex CLI
codex mcp add freecad -- uvx freecad-mcp

Restart your AI client completely after saving the config, verify that FreeCAD's RPC Server is running, and test a simple prompt:

"Create a new FreeCAD document, model a 50mm x 50mm x 5mm mounting plate with four 4.2mm M4 corner holes, capture a viewport screenshot, and export STEP."

Troubleshooting Common FreeCAD MCP Setup Errors

  • uvx: command not found inside Claude Desktop: GUI apps on macOS and Windows often ignore shell PATH edits. Replace "command": "uvx" with the absolute path to uvx (run which uvx on macOS/Linux or where.exe uvx on Windows PowerShell).
  • Connection Refused / Timeout Talking to FreeCAD: This almost always means FreeCAD is closed or you forgot to switch to the MCP Addon workbench and click Start RPC Server. Every fresh FreeCAD restart requires starting the RPC listener again unless auto-start is configured.
  • Python Macro Syntax or Geometry Errors: Because FreeCAD MCP frequently executes FreeCAD Python API calls (Part, PartDesign, Sketcher), instruct Claude or Codex to build incrementally, verify obj.Shape.isValid(), and inspect bounding-box dimensions after each boolean cut.
  • Using FreeCAD Behind Docker or CI? Explore the Robust MCP Bridge Workbench on the FreeCAD Wiki, which provides PyPI and Docker Hub bridge images tailored for structured multi-tool setups.

FreeCAD MCP vs. SolidCraft MCP: Which Should You Use?

Both ecosystems are free, open-source, and run 100% locally without cloud lock-in, so choosing between them comes down to your engineering requirements:

  • Pick FreeCAD MCP if your project requires mature FEM stress analysis, Path CNC CAM toolpaths, TechDraw 2D drafting sheets, SheetMetal, or custom FreeCAD Python macros inside an established desktop suite.
  • Pick SolidCraft MCP if you want zero-friction setup (no Python uvx runtime or manual RPC addon copying), faster pure-Rust parametric rebuilds for 3D-printed brackets and enclosures, or headless CLI automation (solidcraft-cli mcp) that works identically with or without a GUI window.
  • Use Both Together via STEP: Many makers prototype rapidly using SolidCraft MCP & Claude or our SolidCraft CLI & Prompt Builder, export a clean .step solid, and import it into FreeCAD whenever a part later needs FEM simulation, assemblies, or CNC CAM.

Want the full architectural comparison between the two CAD apps? Read SolidCraft vs FreeCAD vs Fusion 360, check our SolidCraft Install Guide, or return to the AI CAD Guide homepage.

FreeCAD MCP Frequently Asked Questions

Is there an MCP server for FreeCAD?

Yes. Community projects including neka-nat/freecad-mcp (on GitHub and PyPI) and the Robust MCP Bridge Workbench connect FreeCAD to Claude Desktop, Claude Code, OpenAI Codex CLI, and Cursor via the Model Context Protocol.

How do I install FreeCAD MCP?

Copy the addon/FreeCADMCP folder from github.com/neka-nat/freecad-mcp into your FreeCAD Mod directory, launch FreeCAD, switch to the MCP Addon workbench, click Start RPC Server, and register uvx freecad-mcp in your AI client config.

Can AI use FreeCAD to create 3D models?

Yes. With an MCP bridge active, AI agents like Claude and Codex can create documents, run FreeCAD Python scripts, modify parametric objects, inspect geometry, run FEM analyses, and export STEP or STL files.

Is FreeCAD any good in 2026?

FreeCAD 1.x is a strong, fully offline open-source CAD suite with mature TechDraw, FEM, SheetMetal, and CAM workbenches, though its workbench UI has a steeper learning curve than newer Rust CAD tools like SolidCraft.

How does FreeCAD MCP compare to SolidCraft MCP?

SolidCraft ships with a native pure-Rust MCP server inside solidcraft-cli (no Python runtime or manual RPC bridge needed), while FreeCAD MCP uses a community RPC workbench addon plus uvx Python bridge—making SolidCraft faster to set up and FreeCAD deeper for CAM/FEM.

Does FreeCAD MCP work with Cursor and OpenAI Codex CLI?

Yes. Both neka-nat/freecad-mcp and Robust MCP Bridge work with any standard stdio MCP client, including Claude Code, Claude Desktop, OpenAI Codex CLI, Cursor IDE, and TypingMind.