Grasshopper MCP 桥接工具

Grasshopper MCP 桥接工具

连接 Grasshopper 和 Claude Desktop 的 MCP 协议桥接服务器。

快速入门

  1. 安装 Grasshopper MCP 组件

    • 下载 GH_MCP.gha 文件并复制到 %APPDATA%\Grasshopper\Libraries\
  2. 安装 Python MCP 桥接服务器

    • 推荐使用 pip 安装:
      pip install grasshopper-mcp
      
    • 或从源码安装:
      git clone https://github.com/alfredatnycu/grasshopper-mcp.git
      cd grasshopper-mcp
      pip install -e .
      
  3. 启动服务

    • 启动 Rhino 和 Grasshopper。
    • 在终端运行以下命令启动桥接服务器:
      python -m grasshopper_mcp.bridge
      
  4. 配置 Claude Desktop

    • 连接设置:
      • 协议: MCP
      • 主机: localhost
      • 端口: 8080
  5. 开始使用

    • 使用自然语言命令控制 Grasshopper。