FreeCAD MCP

FreeCAD MCP

A Model Context Protocol (MCP) server that enables AI assistants to control FreeCAD for 3D modeling, FEM analysis, and more through natural language.

Category
访问服务器

README

FreeCAD MCP

MseeP.ai Security Assessment Badge License: MIT FreeCAD Python

A Model Context Protocol (MCP) server that enables AI assistants (Claude Desktop, opencode, etc.) to control FreeCAD — a parametric 3D CAD modeler.

Create 3D parts, run FEM analysis, generate drawings, and more — all through natural language.

✨ Features

  • 3D Modeling: Create boxes, cylinders, spheres, cones, torus, and more
  • FEM Analysis: Run CalculiX solver for stress/displacement analysis
  • Screenshot Capture: Get view screenshots from any angle
  • Parts Library: Insert pre-made parts from FreeCAD library
  • Custom Python: Execute arbitrary Python code in FreeCAD
  • Remote Connections: Control FreeCAD from another machine

📦 Installation

1. Install FreeCAD

# Ubuntu/Debian (via Flatpak - recommended)
flatpak install flathub org.freecad.FreeCAD -y

# Or download from https://freecad.org/download/

2. Install FreeCAD Addon

git clone https://github.com/GadatheGod/freecad-mcp-pro
cd freecad-mcp-pro

# Copy addon to FreeCAD Mod directory
cp -r addon/FreeCADMCP ~/.var/app/org.freecad.FreeCAD/config/FreeCAD/Mod/

# Restart FreeCAD

3. Install MCP Server

# Using uv (recommended)
uv sync

# Or using pip
pip install -e .

4. Configure Claude Desktop

Edit ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "freecad": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/freecad-mcp-pro",
        "run",
        "freecad-mcp-pro"
      ]
    }
  }
}

🚀 Usage

Start FreeCAD RPC Server

  1. Open FreeCAD
  2. Switch to MCP Addon workbench
  3. Click Start RPC Server in the toolbar

Available Tools

Tool Description
create_document Create a new FreeCAD document
create_object Create 3D objects (boxes, cylinders, etc.)
edit_object Modify object properties
delete_object Delete an object
execute_code Run Python code in FreeCAD
get_view Get screenshots from any view
get_objects List all objects in a document
get_object Get details of a specific object
run_fem_analysis Run FEM stress analysis
insert_part_from_library Insert parts from FreeCAD library

Example: Create a Box

{
  "doc_name": "MyPart",
  "obj_name": "BaseBox",
  "obj_type": "Part::Box",
  "obj_properties": {
    "Length": 50,
    "Width": 30,
    "Height": 20,
    "ViewObject": {"ShapeColor": [0.8, 0.2, 0.2, 1.0]}
  }
}

🛠️ Skills

This repository includes skills for working with FreeCAD via opencode:

Core Skills

  • freecad - General FreeCAD MCP usage and workflows
  • freecad-objects - Quick reference for Part::Box, Part::Cylinder, etc.

Matt Pocock Skills (FreeCAD-tailored)

  • f-grill-with-docs - Interview to sharpen FreeCAD design plans, creates ADRs
  • f-to-spec - Convert conversation into FreeCAD design spec
  • f-to-tickets - Break design into FreeCAD implementation tickets
  • f-implement - Create FreeCAD geometry/analysis based on tickets
  • f-code-review - Review FreeCAD changes against standards and spec

📚 Documentation

  • FreeCAD Wiki: 2,632 markdown files in docs/freecad/
  • Source: Converted from FreeCAD-documentation
  • Addon Docs: See addon/FreeCADMCP/ for RPC server details

🏗️ Architecture

┌─────────────┐     ┌──────────────┐     ┌─────────────┐
│  AI Client  │────▶│  MCP Server  │────▶│  FreeCAD    │
│ (Claude,    │     │ (freecad-mcp-pro)│     │  (RPC)      │
│  opencode)  │     │              │     │             │
└─────────────┘     └──────────────┘     └─────────────┘

📄 License

MIT License. See LICENSE for details.

Copyright (c) 2025 Praveen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

🙏 Acknowledgments

Original FreeCAD MCP

FreeCAD Documentation

  • Source: FreeCAD-documentation
  • Author: FreeCAD Community
  • License: BSD-3-Clause
  • Description: Automatic markdown-based conversion of the FreeCAD wiki

FreeCAD

  • Website: https://freecad.org
  • License: LGPL-2.1-or-later
  • Description: Open source parametric 3D CAD modeler

Matt Pocock Skills

Tools Used

  • uv - Python package manager
  • MCP - Model Context Protocol
  • FreeCAD - Parametric 3D CAD modeler

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📞 Support

  • FreeCAD Wiki: https://wiki.freecad.org
  • FreeCAD Forum: https://forum.freecad.org
  • Issues: GitHub Issues

📊 Stats

Contributors Stars Forks

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选