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 | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/theosib/FreeCAD-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server