FreeCAD MCP is a protocol implementation that allows controlling FreeCAD from Claude Desktop. This integration enables AI-assisted 3D modeling by connecting FreeCAD with Claude's capabilities, allowing you to create and manipulate 3D models through natural language commands.
First, locate your FreeCAD Addon directory based on your operating system:
%APPDATA%\FreeCAD\Mod\~/Library/Application\ Support/FreeCAD/Mod/~/.FreeCAD/Mod/ or ~/snap/freecad/common/Mod/ (if installed via snap)~/.local/share/FreeCAD/ModInstall the addon by copying the FreeCADMCP directory to your FreeCAD Addon directory:
git clone https://github.com/neka-nat/freecad-mcp.git
cd freecad-mcp
cp -r addon/FreeCADMCP ~/.FreeCAD/Mod/
After installation, restart FreeCAD. You can then select "MCP Addon" from the Workbench list to use it.
Once the addon is installed:
First, install uvx on your system.
Edit the Claude Desktop config file claude_desktop_config.json with one of these configurations:
{
  "mcpServers": {
    "freecad": {
      "command": "uvx",
      "args": [
        "freecad-mcp"
      ]
    }
  }
}
For reduced token usage:
{
  "mcpServers": {
    "freecad": {
      "command": "uvx",
      "args": [
        "freecad-mcp",
        "--only-text-feedback"
      ]
    }
  }
}
If you're developing with the source code:
{
  "mcpServers": {
    "freecad": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/freecad-mcp/",
        "run",
        "freecad-mcp"
      ]
    }
  }
}
The FreeCAD MCP provides several tools for controlling FreeCAD:
To create a simple cube:
# Create a new document
create_document(name="MyDocument")
# Create a cube
create_object(
    document_name="MyDocument",
    object_type="Part::Box",
    object_name="Cube",
    properties={
        "Length": 10,
        "Width": 10,
        "Height": 10
    }
)
To edit an existing object:
# Modify the cube's dimensions
edit_object(
    document_name="MyDocument",
    object_name="Cube",
    properties={
        "Length": 20,
        "Width": 15,
        "Height": 30
    }
)
To insert a standard part:
# First, get a list of available parts
parts = get_parts_list()
# Insert a specific part
insert_part_from_library(
    document_name="MyDocument",
    part_path="Mechanical Parts/Fasteners/Bolts & Screws/ISO7380.fcstd"
)
For more advanced operations:
execute_code("""
import FreeCAD as App
import Part
# Create a cylinder
cylinder = App.ActiveDocument.addObject("Part::Cylinder", "MyCylinder")
cylinder.Radius = 5
cylinder.Height = 15
# Refresh the view
App.ActiveDocument.recompute()
""")
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "freecad" '{"command":"uvx","args":["freecad-mcp"]}'See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:
{
    "mcpServers": {
        "freecad": {
            "command": "uvx",
            "args": [
                "freecad-mcp"
            ]
        }
    }
}To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json2. Add this to your configuration file:
{
    "mcpServers": {
        "freecad": {
            "command": "uvx",
            "args": [
                "freecad-mcp"
            ]
        }
    }
}3. Restart Claude Desktop for the changes to take effect