Agentura MCP for FreeCAD
A free FreeCAD add-on that lets your Agentura agents work in FreeCAD on your own computer — build parametric parts, edit sketches and spreadsheets, measure models and export files.
Download the add-onWhat it does
The add-on runs a small MCP server inside FreeCAD. The AgenturaLocal app carries your agent's requests to it, so the agent uses FreeCAD's own modelling tools: documents, PartDesign bodies, sketches, booleans, spreadsheets, measurements, import and export, and screenshots of the 3D view. Every change is a single undo step, and every file stays on your computer.
Before you start
- FreeCAD 1.0 or newer.
- AgenturaLocal running on the same computer, with your agent shared with that computer (Settings → Agents).
- The FreeCAD connector activated in the Agentura Marketplace and enabled for the agent.
Install — the quick way
- Open FreeCAD and turn on View → Panels → Python console.
- Paste this line into the console and press Enter:
>>> import urllib.request as u; exec(u.urlopen(u.Request("https://agentura.cc/downloads/freecad/install.py", headers={"User-Agent": "FreeCAD"})).read())
Install — by hand
- Download AgenturaMCP-1.0.0.zip.
- Unzip it into FreeCAD's
Modfolder, so that you end up withMod/AgenturaMCP/package.xml. Create theModfolder if it does not exist. - Restart FreeCAD.
| System | Mod folder (FreeCAD 1.1) |
|---|---|
| Windows | %APPDATA%\FreeCAD\v1-1\Mod |
| macOS | ~/Library/Application Support/FreeCAD/v1-1/Mod |
| Linux | ~/.local/share/FreeCAD/v1-1/Mod |
Check that it works
The server starts together with FreeCAD. Open
Tools → Agentura MCP → Server status: it should say the
server is running at http://127.0.0.1:31415/mcp. The same menu
has Start server and Stop server. Then ask
your agent to check its FreeCAD connection.
Security
- The server listens only on
127.0.0.1:31415, so other computers on your network cannot reach it. Agents reach it only through AgenturaLocal, and only agents you shared this computer with. - It refuses requests from web browsers, so a website you visit cannot drive FreeCAD.
- Tools → Agentura MCP → Allow Python code decides whether agents may run Python code inside FreeCAD. With it off, they can only use the add-on's modelling tools.
Worth knowing. An agent works on the documents open in your FreeCAD, and files it saves or exports are real files on your computer. It asks before deleting objects, discarding changes or overwriting files, but save your own work first.
Advanced: without the FreeCAD window
The add-on also runs headless, for example on a workstation without a display:
$ freecadcmd -c "import agentura_mcp; agentura_mcp.serve_forever()"
If something goes wrong
CERTIFICATE_VERIFY_FAILEDor a download error in the console — this FreeCAD cannot fetch files over HTTPS; install by hand instead.- Server status says it is not running — choose Start server; if it reports the port is in use, another program is using port 31415.
- No Agentura MCP menu — restart FreeCAD, and check that the folder is
Mod/AgenturaMCP, notMod/AgenturaMCP/AgenturaMCP.
Uninstall
Close FreeCAD, delete the AgenturaMCP folder from the
Mod folder above, and deactivate the FreeCAD connector in the
Marketplace if you no longer need it.