Skip to main content

dcc-mcp-freecad

DCC-MCP · FREECAD

Production FreeCAD adapter for typed, durable parametric modeling and CAD exchange through DCC-MCP.

Capabilities

  • Detect FreeCADCmd and report the actual FreeCAD/Python runtime.
  • Create, inspect, recompute, validate, copy, and dependency-safely edit FCStd documents.
  • Add and update boxes, cylinders, spheres, cones, and tori with typed dimensions and placements.
  • Create parametric union, cut, and intersection features.
  • Import or export STEP, IGES, BREP, STL, and OBJ geometry.
  • Return object links, placements, shape/mesh topology counts, volume, area, bounding boxes, file size, and SHA-256 provenance.

No arbitrary Python, macros, module paths, or FreeCAD command-line flags are accepted. The adapter invokes only its packaged method-dispatch driver.

Requirements

  • Python 3.7+
  • dcc-mcp-core 0.19.91+
  • FreeCAD 1.0 or newer with FreeCADCmd/freecadcmd

Install

python -m pip install dcc-mcp-freecad
dcc-mcp-freecad

For development:

python -m pip install -e ".[dev]"
python -m pytest

Configuration

Variable Purpose Default
DCC_MCP_FREECAD_EXECUTABLE Exact FreeCADCmd executable or install directory PATH and standard locations
DCC_MCP_FREECAD_ALLOWED_ROOTS os.pathsep-separated document/import/export roots server working directory
DCC_MCP_FREECAD_MAX_DOCUMENT_BYTES Maximum FCStd input size 2 GiB
DCC_MCP_FREECAD_MAX_TIMEOUT_SECS Maximum per-call deadline 1800 seconds
DCC_MCP_FREECAD_PORT Fixed adapter port when direct addressing is required OS-assigned

The service is a standalone DCC-MCP instance with no GUI PID. Every operation launches a clean FreeCADCmd process in safe mode with a temporary user config.

Agent workflow

dcc-mcp-cli list
dcc-mcp-cli search --query "FreeCAD create boolean export STEP"
dcc-mcp-cli load-skill freecad-session --dcc-type freecad --instance-id <instance-short>
dcc-mcp-cli load-skill freecad-modeling --dcc-type freecad --instance-id <instance-short>

Typical sequence: create_documentadd_primitivetransform_objectboolean_operationvalidate_documentexport_geometry.

Safety contract

  • Requested documents and geometry stay under configured allowed roots.
  • Existing outputs require explicit overwrite=true.
  • FCStd mutations happen on sibling staging copies and replace the original only after a successful, non-empty save.
  • Failed mutations leave the original document byte-for-byte unchanged.
  • Object names, dimensional fields, placements, formats, tessellation, result size, process output, and deadlines are bounded.
  • Cancellation and timeouts terminate the owned FreeCADCmd process.
  • Cascade removal is explicit and reports every removed dependent.

FreeCAD Python API reference: https://www.freecad.org/api/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcc_mcp_freecad-0.1.1.tar.gz (914.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcc_mcp_freecad-0.1.1-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file dcc_mcp_freecad-0.1.1.tar.gz.

File metadata

  • Download URL: dcc_mcp_freecad-0.1.1.tar.gz
  • Upload date:
  • Size: 914.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dcc_mcp_freecad-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fa3581e4a689ea5b7e6f94406026fa5d377fa3f4d31f1d12411b07da05bc053c
MD5 0b8c1343ad4e9116176c75b6c8c7e21d
BLAKE2b-256 df1f2a938a874f4223c84a0aef73fc155618d2fccb0b87959eaff728c543f1c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_freecad-0.1.1.tar.gz:

Publisher: release.yml on dcc-mcp/dcc-mcp-freecad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dcc_mcp_freecad-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: dcc_mcp_freecad-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for dcc_mcp_freecad-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21adb3f7bbf9b4425a3c05104f56efebed56a071804180fc1d7a4bbaff9b7090
MD5 a831d96a6baac09b4ce3a39bbdc2c140
BLAKE2b-256 39b967874aef0ee083ef768ffa4fa171c661c1e7574300b518a3a8032dbe7c8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_freecad-0.1.1-py3-none-any.whl:

Publisher: release.yml on dcc-mcp/dcc-mcp-freecad

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page