* chore: rename workbench to FreecadRobustMCPBridge * fix: stdio cleanup and bug fix for JSON RPC * fix: update FreeCAD MCP bridge and tests * test: Fix GUI Integration tests and other issues * fix: unit tests in CI and a few other things * docs: generate GitHub pages site and link to it. * fix: General code improvements and DRY refactoring * chore: General cleanup * chore: small fixes * docs: cleanup * docs: fixes * docs: small corrections * docs: fix * test: release check * bump: workbench v0.6.0 * chore: bump macros to 0.6.0 * docs: Release improvements * refactor: improve DRYness of code
3.5 KiB
Installation
This guide covers installing the FreeCAD Robust MCP Server and connecting it to your AI assistant.
Requirements
- FreeCAD 0.21+ or 1.0+ (with Python 3.11)
- Python 3.11 (must match FreeCAD's bundled Python version)
- An MCP-compatible AI assistant (Claude Code, Cursor, etc.)
Installation Methods
Method 1: pip (Recommended)
The simplest way to install the Robust MCP Server:
pip install freecad-robust-mcp
Method 2: From Source (for Development)
git clone https://github.com/spkane/freecad-robust-mcp-and-more.git
cd freecad-robust-mcp-and-more
# Install mise (if not already installed)
curl https://mise.run | sh
mise trust
mise install
just setup
Method 3: Docker
Run the Robust MCP Server in a container:
# Pull from Docker Hub
docker pull spkane/freecad-robust-mcp
# Or build locally
docker build -t freecad-robust-mcp .
Note: The Docker container runs the Robust MCP Server only—it does not include FreeCAD itself. You must run FreeCAD with the Robust MCP Bridge workbench on your host machine (or in a separate container) and configure the Robust MCP Server to connect via xmlrpc or socket mode.
Why embedded mode doesn't work with Docker: Embedded mode requires FreeCAD and the Robust MCP Server to run in the same process, which is impossible when FreeCAD runs on the host and the Robust MCP Server runs inside a Docker container. Additionally, embedded mode fails on macOS due to ABI incompatibility with FreeCAD's bundled Python libraries (libpython3.11.dylib). Always use xmlrpc or socket mode for Docker deployments.
Installing the Robust MCP Bridge Workbench
The Robust MCP Bridge Workbench runs inside FreeCAD and provides the connection point for the Robust MCP Server.
Via FreeCAD Addon Manager (Recommended)
- Open FreeCAD
- Go to Tools > Addon Manager
- Search for "FreeCAD Robust MCP Suite" or "Robust MCP Bridge"
- Click Install
- Restart FreeCAD
Manual Installation
- Download the latest release from GitHub Releases
- Extract to your FreeCAD Mod directory:
- Linux:
~/.local/share/FreeCAD/Mod/ - macOS:
~/Library/Application Support/FreeCAD/Mod/ - Windows:
%APPDATA%\FreeCAD\Mod\
- Linux:
- Restart FreeCAD
Verifying Installation
After installation, verify everything is working:
Step 1: Start FreeCAD with the Robust MCP Bridge
- Start FreeCAD and select the Robust MCP Bridge workbench from the workbench selector dropdown
- Click "Start MCP Bridge" in the toolbar (or use the MCP Bridge menu)
- Check the FreeCAD console for confirmation messages:
MCP Bridge started!
- XML-RPC: localhost:9875
- Socket: localhost:9876
Step 2: Verify the Robust MCP Server
Test that the Robust MCP Server command is available:
# With pip installation
freecad-mcp --help
# With source installation
uv run freecad-mcp --help
Step 3: Test the Connection
With FreeCAD running and the bridge started, you can verify connectivity:
# Quick connectivity test using curl (XML-RPC)
curl -X POST http://localhost:9875 \
-H "Content-Type: text/xml" \
-d '<?xml version="1.0"?><methodCall><methodName>ping</methodName></methodCall>'
A successful response indicates the bridge is working correctly.
Next Steps
- Configuration - Set up environment variables and MCP client settings
- Quick Start - Create your first model with AI assistance