FreeCAD MCP RCP 服务器工作台

FreeCAD MCP RCP 服务器工作台是一个用于通过Claude桌面客户端与FreeCAD交互的工具,支持创建、编辑和删除基本对象,执行自定义代码等功能。

  • by gxwesterman
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 gxwesterman/freecad-mcp

使用说明

## 设置 a. FreeCAD 安装设置

  1. 克隆仓库: https://github.com/gxwesterman/freecad-mcp.git

  2. 将FreeCAD工作台复制到正确的文件夹中:

    • Windows: <UserFolder>\AppData\Roaming\FreeCAD\Mod\
    • Linux: ~/.FreeCAD/Mod/ 或者 ~/.local/share/FreeCAD/Mod/
  3. 重启FreeCAD

  4. 选择MCP RCP服务器工作台并启动服务器

b. 克劳德设置

  1. 将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
  2. 重启Claude桌面版

  3. 让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