GR

goldsmith323/rhino_gh_mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 10 forks 품질 56 트렌드 8

MCP providing 30+ tools for interacting with Rhino 3D and Grasshopper through LLM

개요

A Model Context Protocol (MCP) server providing 30+ tools for interacting with Rhino 3D and Grasshopper through natural language. Features include parametric geometry generation, cross-file workflows, intelligent geometry transfer, and automated workflow suggestions. Uses an HTTP bridge architecture to handle Python version compatibility between MCP (Python 3.10+) and Rhino's IronPython. - - Comprehensive toolset for Rhino 3D and Grasshopper automation - - Automatically converts and validates geometry between files (Lines, Curves, Surfaces, Meshes, Breps) - - Automated parameter discovery using eml_ prefix for cross-file workflows - - JSON metadata system suggests file sequences and parameter connections - - Auto-launching Grasshopper, batch file operations, file verification - - Toggle verbose output via .

README

원문 README의 일부입니다. 원문 보기.

Workshop 1: Agentic AI Design Orchestration using MCP

AAG2025: Advances in Architectural Geometry - Massachusetts Institute of Technology | 16—17 November 2025 | Workshop Page

Rhino Grasshopper MCP Server

A Model Context Protocol (MCP) server providing 30+ tools for interacting with Rhino 3D and Grasshopper through natural language. Features include parametric geometry generation, cross-file workflows, intelligent geometry transfer, and automated workflow suggestions. Uses an HTTP bridge architecture to handle Python version compatibility between MCP (Python 3.10+) and Rhino’s IronPython.

Architecture

┌─────────────────┐         ┌──────────────────┐         ┌─────────────┐
│   MCP Client    │ ◄─────► │   MCP Server     │ ◄─────► │   Rhino     │
│                 │   MCP   │ (Python 3.10+)   │  HTTP   │   Bridge    │
└─────────────────┘         └──────────────────┘         └─────────────┘
                                                              ▲
                                                              │
                                                         Rhino API
                                                         Grasshopper API

Key Features

  • 30+ Tools - Comprehensive toolset for Rhino 3D and Grasshopper automation
  • Smart Geometry Transfer - Automatically converts and validates geometry between files (Lines, Curves, Surfaces, Meshes, Breps)
  • EML Convention - Automated parameter discovery using eml_ prefix for cross-file workflows
  • Workflow Suggestions - JSON metadata system suggests file sequences and parameter connections
  • File Management - Auto-launching Grasshopper, batch file operations, file verification
  • DEBUG_MODE - Toggle verbose output via .env file for 60-80% token savings in production
  • Custom Scripts - Execute Python code in Grasshopper with full access to component data
  • Geometry Baking - User-controlled baking to Rhino with layer management and confirmation
  • Auto-Discovery - Decorator-based tool registration - no manual configuration needed

Project Structure

MCP/

MCP server and client integration:

  • main.py - MCP server with auto-discovery
  • bridge_client.py - HTTP client for Rhino communication
  • config/ - Configuration templates
  • requirements.txt - Python 3.10+ dependencies

Rhino/

HTTP bridge server running inside Rhino:

  • rhino_bridge_server.py - HTTP server (IronPython 2.7/3.9)
  • start_rhino_bridge.py - Startup script

Tools/

Tool definitions with decorator-based auto-discovery:

  • rhino_tools.py - Rhino 3D tools
  • gh_tools.py - Grasshopper tools
  • tool_registry.py - Auto-discovery system
GitHub에서 전체 README 보기

설치

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

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "rhino_gh": { "command": "python", "args": ["C:\\path\\to\\rhino_gh_mcp\\MCP\\main.py"] } } }