FreeCAD MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_documentsA | List all open FreeCAD documents with their names, labels, file paths, object counts, and modification status. |
| get_document_graphA | Get a structured representation of a document's feature tree. Returns every object with its TypeId, label, properties, dependency links (InList/OutList), validity state, and touch state. This is the primary tool for understanding what a FreeCAD model contains. Args: doc_name: Document name. Empty string uses the active document. |
| inspect_objectA | Get a full property dump and shape analysis for a single FreeCAD object. Returns all properties (with types, groups, and documentation), dependency info, validity state, and basic shape metadata if the object has geometry. Args: name: Object name (e.g., "Pad001", "Sketch002"). doc_name: Document name. Empty string uses the active document. |
| analyze_shapeA | Detailed topological analysis of an object's shape. Returns shape type, volume, area, center of mass, bounding box, topology counts (vertices/edges/faces/solids), face classifications (plane/cylinder/cone/sphere/toroid with parameters), and edge details. Use this to understand the geometric result of a feature — especially useful for diagnosing why a boolean or pocket operation produced unexpected geometry. Args: name: Object name that has a Shape (e.g., "Pad001", "Cut001"). doc_name: Document name. Empty string uses the active document. |
| get_sketch_diagnosticsA | Deep inspection of a sketch's constraint health. Returns constraint count, geometry count, degrees of freedom, whether the sketch is fully constrained, and a detailed list of every constraint (type, value, referenced geometry indices, driving status, and whether it is redundant or conflicting). Also returns geometry elements with type-specific details (line endpoints, circle centers/radii, arc parameters). This is the primary diagnostic tool for sketch problems — over-constrained, under-constrained, or conflicting sketches. Args: name: Sketch object name (e.g., "Sketch001"). doc_name: Document name. Empty string uses the active document. |
| tracked_recomputeA | Recompute a document and track what changed. Snapshots every object's validity before recomputing, then diffs against the post-recompute state. Reports:
Use this instead of raw recompute to understand the impact of changes. Args: doc_name: Document name. Empty string uses the active document. |
| execute_scriptA | Execute arbitrary Python code in FreeCAD's interpreter context. The script has access to: FreeCAD, FreeCADGui, App, Gui, doc (active document). Stdout and stderr are captured and returned. Use this as an escape hatch for operations not covered by the specific tools above. For example: creating objects, modifying properties, running macros, or accessing FreeCAD APIs not yet exposed as tools. Args: script: Python code to execute. |
| get_screenshotA | Capture the current 3D viewport as a base64-encoded PNG image. Returns the image as a base64 string along with dimensions. Useful for visual inspection of the model state. Args: width: Image width in pixels. height: Image height in pixels. |
| reload_handlersA | Hot-reload all FreeCAD addon handler modules. Call this after editing handler code (in freecad_addon/handlers/) to pick up changes without restarting FreeCAD. Reloads all handler modules and re-registers them with the RPC server. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
The tools are largely distinct: document listing, feature-tree inspection, single-object property dumps, shape analysis, sketch diagnostics, recompute tracking, scripting, and screenshots all have clear purposes. Minor overlap exists between inspect_object and analyze_shape, but the descriptions separate basic shape metadata from detailed topological analysis.
Most tool names follow a clear verb_noun pattern: list_documents, get_document_graph, inspect_object, analyze_shape, execute_script, get_screenshot, reload_handlers. The one notable deviation is tracked_recompute, which reads as an adjective-noun phrase rather than an imperative verb_noun name.
Nine tools is a well-scoped set for a FreeCAD server. Each tool covers a meaningful capability, and there is no significant bloat or obvious redundancy in the overall surface.
The inspection/diagnostic side is thorough, covering documents, feature graphs, object properties, shape topology, sketch constraints, and recompute effects. However, there are no dedicated creation, modification, or deletion tools; execute_script is the only generic escape hatch for those operations, which is a notable first-class coverage gap for a general FreeCAD server.