Freecad
Overview
FreeCAD MCP (Model Control Protocol) is a server-client interface that allows users to interact with FreeCAD, enabling command execution and information retrieval about the current FreeCAD document and scene.
To use FreeCAD MCP, configure the server using a JSON format, connect to the server via a socket, and send commands to retrieve scene information or execute scripts.
- Retrieve detailed scene information including document properties and object details. - Execute arbitrary Python scripts within the FreeCAD environment. - Supports multiple operating systems with specific configuration examples.
- Automating 3D modeling tasks in FreeCAD.
- Retrieving information about complex models for analysis.
- Running custom scripts to modify or create objects programmatically.
Add to your AI client
Use these steps to connect Freecad in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"freecad-bonninr": {
"command": "/usr/bin/python3",
"args": [
"/home/USER/.FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"freecad-bonninr": {
"command": "/usr/bin/python3",
"args": [
"/home/USER/.FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"freecad-bonninr": {
"command": "/usr/bin/python3",
"args": [
"/home/USER/.FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"freecad-bonninr": {
"type": "stdio",
"command": "/usr/bin/python3",
"args": [
"/home/USER/.FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"freecad-bonninr": {
"command": "/usr/bin/python3",
"args": [
"/home/USER/.FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"freecad-bonninr": {
"command": "/usr/bin/python3",
"args": [
"/home/USER/.FreeCAD/Mod/freecad_mcp/src/freecad_bridge.py"
]
}
}
}FAQ
What is the purpose of FreeCAD MCP?
It simplifies the interaction with FreeCAD through a server-client architecture.
How do I install FreeCAD MCP?
Clone the repository, place the `freecad_mcp` directory in your FreeCAD modules directory, and restart FreeCAD.
Is FreeCAD MCP cross-platform?
Yes, it supports Windows, Linux, and macOS with specific configuration instructions.