Skip to main content
Glama
theosib

FreeCAD MCP Server

by theosib

execute_script

Execute Python code within FreeCAD's environment to create objects, modify properties, run macros, or access APIs not covered by other tools.

Instructions

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYes

Latest Blog Posts

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