RhinoMCP - Rhino 模型上下文协议集成 logo

RhinoMCP - Rhino 模型上下文协议集成

CommunityPopular
jingcheng-chen

RhinoMCP connects Rhino 3D to AI Agent through the Model Context Protocol (MCP)

Publisherjingcheng-chen
Repositoryrhinomcp
LanguagePython
Forks
99
Stars
1.1K
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    RhinoMCP - Rhino 模型上下文协议集成 exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    1.1K stars and 99 forks from the linked repository.

RhinoMCP

Control Rhino 3D and Grasshopper with AI, in plain language.

RhinoMCP connects Rhino to AI agents through the Model Context Protocol, so assistants like Claude and Cursor can model geometry, read your document, and build Grasshopper definitions for you, just by chatting.

PyPI Rhino 8 Python 3.10+ MCP License: MIT

Quick start · What it can do · Usage · Examples · Tool reference

English · 简体中文


Highlights

For development of the autonomous improvement experiments, start with the continuation guide.

  • Describe what you want and the assistant builds it in Rhino.
  • It reads your document and can capture the viewport, so it works from what is actually on screen.
  • It scripts Grasshopper for you: finding components, wiring them, setting sliders, and solving.
  • A single plugin and a single config entry cover both Rhino and Grasshopper.
  • When you need more control, it can run native Rhino commands, RhinoScript-Python, or RhinoCommon C#.

[!NOTE] RhinoMCP targets Rhino 8 on Windows and macOS.

Demos

Two-way interaction demo

Two-way interaction: the AI both creates and reads geometry.

Custom script demo

Custom scripts: the AI writes and runs scripts inside Rhino.

Prefer a walkthrough? Nate made a showcase and install tutorial on YouTube.

What it can do

Rhino

AreaWhat the AI can do
Create geometryPoints, lines, polylines, circles, arcs, ellipses, curves, boxes, spheres, cones, cylinders, and surfaces, one at a time or in batches
Transform & editMove, rotate, scale, recolor, rename, and delete objects
Advanced modelingLoft, extrude, sweep, offset, pipe; boolean union, difference, and intersection
Curve operationsProject, intersect, and split curves
Layers & attributesCreate, delete, and switch layers; read and write object attributes
Inspect & selectDocument summaries, object info, and filtered selection (by name, color, or category, with AND / OR logic)
See the modelCapture the viewport so the AI gets visual feedback
AnalyzeMeasure length, area, volume, bounding boxes, and more
Go deeperRun any Rhino command, execute RhinoScript-Python, or run RhinoCommon C#, with built-in RhinoScript docs lookup

Grasshopper

AreaWhat the AI can do
Find componentsSearch the installed component library and inspect a component's inputs and outputs before placing it
Build canvasesAdd, position, lay out, update, and delete components
Wire it upConnect and disconnect parameters between components
Set & read valuesDrive sliders, toggles, panels, and value lists; read structured data back out of outputs
SolveRun the solution and surface runtime warnings and errors
Build in one shotConstruct and wire a whole graph, or mutate an existing one, in a single batched operation

Quick start

Three steps: install the Rhino plugin, connect your AI client, then start the bridge in Rhino.

1. Install the Rhino plugin

In Rhino, open Tools → Package Manager, search for rhinomcp, and click Install. Restart Rhino.

2. Connect your AI client

Option A: ask your AI assistant to install it (recommended)

If you use an agentic assistant (Codex, Claude Code, Cursor, Cline, and the like), paste this prompt:

Please install https://github.com/jingcheng-chen/rhinomcp as a local MCP server named `rhino`.

Option B: Install the mcp server or manually edit the config yourself

Codex, in one command:

bash
codex mcp add rhino --env RHINO_MCP_HOST=127.0.0.1 -- uvx rhinomcp@latest

Claude Code, in one command:

bash
claude mcp add rhino -- uvx rhinomcp@latest

ChatGPT: use Codex for the local setup above. ChatGPT apps/MCP connectors currently connect to remote MCP servers, not local stdio commands like uvx rhinomcp. If you want to build a ChatGPT app around RhinoMCP, use ChatGPT developer mode with a remote or tunneled MCP endpoint.

You can also manually edit the config yourself:

json
{
  "mcpServers": {
    "rhino": {
      "command": "uvx",
      "args": ["rhinomcp@latest"],
      "env": {
        "RHINO_MCP_HOST": "127.0.0.1"
      }
    }
  }
}

[!IMPORTANT] The launcher uvx comes from uv. If you don't have it yet: macOS brew install uv · Windows powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Run only one RhinoMCP server at a time (Codex, Claude, Cursor, etc. — not several at once).

