Rhino AI集成
STDIO通过MCP协议连接犀牛与AI进行3D建模
通过MCP协议连接犀牛与AI进行3D建模
RhinoMCP connects Rhino to AI agents through the Model Context Protocol (MCP), allowing AI agents to directly interact with and control Rhino. This integration enables prompt assisted 3D modeling in Rhino 3D.
[!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, Circle, Arc, Ellipse, Curve, Box, Sphere, Cone, Cylinder, Surface (from points)
This demo shows how AI can interact with Rhino in two directions. Click the image below to watch the video.
This demo shows how to ask AI to create custom scripts and execute them in Rhino. Click the image below to watch the video.
Thanks to Nate. He has created a showcase and installation tutorial for this tool.
The system consists of two main components:
src/rhino_mcp_server/server.py
): A Python server that implements the Model Context Protocol and connects to the Rhino pluginsrc/rhino_mcp_plugin
): A Rhino plugin that creates a socket server within Rhino to receive and execute commands⚠️ Only run one instance of the MCP server (either on Cursor or Claude Desktop), not both
rhinomcp
Install
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
{ "mcpServers": { "rhino": { "command": "uvx", "args": ["rhinomcp"] } } }
Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the above config file.
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.
mcpstart
in the command lineOnce 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.
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.
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.
The system uses a simple JSON-based protocol over TCP sockets:
type
and optional params
status
and result
or message
get_document_info
only fetches max 30 objects, layers, material etc. to avoid huge dataset that overwhelms Claude.cd rhino_mcp_server uv build uv publish
yak build
in the Release folderyak push rhino_mcp_plugin_xxxx.yak
to publish the pluginContributions are welcome! Please feel free to submit a Pull Request.
This is a third-party integration and not made by Mcneel. Made by Jingcheng Chen