The Robust MCP Bridge Workbench is the server-side connection point that bridges to the Robust MCP Server, which enables external applications to control FreeCAD through the Model Context Protocol (MCP). The workbench runs inside FreeCAD and exposes XML-RPC and JSON-RPC interfaces that external MCP clients can connect to.
This workbench is designed to work with the Robust MCP Server (available on PyPI), which allows AI assistants like Claude to interact with FreeCAD through natural language. The full documentation and source code can be found at github/spkane/freecad-robust-mcp-and-more, where you will find the MCP Server, Bridge and some FreeCAD Macros used for various things, not necessarily related to AI or the MCP work.
Key Features:
Download the latest release from GitHub Releases and extract to your FreeCAD Mod directory:
To stop the bridge, click Stop Bridge in the toolbar.
For automation and CI/CD pipelines, the bridge can run without the GUI:
Linux:
freecadcmd ~/.local/share/FreeCAD/Mod/FreecadRobustMCPBridge/freecad_mcp_bridge/blocking_bridge.py
macOS:
/Applications/FreeCAD.app/Contents/Resources/bin/freecadcmd \
~/Library/Application\ Support/FreeCAD/Mod/FreecadRobustMCPBridge/freecad_mcp_bridge/blocking_bridge.py
The bridge will start and keep FreeCAD running until you press Ctrl+C.
Access preferences via Edit → Preferences → Robust MCP Bridge or Robust MCP Bridge → MCP Bridge Preferences...
| Setting | Description | Default |
|---|---|---|
| Auto-start bridge | Start bridge automatically when FreeCAD launches | Disabled |
| Show status indicator | Display connection status in FreeCAD's status bar | Enabled |
| XML-RPC Port | Port for XML-RPC connections | 9875 |
| Socket Port | Port for JSON-RPC socket connections | 9876 |
| Feature | GUI Mode | Headless Mode |
|---|---|---|
| Object creation | Yes | Yes |
| Boolean operations | Yes | Yes |
| Export (STEP, STL, 3MF) | Yes | Yes |
| Macro execution | Yes | Yes |
| Document management | Yes | Yes |
| Screenshots | Yes | No |
| Object colors/visibility | Yes | No |
| Camera/view control | Yes | No |
This workbench provides the server that MCP clients connect to. To use with AI assistants like Claude, you need an MCP client such as the Robust MCP Server:
pip install freecad-robust-mcp
Or using uv:
uv tool install freecad-robust-mcp
See the GitHub repository for full documentation on configuring MCP clients.
host.docker.internal instead of localhost.freecadcmd (not freecad).freecadcmd -c "print('test')".