Skip to main content
Glama

freecad mcp

by neka-nat

FreeCAD MCP

此存储库是一个 FreeCAD MCP,允许您从 Claude Desktop 控制 FreeCAD。

演示

设计法兰

演示

设计一辆玩具车

演示

根据 2D 图纸设计零件

输入二维图纸

输入

演示

演示

这是对话历史记录。https ://claude.ai/share/7b48fd60-68ba-46fb-bb21-2fbb17399b48

安装插件

FreeCAD Addon 目录是

  • Windows: %APPDATA%\FreeCAD\Mod\
  • Mac: ~/Library/Application Support/FreeCAD/Mod/
  • Linux:
    • Ubuntu: ~/.FreeCAD/Mod/~/snap/freecad/common/Mod/ (如果您从 snap 安装 FreeCAD)
    • Debian: ~/.local/share/FreeCAD/Mod

请将addon/FreeCADMCP目录放入 addon 目录。

git clone https://github.com/neka-nat/freecad-mcp.git cd freecad-mcp cp -r addon/FreeCADMCP ~/.FreeCAD/Mod/

安装插件后,需要重启 FreeCAD。您可以从 Workbench 列表中选择“MCP 插件”并使用它。

工作台列表

您可以通过“FreeCAD MCP”工具栏中的“启动 RPC 服务器”命令启动 RPC 服务器。

启动rpc服务器

设置Claude桌面

编辑claude_desktop_config.json文件。

对于用户来说。

{ "mcpServers": { "freecad": { "command": "uvx", "args": [ "freecad-mcp" ] } } }

如果要保存令牌,可以将only_text_feedback设置为true并仅使用文本反馈。

{ "mcpServers": { "freecad": { "command": "uvx", "args": [ "freecad-mcp", "--only-text-feedback" ] } } }

对于开发者来说,首先,你需要克隆这个仓库。

git clone https://github.com/neka-nat/freecad-mcp.git
{ "mcpServers": { "freecad": { "command": "uv", "args": [ "--directory", "/path/to/freecad-mcp/", "run", "freecad-mcp" ] } } }

工具

  • create_document :在 FreeCAD 中创建一个新文档。
  • create_object :在 FreeCAD 中创建一个新对象。
  • edit_object :在 FreeCAD 中编辑对象。
  • delete_object :在 FreeCAD 中删除对象。
  • execute_code :在 FreeCAD 中执行任意 Python 代码。
  • insert_part_from_library :从零件库插入零件。
  • get_view :获取活动视图的屏幕截图。
  • get_objects :获取文档中的所有对象。
  • get_object :获取文档中的对象。
  • get_parts_list :获取零件库中的零件列表。

贡献者

contrib.rocks制作。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

此存储库是一个 FreeCAD MCP,允许您从 Claude Desktop 控制 FreeCAD。

  1. 演示
    1. 设计法兰
    2. 设计一辆玩具车
    3. 根据 2D 图纸设计零件
  2. 安装插件
    1. 设置Claude桌面
      1. 工具
        1. 贡献者

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            An MCP server that enables Claude Desktop to interact with Sanity.io content, providing tools to create, edit, list documents and get schema templates.
            Last updated -
            TypeScript
          • A
            security
            A
            license
            A
            quality
            Allows Claude desktop app to execute terminal commands and edit files on your computer through MCP, with features including command execution, process management, and diff-based file editing.
            Last updated -
            19
            21,238
            3,264
            JavaScript
            MIT License
            • Apple
          • -
            security
            A
            license
            -
            quality
            A FreeCAD addon that implements the Model Context Protocol (MCP) to enable communication between FreeCAD and Claude AI through Claude Desktop.
            Last updated -
            17
            Python
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A utility tool that enables Claude Desktop to interact with external tools via the Model Context Protocol, providing features like email sending and simple calculations while simplifying the MCP setup process.
            Last updated -
            129
            9
            JavaScript
            MIT License
            • Apple

          View all related MCP servers

          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/neka-nat/freecad-mcp'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server