AG

alfredatnycu/grasshopper-mcp

开发工具

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

103 stars 19 forks 质量 58 趋势 15MIT

alfredatnycu/Grasshopper-MCP 是从 https://github.com/alfredatnycu/grasshopper-mcp. 导入的 MCP 服务器候选。

概览

alfredatnycu/Grasshopper-MCP 是从 https://github.com/alfredatnycu/grasshopper-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

Grasshopper MCP 桥接是一个桥接服务器,利用模型上下文协议(MCP)标准连接 Grasshopper 和 Claude Desktop。

特色

  • 通过MCP协议连接Grasshopper和Claude Desktop。
  • 提供直观的工具功能,用于创建和连接Grasshopper组件
  • 支持高级意图识别,自动从简单描述创建复杂的组件模式
  • 包含理解常见组件参数和连接规则的组件知识库
  • 提供组件指导资源,帮助Claude Desktop正确连接组件

系统架构

该系统由以下部分组成:

  1. Grasshopper MCP 组件(GH_MCP.gha):安装在 Grasshopper 中的插件,提供 TCP 服务器以接收命令
  2. Python MCP 桥接服务器:连接 Claude Desktop 与 Grasshopper MCP 组件的桥接服务器
  3. 组件知识库:包含组件信息、模式和意图的JSON文件

安装说明

先决条件

  • Rhino 7及以上级别
  • 蚱蜢
  • Python 3.8 或更高版本
  • Claude桌面

安装步骤

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

README

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

Grasshopper MCP Bridge

Grasshopper MCP Bridge is a bridging server that connects Grasshopper and Claude Desktop using the Model Context Protocol (MCP) standard.

Features

  • Connects Grasshopper and Claude Desktop through the MCP protocol
  • Provides intuitive tool functions for creating and connecting Grasshopper components
  • Supports high-level intent recognition, automatically creating complex component patterns from simple descriptions
  • Includes a component knowledge base that understands parameters and connection rules for common components
  • Provides component guidance resources to help Claude Desktop correctly connect components

System Architecture

The system consists of the following parts:

  1. Grasshopper MCP Component (GH_MCP.gha): A plugin installed in Grasshopper that provides a TCP server to receive commands
  2. Python MCP Bridge Server: A bridge server that connects Claude Desktop and the Grasshopper MCP component
  3. Component Knowledge Base: JSON files containing component information, patterns, and intents

Installation Instructions

Prerequisites

  • Rhino 7 or higher
  • Grasshopper
  • Python 3.8 or higher
  • Claude Desktop

Installation Steps

  1. Install the Grasshopper MCP Component

    Method 1: Download the pre-compiled GH_MCP.gha file (Recommended)

    Download the GH_MCP.gha file directly from the GitHub repository and copy it to the Grasshopper components folder:

    %APPDATA%\Grasshopper\Libraries\
    

    Method 2: Build from source

    If you prefer to build from source, clone the repository and build the C# project using Visual Studio.

  2. Install the Python MCP Bridge Server

    Method 1: Install from PyPI (Recommended)

    The simplest method is to install directly from PyPI using pip:

    pip install grasshopper-mcp
    

    Method 2: Install from GitHub

    You can also install the latest version from GitHub:

    pip install git+https://github.com/alfredatnycu/grasshopper-mcp.git
    

    Method 3: Install from Source Code

    If you need to modify the code or develop new features, you can clone the repository and install:

    git clone https://github.com/alfredatnycu/grasshopper-mcp.git
    cd grasshopper-mcp
    pip install -e .
    

    Install a Specific Version

    If you need to install a specific version, you can use:

    pip install grasshopper-mcp==0.1.0
    

    Or install from a specific GitHub tag:

    pip install git+https://github.com/alfredatnycu/[email protected]
    

Usage

  1. Start Rhino and Grasshopper

    Launch Rhino and open Grasshopper.

  2. Add the GH_MCP Component to Your Canvas

    Find the GH_MCP component in the Grasshopper component panel and add it to your canvas.

  3. Start the Python MCP Bridge Server

    Open a terminal and run:

在 GitHub 查看完整 README

安装

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

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