RI

reer-ide/rhino_mcp

开发工具

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

32 stars 10 forks 质量 72 趋势 12MIT

该项目由REER,INC.开发,并公开供社区使用和测试. 我们欢迎捐助者帮助改进和扩大犀牛监测中心的功能.

概览

该项目由REER,INC.开发,并公开供社区使用和测试. 我们欢迎捐助者帮助改进和扩大犀牛监测中心的功能。 RhinoMCP通过"模式背景协议"(MCP)将Rhino,Grasshopper等更多连接到克洛德AI,使克洛德能够直接与克洛德互动并控制克洛德. 这种集成使得能够迅速协助3D建模,场景创建,以及操纵. (被搅拌机所启发 mcp). 该项目提供两个服务器执行: - Claude桌面集成的标准Sdio协议MCP服务器 - SSE(Server-Side Events)协议服务器用于自定义网络客户端集成 - :通过基于套接字的服务器将克洛德AI连接到犀牛上 - :在犀牛中创建并修改包括元数据在内的3D对象 - :查看并和犀牛地层互动 - :获取关于目前犀牛场景的详细信息(包含.

概述(AI 翻译)

该项目由REER,INC.开发,并公开供社区使用和测试. 我们欢迎捐助者帮助改进和扩大犀牛监测中心的功能。 RhinoMCP通过"模式背景协议"(MCP)将Rhino,Grasshopper等更多连接到克洛德AI,使克洛德能够直接与克洛德互动并控制克洛德. 这种集成使得能够迅速协助3D建模,场景创建,以及操纵. (被搅拌机所启发 mcp).

该项目提供两个服务器执行:

  • Claude桌面集成的标准Sdio协议MCP服务器
  • SSE (Server-Side Eventions) 协议服务器,用于自定义网络客户端集成

□ 特性

犀牛队

  • ** 双向通信**: 通过基于套接字的服务器连接 Claude AI 到 Rhino
  • ** 目标操纵和管理**: 在 Rhino 中创建并修改 三维对象, 包括元数据
  • ** 大厅管理**: 查看并互动 Rhino 层
  • ** 现场检查**:获取关于目前犀牛场景的详细资料(包括屏蔽)
  • ** 守则执行**: 从 Claude 在 Rhino 中运行任意 Python 代码
  • ** 选择目标**: 获取关于犀牛目前选中对象的信息

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

README

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

RhinoMCP - Rhino Model Context Protocol Integration

This project is developed by REER, INC. and made public for the community to use and test. We welcome contributors to help improve and expand the functionality of RhinoMCP. RhinoMCP connects Rhino, Grasshopper and more to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Rhino. This integration enables prompt-assisted 3D modeling, scene creation, and manipulation. (inspired by blender_mcp)

The project provides two server implementations:

  • Standard Stdio protocol MCP server for Claude Desktop integration
  • SSE (Server-Side Events) protocol server for custom web client integration

Features

Rhino

  • Two-way communication: Connect Claude AI to Rhino through a socket-based server
  • Object manipulation and management: Create and modify 3D objects in Rhino including metadata
  • Layer management: View and interact with Rhino layers
  • Scene inspection: Get detailed information about the current Rhino scene (incl. screencapture)
  • Code execution: Run arbitrary Python code in Rhino from Claude
  • Object selection: Get information about the currently selected objects in Rhino
  • RhinoScriptSyntax documentation: Look up the documentation for a RhinoScriptSyntax

Grasshopper (Under Development)

Important Note: While Grasshopper integration tools may appear available in Claude, they are still under active development and not fully usable yet. We’re working to implement complete Grasshopper functionality in future releases.

Components

The system consists of two main components:

  1. Rhino-side Script (rhino_script.py): A Python script that runs inside Rhino to create a socket server that receives and executes commands
  2. MCP Server (rhino_mcp/server.py): A Python server that implements the Model Context Protocol and connects to the Rhino script

Installation

Prerequisites

  • Rhino 7 or newer
  • Python 3.10 or newer
  • uv package manager
  • Conda (for environment management) or an existing Python installation

Installation Options

Install uv

If you’re on Mac, open terminal and run:

brew install uv

On Windows open Powershell and run

irm https://astral.sh/uv/install.ps1 | iex

and then

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

Otherwise installation instructions are on their website: Install uv

⚠️ Do not proceed before installing UV

First, you need to integrate with Claude Desktop:

  1. Go to Claude Desktop > Settings > Developer > Edit Config
在 GitHub 查看完整 README

安装

uvx reer-rhino-mcp
新手?先看 mcpskill.org 教程 →

配置

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