SF

sandraschi/freecad-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

34 stars 5 forks 质量 80 趋势 14MIT

FreeCAD 3D CAD 通过 FastMCP 自动化——无头文档/导出,以及 FluidX3D/OpenFOAM CFD 扩展。适用于 Cursor / Claude 桌面版。网页应用。

概览

该项目揭示了FreeCAD作为两种不同用户使用的服务器: 两者都与同一个FreeCAD后端通信。AI代理可以准备模拟案例,你可以在网页仪表盘中查看结果——反之亦然。 所有 AI 代理和网页仪表盘调用都经过同一个 REST API,地址是 http://localhost:10944/api/v1/.。你可以直接用 Python、curl 或任何 HTTP 客户端编写脚本: 这就是构建无头流水线的方式:在循环中生成100种几何变体,对每个进行模拟,收集结果,训练一个替代模型。不需要图形界面——FreeCAD作为几何引擎在后台运行。 FreeCAD 是一款免费的专业 CAD 建模工具(类似 SolidWorks,但开源)。通过 API,你可以: - : Ruff linter + formatter(零配置,亚毫秒) - : 生物群系linter + formatter - : 仅仅 — 仅 lint,只需修复,只需开发,只需 tauri-build - : Tauri 2。

概述(AI 翻译)

问题、即兴创意、“如果它也做了X会怎样”? → 讨论——支持问答,任何你想改进但不会提交整整个问题的想法。错误仍然会归到问题区。

安装(Windows)

下载freecad-mcp-0.6.2-setup.exe——完整的桌面应用(网页应用+嵌入式后端)在一个安装程序中。

  • 安装程序为未签名。Windows SmartScreen 会警告:选择更多信息>“无论如何运行。
  • 更喜欢仅使用 MCP?FreeCAD-MCP-0.6.2.MCPB 在 Claude Desktop 中注册服务器。
  • 所有版本及更早版本:版本。

有两种用法

该项目揭示了FreeCAD作为两种不同用户使用的服务器:

谁 怎么做 为了什么
MCP 服务器(端口 10944) AI 代理 — Claude Desktop、Cursor、Continue、任何 MCP 客户端 你的 AI 助手会直接调用像 step_to_stl() 或 cfd_run_solver() 这样的工具。你输入“convert this STEP file and slice it for my printer”,它就能完成整个流程。 免提CAD工作。智能循环:AI在你无需操作图形界面的情况下迭代设计→模拟→分析→优化。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

FreeCAD MCP

FreeCAD as a server for AI agents and a web dashboard - parametric CAD, TechDraw, assemblies, CFD, FEM and BIM via MCP tools and REST.

Questions, improv ideas, “what if it also did X”? → Discussions — Q&A for support, Ideas for anything you’d improve but wouldn’t file a whole Issue for. Bugs still go to Issues.

Install (Windows)

Download freecad-mcp-0.6.2-setup.exe - the full desktop app (webapp + embedded backend) in one installer.

  • The installer is unsigned. Windows SmartScreen will warn: choose More info > Run anyway.
  • Prefer MCP-only? freecad-mcp-0.6.2.mcpb registers the server in Claude Desktop.
  • All releases and older versions: Releases.

Two ways to use this

This project exposes FreeCAD as a server that two different kinds of users talk to:

Who How What for
MCP server (port 10944) AI agents — Claude Desktop, Cursor, Continue, any MCP client Your AI assistant calls tools like step_to_stl() or cfd_run_solver() directly. You type “convert this STEP file and slice it for my printer” and it does the whole chain. Hands-free CAD work. Agentic loops: the AI iterates design → simulate → analyze → refine without you touching the GUI.
Web dashboard (port 10945) Humans — you, in a browser A dark-mode React app: Guided Demo (cube → car → depot CRUD), Parts Studio, Depot, Convert, Models, Marketplace, BIM/CFD/FluidX3D workspaces, Chat, Logs and Settings. Point-and-click workflow. Open /demo to see the whole chain work, or upload a STEP file and click Convert.

Both talk to the same FreeCAD backend. An AI agent can prepare a simulation case, and you can inspect the results in the web dashboard — or vice versa.

Scripting & automation

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "freecad": { "command": "uv", "args": ["run", "--directory", "D:/Dev/repos/freecad-mcp", "python", "-m", "freecad_mcp.server", "--mode", "stdio"], "env": { "PYTHONPATH": "D:/Dev/repos/freecad-mcp/src" } } } }