Cover image
Try Now
2025-04-14

Rhinomcp通过模型上下文协议(MCP)将犀牛3D连接到AI代理

3 years

Works with Finder

2

Github Watches

8

Github Forks

29

Github Stars

RhinoMCP - Rhino Model Context Protocol Integration

RhinoMCP connects Rhino 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 in Rhino 3D.

Demo

Demo 1

This demo shows how to ask AI to create custom scripts and execute them in Rhino. Click the image below to watch the video.

demo2

Demo 2

This demo shows how AI can interact with Rhino in two directions. Click the image below to watch the video.

demo1

Features

  • Two-way communication: Connect Claude AI to Rhino through a socket-based server
  • Object manipulation: Create, modify, and delete 3D objects in Rhino
  • Document inspection: Get detailed information about the current Rhino document
  • Script execution: Execute Rhinos python scripts in Rhino (experimental, may not work every time)
  • Object selection: Select objects based on filters, e.g. name, color, category, etc. with "and" or "or" logic

[!NOTE]
So far the tool only supports creating primitive objects for proof of concept. More geometries will be added in the future. Supported objects: Point, Line, Polyline, Curve, Box, Sphere

Components

The system consists of two main components:

  1. MCP Server (src/rhino_mcp_server/server.py): A Python server that implements the Model Context Protocol and connects to the Rhino plugin
  2. Rhino Plugin (src/rhino_mcp_plugin): A Rhino plugin that creates a socket server within Rhino to receive and execute commands

Installation

Prerequisites

  • Rhino 7 or newer (Works onWindows and Mac); make sure you Rhino is up to date.
  • Python 3.10 or newer
  • uv package manager

⚠️ Only run one instance of the MCP server (either on Cursor or Claude Desktop), not both

Installing the Rhino Plugin

  1. Go to Tools > Package Manager
  2. Search for rhinomcp
  3. Click Install

Install uv

If you're on Mac, please install uv as

brew install uv

On Windows

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

⚠️ Do not proceed before installing UV

Config file

{
  "mcpServers": {
    "rhino": {
      "command": "uvx",
      "args": ["rhinomcp"]
    }
  }
}

Claude for Desktop Integration

Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the above config file.

Cursor integration

Make sure your cursor is up to date.

Create a folder .cursor in your project root.

Create a file mcp.json in the .cursor folder and include the above config file:

Go to Cursor Settings > MCP and check if it's enabled.

Usage

Starting the Connection

RhinoMCP in the command line

  1. In Rhino, type mcpstart in the command line
  2. Make sure the MCP server is running in the rhino terminal

Using with Claude

Once the config file has been set on Claude, and the plugin is running on Rhino, you will see a hammer icon with tools for the RhinoMCP.

RhinoMCP in Claude

Using with Cursor

Once the config file has been set on Cursor, and the plugin is running on Rhino, you will see the green indicator in front of the MCP server.

RhinoMCP in Cursor

If not, try refresh the server in Cursor. If any console pops up, please do not close it.

Once it's ready, use Ctrl+I to open the chat box and start chatting with Rhino. Make sure you've selected Agent mode.

RhinoMCP in Cursor

Technical Details

Communication Protocol

The system uses a simple JSON-based protocol over TCP sockets:

  • Commands are sent as JSON objects with a type and optional params
  • Responses are JSON objects with a status and result or message

Limitations & Security Considerations

  • The get_document_info only fetches max 30 objects, layers, material etc. to avoid huge dataset that overwhelms Claude.
  • Complex operations might need to be broken down into smaller steps

Building the tool and publishing

Building and publishing the server

cd rhino_mcp_server
uv build
uv publish

Building and publishing the plugin

  1. build the tool in Release mode
  2. copy the "manifest.yml" file to the "bin/Release" folder
  3. run yak build in the Release folder
  4. run yak push rhino_mcp_plugin_xxxx.yak to publish the plugin

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Disclaimer

This is a third-party integration and not made by Mcneel. Made by Jingcheng Chen

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Daren White
  • A supportive coach for mastering all Spanish tenses.

  • J. DE HARO OLLE
  • Especialista en juegos de palabras en varios idiomas.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

    Reviews

    4 (1)
    Avatar
    user_O4iaTDoC
    2025-04-16

    RhinoMCP is the ultimate Modular Command Processor I’ve been using extensively. Created by Jingcheng Chen, it seamlessly integrates commands and workflows into various projects. If you’re looking for robust and customizable command processing, RhinoMCP is the tool to check out! More details are available at https://github.com/jingcheng-chen/rhinomcp.