Freecad (bonninr)

Design and media

FreecadMCP connects Freecad to Claude AI and other MCP-ready tools like Cursor through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Freecad. This integration enables prompt assisted CAD 3d Design.

Your AI app calls the Freecad (bonninr) MCP server, which does the design and media work and sends the result back to the chat.

About Freecad (bonninr)

Freecad (bonninr) is a community MCP server from bonninr, filed in our directory under design and media. FreecadMCP connects Freecad to Claude AI and other MCP-ready tools like Cursor through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Freecad. This integration enables prompt assisted CAD 3d Design.

At a glance

Publisher
bonninr (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
229

How to set up Freecad (bonninr)

  1. Follow the install steps in the Freecad (bonninr) README; it is written in Python, so have that toolchain ready.
  2. Check the Freecad (bonninr) README for keys or settings; the registry lists none that Freecad (bonninr) requires.
  3. Add Freecad (bonninr) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Freecad (bonninr) tools to confirm the connection.
  5. Run one read-only task with Freecad (bonninr) first, and keep your app asking before each tool call until the results look right.

Freecad (bonninr) compared with similar servers

  • Gemini (RLabs-Inc) by RLabs-Inc has fewer GitHub stars than Freecad (bonninr) (228 against 229); both are community servers, and both run locally.
  • Design Systems by southleft has more GitHub stars than Freecad (bonninr) (231 against 229); both are community servers, and both run locally.
  • Image Gen by fengin has fewer GitHub stars than Freecad (bonninr) (227 against 229); both are community servers, and both run locally.

Before you connect Freecad (bonninr)

  • Give Freecad (bonninr) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Freecad (bonninr) tool call until you trust what it does with them.
  • Treat text that Freecad (bonninr) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Freecad (bonninr) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Freecad (bonninr)

How marketing and sales teams put Freecad (bonninr) to work, by company size. Pick the size closest to yours and start Freecad (bonninr) on one use case.

Small business

  • A small business can use Freecad (bonninr) to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask Freecad (bonninr) to pull brand assets and make quick ad and social variations that still look on brand.
  • Freecad (bonninr) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect Freecad (bonninr) so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use Freecad (bonninr) to hand off designs to web and ads with specs attached, cutting review rounds.
  • Start Freecad (bonninr) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Freecad (bonninr) with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use Freecad (bonninr) to localize and version assets for many markets with review built in.
  • Freecad (bonninr) is a community server, so have security review the code and pin a version before Freecad (bonninr) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Freecad (bonninr) README

From bonninr/freecad_mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

FreeCAD MCP (Model Control Protocol)

Overview

The FreeCAD MCP (Model Control Protocol) provides a simplified interface for interacting with FreeCAD through a server-client architecture. This allows users to execute commands and retrieve information about the current FreeCAD document and scene.

https://github.com/user-attachments/assets/5acafa17-4b5b-4fef-9f6c-617e85357d44

Configuration

To configure the MCP server, you can use a JSON format to specify the server settings. Below is an example configuration:

{
    "mcpServers": {
        "freecad": {
            "command": "C:\\ProgramData\\anaconda3\\python.exe",
            "args": [
                "C:\\Users\\USER\\AppData\\Roaming\\FreeCAD\\Mod\\freecad_mcp\\src\\freecad_bridge.py"
            ]
        }
    }
}
Configuration Details
  • command: The path to the Python executable that will run the FreeCAD MCP server. This can vary based on your operating system:

    • Windows: Typically, it might look like C:\\ProgramData\\anaconda3\\python.exe or C:\\Python39\\python.exe.
    • Linux: It could be /usr/bin/python3 or the path to your Python installation.
    • macOS: Usually, it would be /usr/local/bin/python3 or the path to your Python installation.
  • args: An array of arguments to pass to the Python command. The first argument should be the path to the freecad_bridge.py script, which is responsible for handling the MCP server logic. Make sure to adjust the path according to your installation.

Example for Different Operating Systems
Windows
{
    "mcpServers": {
        "freecad": {
            "command": "C:\\ProgramData\\anaconda3\\python.exe",
            "args": [
                "C:\\Users\\USER\\AppData\\Roaming\\FreeCAD\\Mod\\freecad_mcp\\src\\freecad_bridge.py"
            ]
        }
    }
}
Linux
{
    "mcpServers": {
        "freecad": {
            "command": "/usr/bin/python3",
            "args": [
                "/home/USER/.FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
            ]
        }
    }
}
macOS
{
    "mcpServers": {
        "freecad": {
            "command": "/usr/local/bin/python3",
            "args": [
                "/Users/USER/Library/Preferences/FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
            ]
        }
    }
}

Features

The FreeCAD MCP currently supports the following functionalities:

1. get_scene_info
  • Description: Retrieves comprehensive information about the current FreeCAD document, including:
    • Document properties (name, label, filename, object count)
    • Detailed object information (type, position, rotation, shape properties)
    • Sketch data (geometry, constraints)
    • View information (camera position, direction, etc.)
2. run_script
  • Description: Executes arbitrary Python code within the FreeCAD context. This allows users to perform complex operations, create new objects, modify existing ones, and automate tasks using FreeCAD's Python API.
Example Usage

To use the FreeCAD MCP, you can connect to the server and send commands as follows:

import socket
import json

# Connect to the FreeCAD MCP server
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
client.connect(('localhost', 9876))

# Example: Get scene information
command = {
    "type": "get_scene_info"
}
client.sendall(json.dumps(command).encode('utf-8'))

# Receive the response
response = client.recv(4096)
print(json.loads(response.decode('utf-8')))

# Example: Run a script
script = """
import FreeCAD
doc = FreeCAD.ActiveDocument
box = doc.addObject("Part::Box", "MyBox")
box.Length = 20
box.Width = 20
box.Height = 20
doc.recompute()
"""
command = {
    "type": "run_script",
    "params": {
        "script": script
    }
}
client.sendall(json.dumps(command).encode('utf-8'))

# Receive the response
response = client.recv(4096)
print(json.loads(response.decode('utf-8')))

# Close the connection
client.close()

Installation

  1. Clone the repository or download the files.
  2. Place the freecad_mcp directory in your FreeCAD modules directory:
    • Windows: %APPDATA%/FreeCAD/Mod/
    • Linux: ~/.FreeCAD/Mod/
    • macOS: ~/Library/Preferences/FreeCAD/Mod/
  3. Restart FreeCAD and select the "FreeCAD MCP" workbench from the workbench selector.

Contributing

Feel free to contribute by submitting issues or pull requests. Your feedback and contributions are welcome!

License

This project is licensed under the MIT License. See the LICENSE file for details.

Questions about Freecad (bonninr)

What is the Freecad (bonninr) MCP server?

FreecadMCP connects Freecad to Claude AI and other MCP-ready tools like Cursor through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Freecad. This integration enables prompt assisted CAD 3d Design. Freecad (bonninr) is maintained by bonninr on GitHub at bonninr/freecad_mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Freecad (bonninr) MCP server?

Freecad (bonninr) doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (bonninr/freecad_mcp). Like most servers, Freecad (bonninr) ends with a command or URL you paste into your AI app's MCP config.

Does Freecad (bonninr) need an API key?

The registry lists no required keys for Freecad (bonninr). Check the Freecad (bonninr) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Freecad (bonninr) an official MCP server?

No. Freecad (bonninr) is a community server maintained by bonninr. Community servers can be excellent; read the code and the open issues before you give Freecad (bonninr) access to company data.

What license is Freecad (bonninr) under?

Freecad (bonninr) is released under the MIT license, according to its GitHub repository. The license covers the code of Freecad (bonninr); the service it connects to has its own terms.