MCP (Model Context Protocol) server for FreeCAD integration
4.8K
An MCP (Model Context Protocol)ā server that enables integration between AI assistants (Claude, GPT, and other MCP-compatible tools) and FreeCADā , allowing AI-assisted development and debugging of 3D models, macros, and workbenches.
docker pull spkane/freecad-robust-mcp:latest
Add to your Claude Desktop configuration:
{
"mcpServers": {
"freecad": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "FREECAD_MODE=xmlrpc",
"-e", "FREECAD_SOCKET_HOST=host.docker.internal",
"spkane/freecad-robust-mcp:latest"
]
}
}
}
host.docker.internal is only available on Docker Desktop (macOS/Windows).
On Linux Docker Engine, use one of these alternatives:
Option 1: Host networking (recommended)
docker run -i --rm --network=host \
-e FREECAD_MODE=xmlrpc \
-e FREECAD_SOCKET_HOST=localhost \
spkane/freecad-robust-mcp:latest
Option 2: Use host IP address
docker run -i --rm \
-e FREECAD_MODE=xmlrpc \
-e FREECAD_SOCKET_HOST=192.168.1.100 \
spkane/freecad-robust-mcp:latest
Option 3: Add host gateway (Docker 20.10+)
docker run -i --rm --add-host=host.docker.internal:host-gateway \
-e FREECAD_MODE=xmlrpc \
-e FREECAD_SOCKET_HOST=host.docker.internal \
spkane/freecad-robust-mcp:latest
| Mode | Description | Use Case |
|---|---|---|
xmlrpc | XML-RPC over HTTP (port 9875) | Recommended - Works with FreeCAD GUI or headless |
socket | JSON-RPC over TCP (port 9876) | Alternative to XML-RPC |
embedded | Direct Python import | Linux only, requires FreeCAD in Python path |
| Variable | Default | Description |
|---|---|---|
FREECAD_MODE | xmlrpc | Connection mode |
FREECAD_SOCKET_HOST | localhost | Server host (used for both XML-RPC and socket modes) |
FREECAD_XMLRPC_PORT | 9875 | XML-RPC server port |
FREECAD_SOCKET_PORT | 9876 | Socket server port |
Before using this Docker image, start FreeCAD with the MCP bridge:
š For complete documentation, examples, and source code, visit:
https://github.com/spkane/freecad-robust-mcp-and-moreā
MIT License - see LICENSEā for details.
Content type
Image
Digest
sha256:2f8416dfbā¦
Size
30.7 MB
Last updated
9 months ago
docker pull spkane/freecad-robust-mcp