About Freecad Addon Robust MCP Server
Freecad Addon Robust MCP Server is an MCP server published by spkane in the Developer Tools category: the FreeCAD Robust MCP server and MCP Bridge Workbench/Addon. Conduid read 162 tools from its source: activate_workbench, add_external_geometry, add_sketch_arc, add_sketch_bspline, add_sketch_circle, add_sketch_constraint and 156 more. It is published to PyPI as freecad-robust-mcp and runs with uvx.
The repository has 282 stars and 66 forks, is licensed Apache-2.0, and its last commit was on 30 Nov 2026. The latest release is robust-mcp-server-v0.8.0 (23 Nov 2026): Install Robust MCP Server 0.8.0 and Robust MCP Bridge 0.8.0 together for local review in FreeCAD. It follows robust-mcp-workbench-v0.8.0 (23 Nov 2026), and the 5 most recent releases go back to robust-mcp-workbench-v0.7.0 (6 Nov 2026). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include freecad, workbench, devtools and addons.
Install
uvx freecad-robust-mcppip install freecad-robust-mcpgit clone https://github.com/spkane/freecad-addon-robust-mcp-serverTools (162)
activate_workbenchSwitch to a different workbench| Parameter | Type | Description |
|---|---|---|
| workbench_name * | string | Internal name of the workbench to activate. Common workbenches: - "PartWorkbench" - Part modeling - "PartDesignWorkbench" - Parametric part design - "SketcherWorkbench" - 2D sketching - "DraftWorkbench" - 2D drafting - "MeshWorkbench" - Mesh operations - "SpreadsheetWorkbench" - Spreadsheet |
add_external_geometryAdd external geometry reference to a sketch.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| element * | string | Element to reference (e.g., "Edge1", "Face1"). |
| object_name * | string | Name of the object to reference. |
| sketch_name * | string | Name of the sketch. |
add_sketch_arcAdd an arc by center, radius, and angles| Parameter | Type | Description |
|---|---|---|
| center_x * | number | X coordinate of center. |
| center_y * | number | Y coordinate of center. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| end_angle * | number | End angle in degrees. |
| radius * | number | Arc radius. |
| sketch_name * | string | Name of the sketch to add arc to. |
| start_angle * | number | Start angle in degrees. |
add_sketch_bsplineAdd a B-spline curve to a sketch.| Parameter | Type | Description |
|---|---|---|
| closed | boolean | Whether to close the spline. Defaults to False. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| points * | array | List of control points, each as [x, y]. |
| sketch_name * | string | Name of the sketch to add B-spline to. |
add_sketch_circleAdd a circle to a sketch| Parameter | Type | Description |
|---|---|---|
| center_x * | number | X coordinate of center. |
| center_y * | number | Y coordinate of center. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| radius * | number | Circle radius. |
| sketch_name * | string | Name of the sketch to add circle to. |
add_sketch_constraintAdd a constraint to a sketch.| Parameter | Type | Description |
|---|---|---|
| constraint_type * | string | Type of constraint. Options: - Geometric: "Coincident", "Horizontal", "Vertical", "Parallel", "Perpendicular", "Tangent", "Equal", "Symmetric", "Block" - Dimensional: "Distance", "DistanceX", "DistanceY", "Radius", "Diameter", "Angle" |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first geometry element. |
| geometry2 | integer | Index of second geometry element. Use -2 for external. |
| point1 | integer | Point index on first geometry (1=start, 2=end, 3=center). Use -1 for edge itself. |
| point2 | integer | Point index on second geometry. |
| sketch_name * | string | Name of the sketch. |
| value | number | Value for dimensional constraints (distance, angle, etc.). |
add_sketch_ellipseAdd an ellipse to a sketch.| Parameter | Type | Description |
|---|---|---|
| center_x * | number | X coordinate of center. |
| center_y * | number | Y coordinate of center. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| major_radius * | number | Semi-major axis radius. |
| minor_radius * | number | Semi-minor axis radius. |
| sketch_name * | string | Name of the sketch to add ellipse to. |
add_sketch_lineAdd a line (with optional construction flag)| Parameter | Type | Description |
|---|---|---|
| construction | boolean | Whether this is a construction line. Defaults to False. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| sketch_name * | string | Name of the sketch to add line to. |
| x1 * | number | X coordinate of start point. |
| x2 * | number | X coordinate of end point. |
| y1 * | number | Y coordinate of start point. |
| y2 * | number | Y coordinate of end point. |
add_sketch_pointAdd a point (useful for hole centers)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| sketch_name * | string | Name of the sketch to add point to. |
| x * | number | X coordinate. |
| y * | number | Y coordinate. |
add_sketch_polygonAdd a regular polygon to a sketch.| Parameter | Type | Description |
|---|---|---|
| center_x * | number | X coordinate of center. |
| center_y * | number | Y coordinate of center. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| radius * | number | Circumscribed circle radius. |
| sides | integer | Number of sides (3 for triangle, 6 for hexagon, etc.). |
| sketch_name * | string | Name of the sketch to add polygon to. |
add_sketch_rectangleAdd a rectangle to a sketch| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| height * | number | Rectangle height. |
| sketch_name * | string | Name of the sketch to add rectangle to. |
| width * | number | Rectangle width. |
| x * | number | X coordinate of bottom-left corner. |
| y * | number | Y coordinate of bottom-left corner. |
add_sketch_slotAdd a slot (obround/stadium shape) to a sketch.| Parameter | Type | Description |
|---|---|---|
| center1_x * | number | X coordinate of first arc center. |
| center1_y * | number | Y coordinate of first arc center. |
| center2_x * | number | X coordinate of second arc center. |
| center2_y * | number | Y coordinate of second arc center. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| radius * | number | Radius of the semicircular ends. |
| sketch_name * | string | Name of the sketch to add slot to. |
boolean_operationFuse, cut, or intersect objects| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the objects. Uses active document if None. |
| object1_name * | string | Name of the first object. |
| object2_name * | string | Name of the second object. |
| operation * | string | Boolean operation type: "fuse" (union), "cut" (subtract), or "common" (intersection). |
| result_name | string | Name for the result object. Auto-generated if None. |
cam_add_dressupAdd a dressup to an operation (or to another dressup).| Parameter | Type | Description |
|---|---|---|
| base_operation * | string | Operation or dressup to dress (name or label). |
| doc_name | string | Document. Uses the active document if None. |
| dressup_type * | string | "Tags", "Boundary", "Dogbone", "Array", "LeadInOut", "RampEntry", "Dragknife", "AxisMap", "ZCorrect", and on FreeCAD 26.3+ "Boundary2", "Mirror", "PlungeMilling". All but the first four need the FreeCAD GUI. |
| expressions | object | Property expressions. |
| label | string | Display label. |
| properties | object | Property values, e.g. {"Width": 6, "Height": 1.5}. |
| tag_count | integer | Tags only: number of holding tags to generate. |
cam_add_operationAdd any CAM operation to a job.| Parameter | Type | Description |
|---|---|---|
| base | array | Features to machine, [{"object": "<model>", "subelements": ["Face3", "Edge7"]}]. Original model names are mapped to the job's clones. None keeps FreeCAD's default (e.g. Drilling picks all holes, Profile the model outline); [] clears it. |
| doc_name | string | Document. Uses the active document if None. |
| expressions | object | Property expressions; None as value removes one. |
| job_name | string | Job. Optional if the document has exactly one job. |
| label | string | Display label. |
| name | string | Internal object name. The type if None. |
| op_type * | string | Operation type, e.g. "Profile", "Pocket", "PocketShape", "Adaptive", "MillFace", "MillFacing", "Helix", "Drilling", "Tapping", "ThreadMilling", "Engrave", "Vcarve", "Deburr", "Slot", "Surface", "Waterline", "PlanarSurface", "RotarySurface", "Flute", "Probe", "Custom"; or one that works on other operations or the program flow: "Comment" (property Comment), "Stop" (property Stop: "Mandatory" M0 / "Optional" M1), "Copy" (linked copy of one operation), "Array" (linear, polar or point array of operations with one tool controller, coolant None), "SimpleCopy" (fixed G-code copy). These take no tool_controller or base and are appended at the end of the job; reorder with cam_set_operation_order. |
| properties | object | Property values, e.g. {"Side": "Outside", "FinalDepth": -5, "StepDown": "1.5 mm"}. |
| source_operations | array | Copy, Array, SimpleCopy only: the operations to copy or array (names or labels), top-level in the job. |
| tool_controller | string | Tool controller (name or label). Required when the job has more than one. |
cam_analyze_modelList a model's faces and drillable holes, to choose operation Base faces.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| face_types | array | Only list these surface types, e.g. ["Plane", "Cylinder"]. |
| object_name * | string | Model object (name or unique label). |
cam_describe_typeList every option of an operation or dressup type with its defaults.| Parameter | Type | Description |
|---|---|---|
| groups | array | Only these property groups, e.g. ["Depth", "Operation"]. |
| include_hidden | boolean | Include properties FreeCAD hides in the editor. |
| kind | string | "operation" or "dressup". |
| type_name * | string | Operation or dressup type (see cam_get_capabilities). |
cam_feeds_speedsCompare tool controllers with FreeCAD's feeds & speeds lookup.| Parameter | Type | Description |
|---|---|---|
| apply | boolean | Write the suggestion to the tool controller. |
| doc_name | string | Document. Uses the active document if None. |
| job_name | string | Job. Optional if the document has exactly one job. |
| mode | string | "preset" (only curated presets of the tool) or "resolver" (also the material's generic surface speed and the tool's default chipload). |
| op_type | string | "profile", "pocket", "slot", "drill", "adaptive" or "surface_finish"; None matches any. |
| tool_controllers | array | Tool controllers (names or unique labels). All of the job if None. |
cam_get_capabilitiesList what the CAM workbench offers in the connected FreeCAD.cam_get_propertiesRead all properties of a CAM object with their metadata.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| groups | array | Only these property groups. |
| include_hidden | boolean | Include properties FreeCAD hides in the editor. |
| object_name * | string | Object (name or unique label). |
cam_inspect_jobDescribe a job: models, stock, tool controllers, operations, post.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| job_name | string | Job. Optional if the document has exactly one job. |
cam_inspect_pathSummarize the toolpath of one operation or dressup.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| gcode_lines | integer | Also return up to this many lines of its path as G-code (FreeCAD internal units: mm, mm/s). 0 returns none. |
| object_name * | string | Operation or dressup (name or unique label). |
cam_list_tool_libraryList FreeCAD's tool libraries, their tool bits and the tool shapes.| Parameter | Type | Description |
|---|---|---|
| library | string | Only list this library (id or label). All if None. |
cam_place_modelTurn and move the part in a job, e.g. flipped for the second side.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| face_up | object | {"object": "<model>", "face": "Face3"}: turn the part so this face points up (+Z). Not together with rotate. |
| job_name | string | Job. Optional if the document has exactly one job. |
| move | array | [x, y, z] shift in mm, applied together with origin. |
| origin | object | Put the part's bounding box at the origin afterwards: {"x": "min"|"max"|"center"|"keep", "y": ..., "z": "top"|"bottom"|"center"|"keep"}; e.g. {"x": "min", "y": "min", "z": "top"} for X0 Y0 at the lower left, Z0 on top. |
| rotate | object | {"axis": "x"|"y"|"z" or [x, y, z], "angle": degrees}, around the center of the part's bounding box. Flip: {"axis": "x", "angle": 180}. |
cam_remove_tool_controllerRemove a tool controller (and its tool bit) that no operation uses.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| tool_controller * | string | Tool controller (name or unique label). |
cam_set_operation_orderReorder the operations of a job (this is the G-code order).| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| job_name | string | Job. Optional if the document has exactly one job. |
| order * | array | Every top-level operation/dressup of the job, in the new order. |
cam_set_propertiesSet properties of any CAM object, with validation.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| expressions | object | Property expressions; None as value removes one. |
| object_name * | string | Object (name or unique label). |
| recompute | boolean | Recompute the document afterwards. |
| values | object | Property values. Link lists use [{"object", "subelements"}], links an object name, vectors [x, y, z]. |
cam_set_stockReplace a job's stock and/or assign the stock material.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document. Uses the active document if None. |
| extent_neg | array | from_base margins [x, y, z] on the negative sides (mm). |
| extent_pos | array | from_base margins [x, y, z] on the positive sides (mm). |
| height | number | cylinder height (mm). |
| job_name | string | Job. Optional if the document has exactly one job. |
| kind | string | "from_base" (model bounding box plus margins), "box" or "cylinder". If None: only assign `material` to the existing stock, or "from_base" when no material is given. |
| material | string | Stock material (FreeCAD 26.3+), name or UUID of a material from cam_get_capabilities' stock_materials. Feeds & speeds presets on tool bits are matched against it. A replaced stock keeps its material when this is None. |
| placement | object | {"base": [x, y, z], "axis": [x, y, z], "angle": deg}. |
| radius | number | cylinder radius (mm). |
| size | array | box [length, width, height] (mm). |
chamfer_edgesAdd chamfers (beveled edges)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| edges | array | List of edge names to chamfer (e.g., ["Edge1", "Edge2"]). Chamfers all edges if None. |
| name | string | Chamfer feature name. Auto-generated if None. |
| object_name * | string | Name of the object to chamfer. |
| size * | number | Chamfer size. |
clear_selectionClear all selectionsclose_documentClose a document (with optional save)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Name of document to close. Uses active document if None. |
| save_changes | boolean | Whether to save changes before closing. Defaults to False. |
common_allFind the common (intersection) of multiple shapes.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the objects. Uses active document if None. |
| object_names * | array | List of object names to intersect. |
| result_name | string | Name for result object. Auto-generated if None. |
constrain_angleConstrain angle of a line or between two lines.| Parameter | Type | Description |
|---|---|---|
| angle * | number | Angle in degrees. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first line. |
| geometry2 | integer | Index of second line (-2 for angle from horizontal). |
| sketch_name * | string | Name of the sketch. |
constrain_coincidentConstrain two points to be coincident (same location).| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first geometry element. |
| geometry2 * | integer | Index of second geometry element. |
| point1 * | integer | Point on first geometry (1=start, 2=end, 3=center). |
| point2 * | integer | Point on second geometry. |
| sketch_name * | string | Name of the sketch. |
constrain_distanceAdd a distance constraint.| Parameter | Type | Description |
|---|---|---|
| distance * | number | The distance value. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first geometry element. |
| geometry2 | integer | Index of second geometry element. -2 if not used. |
| point1 | integer | Point on first geometry (1=start, 2=end). -1 for line length. |
| point2 | integer | Point on second geometry. |
| sketch_name * | string | Name of the sketch. |
constrain_distance_xConstrain horizontal distance from origin or between points.| Parameter | Type | Description |
|---|---|---|
| distance * | number | The horizontal distance value. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry * | integer | Index of geometry element. |
| point * | integer | Point index (1=start, 2=end, 3=center). |
| sketch_name * | string | Name of the sketch. |
constrain_distance_yConstrain vertical distance from origin or between points.| Parameter | Type | Description |
|---|---|---|
| distance * | number | The vertical distance value. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry * | integer | Index of geometry element. |
| point * | integer | Point index (1=start, 2=end, 3=center). |
| sketch_name * | string | Name of the sketch. |
constrain_equalConstrain two elements to have equal size (length or radius).| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first element. |
| geometry2 * | integer | Index of second element. |
| sketch_name * | string | Name of the sketch. |
constrain_fixFix (lock) a point or geometry in place.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry_index * | integer | Index of the geometry element. |
| point_index | integer | Point to fix (1=start, 2=end, 3=center). -1 to fix the entire element. |
| sketch_name * | string | Name of the sketch. |
constrain_horizontalConstrain a line to be horizontal.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry_index * | integer | Index of the line geometry. |
| sketch_name * | string | Name of the sketch. |
constrain_parallelConstrain two lines to be parallel.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first line. |
| geometry2 * | integer | Index of second line. |
| sketch_name * | string | Name of the sketch. |
constrain_perpendicularConstrain two lines to be perpendicular.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first line. |
| geometry2 * | integer | Index of second line. |
| sketch_name * | string | Name of the sketch. |
constrain_radiusConstrain the radius of a circle or arc.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry_index * | integer | Index of the circle/arc geometry. |
| radius * | number | The radius value. |
| sketch_name * | string | Name of the sketch. |
constrain_tangentConstrain two curves to be tangent.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry1 * | integer | Index of first curve. |
| geometry2 * | integer | Index of second curve. |
| sketch_name * | string | Name of the sketch. |
constrain_verticalConstrain a line to be vertical.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry_index * | integer | Index of the line geometry. |
| sketch_name * | string | Name of the sketch. |
copy_objectCreate a copy of an object| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| new_name | string | Name for the copy. Auto-generated if None. |
| object_name * | string | Name of the object to copy. |
| offset | array | Position offset [x, y, z] for the copy. [0,0,0] if None. |
create_boxCreate a Part::Box with length, width, height| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| height | number | Box height (Z dimension). Defaults to 10.0. |
| length | number | Box length (X dimension). Defaults to 10.0. |
| name | string | Object name. Auto-generated if None. |
| width | number | Box width (Y dimension). Defaults to 10.0. |
create_coneCreate a Part::Cone with two radii and height| Parameter | Type | Description |
|---|---|---|
| angle | number | Sweep angle in degrees (for partial cone). Defaults to 360. |
| doc_name | string | Target document. Uses active document if None. |
| height | number | Cone height. Defaults to 10.0. |
| name | string | Object name. Auto-generated if None. |
| radius1 | number | Bottom radius. Defaults to 5.0. |
| radius2 | number | Top radius (0 for pointed cone). Defaults to 0.0. |
create_cylinderCreate a Part::Cylinder with radius, height, angle| Parameter | Type | Description |
|---|---|---|
| angle | number | Sweep angle in degrees (for partial cylinder). Defaults to 360. |
| doc_name | string | Target document. Uses active document if None. |
| height | number | Cylinder height. Defaults to 10.0. |
| name | string | Object name. Auto-generated if None. |
| radius | number | Cylinder radius. Defaults to 5.0. |
create_datum_lineCreate a datum line (axis) in a PartDesign body.| Parameter | Type | Description |
|---|---|---|
| base_axis | string | Base axis. Options: "X_Axis", "Y_Axis", "Z_Axis". |
| body_name * | string | Name of the PartDesign body. |
| doc_name | string | Document containing the body. Uses active document if None. |
| name | string | Datum line name. Auto-generated if None. |
create_datum_planeCreate a datum plane in a PartDesign body.| Parameter | Type | Description |
|---|---|---|
| base_plane | string | Base plane to offset from. Options: - "XY_Plane" - Horizontal plane - "XZ_Plane" - Front vertical plane - "YZ_Plane" - Side vertical plane |
| body_name * | string | Name of the PartDesign body. |
| doc_name | string | Document containing the body. Uses active document if None. |
| name | string | Datum plane name. Auto-generated if None. |
| offset | number | Offset distance from base plane. Defaults to 0. |
create_datum_pointCreate a datum point in a PartDesign body.| Parameter | Type | Description |
|---|---|---|
| body_name * | string | Name of the PartDesign body. |
| doc_name | string | Document containing the body. Uses active document if None. |
| name | string | Datum point name. Auto-generated if None. |
| position | array | Point position [x, y, z]. Uses origin if None. |
create_documentCreate a new FreeCAD document| Parameter | Type | Description |
|---|---|---|
| label | string | Display label (can contain spaces). Defaults to name. |
| name | string | Internal document name (no spaces allowed, will be sanitized). |
create_ellipseCreate a Part Ellipse curve.| Parameter | Type | Description |
|---|---|---|
| angle1 | number | Start angle in degrees. Defaults to 0. |
| angle2 | number | End angle in degrees. Defaults to 360. |
| doc_name | string | Target document. Uses active document if None. |
| major_radius | number | Semi-major axis radius. Defaults to 10.0. |
| minor_radius | number | Semi-minor axis radius. Defaults to 5.0. |
| name | string | Object name. Auto-generated if None. |
create_helixCreate a Part::Helix curve for sweeps and threads| Parameter | Type | Description |
|---|---|---|
| angle | number | Taper angle in degrees. Defaults to 0.0. |
| doc_name | string | Target document. Uses active document if None. |
| height | number | Total helix height. Defaults to 20.0. |
| left_handed | boolean | Whether helix is left-handed. Defaults to False. |
| name | string | Object name. Auto-generated if None. |
| pitch | number | Distance between turns. Defaults to 5.0. |
| radius | number | Helix radius. Defaults to 5.0. |
create_holeCreate parametric holes with optional threading| Parameter | Type | Description |
|---|---|---|
| depth | number | Hole depth. Defaults to 10.0. |
| diameter | number | Hole diameter (for non-threaded). Defaults to 6.0. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| hole_type | string | Hole depth type. Options: - "Dimension" - Specific depth - "ThroughAll" - Through entire part - "UpToFirst" - Up to first face |
| name | string | Hole feature name. Auto-generated if None. |
| sketch_name * | string | Name of the sketch with hole center point(s). |
| thread_size | string | Thread size (e.g., "M6", "M8", "#10", "1/4"). |
| thread_type | string | Thread standard. Options: "ISO", "UNC", "UNF". |
| threaded | boolean | Whether hole is threaded. Defaults to False. |
create_lineCreate a Part Line (edge) between two points.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| name | string | Object name. Auto-generated if None. |
| point1 * | array | Start point as [x, y, z]. |
| point2 * | array | End point as [x, y, z]. |
create_macroCreate a new macro filecreate_macro_from_templateCreate macro from template (basic, part, etc.)create_objectCreate a generic FreeCAD object by type ID| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| name | string | Object name. Auto-generated if None. |
| properties | object | Initial property values to set. |
| type_id * | string | FreeCAD type ID for the object. Common types include: - "Part::Box" - Parametric box - "Part::Cylinder" - Parametric cylinder - "Part::Sphere" - Parametric sphere - "Part::Cone" - Parametric cone - "Part::Torus" - Parametric torus - "Part::Feature" - Generic Part feature - "Sketcher::SketchObject" - Sketch - "PartDesign::Body" - PartDesign body |
create_partdesign_bodyCreate a PartDesign::Body container| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| name | string | Body name. Auto-generated if None. |
create_planeCreate a Part Plane (flat rectangular face).| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| length | number | Plane length (X direction). Defaults to 10.0. |
| name | string | Object name. Auto-generated if None. |
| width | number | Plane width (Y direction). Defaults to 10.0. |
create_prismCreate a Part Prism (extruded regular polygon).| Parameter | Type | Description |
|---|---|---|
| circumradius | number | Radius of circumscribed circle. Defaults to 5.0. |
| doc_name | string | Target document. Uses active document if None. |
| height | number | Prism height. Defaults to 10.0. |
| name | string | Object name. Auto-generated if None. |
| polygon_sides | integer | Number of sides (3 for triangle, 6 for hexagon, etc.). Defaults to 6. |
create_regular_polygonCreate a Part Regular Polygon (2D wire).| Parameter | Type | Description |
|---|---|---|
| circumradius | number | Radius of circumscribed circle. Defaults to 5.0. |
| doc_name | string | Target document. Uses active document if None. |
| name | string | Object name. Auto-generated if None. |
| polygon_sides | integer | Number of sides (3 for triangle, 6 for hexagon, etc.). Defaults to 6. |
create_sketchCreate a sketch on a plane or face| Parameter | Type | Description |
|---|---|---|
| body_name | string | Name of PartDesign Body to attach to. Creates standalone if None. |
| doc_name | string | Target document. Uses active document if None. |
| name | string | Sketch name. Auto-generated if None. |
| plane | string | Plane to attach sketch to. Options: - "XY_Plane" - Horizontal plane - "XZ_Plane" - Front vertical plane - "YZ_Plane" - Side vertical plane - Face name like "Face1" to attach to body face |
create_sphereCreate a Part::Sphere with radius| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| name | string | Object name. Auto-generated if None. |
| radius | number | Sphere radius. Defaults to 5.0. |
create_torusCreate a Part::Torus (donut) with radii and angles| Parameter | Type | Description |
|---|---|---|
| angle1 | number | Start angle for tube sweep. Defaults to -180. |
| angle2 | number | End angle for tube sweep. Defaults to 180. |
| angle3 | number | Rotation angle around axis. Defaults to 360. |
| doc_name | string | Target document. Uses active document if None. |
| name | string | Object name. Auto-generated if None. |
| radius1 | number | Major radius (center to tube center). Defaults to 10.0. |
| radius2 | number | Minor radius (tube radius). Defaults to 2.0. |
create_wedgeCreate a Part::Wedge (tapered box)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| name | string | Object name. Auto-generated if None. |
| x2max | number | Maximum X at top. Defaults to 8.0. |
| x2min | number | Minimum X at top. Defaults to 2.0. |
| xmax | number | Maximum X at base. Defaults to 10.0. |
| xmin | number | Minimum X at base. Defaults to 0.0. |
| ymax | number | Maximum Y (top position). Defaults to 10.0. |
| ymin | number | Minimum Y (base position). Defaults to 0.0. |
| z2max | number | Maximum Z at top. Defaults to 8.0. |
| z2min | number | Minimum Z at top. Defaults to 2.0. |
| zmax | number | Maximum Z at base. Defaults to 10.0. |
| zmin | number | Minimum Z at base. Defaults to 0.0. |
delete_macroDelete a user macrodelete_objectDelete an object from a document| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to delete. |
delete_sketch_constraintDelete a constraint from a sketch.| Parameter | Type | Description |
|---|---|---|
| constraint_index * | integer | Index of the constraint to delete. |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| sketch_name * | string | Name of the sketch. |
delete_sketch_geometryDelete a geometry element from a sketch.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry_index * | integer | Index of the geometry to delete. |
| sketch_name * | string | Name of the sketch. |
draft_extrude_shapestringExtrude a ShapeString to create a 3D solid text object.| Parameter | Type | Description |
|---|---|---|
| direction | array | Extrusion direction as [x, y, z]. Defaults to [0, 0, 1] (up). |
| doc_name | string | Document containing the ShapeString. Uses active if None. |
| height | number | Extrusion height in mm. Defaults to 10.0. |
| name | string | Name for the extruded object. Auto-generated if None. |
| shapestring_name * | string | Name of the ShapeString object to extrude. |
draft_featureAdd draft angle to faces of an object.| Parameter | Type | Description |
|---|---|---|
| angle * | number | Draft angle in degrees. |
| doc_name | string | Document containing the object. Uses active document if None. |
| faces | array | List of face names to draft (e.g., ["Face1", "Face2"]). Drafts all suitable faces if None. |
| name | string | Draft feature name. Auto-generated if None. |
| object_name * | string | Name of the object to draft. |
| plane | string | Neutral plane for draft direction: "XY", "XZ", "YZ". |
draft_list_fontsList available font files on the system.draft_shapestring_to_faceConvert a ShapeString to a Face for direct use with Part operations.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the ShapeString. Uses active if None. |
| name | string | Name for the created face object. Auto-generated if None. |
| shapestring_name * | string | Name of the ShapeString object to convert. |
draft_shapestring_to_sketchConvert a ShapeString to a Sketch for use with PartDesign.| Parameter | Type | Description |
|---|---|---|
| body_name | string | Name of PartDesign Body to add sketch to. Optional. |
| doc_name | string | Document containing the ShapeString. Uses active if None. |
| plane | string | Plane used to orient the sketch relative to the source. Options: "XY_Plane", "XZ_Plane", "YZ_Plane". |
| shapestring_name * | string | Internal name or unambiguous label of the ShapeString. |
| sketch_name | string | Name for the created sketch. Auto-generated if None. |
edit_objectModify properties of an existing object| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to edit. |
| properties * | object | Dictionary of property names and new values. |
execute_pythonExecute Python; enable unsafe tools and use socket modeexplode_compoundSeparate a compound into individual shape objects.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the compound object to explode. |
export_3mfExport to 3MF format (modern 3D printing)export_igesExport to IGES format (older CAD exchange)export_objExport to OBJ format (Wavefront)export_stepExport to STEP format (ISO CAD exchange)export_stlExport to STL format (3D printing)extrude_shapeExtrude a wire or face along a direction vector.| Parameter | Type | Description |
|---|---|---|
| direction * | array | Extrusion direction and length as [x, y, z]. |
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the wire or face object to extrude. |
| result_name | string | Name for result object. Auto-generated if None. |
fillet_edgesAdd fillets (rounded edges)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| edges | array | List of edge names to fillet (e.g., ["Edge1", "Edge2"]). Fillets all edges if None. |
| name | string | Fillet feature name. Auto-generated if None. |
| object_name * | string | Name of the object to fillet. |
| radius * | number | Fillet radius. |
fit_allZoom to fit all objects in view| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to fit view for. Uses active document if None. |
fuse_allFuse (union) multiple shapes into a single solid.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the objects. Uses active document if None. |
| object_names * | array | List of object names to fuse. |
| result_name | string | Name for result object. Auto-generated if None. |
get_active_documentGet information about the active documentget_connection_statusCheck MCP bridge connection status and latencyget_console_logGet recent console output from FreeCAD.| Parameter | Type | Description |
|---|---|---|
| lines | integer | Maximum number of lines to return (1-1000). Defaults to 50. |
get_console_outputGet recent Report view or available console history| Parameter | Type | Description |
|---|---|---|
| lines | integer | Maximum number of lines to return (1-1000). Defaults to 100. |
get_freecad_versionGet FreeCAD version, build date, and Python versionget_mcp_server_environmentGet Robust MCP Server environment (OS, hostname, instance_id)get_screenshotCapture a screenshot of the 3D view| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to capture. Uses active document if None. |
| height | integer | Image height in pixels. Defaults to 600. |
| view_angle | string | View angle to set before capture. Options: - "Isometric" - 3D isometric view (default) - "Front" - Front view (XZ plane) - "Back" - Back view - "Top" - Top view (XY plane) - "Bottom" - Bottom view - "Left" - Left view (YZ plane) - "Right" - Right view - "FitAll" - Fit all objects in view |
| width | integer | Image width in pixels. Defaults to 800. |
get_selectionGet currently selected objects| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to check selection in. Uses active document if None. |
get_sketch_infoGet detailed information about a sketch.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| sketch_name * | string | Name of the sketch. |
get_undo_redo_statusGet available undo/redo operations| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to check. Uses active document if None. |
groove_sketchRevolve a sketch around an axis (subtractive)| Parameter | Type | Description |
|---|---|---|
| angle | number | Groove angle in degrees. Defaults to 360. |
| axis | string | Axis to revolve around. Options: - "Base_X" - X axis - "Base_Y" - Y axis - "Base_Z" - Z axis - "Sketch_V" - Sketch vertical axis - "Sketch_H" - Sketch horizontal axis |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| name | string | Groove feature name. Auto-generated if None. |
| reversed | boolean | Whether to reverse direction. Defaults to False. |
| sketch_name * | string | Name of the sketch to revolve. |
| symmetric | boolean | Whether to revolve symmetrically. Defaults to False. |
import_stepImport a STEP fileimport_stlImport an STL file as meshinsert_part_from_libraryInsert a part from the libraryinspect_objectGet detailed object info (properties, shape, etc.)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| include_properties | boolean | Whether to include property values. |
| include_shape | boolean | Whether to include shape geometry details. |
| object_name * | string | Name of the object to inspect. |
linear_patternCreate linear pattern of a feature| Parameter | Type | Description |
|---|---|---|
| direction | string | Pattern direction. Options: "X", "Y", "Z". |
| doc_name | string | Document containing the feature. Uses active document if None. |
| feature_name * | string | Name of the feature to pattern. |
| length | number | Total pattern length. Defaults to 50.0. |
| name | string | Pattern feature name. Auto-generated if None. |
| occurrences | integer | Number of pattern instances. Defaults to 3. |
list_documentsList all open documents with metadatalist_macrosList all available FreeCAD macroslist_objectsList all objects in a document| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Name of document. Uses active document if None. |
list_parts_libraryList parts in FreeCAD's parts librarylist_workbenchesList available FreeCAD workbenchesloft_sketchesCreate a loft through multiple sketches| Parameter | Type | Description |
|---|---|---|
| closed | boolean | Whether to close the loft. Defaults to False. |
| doc_name | string | Document containing the sketches. Uses active document if None. |
| name | string | Loft feature name. Auto-generated if None. |
| ruled | boolean | Whether to create ruled surfaces. Defaults to False. |
| sketch_names * | array | List of sketch names to loft through (in order). |
make_compoundCombine multiple shapes into a single compound.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the objects. Uses active document if None. |
| object_names * | array | List of object names to combine. |
| result_name | string | Name for result object. Auto-generated if None. |
make_faceCreate a face from a closed wire.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the wire object. |
| result_name | string | Name for result object. Auto-generated if None. |
make_wireCreate a wire (polyline) from a list of points.| Parameter | Type | Description |
|---|---|---|
| closed | boolean | Whether to close the wire. Defaults to False. |
| doc_name | string | Target document. Uses active document if None. |
| name | string | Object name. Auto-generated if None. |
| points * | array | List of points, each as [x, y, z]. |
mirror_objectMirror an object across a plane (XY, XZ, YZ)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to mirror. |
| plane | string | Mirror plane. Options: "XY", "XZ", "YZ". |
| result_name | string | Name for the result object. Auto-generated if None. |
mirrored_featureMirror a feature across a plane| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the feature. Uses active document if None. |
| feature_name * | string | Name of the feature to mirror. |
| name | string | Mirrored feature name. Auto-generated if None. |
| plane | string | Mirror plane. Options: "XY", "XZ", "YZ". |
offset_3dCreate a 3D offset of a shape.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to offset. |
| offset * | number | Offset distance (positive = outward, negative = inward). |
| result_name | string | Name for result object. Auto-generated if None. |
open_documentOpen an existing .FCStd filepad_sketchExtrude a sketch (additive)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| length * | number | Pad length (extrusion distance). |
| name | string | Pad feature name. Auto-generated if None. |
| reversed | boolean | Whether to reverse direction. Defaults to False. |
| sketch_name * | string | Name of the sketch to pad. |
| symmetric | boolean | Whether to extrude symmetrically. Defaults to False. |
part_loftCreate a loft (transition shape) between multiple profiles.| Parameter | Type | Description |
|---|---|---|
| closed | boolean | Whether to close the loft (connect last to first). Defaults to False. |
| doc_name | string | Document containing the profiles. Uses active document if None. |
| profile_names * | array | List of wire/face object names to loft through (in order). |
| result_name | string | Name for result object. Auto-generated if None. |
| ruled | boolean | Whether to create ruled surfaces. Defaults to False. |
| solid | boolean | Whether to create a solid (True) or shell (False). Defaults to True. |
part_sweepSweep a profile along a spine path.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the objects. Uses active document if None. |
| frenet | boolean | Whether to use Frenet mode for orientation. Defaults to True. |
| profile_name * | string | Name of the profile wire/face object. |
| result_name | string | Name for result object. Auto-generated if None. |
| solid | boolean | Whether to create a solid. Defaults to True. |
| spine_name * | string | Name of the spine (path) wire object. |
pocket_sketchCut into solid using a sketch (subtractive)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| length * | number | Pocket depth. |
| name | string | Pocket feature name. Auto-generated if None. |
| reversed | boolean | Flip the cut direction. Use True when the default direction points away from the material and removes nothing. Defaults to False. |
| sketch_name * | string | Name of the sketch to pocket. |
| symmetric | boolean | Distribute the cut equally on both sides of the sketch plane. Uses the SideType property when available, falling back to Midplane or Symmetric on older FreeCAD versions. Defaults to False. Kept last so existing positional calls keep working. |
| type | string | Pocket type: "Length", "ThroughAll", "UpToFirst", "UpToFace". When the Midplane fallback is used, symmetric pockets support only "Length" and "ThroughAll"; other termination modes are rejected because FreeCAD ignores Midplane for them. |
polar_patternCreate polar/circular pattern of a feature| Parameter | Type | Description |
|---|---|---|
| angle | number | Total pattern angle. Defaults to 360.0. |
| axis | string | Pattern axis. Options: "X", "Y", "Z". |
| doc_name | string | Document containing the feature. Uses active document if None. |
| feature_name * | string | Name of the feature to pattern. |
| name | string | Pattern feature name. Auto-generated if None. |
| occurrences | integer | Number of pattern instances. Defaults to 6. |
read_macroRead macro source coderecomputeForce recompute of all objects in a document.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to recompute. Uses active document if None. |
recompute_documentForce recomputation of all objects| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Name of document to recompute. Uses active document if None. |
redoRedo a previously undone operation| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to redo in. Uses active document if None. |
revolution_sketchRevolve a sketch around an axis (additive)| Parameter | Type | Description |
|---|---|---|
| angle | number | Revolution angle in degrees. Defaults to 360. |
| axis | string | Axis to revolve around. Options: - "Base_X" - X axis - "Base_Y" - Y axis - "Base_Z" - Z axis - "Sketch_V" - Sketch vertical axis - "Sketch_H" - Sketch horizontal axis |
| doc_name | string | Document containing the sketch. Uses active document if None. |
| name | string | Revolution feature name. Auto-generated if None. |
| reversed | boolean | Whether to reverse direction. Defaults to False. |
| sketch_name * | string | Name of the sketch to revolve. |
| symmetric | boolean | Whether to revolve symmetrically. Defaults to False. |
revolve_shapeRevolve a wire or face around an axis.| Parameter | Type | Description |
|---|---|---|
| angle | number | Revolution angle in degrees. Defaults to 360. |
| axis_direction * | array | Direction of the rotation axis [x, y, z]. |
| axis_point * | array | A point on the rotation axis [x, y, z]. |
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the wire or face object to revolve. |
| result_name | string | Name for result object. Auto-generated if None. |
rotate_objectRotate an object around an axis| Parameter | Type | Description |
|---|---|---|
| angle * | number | Rotation angle in degrees. |
| axis * | array | Rotation axis as [x, y, z] vector. |
| center | array | Center point for rotation [x, y, z]. Uses object center if None. |
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to rotate. |
run_macroRun a macro with local review (socket only)save_documentSave a document to diskscale_objectScale an object uniformly or non-uniformly| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to scale. |
| result_name | string | Name for the result object. Auto-generated if None. |
| scale * | any | Scale factor. Can be: - A single float for uniform scaling - A list [sx, sy, sz] for non-uniform scaling |
section_shapeCreate a cross-section of a shape at a standard plane.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to section. |
| offset | number | Offset from origin along the plane normal. Defaults to 0. |
| plane | string | Section plane: "XY", "XZ", or "YZ". Defaults to "XY". |
| result_name | string | Name for result object. Auto-generated if None. |
set_camera_positionSet camera position and look-at point| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to set camera for. Uses active document if None. |
| look_at | array | Point to look at as [x, y, z]. Uses origin if None. |
| position * | array | Camera position as [x, y, z]. |
set_display_modeSet display mode (Shaded, Wireframe, etc.)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| mode * | string | Display mode. Common options: - "Flat Lines" - Solid with edges - "Shaded" - Solid without edges - "Wireframe" - Wire frame only - "Points" - Points only |
| object_name * | string | Name of the object. |
set_object_colorSet object color as RGB values| Parameter | Type | Description |
|---|---|---|
| color * | array | RGB color as [r, g, b] where each value is 0.0-1.0. Example: [1.0, 0.0, 0.0] for red. |
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object. |
set_object_visibilityShow/hide objects| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object. |
| visible * | boolean | Whether object should be visible. |
set_placementSet object position and rotation| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to move. |
| position | array | Position as [x, y, z]. Keeps current if None. |
| rotation | array | Rotation as [yaw, pitch, roll] in degrees. Keeps current if None. |
set_selectionSelect specific objects by name| Parameter | Type | Description |
|---|---|---|
| clear_existing | boolean | Whether to clear existing selection first. Defaults to True. |
| doc_name | string | Document containing the objects. Uses active document if None. |
| object_names * | array | List of object names to select. |
set_view_angleSet camera to standard views (Front, Top, etc.)| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to set view for. Uses active document if None. |
| view_angle * | string | View angle to set. Options: - "Isometric" - 3D isometric view - "Front" - Front view (XZ plane) - "Back" - Back view - "Top" - Top view (XY plane) - "Bottom" - Bottom view - "Left" - Left view (YZ plane) - "Right" - Right view - "FitAll" - Fit all objects in view |
shell_objectCreate a shell (hollow) version of a solid by removing faces.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| faces_to_remove | array | List of face names to remove (e.g., ["Face1", "Face6"]). If None, tries to remove the largest face. |
| object_name * | string | Name of the solid object to shell. |
| result_name | string | Name for result object. Auto-generated if None. |
| thickness * | number | Wall thickness (positive = outward, negative = inward). |
slice_shapeSlice a shape with a plane, returning the cross-section.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to slice. |
| plane_normal * | array | Normal vector of the cutting plane [x, y, z]. |
| plane_point * | array | A point on the cutting plane [x, y, z]. |
| result_name | string | Name for result object. Auto-generated if None. |
spreadsheet_bind_propertyBind an object property to a spreadsheet cell using expressions.| Parameter | Type | Description |
|---|---|---|
| alias * | string | Cell alias to bind (the cell must have an alias set). |
| doc_name | string | Document containing the objects. Uses active if None. |
| spreadsheet_name * | string | Name of the spreadsheet object. |
| target_object * | string | Name of the object to modify. |
| target_property * | string | Property name to bind (e.g., "Length", "Width"). |
spreadsheet_clear_cellClear a cell in a spreadsheet.| Parameter | Type | Description |
|---|---|---|
| cell * | string | Cell address to clear (e.g., "A1"). |
| doc_name | string | Document containing the spreadsheet. Uses active if None. |
| spreadsheet_name * | string | Name of the spreadsheet object. |
spreadsheet_createCreate a new Spreadsheet object.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Target document. Uses active document if None. |
| name | string | Spreadsheet name. Auto-generated if None. |
spreadsheet_get_aliasesGet all aliases defined in a spreadsheet.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the spreadsheet. Uses active if None. |
| spreadsheet_name * | string | Name of the spreadsheet object. |
spreadsheet_get_cellGet the value of a cell in a spreadsheet.| Parameter | Type | Description |
|---|---|---|
| cell * | string | Cell address (e.g., "A1", "B2"). |
| doc_name | string | Document containing the spreadsheet. Uses active if None. |
| spreadsheet_name * | string | Name of the spreadsheet object. |
spreadsheet_get_cell_rangeGet values from a range of cells in a spreadsheet.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the spreadsheet. Uses active if None. |
| end_cell * | string | Ending cell address (e.g., "C5"). |
| spreadsheet_name * | string | Name of the spreadsheet object. |
| start_cell * | string | Starting cell address (e.g., "A1"). |
spreadsheet_set_aliasSet an alias for a cell in a spreadsheet.| Parameter | Type | Description |
|---|---|---|
| alias * | string | Alias name (e.g., "Length", "Width"). Must be a valid Python identifier (no spaces, starts with letter). |
| cell * | string | Cell address (e.g., "A1"). |
| doc_name | string | Document containing the spreadsheet. Uses active if None. |
| spreadsheet_name * | string | Name of the spreadsheet object. |
spreadsheet_set_cellSet the value of a cell in a spreadsheet.| Parameter | Type | Description |
|---|---|---|
| cell * | string | Cell address (e.g., "A1", "B2", "C10"). |
| doc_name | string | Document containing the spreadsheet. Uses active if None. |
| spreadsheet_name * | string | Name of the spreadsheet object. |
| value * | any | Value to set. Can be: - Number (int or float) - String (text) - Formula starting with '=' (e.g., "=A1+B1", "=2*pi") |
subtractive_loftCreate a subtractive loft (cut) through multiple sketches.| Parameter | Type | Description |
|---|---|---|
| closed | boolean | Whether to close the loft. Defaults to False. |
| doc_name | string | Document containing the sketches. Uses active document if None. |
| name | string | Loft feature name. Auto-generated if None. |
| ruled | boolean | Whether to create ruled surfaces. Defaults to False. |
| sketch_names * | array | List of sketch names to loft through (in order). |
subtractive_pipeCreate a subtractive pipe (sweep cut) along a spine path.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketches. Uses active document if None. |
| name | string | Pipe feature name. Auto-generated if None. |
| profile_sketch * | string | Name of the profile sketch to sweep. |
| spine_sketch * | string | Name of the spine (path) sketch. |
| transition | string | Transition mode. Options: - "Transformed" - Smooth transitions - "Right" - Sharp corners - "Round" - Rounded corners |
sweep_sketchSweep a profile along a spine path| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketches. Uses active document if None. |
| name | string | Sweep feature name. Auto-generated if None. |
| profile_sketch * | string | Name of the profile sketch to sweep. |
| spine_sketch * | string | Name of the spine (path) sketch. |
| transition | string | Transition mode. Options: - "Transformed" - Smooth transitions - "Right" - Sharp corners - "Round" - Rounded corners |
thickness_featureCreate a thickness (shell) feature in PartDesign.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| faces_to_remove * | array | List of face names to remove (e.g., ["Face1"]). |
| name | string | Thickness feature name. Auto-generated if None. |
| object_name * | string | Name of the solid feature to shell. |
| thickness * | number | Wall thickness (positive = inward). |
toggle_constructionToggle construction mode for a sketch geometry.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the sketch. Uses active document if None. |
| geometry_index * | integer | Index of the geometry to toggle. |
| sketch_name * | string | Name of the sketch. |
undoUndo the last operation| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to undo in. Uses active document if None. |
undo_if_invalidCheck document health and undo the last operation if invalid objects exist.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Name of document to check. Uses active document if None. |
validate_documentCheck the health of all objects in a FreeCAD document.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Name of document to validate. Uses active document if None. |
validate_objectCheck the health and validity of a FreeCAD object.| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document containing the object. Uses active document if None. |
| object_name * | string | Name of the object to validate. |
zoom_inZoom in by a factor| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to zoom in. Uses active document if None. |
| factor | number | Zoom factor (>1 zooms in). Defaults to 1.5. |
zoom_outZoom out by a factor| Parameter | Type | Description |
|---|---|---|
| doc_name | string | Document to zoom out. Uses active document if None. |
| factor | number | Zoom factor (>1 zooms out). Defaults to 1.5. |
Security checks
Static checks derived from the repository yesterday. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 4.2K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !No dynamic code executionScanned 65 source files and found 7 calls to eval or shell execution, in freecad/RobustMCPBridge/freecad_mcp_bridge/server.py:1679, src/freecad_mcp/bridge/embedded.py:279 and src/freecad_mcp/bridge/socket.py:1343 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and Streamable HTTPsrc/freecad_mcp/server.py:446, src/freecad_mcp/server.py:540
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 21 callssrc/freecad_mcp/bridge/credential_store.py:111, src/freecad_mcp/bridge/embedded.py:1034, src/freecad_mcp/bridge/private_scratch.py:245
- Lockfile
- uv.lock
Pattern matches on the source text of 65 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 4.2K words, fetched yesterday. The original in the repository is authoritative.
Read full README