freecad-mcp-whitelist

v0.2.1
freecad-mcp-whitelist Checked 1 day ago Published 2 months ago

Curated 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.

ParameterTypeDescription
name *string

list_documents

List names of open FreeCAD documents.

open_document

Open an .FCStd file.

ParameterTypeDescription
path *string

save_document

Save a document, optionally as a new file.

ParameterTypeDescription
doc_name
path

close_document

Close a document.

ParameterTypeDescription
doc_name *string

recompute

Force a dependency-graph recompute on the document.

ParameterTypeDescription
doc_name

get_objects

List all objects in a document with type and visibility.

ParameterTypeDescription
doc_name

get_object

Get full properties of a single object.

ParameterTypeDescription
obj_name *string
doc_name

delete_object

Delete an object and recompute.

ParameterTypeDescription
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).

ParameterTypeDescription
new_label *string
obj_name *string
doc_name

rename_objects

Batch-rename multiple objects. ``renames`` items: ``{"name": "<id>", "label": "<new>"}``.

ParameterTypeDescription
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}}}

ParameterTypeDescription
kind *string
name *string
doc_name
properties

boolean_op

Boolean op. ``op`` is 'fuse'|'union'|'cut'|'difference'|'common'|'intersection'.

ParameterTypeDescription
bases *array
op *string
tools *array
doc_name
keep_inputsboolean
name

fillet

Fillet the listed edge indices (1-based) with a constant radius.

ParameterTypeDescription
edges *array
obj_name *string
radius *number
doc_name
name

chamfer

Chamfer the listed edge indices (1-based) with a constant size.

ParameterTypeDescription
edges *array
obj_name *string
size *number
doc_name
name

thickness

Hollow out a solid leaving the listed faces open. ``mode``: 'Skin'|'Pipe'|'RectoVerso'.

ParameterTypeDescription
faces *array
obj_name *string
value *number
doc_name
modestring
name

mirror

Mirror an object across a plane defined by (base, normal).

ParameterTypeDescription
base *object
normal *object
obj_name *string
doc_name
name

translate

Translate an object by ``delta`` (mm).

ParameterTypeDescription
delta *object
obj_name *string
doc_name

rotate

Rotate an object by ``angle`` deg around ``axis`` through ``center``.

ParameterTypeDescription
angle *number
axis *object
obj_name *string
center
doc_name

extrude

Extrude a sketch or face along its normal (or a custom direction).

ParameterTypeDescription
length *number
profile *string
direction
doc_name
name
symmetricboolean

revolve

Revolve a profile around an axis.

ParameterTypeDescription
axis_base *object
axis_dir *object
profile *string
anglenumber
doc_name
name

loft

Loft a solid through ordered profiles.

ParameterTypeDescription
profiles *array
closedboolean
doc_name
name
ruledboolean
solidboolean

sweep

Sweep a profile along a path.

ParameterTypeDescription
path *string
profile *string
doc_name
frenetboolean
name
solidboolean

import_file

Import STEP/IGES/STL/BREP/OBJ/FCStd into a document.

ParameterTypeDescription
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.

ParameterTypeDescription
path *string
doc_name
object_names
tolerance_reportboolean

audit_units

Report the unit system of a document.

ParameterTypeDescription
doc_name

find_fasteners

List probable bolts / screws / nuts by name AND shape heuristic.

ParameterTypeDescription
diameter_range_mm
doc_name
max_length_mmnumber
name_patterns

remove_fasteners

Remove probable fasteners. ``dry_run`` defaults to True — set False explicitly to actually delete.

ParameterTypeDescription
diameter_range_mm
doc_name
dry_runboolean
max_length_mmnumber
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.

ParameterTypeDescription
obj_name *string
doc_name
healboolean
min_face_area_mm2number
name
remove_splitterboolean
sew_tolerance_mm
unify_edgesboolean
unify_facesboolean

list_materials

List materials in the built-in library, grouped by category.

get_material

Return a material's full property sheet.

ParameterTypeDescription
material *string

assign_material

Assign a material to an object (or a single face).

ParameterTypeDescription
material *string
obj_name *string
doc_name
face

get_assigned_material

Read back the material metadata from an object/face.

ParameterTypeDescription
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.

ParameterTypeDescription
obj_name *string
density_kg_m3
doc_name

add_callout

Leader arrow + text label pointing at an object or face.

ParameterTypeDescription
label *string
target_object *string
color
doc_name
name
offset
target_face

add_dimension

Draft dimension between two 3D points.

ParameterTypeDescription
a *object
b *object
doc_name
name

clear_annotations

Remove every annotation this tool has created in the document.

ParameterTypeDescription
doc_name

set_view

Switch the 3D view. ``direction``: Isometric, Front, Top, Right, Back, Left, Bottom, Dimetric, Trimetric.

ParameterTypeDescription
direction *string
doc_name
focus_object

screenshot

Save a PNG of the active view; optionally return base64 bytes.

ParameterTypeDescription
backgroundstring
heightinteger
path
return_bytesboolean
widthinteger

section_cut

Insert a Part::SectionCut through the listed objects.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
object_name *string
add_overall_dimensionsboolean
author
doc_name
include_isoboolean
output_path
projections
scale
sheetstring
title

add_drawing_view

Add an orthographic or iso view to a drawing page. view_type: Front | Back | Top | Bottom | Right | Left | Iso

ParameterTypeDescription
page_name *string
source_objects *array
doc_name
position
scalenumber
show_hiddenboolean
view_typestring

add_drawing_dimension

Add a dimension in a drawing view. kind: Distance | DistanceX | DistanceY | Radius | Diameter | Angle refs: [{"subname": "Edge1"}, {"subname": "Vertex2"}]

ParameterTypeDescription
kind *string
refs *array
view_name *string
doc_name

export_drawing_pdf

Export a drawing page to PDF.

ParameterTypeDescription
page_name *string
path *string
doc_name

export_drawing_svg

Export a drawing page to SVG.

ParameterTypeDescription
page_name *string
path *string
doc_name