freecad-mcp-whitelist
v0.2.1Curated FreeCAD MCP server for engineering workflows (geometry, TechDraw drawings, materials, fasteners).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
create_document
Create a new empty FreeCAD document.
| Parameter | Type | Description |
|---|---|---|
name * | string |
list_documents
List names of open FreeCAD documents.
open_document
Open an .FCStd file.
| Parameter | Type | Description |
|---|---|---|
path * | string |
save_document
Save a document, optionally as a new file.
| Parameter | Type | Description |
|---|---|---|
doc_name | ||
path |
close_document
Close a document.
| Parameter | Type | Description |
|---|---|---|
doc_name * | string |
recompute
Force a dependency-graph recompute on the document.
| Parameter | Type | Description |
|---|---|---|
doc_name |
get_objects
List all objects in a document with type and visibility.
| Parameter | Type | Description |
|---|---|---|
doc_name |
get_object
Get full properties of a single object.
| Parameter | Type | Description |
|---|---|---|
obj_name * | string | |
doc_name |
delete_object
Delete an object and recompute.
| Parameter | Type | Description |
|---|---|---|
obj_name * | string | |
doc_name |
rename_object
Rename an object's user-facing Label. The internal Name is immutable; FreeCAD auto-suffixes Label collisions (e.g. Bracket001).
| Parameter | Type | Description |
|---|---|---|
new_label * | string | |
obj_name * | string | |
doc_name |
rename_objects
Batch-rename multiple objects. ``renames`` items: ``{"name": "<id>", "label": "<new>"}``.
| Parameter | Type | Description |
|---|---|---|
renames * | array | |
doc_name |
create_primitive
Create a primitive solid. kind: 'box' | 'cylinder' | 'sphere' | 'cone' | 'torus' | 'plane' | 'wedge' | 'ellipsoid' | 'prism' properties: dict matching FreeCAD's property names for the type, e.g. {'Length': 30, 'Width': 20, 'Height': 10, 'Placement': {'Base': {'x': 0, 'y': 0, 'z': 0}, 'Rotation': {'Axis': {'x': 0, 'y': 0, 'z': 1}, 'Angle': 0}}}
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
name * | string | |
doc_name | ||
properties |
boolean_op
Boolean op. ``op`` is 'fuse'|'union'|'cut'|'difference'|'common'|'intersection'.
| Parameter | Type | Description |
|---|---|---|
bases * | array | |
op * | string | |
tools * | array | |
doc_name | ||
keep_inputs | boolean | |
name |
fillet
Fillet the listed edge indices (1-based) with a constant radius.
| Parameter | Type | Description |
|---|---|---|
edges * | array | |
obj_name * | string | |
radius * | number | |
doc_name | ||
name |
chamfer
Chamfer the listed edge indices (1-based) with a constant size.
| Parameter | Type | Description |
|---|---|---|
edges * | array | |
obj_name * | string | |
size * | number | |
doc_name | ||
name |
thickness
Hollow out a solid leaving the listed faces open. ``mode``: 'Skin'|'Pipe'|'RectoVerso'.
| Parameter | Type | Description |
|---|---|---|
faces * | array | |
obj_name * | string | |
value * | number | |
doc_name | ||
mode | string | |
name |
mirror
Mirror an object across a plane defined by (base, normal).
| Parameter | Type | Description |
|---|---|---|
base * | object | |
normal * | object | |
obj_name * | string | |
doc_name | ||
name |
translate
Translate an object by ``delta`` (mm).
| Parameter | Type | Description |
|---|---|---|
delta * | object | |
obj_name * | string | |
doc_name |
rotate
Rotate an object by ``angle`` deg around ``axis`` through ``center``.
| Parameter | Type | Description |
|---|---|---|
angle * | number | |
axis * | object | |
obj_name * | string | |
center | ||
doc_name |
extrude
Extrude a sketch or face along its normal (or a custom direction).
| Parameter | Type | Description |
|---|---|---|
length * | number | |
profile * | string | |
direction | ||
doc_name | ||
name | ||
symmetric | boolean |
revolve
Revolve a profile around an axis.
| Parameter | Type | Description |
|---|---|---|
axis_base * | object | |
axis_dir * | object | |
profile * | string | |
angle | number | |
doc_name | ||
name |
loft
Loft a solid through ordered profiles.
| Parameter | Type | Description |
|---|---|---|
profiles * | array | |
closed | boolean | |
doc_name | ||
name | ||
ruled | boolean | |
solid | boolean |
sweep
Sweep a profile along a path.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
profile * | string | |
doc_name | ||
frenet | boolean | |
name | ||
solid | boolean |
import_file
Import STEP/IGES/STL/BREP/OBJ/FCStd into a document.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
doc_name |
export_file
Export to STEP/IGES/STL/BREP/OBJ/FCStd. ``tolerance_report`` re-imports the exported file and diffs bounding boxes.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
doc_name | ||
object_names | ||
tolerance_report | boolean |
audit_units
Report the unit system of a document.
| Parameter | Type | Description |
|---|---|---|
doc_name |
find_fasteners
List probable bolts / screws / nuts by name AND shape heuristic.
| Parameter | Type | Description |
|---|---|---|
diameter_range_mm | ||
doc_name | ||
max_length_mm | number | |
name_patterns |
remove_fasteners
Remove probable fasteners. ``dry_run`` defaults to True — set False explicitly to actually delete.
| Parameter | Type | Description |
|---|---|---|
diameter_range_mm | ||
doc_name | ||
dry_run | boolean | |
max_length_mm | number | |
name_patterns |
simplify_shape
Run generic OCC shape healing on an imported body. Pipeline: heal → remove_splitter → unify same-domain faces/edges → optional sew → optional tiny-face drop. Useful for STEP/IGES imports before meshing or defeaturing.
| Parameter | Type | Description |
|---|---|---|
obj_name * | string | |
doc_name | ||
heal | boolean | |
min_face_area_mm2 | number | |
name | ||
remove_splitter | boolean | |
sew_tolerance_mm | ||
unify_edges | boolean | |
unify_faces | boolean |
list_materials
List materials in the built-in library, grouped by category.
get_material
Return a material's full property sheet.
| Parameter | Type | Description |
|---|---|---|
material * | string |
assign_material
Assign a material to an object (or a single face).
| Parameter | Type | Description |
|---|---|---|
material * | string | |
obj_name * | string | |
doc_name | ||
face |
get_assigned_material
Read back the material metadata from an object/face.
| Parameter | Type | Description |
|---|---|---|
obj_name * | string | |
doc_name | ||
face |
mass_properties
Volume, surface area, centre of mass, bbox, and — if density is known (argument or assigned-material) — mass and inertia.
| Parameter | Type | Description |
|---|---|---|
obj_name * | string | |
density_kg_m3 | ||
doc_name |
add_callout
Leader arrow + text label pointing at an object or face.
| Parameter | Type | Description |
|---|---|---|
label * | string | |
target_object * | string | |
color | ||
doc_name | ||
name | ||
offset | ||
target_face |
add_dimension
Draft dimension between two 3D points.
| Parameter | Type | Description |
|---|---|---|
a * | object | |
b * | object | |
doc_name | ||
name |
clear_annotations
Remove every annotation this tool has created in the document.
| Parameter | Type | Description |
|---|---|---|
doc_name |
set_view
Switch the 3D view. ``direction``: Isometric, Front, Top, Right, Back, Left, Bottom, Dimetric, Trimetric.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
doc_name | ||
focus_object |
screenshot
Save a PNG of the active view; optionally return base64 bytes.
| Parameter | Type | Description |
|---|---|---|
background | string | |
height | integer | |
path | ||
return_bytes | boolean | |
width | integer |
section_cut
Insert a Part::SectionCut through the listed objects.
| Parameter | Type | Description |
|---|---|---|
normal * | object | |
objects * | array | |
origin * | object | |
doc_name | ||
name |
execute_code
Run Python inside the FreeCAD GUI process. Use rarely — prefer the typed tools — but indispensable for one-off OCC tricks.
| Parameter | Type | Description |
|---|---|---|
code * | string |
create_drawing_page
Create a TechDraw page. Pass ``sheet`` (e.g. 'A3_Landscape', 'A4_Landscape', 'A2_Landscape') to pick a bundled template, or ``template_path`` for a custom SVG.
| Parameter | Type | Description |
|---|---|---|
doc_name | ||
name | ||
sheet | ||
template_path |
create_projection_group
Add a third-angle projection group (Front + supplementary views) to a page. TechDraw lays the views out automatically, no overlap. ``projections`` defaults to ['Top', 'Right']; valid entries: Top, Bottom, Left, Right, Rear, FrontTopLeft, FrontTopRight, FrontBottomLeft, FrontBottomRight. ``scale=None`` auto-scales to fit the page.
| Parameter | Type | Description |
|---|---|---|
page_name * | string | |
source_objects * | array | |
doc_name | ||
name | ||
position | ||
projections | ||
scale |
create_manufacturing_drawing
One-shot manufacturing drawing: templated sheet, projection group (Front + Top + Right by default, laid out correctly), optional isometric, populated title-block (title / author / scale / date / material / drawing number), overall-extent dimensions on the front view, and optional PDF export.
| Parameter | Type | Description |
|---|---|---|
object_name * | string | |
add_overall_dimensions | boolean | |
author | ||
doc_name | ||
include_iso | boolean | |
output_path | ||
projections | ||
scale | ||
sheet | string | |
title |
add_drawing_view
Add an orthographic or iso view to a drawing page. view_type: Front | Back | Top | Bottom | Right | Left | Iso
| Parameter | Type | Description |
|---|---|---|
page_name * | string | |
source_objects * | array | |
doc_name | ||
position | ||
scale | number | |
show_hidden | boolean | |
view_type | string |
add_drawing_dimension
Add a dimension in a drawing view. kind: Distance | DistanceX | DistanceY | Radius | Diameter | Angle refs: [{"subname": "Edge1"}, {"subname": "Vertex2"}]
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
refs * | array | |
view_name * | string | |
doc_name |
export_drawing_pdf
Export a drawing page to PDF.
| Parameter | Type | Description |
|---|---|---|
page_name * | string | |
path * | string | |
doc_name |
export_drawing_svg
Export a drawing page to SVG.
| Parameter | Type | Description |
|---|---|---|
page_name * | string | |
path * | string | |
doc_name |