FreeCAD Logo FreeCAD 1.0
  • English Afrikaans Arabic Belarusian Catalan Czech German Greek Spanish Spanish Basque Finnish Filipino French Galician Croatian Hungarian Indonesian Italian Japanese Kabyle Korean Lithuanian Dutch Norwegian Bokmal Polish Portuguese Portuguese Romanian Russian Slovak Slovenian Serbian Swedish Turkish Ukrainian Valencian Vietnamese Chinese Chinese
  • Features
  • Download
  • Blog
  • Documentation
    Documentation index Getting started Users documentation The FreeCAD manual Workbenches documentation Python coding documentation C++ coding documentation Tutorials Frequently asked questions Privacy policy About FreeCAD
  • Contribute
    How to help Sponsor Report a bug Make a pull request Jobs and funding Contribution guidelines Developers handbook Translations
  • Community
    Code of conduct Forum The FPA GitHub GitLab Codeberg Mastodon Matrix IRC IRC via Webchat Gitter Discord Reddit Twitter Facebook LinkedIn Calendar
  • ♥ Donate

Donate

$
SEPA Information
Please set up your SEPA bank transfer to:
Beneficiary: The FreeCAD project association
IBAN: BE04 0019 2896 4531
BIC/SWIFT: GEBABEBBXXX
Bank agency: BNP Paribas Fortis
Address: Rue de la Station 64, 1360 Perwez, Belgium

While Stripe doesn't support monthly donations, you can still become a sponsor! Simply make a one-time donation equivalent to 12 months of support, and you'll gain access to the corresponding sponsoring tier. It's an easy and flexible way to contribute.

If you are not sure or not able to commit to a regular donation, but still want to help the project, you can do a one-time donation, of any amount.

Choose freely the amount you wish to donate one time only.

You can support FreeCAD by sponsoring it as an individual or organization through various platforms. Sponsorship provides a steady income for developers, allowing the FPA to plan ahead and enabling greater investment in FreeCAD. To encourage sponsorship, we offer different tiers, and unless you choose to remain anonymous, your name or company logo will be featured on our website accordingly.

from 1 USD / 1 EUR per month. You will not have your name displayed here, but you will have helped the project a lot anyway. Together, normal sponsors maintain the project on its feet as much as the bigger sponsors.

from 25 USD / 25 EUR per month. Your name or company name is displayed on this page.

from 100 USD / 100 EUR per month. Your name or company name is displayed on this page, with a link to your website, and a one-line description text.

from 200 USD / 200 EUR per month. Your name or company name and logo displayed on this page, with a link to your website and a custom description text. Companies that have helped FreeCAD early on also appear under Gold sponsors.

Instead of donating each month, you might find it more comfortable to make a one-time donation that, when divided by twelve, would give you right to enter a sponsoring tier. Don't hesitate to do so!

Choose freely the amount you wish to donate each month.

Please inform your forum name or twitter handle as a notein your transfer, or reach to us, so we can give you proper credits!

Robust MCP Bridge Workbench icon

Description

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:

  • Toolbar controls for starting/stopping the MCP bridge.
  • Status indicator showing connection state (green=running, red=stopped).
  • XML-RPC server on configurable port (default: 9875).
  • JSON-RPC socket server on configurable port (default: 9876).
  • Headless mode support for automation and CI/CD pipelines.
  • Thread-safe queue system ensuring safe FreeCAD operations.
  • Configurable auto-start on FreeCAD launch.

Installation

Via Addon Manager (recommended)

  1. Open FreeCAD
  2. Go to Tools → Addon Manager
  3. Search for "Robust MCP Bridge"
  4. Click Install
  5. Restart FreeCAD

Manual installation

Download the latest release from GitHub Releases and extract to your FreeCAD Mod directory:

  • Linux: ~/.local/share/FreeCAD/Mod/FreecadRobustMCPBridge/
  • macOS: ~/Library/Application Support/FreeCAD/Mod/FreecadRobustMCPBridge/
  • Windows: %APPDATA%/FreeCAD/Mod/FreecadRobustMCPBridge/

Usage

GUI mode

Robust MCP Bridge workbench toolbar

  1. Switch to the Robust MCP Bridge workbench using the workbench selector
  2. Click Start Bridge in the toolbar
  3. The status indicator turns green when running
  4. External MCP clients can now connect to localhost:9875 (XML-RPC) or localhost:9876 (Socket)

To stop the bridge, click Stop Bridge in the toolbar.

Robust MCP Bridge workbench statusbar

Headless mode

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.

Configuration

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

Robust MCP Bridge workbench preference pane

Features by mode

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

Connecting MCP clients

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.

Troubleshooting

Bridge won't start

  1. Check the FreeCAD Python console (View → Panels → Python console) for error messages.
  2. Ensure no other process is using ports 9875/9876.
  3. Try restarting FreeCAD.

Connection refused

  1. Verify the bridge is running (green status indicator in toolbar).
  2. Check that ports match between the workbench preferences and your MCP client configuration.
  3. If connecting from Docker, use host.docker.internal instead of localhost.

Headless mode won't start

  1. Ensure you're using freecadcmd (not freecad).
  2. Verify the script path is correct for your installation.
  3. Test FreeCAD first: freecadcmd -c "print('test')".

Links

  • Latest Release
  • Robust MCP Server on PyPI - The MCP Server that connects to this bridge.
  • Full Documentation - Complete guides, API reference, and tutorials.
  • GitHub Repository - Source code and issue tracker.
  • Model Context Protocol - The protocol specification.

This page is retrieved from https://wiki.freecad.org/Robust_MCP_Bridge_Workbench

Get in touch!
Forum GitHub Mastodon Matrix IRC Gitter.im Discord Reddit Twitter Facebook LinkedIn

© The FreeCAD Team. Homepage image credits (top to bottom): ppemawm, r-frank, epileftric, regis, rider_mortagnais, bejant.

This project is supported by: , KiCad Services Corp. and other sponsors

GitHubImprove this page on GitHub