To clean up a stale rhinomcp process each time your client launches:

macOS / Linux

json
{
  "mcpServers": {
    "rhino": {
      "command": "sh",
      "args": ["-c", "killall rhinomcp 2>/dev/null; uvx rhinomcp@latest"]
    }
  }
}

Windows

json
{
  "mcpServers": {
    "rhino": {
      "command": "cmd",
      "args": ["/c", "taskkill /F /IM rhinomcp.exe 2>nul & uvx rhinomcp@latest"]
    }
  }
}

3. Start the Rhino bridge

With Rhino open, type mcpstart in the command line. This starts the TCP bridge the server connects to (mcpstop ends it). Run it once per Rhino session.

Staying up to date

RhinoMCP has three parts that update separately:

  • Python server. uvx rhinomcp@latest asks PyPI for the newest release every time your client starts the server; plain uvx rhinomcp keeps the first version it downloaded. If you work offline, install it once with uv tool install rhinomcp and run uv tool upgrade rhinomcp when convenient.
  • Rhino plugin. Installed through the Package Manager, Rhino checks for updates at startup and installs them when "Automatically update packages when Rhino starts" is enabled; the new version loads on the next restart. A plugin installed by dragging a .rhp into Rhino is not updated.
  • AI client. It reads the tool list when it launches the server, so restart the client (or reconnect the server) after an update.

The server reads the plugin's version when it connects and warns in its log when the two differ. A tool that needs a newer plugin fails with an update instruction instead of silently doing something else, and describe_capabilities reports both versions.

Usage

With the bridge running and your client connected, you'll see the RhinoMCP tools. From there, just chat: ask the assistant to model something, inspect your scene, or build a Grasshopper graph.

For Grasshopper, you only need Rhino open with mcpstart running. The assistant can open or create the Grasshopper document itself, then build the definition. For example: "create a point attractor pattern with cylinders that have different heights."

Example prompts

Create 6×6×6 boxes on a 10-unit grid from the origin, sizes ramping from 1 to 5, with a blue-to-red gradient color based on size. Use RhinoScript Python.

Make a Rhinoceros animal out of cubic blocks in cartoon colors. Then change its head to red, and rotate the selected object 90° around the Z axis.

Create a point attractor pattern in Grasshopper: a grid of cylinders whose heights change with their distance from an attractor point, with a slider to move the point.

Tool reference

ToolPurpose
create_object / create_objectsCreate one or many objects
modify_object / modify_objectsTransform or edit one or many objects
delete_objectDelete an object
boolean_union / boolean_difference / boolean_intersectionBoolean operations
loft / extrude_curve / sweep1 / offset_curve / pipeAdvanced surface and solid modeling
project_curve / intersect_curves / split_curveCurve operations
analyze_objectsMeasure length, area, volume, bounding boxes, and more
select_objectsSelect by filters (name, color, category; AND / OR)
get_objects / get_object_info / get_selected_objects_infoQuery objects
get_object_attributes / update_object_attributesRead and write object attributes
create_layer / delete_layer / get_or_set_current_layerLayer management
get_document_summaryOverview of the current document
capture_viewportScreenshot the viewport for visual feedback
run_commandRun any native Rhino command
execute_rhinoscript_python_codeExecute RhinoScript-Python
execute_rhinocommon_csharp_codeExecute RhinoCommon C#
search_rhinoscript_functions / get_rhinoscript_docs / list_rhinoscript_modules / get_module_functionsRhinoScript API docs lookup
get_commandsList available commands
undo / redoUndo and redo
ToolPurpose
gh_create_document / gh_get_document_info / gh_get_canvas_stateDocument and canvas inspection
gh_search_components / gh_batch_search_componentsSearch the component library
gh_list_component_categories / gh_get_available_componentsBrowse installed components
gh_get_component_type_info / gh_get_component_infoInspect a component type or instance
gh_list_componentsList components on the canvas
gh_add_component / gh_update_component / gh_delete_componentAdd, update, or delete components
gh_layout_componentsAuto-lay-out the canvas
gh_clear_canvasClear the canvas
gh_connect_components / gh_disconnect_componentsWire or unwire parameters
gh_set_parameter_value / gh_get_parameter_valueDrive inputs, read outputs
gh_run_solution / gh_expire_solutionSolve or expire the solution
gh_build_graph / gh_mutate_graphBuild or mutate a whole graph in one batched call
gh_get_graph / gh_clear_graphInspect or clear objects by graph id

How it works

