freecad-mcp
Provides tools for building, inspecting, animating, stress-testing with FEA, and exporting parametric 3D CAD models inside a live FreeCAD session via the in-FreeCAD XML-RPC bridge, including viewport checks and headless OCCT operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@freecad-mcp Create a parametric mounting bracket and export it as STEP."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FreeCAD MCP Workbench
Build, inspect, animate, stress-test (FEA), and export parametric 3D CAD models directly inside a live FreeCAD window from Codex, Claude Code, Claude Desktop, Antigravity, or Cursor.
Buy me a coffee.
Related MCP server: SolidWorks Automation Skill
What's Included in This Repository
This repository is structured as a standard FreeCAD Addon Manager Workbench (per FreeCAD Workbench Creation & Package Metadata) and bundles the matching deployable Python MCP server so you can deploy the entire stack on any machine (Linux, macOS, Windows):
Component | Path | Purpose |
FreeCAD Workbench Addon |
| Installs straight into FreeCAD's |
Workbench & Toolbar Icons |
| 64×64 vector SVG icons for the FreeCAD workbench selector, Addon Manager, and toolbar actions (including an in-FreeCAD AI Client Setup dialog). |
Bundled MCP Server Package |
| Standalone Python MCP server ( |
Shared AI Agent Skill |
| Teaches Codex, Claude, and Antigravity the full iterative CAD workflow (parametric Python, visual |
1-Command Client Installer |
| Automatically writes MCP configs and installs |
Real-World Showcase Example |
| Complete NEMA 23 + BK12 CNC bracket with |
Step 1: Install the Workbench in FreeCAD
Option A — Directly Inside FreeCAD's Addon Manager (Recommended)
Open FreeCAD → Edit → Preferences → Addon Manager.
Under Custom Repositories, click + and add:
URL:
https://github.com/Rocketmanwookie/FreeCAD-MCP-WorkbenchBranch:
main
Open Tools → Addon Manager, search for FreeCAD MCP Workbench, and click Install.
Restart FreeCAD.
(Once submitted to FreeCAD/FreeCAD-addons, users can skip steps 1–2 and install directly from the official Addon Manager list. See docs/ADDON_MANAGER_SUBMISSION.md.)
Option B — Manual Clone to FreeCAD's Mod/ Folder
Clone directly into your FreeCAD user Mod/ directory:
Linux:
git clone https://github.com/Rocketmanwookie/FreeCAD-MCP-Workbench.git ~/.local/share/FreeCAD/Mod/FreeCADMCPmacOS:
git clone https://github.com/Rocketmanwookie/FreeCAD-MCP-Workbench.git "$HOME/Library/Application Support/FreeCAD/Mod/FreeCADMCP"Windows (PowerShell):
git clone https://github.com/Rocketmanwookie/FreeCAD-MCP-Workbench.git "$env:APPDATA\FreeCAD\Mod\FreeCADMCP"
Activate the RPC Bridge in FreeCAD
Restart FreeCAD and pick FreeCAD MCP from the Workbench dropdown.
Click Start RPC Server (green play icon) to start listening on
127.0.0.1:9875.(Recommended) Toggle Auto-Start Server (lightning icon) so the RPC server starts automatically whenever you open FreeCAD.
Click AI Client Setup (terminal icon) anytime inside FreeCAD to view & copy client configs.
Step 2: Connect Your AI Client(s)
You need Python 3.12+ and uv / uvx.
Fast Path — One-Command Setup Script
Configure all installed AI clients and install the freecad-mcp agent skill in one command:
# Preview changes first
python3 scripts/setup_mcp_clients.py --all --dry-run
# Configure Codex, Claude Code, Claude Desktop, Antigravity & Cursor
python3 scripts/setup_mcp_clients.py --all
# Or deploy offline/pinned directly from this local repo clone:
python3 scripts/setup_mcp_clients.py --all --from-local-repoOr configure each client manually below:
OpenAI Codex (CLI & Desktop)
Important: Do not point Codex at
url = "127.0.0.1:9875"— port9875is FreeCAD's XML-RPC bridge, not an HTTP MCP endpoint. Codex must run thefreecad-mcpstdio server viauvx.
codex mcp add freecad -- uvx freecad-mcpOr add to ~/.codex/config.toml:
[mcp_servers.freecad]
command = "uvx"
args = ["freecad-mcp"]Install the Codex Skill (so Codex knows how to discover the deferred mcp__freecad tools and design iteratively):
mkdir -p ~/.codex/skills
ln -s /path/to/FreeCAD-MCP-Workbench/skills/freecad-mcp ~/.codex/skills/freecad-mcpAntigravity (agy CLI & IDE)
Add to your global config at ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"freeCAD": {
"command": "uvx",
"args": ["freecad-mcp"]
}
}
}Install the Antigravity Skill:
mkdir -p ~/.gemini/config/skills
ln -s /path/to/FreeCAD-MCP-Workbench/skills/freecad-mcp ~/.gemini/config/skills/freecad-mcpClaude Code (CLI)
claude mcp add --scope user freecad -- uvx freecad-mcpOr add to ~/.claude.json under "mcpServers":
{
"mcpServers": {
"freecad": {
"command": "uvx",
"args": ["freecad-mcp"]
}
}
}Install the Claude Code Skill:
mkdir -p ~/.claude/skills
ln -s /path/to/FreeCAD-MCP-Workbench/skills/freecad-mcp ~/.claude/skills/freecad-mcpClaude Desktop & Cursor
Claude Desktop:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Cursor:
~/.cursor/mcp.json
{
"mcpServers": {
"freecad": {
"command": "uvx",
"args": ["freecad-mcp"]
}
}
}Offline / Local Repo Deployment: To run the exact MCP server bundled in this repo without PyPI, replace
"args": ["freecad-mcp"]with"args": ["--from", "/path/to/FreeCAD-MCP-Workbench", "freecad-mcp"](or install globally viauv tool install /path/to/FreeCAD-MCP-Workbench).
Save Tokens: Append"--only-text-feedback"toargsto disable automatic viewport screenshots on every tool call.
Included Showcase Example: NEMA 23 + BK12 CNC Router Table Mount
Everything in examples/nema23-bk12-cnc-bracket/ was created interactively in FreeCAD using this workbench and natural-language prompts:
Monolithic 6061-T6 Bracket:
120 × 156 × 76 mm(790 g) uniting a standard NEMA 23 servo faceplate (Ø38.5 mmpilot bore,47.14 mmM5 pattern, shaft centerlineZ = 44.0 mm) with a machined BK12 fixed ballscrew pedestal (Z = 19.0 mm+25.0 mmBK12 shaft height = exact44.0 mmcoaxial alignment), twin 8 mm continuous stiffening webs, 45 mm open coupler bay, and 6 outer M6/M8 CNC table T-slot wings.CalculiX 2.23 FEA Stress Check (
3,500 Nstall thrust): Peak von Mises12.74 MPa(SF = 21.66× against 276 MPa 6061-T6 yield), max deflection4.2 µm(0.0042 mm).Complete Manufacturing Package:
Native FreeCAD project with exploded & assembled views +
CreatedBy:nema23-bk12-cnc-bracket.FCStd11×17" ANSI B machinist drawing with 27 fillable PDF title-block fields:
nema23-bk12-cnc-bracket-drawing-11x17.pdfShop documentation:
BOM.md|BOM.csv|CUTSHEET.mdExact prompts used:
PROMPTS_AND_MANIFEST.md
Troubleshooting
Linux (Arch / Hyprland / Wayland) — FreeCAD 1.1.x Freezing on Startup
FreeCAD 1.1 with Qt6 can hit a re-entrant mutex self-deadlock on startup when Qt's AT-SPI accessibility bridge logs (qt.accessibility.atspi) Received text event for invalid interface. inside Gui::NotificationArea::showInNotificationArea().
Launch FreeCAD with that Qt warning category suppressed:
QT_LOGGING_RULES=qt.accessibility.atspi.warning=false FreeCADTo make it permanent for your desktop launcher, copy /usr/share/applications/org.freecad.FreeCAD.desktop to ~/.local/share/applications/org.freecad.FreeCAD.desktop and prefix Exec= with env QT_LOGGING_RULES=qt.accessibility.atspi.warning=false .
Workbench Directory Structure (Per FreeCAD Wiki)
FreeCAD-MCP-Workbench/
├── Init.py # Console + GUI startup hook
├── InitGui.py # Registers FreeCADMCPWorkbench + auto-start
├── package.xml # FreeCAD Addon Manager manifest (format="1")
├── pyproject.toml # Deployable Python MCP server package
├── LICENSE # MIT License
├── README.md # Documentation
├── Resources/
│ └── icons/
│ ├── FreeCADMCPWorkbench.svg # 64x64 Workbench & Addon Manager icon
│ ├── StartRPCServer.svg
│ ├── StopRPCServer.svg
│ ├── AutoStartRPC.svg
│ ├── RemoteAccess.svg
│ ├── AllowedIPs.svg
│ ├── AuthToken.svg
│ └── ClientSetup.svg
├── rpc_server/ # FreeCAD XML-RPC server & GUI commands
├── src/freecad_mcp/ # Bundled MCP stdio/HTTP server (v0.1.32)
├── skills/freecad-mcp/SKILL.md # Shared AI agent workflow skill
├── scripts/setup_mcp_clients.py # Cross-platform client installer
├── docs/ADDON_MANAGER_SUBMISSION.md
└── examples/nema23-bk12-cnc-bracket/License & Credits
Licensed under the MIT License.
Built upon the MIT-licensed neka-nat/freecad-mcp RPC bridge & MCP server (v0.1.32), packaged as a standalone FreeCAD Addon Manager workbench with custom SVG icons, an in-FreeCAD AI Client Setup dialog, cross-client installer, reusable agent skill, and the NEMA 23 + BK12 showcase example.
Available Tools
18 toolscreate_documentA
Create a new document in FreeCAD.
Args: name: The name of the document to create.
Returns: A message indicating the success or failure of the document creation.
Examples:
If you want to create a document named "MyDocument", you can use the following data.
json { "name": "MyDocument" }
Inputs: name (required).
create_objectA
Create a new object in FreeCAD.
obj_type must name a type registered in FreeCAD's C++ type system, such
as "Part::", "PartDesign::" or "Fem::" types. A number of FreeCAD features
are implemented in Python rather than C++ and so are not registered types;
of those, these are supported here through dedicated factories. They accept
the properties listed beside them (required for Draft factories):
Part::Tube InnerRadius, OuterRadius, Height (optional; defaults 2, 5, 10 mm)
Draft::Circle Radius
Draft::Rectangle Length, Height
Draft::Polygon FacesNumber, Radius
Draft::Wire Points (list of {x, y, z}), optional ClosedAny other Python-implemented type (Draft::Point, Draft::Ellipse, ...) must
be built with execute_code instead.
Note that the Draft factories name objects themselves, so for those the returned object_name will differ from the requested obj_name, which is applied to the object's Label instead. Always use the returned name in later get_object/edit_object calls.
Args: doc_name: The name of the document to create the object in. obj_type: The type of the object to create (e.g. 'Part::Box', 'Part::Cylinder', 'Part::Cut', 'PartDesign::Body', etc.). obj_name: The name of the object to create. obj_properties: The properties of the object to create. include_screenshot: Whether to return a screenshot of the model (default True). Set to False to save tokens when visual feedback is not needed, e.g. for intermediate steps in a longer sequence of changes. view_name: The view orientation of the returned screenshot (default "Isometric"). Pick the view that best shows the change being made.
Returns: A message indicating the success or failure of the object creation and a screenshot of the object.
Examples:
If you want to create a cylinder with a height of 30 and a radius of 10, you can use the following data.
json { "doc_name": "MyCylinder", "obj_name": "Cylinder", "obj_type": "Part::Cylinder", "obj_properties": { "Height": 30, "Radius": 10, "Placement": { "Base": { "x": 10, "y": 10, "z": 0 }, "Rotation": { "Axis": { "x": 0, "y": 0, "z": 1 }, "Angle": 45 } }, "ViewObject": { "ShapeColor": [0.5, 0.5, 0.5, 1.0] } } }
If you want to cut one solid out of another, create both solids first,
then reference them by name as 'Base' and 'Tool'.
```json
{
"doc_name": "MyPart",
"obj_name": "Cut",
"obj_type": "Part::Cut",
"obj_properties": {
"Base": "Box",
"Tool": "Cylinder"
}
}
```
If you want to create a pipe with an outer diameter of 250, a 10 wall
and a length of 500, you can use the following data.
```json
{
"doc_name": "MyPipe",
"obj_name": "Pipe",
"obj_type": "Part::Tube",
"obj_properties": {
"OuterRadius": 125,
"InnerRadius": 115,
"Height": 500
}
}
```
If you want to create a FEM analysis, you can use the following data.
```json
{
"doc_name": "MyFEMAnalysis",
"obj_name": "FemAnalysis",
"obj_type": "Fem::AnalysisPython"
}
```
If you want to create a FEM constraint, you can use the following data.
```json
{
"doc_name": "MyFEMAnalysis",
"obj_name": "FemConstraint",
"obj_type": "Fem::ConstraintFixed",
"analysis_name": "FemAnalysis",
"obj_properties": {
"References": [
{
"object_name": "MyObject",
"face": "Face1"
}
]
}
}
```
If you want to create a FEM mechanical material, you can use the following data.
```json
{
"doc_name": "MyFEMAnalysis",
"obj_name": "FemMechanicalMaterial",
"obj_type": "Fem::MaterialCommon",
"analysis_name": "FemAnalysis",
"obj_properties": {
"Material": {
"Name": "MyMaterial",
"Density": "7900 kg/m^3",
"YoungsModulus": "210 GPa",
"PoissonRatio": "0.3"
}
}
}
```
If you want to create a FEM mesh, you can use the following data.
The `Shape` property is required (legacy `Part` is also accepted).
On FreeCAD 1.x the size limits are `CharacteristicLengthMax/Min`;
the legacy `ElementSizeMax/Min` keys are also accepted.
```json
{
"doc_name": "MyFEMAnalysis",
"obj_name": "FemMesh",
"obj_type": "Fem::FemMeshGmsh",
"analysis_name": "FemAnalysis",
"obj_properties": {
"Shape": "MyObject",
"CharacteristicLengthMax": 10,
"CharacteristicLengthMin": 0.1
}
}
```
Inputs: doc_name (required), obj_name (required), obj_type (required), view_name, +3 more.
delete_objectA
Delete an object in FreeCAD.
Args: doc_name: The name of the document to delete the object from. obj_name: The name of the object to delete. include_screenshot: Whether to return a screenshot of the model (default True). Set to False to save tokens when visual feedback is not needed, e.g. for intermediate steps in a longer sequence of changes. view_name: The view orientation of the returned screenshot (default "Isometric"). Pick the view that best shows the change being made.
Returns: A message indicating the success or failure of the object deletion and a screenshot of the object.
Inputs: doc_name (required), obj_name (required), view_name, include_screenshot.
edit_objectB
Edit an object in FreeCAD.
This tool is used when the create_object tool cannot handle the object creation.
Args: doc_name: The name of the document to edit the object in. obj_name: The name of the object to edit. obj_properties: The properties of the object to edit. include_screenshot: Whether to return a screenshot of the model (default True). Set to False to save tokens when visual feedback is not needed, e.g. for intermediate steps in a longer sequence of changes. view_name: The view orientation of the returned screenshot (default "Isometric"). Pick the view that best shows the change being made.
Returns: A message indicating the success or failure of the object editing and a screenshot of the object.
Inputs: doc_name (required), obj_name (required), obj_properties (required), view_name, +1 more.
execute_codeA
Execute arbitrary Python code in FreeCAD.
Args: code: The Python code to execute. include_screenshot: Whether to return a screenshot of the model (default True). Set to False to save tokens when the code does not change the model's appearance, e.g. analytical or computational scripts whose result is printed output, or intermediate steps in a longer sequence of changes. view_name: The view orientation of the returned screenshot (default "Isometric"). Pick the view that best shows the change being made. timeout: Positive finite seconds for each of the queue and GUI execution budgets, overriding the 90 s default for this call (capped at 1800). Raise it for slow work that must run on the GUI thread, such as importing or exporting a large STEP assembly. Without it the call reports a timeout while the task keeps running; poll get_task_status using the returned task_id for the late result. Prefer execute_code_async for heavy pure-geometry work that touches neither the document nor the GUI.
Returns: A message indicating the success or failure of the code execution, the output of the code execution, and a screenshot of the object.
Inputs: code (required), timeout, view_name, include_screenshot.
execute_code_asyncA
Execute Python code in FreeCAD without waiting for completion.
Use this ONLY for long-running background computations that do NOT touch the FreeCAD GUI or mutate the FreeCAD document tree directly.
This tool runs the submitted code in a background thread and returns immediately. Because it does not run on FreeCAD's main GUI thread, the code must NOT directly call FreeCADGui APIs, manipulate the active view or selection, create or edit document objects, change object properties, call doc.recompute(), or save documents. FreeCAD documents and the Coin3D scenegraph are not thread-safe: writing to them from this thread races the GUI thread and can wedge FreeCAD's event loop, after which the RPC server stops responding entirely and FreeCAD must be restarted.
Every document or view write must instead be handed to the GUI thread through the injected commit() helper:
commit(fn, timeout=120) -> fn's return valueScripts share a live namespace. Saved functions can use commit() in later async calls; calling it from execute_code or a GUI callback raises immediately. Only one shared-namespace script is admitted at a time. Overlapping scripts return SCRIPT_BUSY without starting; status and document tools remain usable.
commit() queues fn on the GUI thread, waits for it, and raises RuntimeError if dispatch fails or times out. Example:
fused = base.fuse(addition).removeSplitter() # slow, safe in background
def apply(): # runs on the GUI thread
obj.Shape = fused
doc.recompute()
commit(apply)For code that is not dominated by heavy geometry computation, use execute_code instead. execute_code runs entirely on the FreeCAD GUI thread and is the safe default for normal FreeCAD automation.
Use execute_code_async only when the heavy part is long-running OCCT geometry (e.g. fuse/cut/loft on already-fetched shapes) or other CPU-bound computation that would exceed execute_code's 90 s GUI-thread budget.
Typical usage pattern:
Fetch shapes into module-level variables first (via execute_code).
Run the heavy computation via execute_code_async.
Apply the result inside commit(), or store it in a module-level Python variable (not in the FreeCAD document) for a later execute_code call.
Performance note: boolean operations against shapes with many faces (e.g. a ribbed lid) are expensive. Fuse the additions together first, then apply a single boolean against the heavy shape, and avoid doc.recompute() unless the dependency graph really needs it.
Args: code: Background-safe Python code to execute. Use commit(fn) for all document and view writes.
Returns: A message with the job_id of the started background execution.
Inputs: code (required).
execute_code_headlessA
Run a FreeCAD Python script in a separate headless freecadcmd process.
Use this for OCCT work that can crash or block FreeCAD: helical threads (makeHelix + makePipeShell), lofts and sweeps, booleans with many or B-spline tools, long parametric rebuilds. A native OpenCascade crash here only kills the helper process; the GUI and its open documents survive, and the tool reports the crash signal and the script's output.
The script runs on the MCP server machine, independently of --host, in a fresh process without GUI: import FreeCAD/Part yourself, open documents from disk (FreeCAD.openDocument(path)), save results with doc.save()/saveAs() or Shape.exportBrep(). Nothing from the execute_code namespace is available. Print progress to stdout; it is returned when the process ends. After the script saved a .FCStd that is open in the GUI, call reload_document(doc_name) to show the result.
Args: code: Complete Python script for freecadcmd. timeout: Positive finite seconds to wait before killing the process (default 600). Partial output is preserved on timeout.
Returns: Exit status, crash/timeout diagnosis and the script's printed output.
Inputs: code (required), timeout.
get_async_statusA
Report the state of background jobs started by execute_code_async.
Does not use the FreeCAD GUI thread, so it answers even while a job runs.
Args: job_id: The id returned by execute_code_async. Empty lists all running jobs and up to 20 recently completed jobs.
Returns: For one job: its state (running/done/failed), the error and traceback when it failed. History is held in memory until FreeCAD exits.
Inputs: job_id.
get_objectA
Get an object from a document. You can use this tool to get the properties of an object to see what you can check or edit.
Args: doc_name: The name of the document to get the object from. obj_name: The name of the object to get. include_screenshot: Whether to return a screenshot of the document (default True). Set to False to save tokens when only the object data is needed. view_name: The view orientation of the returned screenshot (default "Isometric").
Returns: The object and a screenshot of the object.
Inputs: doc_name (required), obj_name (required), view_name, include_screenshot.
get_objectsA
Get all objects in a document. You can use this tool to get the objects in a document to see what you can check or edit.
Args: doc_name: The name of the document to get the objects from. include_screenshot: Whether to return a screenshot of the document (default True). Set to False to save tokens when only the object data is needed. view_name: The view orientation of the returned screenshot (default "Isometric").
Returns: A list of objects in the document and a screenshot of the document.
Inputs: doc_name (required), view_name, include_screenshot.
get_parts_listB
Get the list of parts in the parts library addon.
Inputs: no named parameters.
get_rpc_statusA
Get RPC and FreeCAD GUI-dispatch health.
This tool does not use FreeCAD's GUI thread, so it remains available after
a GUI operation times out. A stuck state identifies the operation that
is still running and indicates that FreeCAD may need to be restarted.
version_check is "ok" or says whether the addon or the server needs
updating.
Inputs: no named parameters.
get_task_statusA
Poll a timed-out GUI operation without waiting for the GUI thread.
Omit task_id to list pending work and the last 20 completed operations. A timed_out_running task can still mutate the document. Wait for its final result before retrying. History is in-memory and resets when FreeCAD exits; large result previews are capped at 65,536 serialized characters and marked result_truncated.
Inputs: task_id.
get_viewA
Get a screenshot of the active view.
Args: view_name: The name of the view to get the screenshot of. The following views are available: - "Isometric" - "Front" - "Top" - "Right" - "Back" - "Left" - "Bottom" - "Dimetric" - "Trimetric" width: Requested width in pixels. With both dimensions omitted, the viewport is scaled to a maximum edge of 1024 pixels. If only one dimension is omitted, that dimension uses the viewport size. height: Requested height in pixels, following the same sizing rules. focus_object: The name of the object to focus on. If not specified, fits all objects in the view.
Returns: A screenshot of the active view.
Inputs: view_name (required), width, height, focus_object.
insert_part_from_libraryA
Insert a part from the parts library addon.
Args: relative_path: The relative path of the part to insert. include_screenshot: Whether to return a screenshot of the model (default True). Set to False to save tokens when visual feedback is not needed, e.g. for intermediate steps in a longer sequence of changes. view_name: The view orientation of the returned screenshot (default "Isometric"). Pick the view that best shows the change being made.
Returns: A message indicating the success or failure of the part insertion and a screenshot of the object.
Inputs: relative_path (required), view_name, include_screenshot.
list_documentsA
Get the list of open documents in FreeCAD.
Returns: A list of document names.
Inputs: no named parameters.
reload_documentA
Close and re-open a document to pick up external file changes.
Use this AFTER the document's .FCStd file has been modified by
something outside of FreeCAD's GUI process — for example, a
headless freecadcmd script that edited and saved the file. The
open GUI document is otherwise unaware of on-disk changes; this
tool closes the stale in-memory copy and reopens the file from
disk so the GUI shows current geometry.
Args:
doc_name: The name of the open document to reload. Must match
the name shown by list_documents.
Returns:
A message confirming the document was reloaded, or describing
the failure (document not loaded, no associated file, etc).
FreeCAD names the reopened document after the file stem, which
can differ from doc_name ("HandleConcept3D" saved as
handle-concept-3d.FCStd reopens as handle_concept_3d); the reply
names the document you should use from then on.
Examples:
json { "doc_name": "chassis" }
Inputs: doc_name (required).
run_fem_analysisA
Run the CalculiX solver on an existing Fem::FemAnalysis container and return summary results.
Prerequisites in the document, all created with create_object:
A Part-derived solid (e.g. Part::Box, PartDesign::Body) acting as the geometry.
A Fem::AnalysisPython container.
A material: type "Fem::MaterialCommon" with analysis_name set (built with ObjectsFem.makeMaterialSolid) and its Material given as a dict with units, e.g. {"Name": "Steel", "YoungsModulus": "210 GPa", "PoissonRatio": "0.3", "Density": "7900 kg/m^3"}. A dict read from the material library can come back empty; give the values.
A mesh: type "Fem::FemMeshGmsh" with analysis_name, Shape (the geometry) and CharacteristicLengthMax / CharacteristicLengthMin; it is generated when created. A section needs several elements across its thickness, or bending stress comes out far too low.
At least one Fem::ConstraintFixed and one Fem::ConstraintForce (or ConstraintPressure) whose References are faces of the geometry.
Set Force with its unit, e.g. "1000 N": create_object/edit_object reject unitless values. In existing documents and execute_code, a plain number uses millinewtons, so Force = 1000 applies 1 N. The force acts along the normal of the loaded face unless Direction links an edge or face; Reversed flips it.
A SolverCcxTools is auto-created if the analysis has none. The reply lists mechanical loads captured in the same GUI operation as the solve (in N and MPa, with faces and direction). A failed load read stops the solve. Direction can be set to {"object_name": "Beam", "edge": "Edge1"}.
The solver runs synchronously on the FreeCAD GUI thread. Other document operations queue behind it; get_rpc_status and get_async_status remain available.
Returns max von Mises stress (MPa), max/min displacement (mm), node count, and the working directory CalculiX wrote to. On failure, returns the prerequisite-check or solver error along with the working directory for triage.
Args: doc_name: Name of the FreeCAD document. analysis_name: Name of the Fem::AnalysisPython object. timeout: Seconds to wait for the solver (default 600). include_screenshot: Whether to return a screenshot of the model (default True). Set to False to save tokens when only the numeric results are needed. view_name: The view orientation of the returned screenshot (default "Isometric").
Inputs: doc_name (required), analysis_name (required), timeout, view_name, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Three overlapping code-execution tools (execute_code, execute_code_async, execute_code_headless) and two status pollers (get_task_status, get_async_status) create real misselection risk; the lengthy descriptions do explain the distinctions, but an agent must reason carefully each time. The CRUD pair get_object/get_objects and get_view are otherwise clearly separated.
All names are snake_case with verb-first phrasing (create_object, edit_object, delete_object, get_view, list_documents, reload_document), which is predictable. Minor deviations: get_parts_list awkwardly stacks three nouns and the get_*_status pair reads less like a verb_noun pattern.
18 tools sits at the upper end, but the domain (document CRUD, three execution modes, FEM solving, parts library, status/diagnostics) genuinely needs that surface. Only the duplicated status and execution families feel like they could have been consolidated.
Object-level CRUD is fully covered (create/get/edit/delete) plus FEM and library insertion, but document lifecycle is incomplete: there is no save_document, close_document, or delete_document, and saving is only possible indirectly via execute_code or a headless script. That gap will force agents into workarounds for a core workflow.
Maintenance
Related MCP Connectors
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Browser CAD for AI: model parts and joints, check motion, export STEP, STL or robot files
A browser 3D CAD for your AI: it scripts real-size models, uCAD builds them and returns pictures.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to build and edit native CAD parts and assemblies, inspect saved geometry and measurements, retain revisions, run mechanism and interference checks, and export STEP/STL/GLB artifacts through MCP tools.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to drive desktop CAD software through natural language with verified execution, failure recovery, and traceable results across modeling, assemblies, drawings, exports, motion, FEA, and related engineering workflows.2MIT
- FlicenseBqualityCmaintenanceEnables AI agents to drive SolidWorks for parametric modelling, aerospace part generation, sheet metal, weldments, assemblies, drawings, simulation, inspection, and file export. It provides approval-gated operations, verification tools, and journaling for safe, recoverable design automation.94-
- AlicenseAqualityBmaintenanceLets your AI app build real SOLIDWORKS parts, sheet metal, weldments, assemblies and drawings on Windows: fully defined sketches, 121 tools, and every result measured from the model. One-click Windows installer.1213MIT