freecad mcp

MIT License
85
  • Apple
  • Linux

local-only server

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

Integrations

  • Allows control of FreeCAD from Claude Desktop, enabling AI agents to interact with and manipulate CAD models and designs programmatically through FreeCAD's functionality.

FreeCAD MCP

このリポジトリは、Claude Desktop から FreeCAD を制御できるようにする FreeCAD MCP です。

デモ

フランジの設計

おもちゃの車をデザインする

2D図面から部品を設計する

2D図面を入力する

デモ

これは会話履歴です。https ://claude.ai/share/7b48fd60-68ba-46fb-bb21-2fbb17399b48

アドオンをインストール

FreeCADアドオンディレクトリは

  • Windows: %APPDATA%\FreeCAD\Mod\
  • Mac: ~/Library/Application Support/FreeCAD/Mod/
  • Linux: ~/.FreeCAD/Mod/または~/snap/freecad/common/Mod/ (snap から FreeCAD をインストールした場合)

addon/FreeCADMCPディレクトリをアドオンディレクトリに置いてください。

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

アドオンをインストールしたら、FreeCADを再起動する必要があります。ワークベンチのリストから「MCPアドオン」を選択して使用できます。

また、「FreeCAD MCP」ツールバーの「RPC サーバーを起動」コマンドで RPC サーバーを起動することもできます。

Claude Desktop の設定

claude_desktop_config.jsonファイルを編集します。

ユーザー向け。

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

トークンを節約したい場合は、 only_text_feedbacktrueに設定して、テキスト フィードバックのみを使用できます。

{ "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 :パーツライブラリ内のパーツのリストを取得します。

You must be authenticated.

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

このリポジトリは、Claude Desktop から FreeCAD を制御できるようにする FreeCAD MCP です。

  1. Demo
    1. Design a flange
    2. Design a toy car
    3. Design a part from 2D drawing
  2. Install addon
    1. Setting up Claude Desktop
      1. Tools
        ID: j3a76r2exh