AI client ──MCP (stdio)──► rhinomcp (Python) ──TCP 127.0.0.1:1999──► Rhino plugin ──► Rhino + Grasshopper
  1. server/: a Python MCP server (official Python SDK 2.x) that exposes each tool and forwards it to Rhino.
  2. plugin/: a RhinoCommon C# plugin that runs a TCP listener inside Rhino and executes commands on the main thread. Start and stop it with the mcpstart / mcpstop Rhino commands.
  3. contracts/: JSON Schema definitions that keep the wire protocol between the two tiers in sync.

IMPLEMENTATION.md has a deeper tour of the code.

Security

The Python server and the Rhino plugin talk over an unauthenticated TCP loopback link (127.0.0.1:1999). Tools such as run_command, execute_rhinoscript_python_code, and execute_rhinocommon_csharp_code give the model an open execution surface inside Rhino. This is fine for local agent use. Do not expose it beyond the loopback interface without adding authentication.

VariableDefaultEffect
RHINO_MCP_HOST127.0.0.1Connect target. Refuses non-loopback hosts unless RHINO_MCP_ALLOW_REMOTE=1.
RHINO_MCP_PORT1999TCP port.
RHINO_MCP_ENABLE_RUN_COMMAND1Set 0 to disable the run_command tool.
RHINO_MCP_ENABLE_RHINOSCRIPT1Set 0 to disable RhinoScript-Python execution.
RHINO_MCP_ENABLE_CSHARP1Set 0 to disable RhinoCommon C# execution.
RHINO_MCP_VALIDATEwarnPre-flight schema validation: off / warn / strict.
RHINO_MCP_TIMEOUT15.0Socket timeout in seconds.
RHINO_MCP_DEBUG0Verbose logging.

For developers

Python server (run from server/)

bash
uv venv && uv pip install -e ".[dev]"   # set up
uv run pytest                            # run tests (no Rhino needed; uses a mock server)
uv run ruff check src/rhinomcp           # lint
uv run python ../contracts/test_schemas.py   # validate JSON schemas
uv build && uv publish                   # publish to PyPI

C# plugin

bash
dotnet restore plugin/rhinomcp.sln
dotnet build plugin/rhinomcp.sln --configuration Release

To publish the plugin: build in Release, copy manifest.yml into bin/Release, then run yak build and yak push rhinomcp_xxxx.yak.

Contributing

Contributions are welcome. Feel free to open an issue or submit a pull request.

Disclaimer

This is a third-party integration and is not made by McNeel. Built by Jingcheng Chen.

Star history

Star History Chart

Modeling guidance distributed with the server

The Python package includes reusable guidance for transforms, planar regions, organization, verification and recovery. Use get_modeling_guidance("overview"), the asset_general_strategy MCP prompt, or the rhinomcp://guidance/{topic} resource. Essential tool semantics stay in tool descriptions. No local experiment folder or separate skill is needed. See packaged guidance for available topics and release details.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "jingcheng-chen-rhinomcp": {
      "command": "",
      "args": []
    }
  }
}

Use RhinoMCP - Rhino 模型上下文协议集成 MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once RhinoMCP - Rhino 模型上下文协议集成 is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add RhinoMCP - Rhino 模型上下文协议集成 as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the RhinoMCP - Rhino 模型上下文协议集成 MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "jingcheng-chen-rhinomcp": {
      "command": "npx",
      "args": [
        "-y",
        "rhinomcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the RhinoMCP - Rhino 模型上下文协议集成 MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the RhinoMCP - Rhino 模型上下文协议集成 MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use RhinoMCP - Rhino 模型上下文协议集成 to help me with this task?
RhinoMCP - Rhino 模型上下文协议集成
Sure. I read it.
Here is what I found using RhinoMCP - Rhino 模型上下文协议集成.

Frequently asked questions

What is the RhinoMCP - Rhino 模型上下文协议集成 MCP server used for?

RhinoMCP - Rhino 模型上下文协议集成 is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use RhinoMCP - Rhino 模型上下文协议集成 MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use RhinoMCP - Rhino 模型上下文协议集成 with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use RhinoMCP - Rhino 模型上下文协议集成 MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With RhinoMCP - Rhino 模型上下文协议集成 connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect RhinoMCP - Rhino 模型上下文协议集成 MCP to TypingMind?

RhinoMCP - Rhino 模型上下文协议集成 runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does RhinoMCP - Rhino 模型上下文协议集成 MCP provide in TypingMind?

RhinoMCP - Rhino 模型上下文协议集成 exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use RhinoMCP - Rhino 模型上下文协议集成 MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If RhinoMCP - Rhino 模型上下文协议集成 requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