The FreeCAD MCP server is a tool that enables control of FreeCAD from Claude Desktop, allowing you to automate CAD operations and design tasks using AI assistance. This integration provides a powerful way to create and modify 3D models through natural language commands.
First, you need to install the FreeCAD MCP addon in your FreeCAD installation:
Clone the repository:
git clone https://github.com/neka-nat/freecad-mcp.git
cd freecad-mcp
Copy the addon to your FreeCAD Mod directory:
For Windows:
copy -r addon\FreeCADMCP %APPDATA%\FreeCAD\Mod\
For Mac:
cp -r addon/FreeCADMCP ~/Library/Application\ Support/FreeCAD/Mod/
For Linux (Ubuntu):
cp -r addon/FreeCADMCP ~/.FreeCAD/Mod/
For Linux (Ubuntu with snap):
cp -r addon/FreeCADMCP ~/snap/freecad/common/Mod/
For Linux (Debian):
cp -r addon/FreeCADMCP ~/.local/share/FreeCAD/Mod/
Restart FreeCAD after installation.
Select "MCP Addon" from the Workbench list to activate it.
Start the RPC server by clicking on the "Start RPC Server" command in the "FreeCAD MCP" toolbar.
Install the uvx tool, which is required for the MCP server.
Edit the Claude Desktop configuration file (claude_desktop_config.json
):
Basic configuration:
{
"mcpServers": {
"freecad": {
"command": "uvx",
"args": [
"freecad-mcp"
]
}
}
}
To use text-only feedback (uses fewer tokens):
{
"mcpServers": {
"freecad": {
"command": "uvx",
"args": [
"freecad-mcp",
"--only-text-feedback"
]
}
}
}
For developers (using a local repository):
{
"mcpServers": {
"freecad": {
"command": "uv",
"args": [
"--directory",
"/path/to/freecad-mcp/",
"run",
"freecad-mcp"
]
}
}
}
The FreeCAD MCP server provides several tools that can be used through Claude Desktop:
Claude will use the appropriate MCP tools to execute these commands in FreeCAD and provide feedback on the operations performed.
To create a simple cube:
You: Create a 10mm cube
Claude: [Uses create_object tool to make a cube]
You: I need to design a circular flange with 4 bolt holes
Claude: [Will use multiple commands to create the design]
1. [Uses create_document to start a new project]
2. [Uses create_object to make a circular base]
3. [Uses create_object to add bolt holes with appropriate pattern]
For more complex operations, you can have Claude execute Python code:
You: Create a helical gear
Claude: [Uses execute_code with appropriate FreeCAD Python commands]
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.json
2. Add this to your configuration file:
{
"mcpServers": {
"freecad": {
"command": "uvx",
"args": [
"freecad-mcp"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect