使用说明
## 设置 a. FreeCAD 安装设置
-
克隆仓库:
https://github.com/gxwesterman/freecad-mcp.git -
将FreeCAD工作台复制到正确的文件夹中:
- Windows:
<UserFolder>\AppData\Roaming\FreeCAD\Mod\ - Linux:
~/.FreeCAD/Mod/或者~/.local/share/FreeCAD/Mod/
- Windows:
-
重启FreeCAD
-
选择MCP RCP服务器工作台并启动服务器
b. 克劳德设置
-
将MCP服务器添加到您的Claude桌面配置中
{ "mcpServers": { "freecad": { "command": "uv", "args": [ "--directory", "C:\\Users\\gwesterman.NAGIOS\\repos\\freecad-mcp-test", "run", "mcp_server.py" ] } } }- Windows:
code $env:AppData\Claude\claude_desktop_config.json - MacOS/Linux:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
- Windows:
-
重启Claude桌面版
-
让Claude在FreeCAD中制作东西——它会尽全力而为
运行说明
MCP能够:
- 列出可用文档
- 获取当前文档
- 创建、编辑和删除基本对象
- 为对象添加边缘
- 大致挤出
- 执行其自编的任意代码
快速入门示例
将以下查询粘贴到Claude桌面聊天中:
Create a cube in the current FreeCAD document
Create a pink cone
Replace the cone with a long cylinder at a 90 degree angle
Fillet the edges of the cube
