프로그램 사용/freecad

claude mcp + freecad

구차니 2025. 8. 31. 20:09

claude 무료버전으로 시도함

 

cluade desktop 설치하고

[링크 : https://claude.ai/download]

 

freecad 설치하고

freecad 한번 실행해준 다음 << 요거 포인트

[링크 : https://www.freecad.org/downloads.php]

 

mcp를 다운로드 받고 (윈도우니 귀찮아서 zip으로 받음)

압축을 풀고는 addon -> FreeCADMCP 폴더만 콕! 찍어서

 

탐색기에서 %AppData% 입력하고 엔터치고

 

FreeCAD 아래에 Mod 디렉토리를 만들고 FreeCADMCP 디렉토리를 붙여넣는다.

C:\Users\user\AppData\Roaming\FreeCAD\Mod\FreeCADMCP

[링크 : https://github.com/neka-nat/freecad-mcp]

 

freecad를 재시작 혹은 시작하면

Part Design 이라고 써있는 부분을 클릭하면

 

MCP Addon이 추가된다.

 

MCP Addon을 클릭하면

스케치하기는 어디로 가버리고(!) FreeCAD MCP 메뉴가 생겨나는데, start RPC server를 누르란다.

그런데 티가 안나네..

 

claude desktop에서 - 계정 - 설정 - 개발자 - 구성편집

 

그러면 탐색기가 열리면서 claude_desktop_config.json이 선택되는데

우클릭해서 메모장에서 편집하면 괄호만 덩그러니 있는데

 

아래처럼 붙여넣고 저장!

 

git 도움말에는 오른쪽꺼가 토큰을 덜 먹는다고 하니 일단 이걸로!

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

 

파워셀을 열어서 하라는 대로 하면 설치 완료

PS C:\Users\user> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Downloading uv 0.8.14 (x86_64-pc-windows-msvc)
Installing to C:\Users\user\.local\bin
  uv.exe
  uvx.exe
  uvw.exe
everything's installed!

To add C:\Users\user\.local\bin to your PATH, either restart your shell or run:

    set Path=C:\Users\user\.local\bin;%Path%   (cmd)
    $env:Path = "C:\Users\user\.local\bin;$env:Path"   (powershell)

PS C:\Users\user> $env:Path = "C:\Users\user\.local\bin;$env:Path"
PS C:\Users\user> uv
An extremely fast Python package manager.

Usage: uv.exe [OPTIONS] <COMMAND>

Commands:
  run      Run a command or script
  init     Create a new project
  add      Add dependencies to the project
  remove   Remove dependencies from the project
  version  Read or update the project's version
  sync     Update the project's environment
  lock     Update the project's lockfile
  export   Export the project's lockfile to an alternate format
  tree     Display the project's dependency tree
  format   Format Python code in the project
  tool     Run and install commands provided by Python packages
  python   Manage Python versions and installations
  pip      Manage Python packages with a pip-compatible interface
  venv     Create a virtual environment
  build    Build Python packages into source distributions and wheels
  publish  Upload distributions to an index
  cache    Manage uv's cache
  self     Manage the uv executable
  help     Display documentation for a command

Cache options:
  -n, --no-cache               Avoid reading from or writing to the cache, instead using a temporary directory for the
                               duration of the operation [env: UV_NO_CACHE=]
      --cache-dir <CACHE_DIR>  Path to the cache directory [env: UV_CACHE_DIR=]

Python options:
      --managed-python       Require use of uv-managed Python versions [env: UV_MANAGED_PYTHON=]
      --no-managed-python    Disable use of uv-managed Python versions [env: UV_NO_MANAGED_PYTHON=]
      --no-python-downloads  Disable automatic downloads of Python. [env: "UV_PYTHON_DOWNLOADS=never"]

Global options:
  -q, --quiet...
          Use quiet output
  -v, --verbose...
          Use verbose output
      --color <COLOR_CHOICE>
          Control the use of color in output [possible values: auto, always, never]
      --native-tls
          Whether to load TLS certificates from the platform's native certificate store [env: UV_NATIVE_TLS=]
      --offline
          Disable network access [env: UV_OFFLINE=]
      --allow-insecure-host <ALLOW_INSECURE_HOST>
          Allow insecure connections to a host [env: UV_INSECURE_HOST=]
      --no-progress
          Hide all progress outputs [env: UV_NO_PROGRESS=]
      --directory <DIRECTORY>
          Change to the given directory prior to running the command
      --project <PROJECT>
          Run the command within the given project directory [env: UV_PROJECT=]
      --config-file <CONFIG_FILE>
          The path to a `uv.toml` file to use for configuration [env: UV_CONFIG_FILE=]
      --no-config
          Avoid discovering configuration files (`pyproject.toml`, `uv.toml`) [env: UV_NO_CONFIG=]
  -h, --help
          Display the concise help for this command
  -V, --version
          Display the uv version

Use `uv help` for more details.

[링크 : https://docs.astral.sh/uv/getting-started/installation/#__tabbed_1_2]

 

재시작하고 커넥터를 보면 freecad 로컬 개발이라고 뜬다.

 

freecad에 오면

보기 - 패널 - python 콘솔을 눌러주면 Start RPC Server를 주구장창 누른 흔적이 ㅋㅋ

 

먼가 시키니까 처음이라서 권한을 달라고 한다.

 

먼가 열심히 한다 ㅋㅋ

 

어.. 내가 상상(?)한 pci ex 1 lane 보드는 이렇게 생긴게 아닌디...?!

 

 

아무튼(?!?!) 이렇게 날로먹는(!) claude.ai desktop + MCP + freeCAD 성공!

 

아래 동영상을 보고 시도할 생각을 함

[링크 : https://www.youtube.com/watch?v=qH08WX9YjMM]