Skip to main content
Glama

rhino-mcp

Drive McNeel Rhino 8 / Rhino 9 and Grasshopper from Claude through the Model Context Protocol.

PyPI Python License Rhino MCP Platform

English · 한국어


Overview

rhino-mcp is a Model Context Protocol server that lets Claude (or any MCP client) drive Rhino 8 or Rhino 9 — creating geometry, manipulating layers and materials, baking Grasshopper output, exporting STEP/IGES/STL/OBJ — through plain natural-language tool calls. It runs in two modes:

  • Standalone (default): backed by rhino3dm for headless .3dm file authoring; works without Rhino installed and exposes ~246 tools (geometry, file-I/O, transform, layer, material, analysis, RhinoScript docs, composition, document hygiene, geometry validation, GH template catalogue, freeform skin / panelisation / curvature / fields, drawing-set sheet + title block, schedule / quantity, block definition, sun-position + shadow projection, BIM metadata tagging, 19 physical material presets, BRE daylight factor + Bird DNI clear-sky model, and multi-Rhino announcement-file discovery, Draco export, SubD inspection).

  • Bridge: when the C# bridge plugin is loaded in a live Rhino 8 or Rhino 9 session, the server transparently forwards every call (booleans, lofts, sweeps, viewport image capture + zoom-to-object / zoom-to-layer, render, scripting (Python and gated Roslyn C# with timeouts and extra references), deformation, NURBS editing, SubD, paneling, freeform analysis with true Gaussian curvature, drawing-set view placement + section cuts + PDF export, accurate Brep-area schedules, block explode/redefine, ray-cast solar exposure + Brep ray probe, IFC import-export and gbXML export, HDRI environment, camera / light / render / turntable automation, layer-material binding, and every Grasshopper operation including batched connect_many wiring and slider placement) to RhinoCommon and Grasshopper.Instances, exposing ~247 tools.

Capture tools (rhino_screenshot, rhino_viewport_preview, rhino_viewport_image) return MCP image content (JPEG by default, max_width=1024), the server publishes MCP resources (rhino://scene/summary, rhino://layers, rhino://selection, rhinoscript://{function}), and long bridge operations stream MCP progress notifications.

Coexistence with McNeel's RhinoMCP. Rhino 9 ships its own RhinoMCP (MCPStart / MCPConnect, HTTP port 10500). Both can run side by side because rhino-mcp binds TCP 4242 and upward. rhino-mcp adds a standalone headless rhino3dm mode (no Rhino needed), domain tools for BIM, rendering, freeform architecture and Grasshopper, and batch dispatch with progress reporting.

Related MCP server: vn-autocad-claude

Features

  • Full geometry catalogue — points, lines, polylines, arcs, circles, ellipses, polygons, helixes, NURBS curves, rebuilds.

  • Solids and meshes — boxes, spheres, cylinders, cones, tori, mesh boxes; booleans / sweeps / lofts / fillets via the bridge.

  • Transforms — move, rotate, scale, mirror, plane-to-plane orient, linear/polar/rectangular arrays.

  • Script execution — run arbitrary RhinoScript Python (IronPython) or RhinoCommon C# (Roslyn) code in a live Rhino session, with built-in RhinoScript API documentation search (899 functions).

  • Advanced modeling — deformation (bend/twist/taper/flow), NURBS editing (rebuild/unroll/evaluate), SubD, surface matching, extraction (dup edge/border/isocurve/Make2D), control points, and paneling tools.

  • Drawing-set authoring — sheet / title block / north arrow / scale bar in standalone; multi-view placement, section cuts, and PDF export through the bridge.

  • Quantity & schedule — per-layer / per-material / per-user_text aggregation with CSV export; bridge mode uses AreaMassProperties / VolumeMassProperties for accurate Brep area + volume.

  • Block / instance reuse — define / insert / list blocks in standalone; explode / redefine in bridge mode for synchronized component edits.

  • Environmental analysis — sun position + monthly sun-path polylines + shadow projection (NOAA SPA approximation); ray-cast solar exposure in bridge mode. Daylight precision adds Bird DNI clear-sky model with Kasten-Young air mass and Linke turbidity, plus BRE simplified daylight factor.

  • BIM interchange — IFC2x3 / IFC4 / IFC4x3 import & export, gbXML export, and IFC PropertySet metadata tagging that round-trips through user_text.

  • Material presets + HDRI — 19 bundled physical presets (concrete / brick / steel / aluminium / glass / timber / stone / plaster / fabric / landscape) keyed by category; HDRI environment for rendering.

  • Render automation — camera / light / render-engine setup, render-to-file, and parametric turntable sequences (bridge mode).

  • Undo / redo and batch operations — every bridge operation is wrapped in undo records; batch modify changes many objects in a single call.

  • Layers, materials, blocks, groups — full attribute control on the document.

  • File I/O — open/save .3dm, export OBJ/STL standalone; STEP/IGES/DXF and screenshots via the bridge.

  • Inline image capture — rhino_screenshot, rhino_viewport_preview and rhino_viewport_image return MCP image content (as_base64 is a deprecated alias) for immediate visual verification by the LLM.

  • Toolset filtering and resources — RHINO_MCP_TOOLSETS limits the registered tool groups; rhino://scene/summary, rhino://layers, rhino://selection and rhinoscript://{function} are exposed as MCP resources.

  • Rich object selection — rhino_object_select filters by glob name pattern, layer, RGB color, object type, and user-text key/value pairs.

  • Pagination on bulk queries — rhino_list_objects returns a pagination: {total, offset, limit, returned, has_more} block so large documents stay manageable.

  • Scene composition shortcuts (v0.2) — rhino_place_grid, rhino_stack_floors, rhino_scatter, rhino_replicate_along_curve collapse "loop + transform" into a single tool call.

  • Document hygiene tools (v0.2) — query/set units, tolerances, and base point (rhino_document_units_*, rhino_tolerance_*, rhino_origin_set); rhino_document_summary exposes them so the LLM can verify scale before issuing geometry calls.

  • Geometry validation (v0.2) — rhino_validate_brep, rhino_report_mesh_health, rhino_curve_continuity, plus rhino_check_naked_edges (bridge) for explicit topology diagnostics before booleans / exports.

  • Grasshopper template loader (v0.2) — gh_template_list reads a manifest of pre-wired definitions; gh_load_template, gh_bind_template_parameter, gh_run_template (bridge) load, parameterise, and bake them.

  • Free-form architecture toolkit — rhino_skin_from_sections, rhino_uv_grid_panels, rhino_panel_planarity, rhino_panel_curvature_classify, rhino_surface_developable_score, rhino_attractor_displace_points, rhino_smooth_polyline. Bridge mode adds true Gaussian / mean / principal curvature, world-axis slicing, and waffle ribs.

  • Strategy prompts for the LLM — nine @mcp.prompt() guides (general_strategy, rhinoscript_workflow, viewport_workflow, parametric_workflow, bim_authoring_workflow, design_dialogue_workflow, freeform_workflow, drawing_documentation, quantity_takeoff) help Claude pick the right tool, avoid hallucinated APIs, and keep the user in the loop on design decisions.

  • Async-capable tools — read-only query tools run on async def so concurrent bridge round-trips don't stall the MCP transport.

  • Robust connection layer — JSON-RPC over named pipe / Unix socket / TCP with MSG_PEEK liveness probes and exponential backoff with jitter on reconnect.

  • Grasshopper automation — open .gh files, drop components, wire them, set sliders/panels/toggles, run, bake, read DataTrees.

  • Three transports — stdio (Claude Desktop), Streamable HTTP, Docker/TCP.

  • Capability-aware registration — bridge-only tools are simply not registered when no bridge is reachable; no stub functions, ever.

  • Actionable errors — every failure carries a category, a remediation hint, and details the agent can act on.

Architecture

┌──────────────┐     stdio | HTTP     ┌────────────────┐
│  Claude /    │ ◀──────────────────▶ │   rhino-mcp    │
│  MCP client  │                      │   (Python)     │
└──────────────┘                      └─────┬──────────┘
                                            │
                              JSON-RPC 2.0  │   (named pipe / unix socket / TCP)
                                            │
                                  ┌─────────▼──────────┐
                                  │  C# Bridge Plugin  │
                                  │  (inside Rhino)    │
                                  │  ────────────────  │
                                  │  RhinoCommon       │
                                  │  Grasshopper       │
                                  │  Roslyn (C# exec)  │
                                  │  IronPython (Py)   │
                                  └────────────────────┘

In standalone mode the right-hand side is replaced by an in-process rhino3dm.File3dm document; bridge-only tools are unregistered.

Requirements

  • Python 3.11 or newer

  • rhino3dm >= 8.35 (macOS wheels need macOS 14+), mcp[cli] >= 1.2, pydantic >= 2.6 (installed automatically)

  • Optional: McNeel Rhino 8 or Rhino 9 (any platform) — needed only for bridge mode

  • Optional: .NET 8 SDK — to build the C# bridge plugin (dotnet build)

  • Optional: pywin32 on Windows for the named-pipe transport

Installation

uv tool install rhino-mcp
# or, from a checkout:
uv sync && uv run rhino-mcp

Using pip

pip install rhino3dm-mcp
rhino-mcp --version

One-shot client wiring

After installing the package, register the server with your MCP client in a single command instead of editing config files by hand:

rhino-mcp install                         # Claude Desktop (default), auto-detect launcher
rhino-mcp install --client claude-code    # Claude Code (user scope)
rhino-mcp install --client codex --client antigravity   # --client is repeatable
rhino-mcp install --client detected       # every client found on this machine
rhino-mcp install --client all            # all supported clients
rhino-mcp install --list-clients --json   # detection / installation state
rhino-mcp install --mode bridge           # force bridge mode in the env block
rhino-mcp install --force                 # overwrite an existing entry
rhino-mcp install --dry-run               # preview the result without writing
rhino-mcp uninstall --client all          # remove only the rhino-mcp entry

Client

Target

claude-desktop

claude_desktop_config.json (unchanged)

claude-code

claude mcp add-json --scope user when the CLI exists, otherwise mcpServers in ~/.claude.json (honours CLAUDE_CONFIG_DIR)

codex

$CODEX_HOME/config.toml or ~/.codex/config.toml, table [mcp_servers.rhino-mcp] (comments and other tables preserved)

antigravity

~/.gemini/antigravity/mcp_config.json

Every write is preceded by a timestamped .bak.<timestamp> copy, and re-running with the same flags is a no-op. Restart the client afterwards to pick up the change.

From inside Rhino — _McpInstall

If the bridge plugin is loaded, type _McpInstall on the Rhino command line. The command offers toggles for ClaudeDesktop, ClaudeCode, Codex and Antigravity plus All and Uninstall; the initial state comes from client detection. It locates a launcher and passes it with --launcher, so configs receive an absolute launcher path. The command is non-interactive after that: it locates uvx / rhino-mcp / python on PATH (with ~/.local/bin, ~/.cargo/bin, /opt/homebrew/bin, and /usr/local/bin searched on macOS so the GUI-app PATH is enough), runs the same install pipeline as rhino-mcp install, and streams the outcome to the Rhino command line. The MCP server is registered with --mode auto so Claude Desktop attaches to the bridge when Rhino is running and falls back to standalone (rhino3dm) when it is not.

Docker

docker compose -f docker/docker-compose.yml up --build

The container exposes the server over Streamable HTTP on TCP :8765.

Running the server

rhino-mcp is normally launched by an MCP client (Claude Desktop / Cursor / claude.ai connector) via the command + args you put into the client's config. You can also run it manually for debugging.

Launch modes

Use case

Command

Stdio (Claude Desktop default)

uvx rhino3dm-mcp or rhino-mcp

Streamable HTTP (local dev / Cursor)

rhino-mcp --transport http --host 127.0.0.1 --port 8765

Streamable HTTP (claude.ai connector)

rhino-mcp --transport http --host 0.0.0.0 --port 8765 --allow-external --stateless

Docker (HTTP on :8765)

docker compose -f docker/docker-compose.yml up --build

Force standalone (no Rhino needed)

RHINO_MCP_FORCE_MODE=standalone rhino-mcp

Force bridge (fail fast if Rhino down)

RHINO_MCP_FORCE_MODE=bridge rhino-mcp

Force bridge with HTTP fallback

RHINO_MCP_FORCE_MODE=bridge RHINO_MCP_BRIDGE_OPTIONAL=1 rhino-mcp --transport http

Show all CLI flags

rhino-mcp --help

The HTTP endpoint is http://<host>:<port>/mcp. Use --allow-external only when exposing the server through ngrok / Cloudflare Tunnel / etc. — it disables DNS-rebinding protection.

Claude Desktop (stdio)

claude_desktop_config.json lives at:

OS

Path

macOS

~/Library/Application Support/Claude/claude_desktop_config.json

Windows

%APPDATA%\Claude\claude_desktop_config.json

Linux

~/.config/Claude/claude_desktop_config.json

Paste this entry under mcpServers:

{
  "mcpServers": {
    "rhino-mcp": {
      "command": "uvx",
      "args": ["rhino3dm-mcp"],
      "env": {
        "RHINO_MCP_TRANSPORT": "stdio",
        "RHINO_HOST": "127.0.0.1",
        "RHINO_PORT": "4242",
        "RHINO_MCP_LOG_LEVEL": "INFO"
      }
    }
  }
}

Prefer a checkout? Point command at uv and run from the repo:

{
  "mcpServers": {
    "rhino-mcp": {
      "command": "uv",
      "args": ["--directory", "/absolute/path/to/rhino-mcp", "run", "rhino-mcp"],
      "env": { "RHINO_MCP_LOG_LEVEL": "DEBUG" }
    }
  }
}

Restart Claude Desktop; the rhino-mcp tools and the nine strategy prompts (general_strategy, rhinoscript_workflow, viewport_workflow, …) appear in the palette.

Cursor IDE

Cursor reads ~/.cursor/mcp.json (global) or <project>/.cursor/mcp.json (per-project):

{
  "mcpServers": {
    "rhino-mcp": {
      "command": "uvx",
      "args": ["rhino3dm-mcp"],
      "env": { "RHINO_MCP_FORCE_MODE": "bridge" }
    }
  }
}

claude.ai remote connector (Streamable HTTP)

  1. Run the server with HTTP + external access:

    rhino-mcp --transport http --host 0.0.0.0 --port 8765 --allow-external --stateless
  2. Tunnel it (e.g. ngrok http 8765) and grab the public HTTPS URL.

  3. In claude.ai → Settings → Connectors → Add custom connector, set the URL to https://<your-tunnel>/mcp.

Generic stdio MCP clients

Any MCP-compatible client (mcp-inspector, Continue, Claude Code, etc.) that can spawn a subprocess will work — give it uvx rhino3dm-mcp or the path to your rhino-mcp entry-point and inherit env vars from the table below.

Build and install the C# plugin for full 247 tool support. The RhinoMajor MSBuild property selects the target Rhino (default 9; 8 for Rhino 8). Outputs go to bin/rh9 and bin/rh8. The included helper script wraps dotnet build and verifies the post-build install location. A local build and a Package Manager install share the same plug-in GUID and cannot load together: uninstall the package before loading a local build, or use --no-install while it stays installed (the script warns when it finds one).

./scripts/build-plugin.sh                       # Rhino 9 debug build + install
./scripts/build-plugin.sh --release             # release build
./scripts/build-plugin.sh --release --rhino=8   # Rhino 8 (or --rhino=both)
./scripts/build-plugin.sh --no-install          # build only, no copy
./scripts/build-plugin.sh --clean               # clean + rebuild

# Or invoke dotnet directly:
dotnet build rhino_plugin/csharp/RhinoMCPPlugin.csproj -c Release -p:RhinoMajor=9
dotnet build rhino_plugin/csharp/RhinoMCPPlugin.csproj -c Release -p:RhinoMajor=8

# Skip the copy into the Rhino install:
dotnet build rhino_plugin/csharp/RhinoMCPPlugin.csproj -c Release -p:SkipPluginCopy=true

# Yak packages for both Rhino versions (rh8 + rh9); ends with one copy-ready push line:
./scripts/publish-yak.sh --rhino=both
./scripts/publish-yak.sh --print-push            # print the push line again, no build

# Whole release in one go (version check, install, pytest + ruff, packages); never pushes:
./scripts/release.sh

Post-build targets copy the .rhp only when the matching Rhino install exists (N is 8 or 9):

OS

Path

macOS

/Applications/Rhino N.app/Contents/PlugIns/rhino-mcp.rhp

Windows

%APPDATA%/McNeel/Rhinoceros/N.0/Plug-ins/rhino-mcp/rhino-mcp.rhp

Restart Rhino — the bridge starts automatically on load (TCP :4242 by default). Then restart rhino-mcp (or set RHINO_MCP_FORCE_MODE=bridge) and the bridge-only tools become available.

Quick start

# After "rhino-mcp" is configured in Claude Desktop, ask Claude:
#   "Create a 10-unit sphere at the origin and save the document to /tmp/demo.3dm"
# Behind the scenes Claude calls rhino_sphere → rhino_save.

Strategy prompts

Nine MCP prompts are registered automatically and surfaced in the client's prompt picker. The three most used:

Prompt

When to use

general_strategy

Decision tree for orienting in a document → choosing the right tool → best practices.

rhinoscript_workflow

Mandatory steps before invoking rhino_execute_python so the LLM doesn't hallucinate APIs.

viewport_workflow

How to combine rhino_zoom_extent + rhino_screenshot for visual checks.

Telling Claude "use the general_strategy prompt before you start" gives much better tool selection on long sessions.

Visual verification with image capture

"Build a 5x5x5 box on layer 'Demo', then take a screenshot so you can confirm it landed."

Claude calls rhino_box → rhino_zoom_extent → rhino_screenshot and receives the capture as MCP image content (max_width=1024, format=jpeg|png, jpeg_quality=80; set include_image=false to skip the inline image, and path is optional). as_base64 and mime still work as deprecated aliases.

Pagination & rich filtering

"List the first 50 curves on the 'Walls' layer, then select every object whose name matches 'Pillar_*' on layer 'Structure'."

rhino_list_objects returns a pagination block; iterate with offset += limit until has_more is false. rhino_object_select accepts name_pattern, layer, color, object_type, user_text, and deselect_first.

Standalone smoke run from the shell:

RHINO_MCP_FORCE_MODE=standalone uv run python - <<'PY'
import asyncio
from rhino_mcp.server import build_server
from rhino_mcp.utils.registry import Mode

mcp, count = build_server(runtime_mode=Mode.STANDALONE, bridge_client=None)
print(f"{count} tools registered")
sphere = asyncio.run(
    mcp._tool_manager._tools["rhino_sphere"].run(
        {"args": {"center": {"x": 0, "y": 0, "z": 0}, "radius": 10.0}}
    )
)
print(sphere)
PY

Tools reference (summary)

Category

Standalone

+ Bridge

Notable members

Geometry

14

14

rhino_point, rhino_circle, rhino_helix, rhino_nurbs_curve, rhino_rebuild_curve

Curves

3

3

rhino_curve_length, rhino_curve_point_at, rhino_curve_split

Solids

5

10

rhino_box, rhino_sphere, rhino_boolean_union (bridge)

Surfaces

0

11

rhino_loft, rhino_sweep1, rhino_revolve

Mesh

1

8

rhino_mesh_box, rhino_weld_mesh (bridge)

Transform

9

11

rhino_array_polar, rhino_orient, rhino_flow (bridge)

Annotation

2

8

rhino_text_dot, rhino_dimension_linear (bridge)

Layer / Object

6

8

rhino_layer_create, rhino_block_insert (bridge)

Material

2

3

rhino_material_create, rhino_render_viewport (bridge)

File I/O

5

9

rhino_save, rhino_export_step (bridge)

Analysis

4

9

rhino_volume, rhino_zebra (bridge)

Query

7

8

rhino_list_objects, rhino_document_summary, rhino_get_selected_objects (bridge)

Display

0

5

rhino_zoom_extent, rhino_named_view_save

Scripting

0

2

rhino_execute_python, rhino_execute_csharp

RS Docs

4

4

rhino_search_rhinoscript_functions, rhino_get_rhinoscript_docs

History

0

2

rhino_undo, rhino_redo

Batch

0

1

rhino_batch_modify

Deformation

0

4

rhino_bend, rhino_twist, rhino_taper, rhino_flow_along_curve

NURBS

0

5

rhino_rebuild_surface, rhino_unroll, rhino_surface_from_points

SubD

0

2

rhino_create_subd, rhino_subd_to_nurbs

Srf Match

0

3

rhino_match_surface, rhino_blend_surface_edges, rhino_merge_surfaces

Extraction

0

4

rhino_dup_edge, rhino_dup_border, rhino_isocurve, rhino_make2d

Ctrl Points

0

2

rhino_get_control_points, rhino_set_control_points

Paneling

0

3

rhino_panelize_surface, rhino_create_uv_grid, rhino_panel_frames

Grasshopper

0

22

gh_set_slider, gh_bake_to_rhino, gh_data_tree_get

Drawing

2

5

rhino_drawing_sheet_create, rhino_drawing_title_block_add, rhino_drawing_view_place (bridge)

Schedule

5

5

rhino_schedule_by_layer, rhino_schedule_by_user_text, rhino_object_quantity

Blocks

3

5

rhino_block_define, rhino_block_insert, rhino_block_explode (bridge)

Environment

3

4

rhino_sun_position, rhino_sun_path, rhino_shadow_project

Freeform

8

11

rhino_skin_from_sections, rhino_panel_curvature_classify, rhino_attractor_displace_points

BIM I/O

1

4

rhino_bim_metadata_set, rhino_export_ifc (bridge), rhino_import_ifc (bridge), rhino_export_gbxml (bridge)

Materials+

2

3

rhino_material_preset_list, rhino_material_preset_create, rhino_environment_set (bridge)

Render

0

5

rhino_camera_set, rhino_light_add, rhino_render_setup, rhino_render_to_file, rhino_turntable_render

Daylight

2

2

rhino_direct_irradiance, rhino_daylight_factor

Detailed signatures live in docs/en/tools-reference.md.

Grasshopper integration

1. Start Rhino 8 or 9 → open Grasshopper → load your `.gh` definition.
2. Ensure the C# bridge plugin (`rhino-mcp.rhp`) is loaded in Rhino.
3. Set `RHINO_MCP_FORCE_MODE=bridge` and restart rhino-mcp.
4. From Claude:
   - "Open /work/wing.gh, set the 'span' slider to 12.5, run, bake to layer 'Wing'."
   - "Read the output of the 'Voronoi' component as a DataTree."

See docs/en/grasshopper-guide.md for canvas/component/cluster recipes.

Configuration

Every knob is controlled by an environment variable. CLI flags override env where applicable.

Variable

Default

Purpose

RHINO_MCP_TRANSPORT

stdio

stdio or http (Streamable HTTP)

RHINO_MCP_FORCE_MODE

(auto)

Force standalone or bridge

RHINO_MCP_BRIDGE_OPTIONAL

0

When 1 and RHINO_MCP_FORCE_MODE=bridge, fall back to standalone if the bridge is unreachable (recommended for HTTP connectors).

RHINO_MCP_TRANSPORT_KIND

(auto)

Bridge transport selector: pipe / unix / tcp

RHINO_HOST, RHINO_PORT

localhost:4242

TCP transport endpoint

RHINO_MCP_PIPE

rhino_mcp

Windows named-pipe name

RHINO_MCP_SOCKET

(XDG runtime)

Unix socket path override

RHINO_MCP_BRIDGE_TIMEOUT

1 (auto), 5 (forced)

Seconds to wait for a bridge ping

RHINO_MCP_RECONNECT_RETRIES

1

Max reconnect attempts after a transient transport failure

RHINO_MCP_RECONNECT_BASE_DELAY

0.5

Base delay (seconds) for exponential backoff

RHINO_MCP_RECONNECT_JITTER

0.25

Symmetric jitter ratio (0 disables, useful for tests)

RHINO_MCP_TOOLSETS

(all)

Comma-separated tool groups to register: core, bim, freeform, gh, render, scripting, docs (admin is always on; unknown names log a warning).

RHINO_MCP_LOG_LEVEL

INFO

Stderr log level. Set DEBUG to see every bridge JSON-RPC call.

Development

git clone https://github.com/EaseHee/rhino-mcp.git
cd rhino-mcp
uv venv && source .venv/bin/activate
uv pip install -e '.[dev]'

# Tests + coverage
uv run pytest --cov=src/rhino_mcp

# Lint + type check
uv run ruff check src/ tests/
uv run mypy src/rhino_mcp

# Build the C# bridge plugin (auto-installs into Rhino on macOS/Windows;
# uninstall a Package Manager copy first — same plug-in GUID — or add --no-install)
./scripts/build-plugin.sh --release

# Wheel + sdist (into dist/)
uv build

Manual smoke test against a running server

# Terminal A — start the server with verbose logging
RHINO_MCP_LOG_LEVEL=DEBUG rhino-mcp --transport http --port 8765

# Terminal B — list tools via the MCP inspector or a curl probe
npx @modelcontextprotocol/inspector http://127.0.0.1:8765/mcp

Troubleshooting

Symptom

Likely cause / remediation

Cannot reach Rhino bridge.

Start Rhino 8 or 9 with the C# bridge plugin loaded; verify RHINO_HOST/RHINO_PORT; run ./scripts/check-bridge.sh.

Tool 'X' requires Rhino bridge mode.

The operation needs Rhino and no bridge answered the re-detection. Load the plug-in and call the tool again (re-detection runs at most every RHINO_MCP_REDETECT_COOLDOWN seconds; never under RHINO_MCP_FORCE_MODE=standalone).

Tools missing in the client

Check rhino-mcp install --list-clients and RHINO_MCP_TOOLSETS in the entry's env; restart the client after installing.

Invalid parameter: axis (cylinder)

Standalone supports only {x:0,y:0,z:1}; switch to bridge for arbitrary axes.

non-3DM import error

Standalone import is .3dm-only; use bridge mode for STEP/IGES/DXF.

transport failure on tcp://...

The bridge crashed or Rhino was closed — rhino-mcp will reconnect with exponential backoff (RHINO_MCP_RECONNECT_RETRIES).

Stdout corrupted under stdio transport

Always log to stderr; rhino-mcp does this — verify no third-party libraries print to stdout.

No image in screenshot response

include_image=false returns only the summary. Viewport capture returned no image means the plug-in is older than the server (update it) or no viewport was visible; details.base64_error carries the encoder error.

Pagination loops forever

Always advance offset by pagination.returned, not by limit; the last page may be partial.

rhino_object_select returns 0 matches

Filters AND together — try removing one filter at a time; the color filter only works on objects with ColorSource=ColorFromObject.

More in docs/en/troubleshooting.md.

License

MIT — see LICENSE.

Available Tools

246 tools
gh_add_componentB

Drop a Grasshopper component onto the active canvas.

Inputs: args (required). Returns: object

gh_bake_to_rhinoB

Bake the output of one or more components into the active Rhino document.

Inputs: args (required). Returns: object

gh_bind_template_parameterA

Set a single named parameter on a loaded template (slider / panel / toggle).

Inputs: args (required). Returns: object

gh_cluster_createB

Group components into a named cluster.

Inputs: args (required). Returns: object

gh_cluster_expandC

Expand a cluster back into its constituent components.

Inputs: args (required). Returns: object

gh_component_listA
Read-onlyIdempotent

List components currently on the active canvas (optionally filtered).

Inputs: args (required). Returns: object

gh_connect_componentsB

Create a wire from one component output to another component input.

Inputs: args (required). Returns: object

gh_connect_manyA

Add multiple wires in a single round-trip.

    Returns a per-row ``results`` array so partial failures are visible
    (each row carries ``status`` and, on error, ``error``).
    

Inputs: args (required). Returns: object

gh_data_tree_getB
Read-only

Read a component output as a DataTree (list of branches).

Inputs: args (required). Returns: object

gh_data_tree_get_batchA
Read-only

Read multiple component outputs in a single bridge round-trip.

Inputs: args (required). Returns: object

gh_data_tree_setC

Push a DataTree into a component input.

Inputs: args (required). Returns: object

gh_data_tree_set_batchA

Apply many DataTree assignments at once with a single GH solve.

    With ``defer_solve=True`` (default) the GH document is paused while
    the assignments are applied and recomputed exactly once at the end —
    critical for parameter sweeps where N independent ``set`` calls
    would otherwise trigger N solver runs.
    

Inputs: args (required). Returns: object

gh_delete_componentB
Destructive

Remove a component from the canvas.

Inputs: args (required). Returns: object

gh_get_parameterB
Read-only

Read the current value of a component parameter.

Inputs: args (required). Returns: object

gh_load_templateC

Open a bundled template on the canvas and return its template_id + parameter map.

Inputs: args (required). Returns: object

gh_new_canvasB

Create a fresh empty Grasshopper canvas.

Inputs: args (required). Returns: object

gh_open_fileC

Open a Grasshopper definition.

Inputs: args (required). Returns: object

gh_place_sliderA

Create a Number Slider on the canvas with bounds and initial value.

    Returns the new ``component_id`` so subsequent ``gh_connect_components``
    or ``gh_set_slider`` calls can target it.
    

Inputs: args (required). Returns: object

gh_plugin_listA
Read-onlyIdempotent

Enumerate Grasshopper plugin libraries currently loaded.

    Returns one entry per ``GH_AssemblyInfo`` library: id, name, author,
    version, description, and the on-disk path. Useful for the LLM to
    discover whether the user has LunchBox / Ladybug / Kangaroo etc.
    installed before attempting to drop in a custom component.
    

Inputs: args (required). Returns: object

gh_preview_toggleA

Toggle preview on/off for a list of components (or all).

Inputs: args (required). Returns: object

gh_resetA
Destructive

Reset the canvas (clear cached solution).

Inputs: no named parameters. Returns: object

gh_runC

Run the current solution.

Inputs: args (required). Returns: object

gh_run_templateC

Force a fresh solution and (optionally) bake the declared outputs.

Inputs: args (required). Returns: object

gh_save_fileA

Save the active Grasshopper definition.

Inputs: args (required). Returns: object

gh_set_panelB

Set the text contents of a Panel component.

Inputs: args (required). Returns: object

gh_set_parameterC

Push a value into a component parameter.

Inputs: args (required). Returns: object

gh_set_sliderC

Set a Number Slider component to a numeric value.

Inputs: args (required). Returns: object

gh_set_toggleB

Set a Boolean Toggle component to true or false.

Inputs: args (required). Returns: object

gh_template_listA
Read-only

List bundled Grasshopper templates with their parameter contracts.

    ``available=False`` means the .gh binary has not been shipped yet —
    the contract is described in the manifest but loading it will fail
    until the binary is placed alongside the manifest.
    

Inputs: args (required). Returns: object

rhino_annotation_calloutC

Add a callout (leader + balloon or boxed label).

Inputs: args (required). Returns: object

rhino_annotation_dimension_styleA

Register a reusable dimension style in the document's DimStyle table.

    Standalone writes a ``rhino3dm.DimensionStyle`` (name, font, text
    height, arrow length) into the 3dm DimStyle table. ``color`` is only
    honoured by bridge mode; rhino3dm's DimensionStyle has no text colour.
    

Inputs: args (required). Returns: object

rhino_annotation_north_arrowA

Draw a north arrow centred on location.

    ``angle_deg`` rotates the arrow clockwise from world +Y so callers can
    adapt to a site whose true north differs from grid north.
    

Inputs: args (required). Returns: object

rhino_annotation_revision_cloudA

Draw a revision cloud (bumpy polyline) around a region of interest with a revision label.

Inputs: args (required). Returns: object

rhino_annotation_scale_barA

Draw a divided scale bar with a label.

    Bar is drawn in document units; the label reports the represented
    real-world distance based on ``scale_denominator``.
    

Inputs: args (required). Returns: object

rhino_arcB

Add an arc by centre, radius, and sweep angle (in degrees).

Inputs: args (required). Returns: object

rhino_areaA
Read-onlyIdempotent

Compute the surface area of a mesh (Brep area requires bridge).

Inputs: args (required). Returns: object

rhino_array_linearC

Array objects along a vector with constant spacing.

Inputs: args (required). Returns: object

rhino_array_polarC

Array objects in a polar pattern.

Inputs: args (required). Returns: object

rhino_array_rectangularC

Array objects in a 3D rectangular grid.

Inputs: args (required). Returns: object

rhino_attractor_displace_pointsA

Displace each input point along the vector to an attractor with a falloff.

    Positive ``strength`` pulls toward the attractor; negative pushes
    away. The attractor is either a fixed point (``attractor_point``)
    or a curve (``attractor_curve_id``); for curves each point's
    attractor is the closest sample on the curve.

    Returns the *new* point IDs (the originals are deleted; this is a
    form-finding move, not a duplicating one).
    

Inputs: args (required). Returns: object

rhino_axis_ribsA

Generate two orthogonal sets of section ribs (waffle-style fabrication, bridge only).

Inputs: args (required). Returns: object

rhino_batch_callA

Dispatch multiple bridge methods in a single round-trip.

    IMPORTANT: ``steps[].method`` is a **bridge dispatcher route**, not
    an MCP tool name. The MCP tool ``rhino_layer_create`` maps to the
    dispatcher route ``rhino.layer.create``; ``rhino_document_summary``
    maps to ``rhino.query.document_summary`` (NOT ``rhino.document.summary``).
    Standalone-only tools (``rhino_set_user_text`` etc. that have no
    ``bridge_call`` path) cannot be batched. A wrong route name returns
    an ``error`` row with ``HandlerError``; the batch aborts when
    ``on_error='stop'``.

    Measured impact (v0.6.x, localhost): direct sequential layer.create
    ~580ms/op vs batched ~340ms/op — N x ~240ms saved per batch (the
    MCP↔bridge round-trip cost paid once instead of N times). Effective
    for any workflow that issues >5 bridge calls back-to-back.

    Returns ``{summary: {total, ok, failed, on_error}, results: [...]}``
    where each ``results`` entry has ``index``, ``method``, ``status``
    (``"ok"`` | ``"error"``), and either ``result`` or ``error``.
    

Inputs: args (required). Returns: object

rhino_batch_modifyA

Modify many objects in a single call.

    Each spec can include any combination of: translation, rotation,
    scale, colour, layer, visibility, and name.  All changes are wrapped
    in one undo record — ``rhino_undo(steps=1)`` reverts the entire batch.

    When ``apply_to_all`` is ``True``, the modifications from the first
    spec are applied to every object in the document.
    

Inputs: args (required). Returns: object

rhino_bendC

Bend objects along an axis through a specified point.

Inputs: args (required). Returns: object

rhino_bim_metadata_setA

Tag objects with IFC entity + property-set metadata.

    Standalone writes ``Pset_RhinoMcp::<key>`` user_text on each object;
    bridge mode does the same and additionally pushes into Rhino's IFC
    property-set table so a subsequent IFC export carries them across.
    

Inputs: args (required). Returns: object

rhino_bim_pset_deleteB
Destructive

Remove every property under a named PropertySet from an object.

Inputs: args (required). Returns: object

rhino_bim_pset_getA
Read-onlyIdempotent

Read PropertySet entries off an object.

    Bridge mode reads from the live RhinoCommon UserString table; standalone
    mode reads from rhino3dm UserStrings on the saved 3dm document. The
    result groups properties by PropertySet name (``psets`` field).
    

Inputs: args (required). Returns: object

rhino_bim_pset_setC

Persist a PropertySet block on an object.

Inputs: args (required). Returns: object

rhino_blend_surfaceB

Create a blend surface between two edges.

Inputs: args (required). Returns: object

rhino_blend_surface_edgesB

Create a blend surface connecting two surface edges with continuity control.

Inputs: args (required). Returns: object

rhino_block_defineA

Create a block definition from a list of objects.

    Standalone uses ``rhino3dm.InstanceDefinitionGeometry`` to register
    the geometry under ``name``. Bridge mode mirrors that and additionally
    replaces the source objects with a single instance at the base point
    when ``replace_objects=True``.
    

Inputs: args (required). Returns: object

rhino_block_explodeC

Explode a block instance into individual objects (bridge only).

Inputs: args (required). Returns: object

rhino_block_insertB

Insert a block instance at insertion_point with optional scale + rotation.

    Standalone constructs a ``rhino3dm.InstanceReferenceGeometry`` and
    applies the transform to it. Bridge mode forwards to RhinoCommon's
    ``Doc.Objects.AddInstanceObject`` which honours the active layer
    and links the instance to the definition.
    

Inputs: args (required). Returns: object

rhino_block_listB
Read-only

List every block definition with a per-definition object + instance count.

Inputs: args (required). Returns: object

rhino_block_redefineA

Replace a block definition's geometry, propagating to every instance (bridge only).

Inputs: args (required). Returns: object

rhino_boolean_differenceA
Destructive

Subtract b_ids from a_ids. Bridge required.

Inputs: args (required). Returns: object

rhino_boolean_intersectionB
Destructive

Intersect a_ids with b_ids. Bridge required.

Inputs: args (required). Returns: object

rhino_boolean_unionB
Destructive

Boolean-union the given Brep groups. Bridge required.

Inputs: args (required). Returns: object

rhino_bounding_boxB
Read-onlyIdempotent

Return the union bounding box of one or more objects.

Inputs: args (required). Returns: object

rhino_boxC

Add a rectangular box (axis-aligned in standalone mode).

Inputs: args (required). Returns: object

rhino_bridge_list_instancesA
Read-onlyIdempotent

Enumerate live Rhino bridge endpoints discovered via announcement files.

    Returns one row per running Rhino on this host. Each row carries
    ``pid``, ``host``, ``port``, ``doc_path``, ``doc_title``, version, and
    an ``alive`` flag derived from a cheap TCP probe.
    

Inputs: args (required). Returns: object

rhino_bridge_select_instanceA

Switch the next bridge call to target a specific Rhino session.

    Exactly one selector among ``pid``, ``port``, ``doc_path_contains``,
    and ``index`` should be set. The active bridge client is closed; the
    next tool call goes through lazy promotion against the new endpoint.
    

Inputs: args (required). Returns: object

rhino_cage_editC

Deform objects with a control cage (bridge only).

Inputs: args (required). Returns: object

rhino_camera_setB

Position the active viewport's camera (location + target + lens length).

Inputs: args (required). Returns: object

rhino_cap_holesB

Cap all open holes of a Brep.

Inputs: args (required). Returns: object

rhino_check_naked_edgesA
Read-only

Enumerate naked (boundary) edges of a Brep with their lengths.

    Returns ``[{edge_index, length}, ...]`` plus the gap count. Standalone
    derives edge valence from Brep trims (an edge referenced by exactly
    one trim is naked) and also reports non-manifold edges (3+ trims).
    Bridge mode forwards to RhinoCommon ``BrepEdge.Valence``.
    

Inputs: args (required). Returns: object

rhino_circleA

Add a circle by centre and radius (optionally on a custom plane).

Inputs: args (required). Returns: object

rhino_clipping_planeB

Add a clipping plane to all viewports.

Inputs: args (required). Returns: object

rhino_coneB

Add a cone primitive with its apex above base_center (world Z axis).

    Standalone builds an exact revolved Brep (``RevSurface`` + base cap).
    

Inputs: args (required). Returns: object

rhino_contourC

Generate equally spaced section curves (bridge required).

Inputs: args (required). Returns: object

rhino_create_subdB

Create a SubD object from an existing mesh.

Inputs: args (required). Returns: object

rhino_create_uv_gridB

Create a point grid on a surface at even UV intervals.

Inputs: args (required). Returns: object

rhino_curvature_analysisA
Read-only

Sample Gaussian/mean curvature of a surface (bridge required).

Inputs: args (required). Returns: object

rhino_curve_continuityB
Read-only

Curve sanity — span count, closed flag, planarity, periodic, validity log.

Inputs: args (required). Returns: object

rhino_curve_lengthA
Read-onlyIdempotent

Return the curve's parametric domain and approximate length.

Inputs: args (required). Returns: object

rhino_curve_point_atA
Read-onlyIdempotent

Evaluate position and tangent at a parameter on the curve.

Inputs: args (required). Returns: object

rhino_curve_splitA

Split a curve at the given parameters; original is preserved.

Inputs: args (required). Returns: object

rhino_cylinderC

Add a cylinder; in standalone mode the axis must be world Z.

Inputs: args (required). Returns: object

rhino_daylight_factorA
Read-onlyIdempotent

BRE simplified daylight factor for a side-lit room.

    DF = (W * theta * tau * M) / (A_total * (1 - R^2)) (% as decimal).
    For early-stage architectural studies; for radiance-grade accuracy
    use ladybug-tools or DAYSIM.
    

Inputs: args (required). Returns: object

rhino_dimension_alignedB

Add an aligned dimension between two points.

Inputs: args (required). Returns: object

rhino_dimension_angularC

Add an angular dimension at a vertex.

Inputs: args (required). Returns: object

rhino_dimension_linearC

Add a linear dimension between two points.

Inputs: args (required). Returns: object

rhino_direct_irradianceA
Read-onlyIdempotent

Direct Normal Irradiance (W/m^2) clear-sky estimate via Bird + Kasten-Young air mass.

Includes Linke turbidity (1 = very clear, 7 = industrial haze) and site altitude. Pure calculation — no doc edits.

Inputs: args (required). Returns: object

rhino_display_mode_setA

Switch the active viewport's display mode.

Inputs: args (required). Returns: object

rhino_distanceB
Read-onlyIdempotent

Euclidean distance between two points.

Inputs: args (required). Returns: object

rhino_document_settingsA
Read-only

Bundled units / tolerances / base point in one call.

Inputs: args (required). Returns: object

rhino_document_summaryB
Read-only

Get a high-level summary of the document (object counts, layers, etc.).

Inputs: args (required). Returns: object

rhino_document_units_getB
Read-only

Read the current document unit system.

Inputs: args (required). Returns: object

rhino_document_units_setB

Set the document unit system, optionally scaling existing geometry.

Inputs: args (required). Returns: object

rhino_draft_angleC
Read-only

Compute draft angles relative to the world Z axis (bridge required).

Inputs: args (required). Returns: object

rhino_drawing_export_pdfC

Export a sheet to PDF (bridge only).

Inputs: args (required). Returns: object

rhino_drawing_section_cutC

Cut a section through objects with a plane and place the trace on a sheet (bridge only).

Inputs: args (required). Returns: object

rhino_drawing_sheet_createA

Create a sheet container — a rectangle on layer Sheets::<name> carrying user_text metadata.

    The rectangle's corners define the sheet bounds; user_text holds the
    sheet name, paper size (mm), and scale denominator so subsequent
    view-placement / title-block / export tools can re-derive it.
    

Inputs: args (required). Returns: object

rhino_drawing_title_block_addB

Add the bottom-right title block, north arrow, and scale bar to a sheet.

Inputs: args (required). Returns: object

rhino_drawing_view_placeA

Project objects to a 2-D view (Make2D) and place the result on a sheet (bridge only).

Inputs: args (required). Returns: object

rhino_dup_borderC

Extract border curves from a surface or mesh.

Inputs: args (required). Returns: object

rhino_dup_edgeC

Extract edge curves from a Brep (all or specific indices).

Inputs: args (required). Returns: object

rhino_ellipseB

Add an ellipse on the world XY plane (rhino3dm builds it as a NURBS approximation).

Inputs: args (required). Returns: object

rhino_environment_setA

Attach an HDRI/EXR environment used for lighting + background (bridge only).

Inputs: args (required). Returns: object

rhino_evaluate_surfaceA
Read-only

Evaluate a surface at UV parameters to get 3D point, normal, and tangents.

Inputs: args (required). Returns: object

rhino_execute_csharpA
Destructive

Execute RhinoCommon C# code in a live Rhino session using Roslyn.

    SAFETY: This tool runs arbitrary code with full RhinoCommon access.
    It is gated behind ``RHINO_MCP_ALLOW_CSHARP=1`` so it cannot fire
    accidentally. Set the env var only in trusted sessions.

    Globals available to the script:
    - ``doc``: the active ``RhinoDoc``
    - ``output``: a ``StringBuilder`` — call ``output.AppendLine("...")``
      to return text to the caller.

    Pre-imported namespaces: System, System.Collections.Generic,
    System.Linq, System.Text, Rhino, Rhino.Geometry, Rhino.DocObjects,
    Rhino.Commands. Pass ``references`` to load extra assemblies (e.g.
    ``Grasshopper``).

    Example — create a sphere::

        var sphere = new Sphere(Point3d.Origin, 5.0);
        doc.Objects.AddBrep(sphere.ToBrep());
        doc.Views.Redraw();
        output.AppendLine("Created sphere");

    Changes are wrapped in an undo record. ``timeout_s`` caps total
    execution time (default 30s); on timeout the call returns
    ``success: false`` and the script is best-effort cancelled.
    

Inputs: args (required). Returns: object

rhino_execute_pythonA

Execute RhinoScript Python code in a live Rhino session.

    CRITICAL — BEFORE USING THIS TOOL:
    1. Call rhino_get_rhinoscript_docs(topic) to find correct signatures.
    2. Read the documentation carefully — note exact parameter types.
    3. Write code using ONLY the documented signatures.
    4. Call this tool with the code.

    Code requirements:
    - Import rhinoscriptsyntax: ``import rhinoscriptsyntax as rs``
    - Use ``print()`` to return output/results to the caller.
    - Handle ``None`` returns from functions that might fail.

    Changes are wrapped in an undo record and will be reverted on failure.

    Returns ``success``, ``output`` (print capture), and ``message``
    (error details on failure).
    

Inputs: args (required). Returns: object

rhino_export_dracoB

Compress mesh objects to a Google Draco .drc file (standalone, rhino3dm).

    Exports one mesh by id, a list of meshes, or every mesh in the
    document; several meshes are merged into one Draco mesh. Non-mesh
    objects are skipped (rhino3dm cannot tessellate Breps).
    

Inputs: args (required). Returns: object

rhino_export_dxfB

Export to DXF (bridge required).

Inputs: args (required). Returns: object

rhino_export_gbxmlB

Export thermal / structural BIM payload to gbXML (bridge only).

Inputs: args (required). Returns: object

rhino_export_ifcA

Export the active document (or a subset) to IFC2x3 / IFC4 / IFC4x3 (bridge only).

Inputs: args (required). Returns: object

rhino_export_igesC

Export to IGES (bridge required).

Inputs: args (required). Returns: object

rhino_export_objA

Export selected (or all) objects to a Wavefront OBJ file (mesh-only).

Inputs: args (required). Returns: object

rhino_export_stepA

Export to STEP (bridge required).

Inputs: args (required). Returns: object

rhino_export_stlB

Export meshes to an ASCII STL file.

Inputs: args (required). Returns: object

rhino_extrudeB

Linearly extrude a profile curve by distance along direction.

Inputs: args (required). Returns: object

rhino_fillet_surfaceB

Create a constant-radius fillet between two surfaces.

Inputs: args (required). Returns: object

rhino_flowC

Flow objects from one curve onto another (bridge only).

Inputs: args (required). Returns: object

rhino_flow_along_curveC

Reposition objects from a base curve onto a target curve.

Inputs: args (required). Returns: object

rhino_get_control_pointsA
Read-only

Get all control points (and weights) of a NURBS curve or surface.

Inputs: args (required). Returns: object

rhino_get_module_functionsA
Read-only

Get all functions in a specific RhinoScript module with signatures.

    Use rhino_list_rhinoscript_modules() first to see available modules,
    then call this to browse a module's full API.
    

Inputs: args (required). Returns: object

rhino_get_rhinoscript_docsA
Read-only

Get comprehensive RhinoScript documentation for a topic.

    CRITICAL: You MUST call this tool before using rhino_execute_python.
    Returns full signatures, parameter descriptions, return values, and
    optional code examples for the most relevant functions.
    

Inputs: args (required). Returns: object

rhino_get_user_textA
Read-only

Read user text (key-value metadata) attached to an object.

Inputs: args (required). Returns: object

rhino_groupC

Group objects together under a (named) group.

Inputs: args (required). Returns: object

rhino_hatchC

Add a hatch over the given closed curves.

Inputs: args (required). Returns: object

rhino_helixB

Add a helix sampled into a NURBS curve.

Inputs: args (required). Returns: object

rhino_importC

Import an external file into the active document (bridge required for non-3DM).

Inputs: args (required). Returns: object

rhino_import_ifcA

Import an IFC file, mapping each entity to a layer under target_layer_root (bridge only).

Inputs: args (required). Returns: object

rhino_interpolate_curveB

Add an interpolated NURBS curve passing through the given points.

Inputs: args (required). Returns: object

rhino_isocurveB

Extract an isocurve from a surface at a specific U or V parameter.

Inputs: args (required). Returns: object

rhino_layer_createB

Create a layer with optional colour and visibility.

Inputs: args (required). Returns: object

rhino_layer_deleteA
Destructive

Delete a layer by name (in standalone mode the layer is hidden + name-prefixed).

Inputs: args (required). Returns: object

rhino_layer_listB
Read-only

List all layers with their properties (color, visibility, object count).

Inputs: args (required). Returns: object

rhino_layer_set_colorB

Change a layer's display colour.

Inputs: args (required). Returns: object

rhino_layer_set_materialA

Bind a render material to a layer so layer-source objects inherit it.

    Bridge-only: rhino3dm exposes ``material_index`` on the layer but the
    in-document material table is read-only. Use ``rhino_material_create``
    first to define the material.
    

Inputs: args (required). Returns: object

rhino_leaderB

Add a multi-point leader (with optional text).

Inputs: args (required). Returns: object

rhino_light_addB

Add a point / spot / directional / rectangular / linear light to the document.

Inputs: args (required). Returns: object

rhino_lineB

Add a line between two points.

Inputs: args (required). Returns: object

rhino_list_objectsA
Read-only

List objects in the document with optional layer/type filter.

    Returns up to ``limit`` objects starting at ``offset`` (after filters).
    The response carries a ``pagination`` block — ``{total, offset, limit,
    returned, has_more}`` — so the caller can iterate without guessing.

    Async so concurrent ``rhino_*`` queries don't block FastMCP's event
    loop while the bridge round-trip is in flight.
    

Inputs: args (required). Returns: object

rhino_list_rhinoscript_modulesA
Read-only

List all available RhinoScript modules with function counts.

Use this to discover what areas of the API are available when you are not sure which module contains the functions you need.

Inputs: no named parameters. Returns: object

rhino_loftB

Loft a sequence of profile curves into a surface.

Inputs: args (required). Returns: object

rhino_make2dC

Generate a 2D drawing projection of 3D objects.

Inputs: args (required). Returns: object

rhino_match_surfaceC

Adjust a surface edge to match the continuity of a target surface.

Inputs: args (required). Returns: object

rhino_material_assignB

Assign an existing material to one or more objects.

Inputs: args (required). Returns: object

rhino_material_createB

Create a material with diffuse colour, transparency, and glossiness.

Inputs: args (required). Returns: object

rhino_material_preset_createA

Create a document material from a bundled physical preset.

Standalone uses rhino3dm's basic Material (diffuse / transparency / shine). Bridge mode also pushes the matching Rhino PBR render content + IOR for photoreal output.

Inputs: args (required). Returns: object

rhino_material_preset_listA
Read-onlyIdempotent

List physical-material presets bundled with rhino-mcp.

    Returns the full catalogue (or a single category subset) so the LLM
    can pick a known-good name before calling ``rhino_material_preset_create``.
    

Inputs: args (required). Returns: object

rhino_merge_surfacesC

Merge multiple surfaces into a single surface.

Inputs: args (required). Returns: object

rhino_mesh_boolean_differenceB
Destructive

Boolean-difference meshes (a - b).

Inputs: args (required). Returns: object

rhino_mesh_boolean_unionC
Destructive

Boolean-union meshes.

Inputs: args (required). Returns: object

rhino_mesh_boxC

Add a quad mesh box with the given subdivisions.

Inputs: args (required). Returns: object

rhino_mesh_from_brepC

Mesh a Brep (bridge only).

Inputs: args (required). Returns: object

rhino_mesh_from_surfaceC

Mesh a surface (bridge only).

Inputs: args (required). Returns: object

rhino_mirrorB

Mirror objects across a plane (copies by default).

Inputs: args (required). Returns: object

rhino_moveC

Translate (or copy) the given objects by a vector.

Inputs: args (required). Returns: object

rhino_named_view_saveB

Save the current camera as a named view.

Inputs: args (required). Returns: object

rhino_network_surfaceB

Build a surface from a network of crossing curves.

Inputs: args (required). Returns: object

rhino_nurbs_curveB

Add a NURBS curve from a control polygon.

Inputs: args (required). Returns: object

rhino_object_deleteC
Destructive

Delete the given objects from the document.

Inputs: args (required). Returns: object

rhino_object_infoB
Read-only

Get detailed info about a single object (geometry type, layer, bbox, etc.).

Inputs: args (required). Returns: object

rhino_object_move_to_layerB

Reassign one or more objects to a different layer (creating it if absent).

Inputs: args (required). Returns: object

rhino_object_quantityC
Read-only

Per-object measurement table — one row per object_id with the requested fields.

Inputs: args (required). Returns: object

rhino_object_selectB

Select objects by ID and/or attribute filters.

    Filter fields combine with AND semantics. ``object_ids`` short-circuits
    the other filters when provided. Standalone mode marks matches with the
    ``rhino_mcp_selected`` user-string (since rhino3dm has no selection
    state); bridge mode delegates to Rhino's native selection.
    

Inputs: args (required). Returns: object

rhino_offset_surfaceB

Offset a surface by distance along its normal.

Inputs: args (required). Returns: object

rhino_openC

Open a .3dm file and bind it to a doc_id.

Inputs: args (required). Returns: object

rhino_orientA

Orient objects from one plane to another (PlaneToPlane transform).

Inputs: args (required). Returns: object

rhino_origin_setA

Set the model base point.

    ``mode='reference'`` stores the point as metadata only — useful for
    geo-referencing without disturbing existing geometry. ``mode='translate'``
    shifts every object so the supplied point becomes the new (0,0,0).
    

Inputs: args (required). Returns: object

rhino_panel_curvature_classifyB
Read-only

Classify each UxV panel by curvature class (planar / single_* / synclastic / anticlastic).

    Standalone uses a 4-corner normal heuristic (no full Gaussian K).
    Bridge mode reports true Gaussian + mean curvature per cell.
    

Inputs: args (required). Returns: object

rhino_panel_framesC
Read-only

Generate oriented frames (planes) at panel centres for construction.

Inputs: args (required). Returns: object

rhino_panelize_surfaceC

Subdivide a surface into panels (quad, triangle, or diamond).

Inputs: args (required). Returns: object

rhino_panel_planarityA
Read-only

Per-panel planarity report on a UxV grid sampled from a surface.

    Each cell's planarity error = distance of the 4th corner from the
    plane fitted through the first three. Cells whose error > tolerance
    are flagged. The returned ``stats`` block summarises max / mean /
    non-planar count for high-level reporting.
    

Inputs: args (required). Returns: object

rhino_patchC

Patch a region defined by boundary curves.

Inputs: args (required). Returns: object

rhino_place_gridA

Replicate a source object on a count_x x count_y grid with given spacing.

    Returns the new object IDs in row-major (x outer, y inner) order. The
    source is preserved; when ``skip_origin`` is True the (0,0) cell is
    left untouched and the source itself fills it.
    

Inputs: args (required). Returns: object

rhino_plane_surfaceB

Add a finite plane (rectangular trim) on the given plane.

Inputs: args (required). Returns: object

rhino_pointC

Add a single point to the document.

Inputs: args (required). Returns: object

rhino_polygonC

Add a regular polygon (inscribed or circumscribed) on the XY plane.

Inputs: args (required). Returns: object

rhino_polylineB

Add a polyline through the given points; optionally closed.

Inputs: args (required). Returns: object

rhino_probe_intersectionB
Read-onlyIdempotent

Cast a ray and report intersection points against Breps/Extrusions.

    Returns ``hits`` sorted by distance from the ray origin. Bridge-only —
    rhino3dm has no ray-shoot primitive.
    

Inputs: args (required). Returns: object

rhino_rebuild_curveB

Rebuild an existing curve with a new point count and degree.

Inputs: args (required). Returns: object

rhino_rebuild_surfaceC

Rebuild a surface with new point counts and degrees in U/V.

Inputs: args (required). Returns: object

rhino_rectangleB

Add a rectangle as a closed polyline on the XY plane.

Inputs: args (required). Returns: object

rhino_redoC

Redo the last undone operation(s) in the Rhino document.

Inputs: args (required). Returns: object

rhino_reduce_meshB
Destructive

Reduce a mesh to a target face count.

Inputs: args (required). Returns: object

rhino_render_queue_cancelA

Cancel a running or queued render job.

Inputs: args (required). Returns: object

rhino_render_queue_listA
Read-onlyIdempotent

List recent render jobs and their progress.

Inputs: args (required). Returns: object

rhino_render_queue_statusA
Read-onlyIdempotent

Inspect a queued render job's status, progress, and completed frames.

Inputs: args (required). Returns: object

rhino_render_queue_submitA

Submit a frame sequence to the bridge render queue (bridge only).

    Returns a ``job_id`` immediately while frames are captured on a
    background worker. Use ``rhino_render_queue_status`` to poll
    progress and ``rhino_render_queue_cancel`` to interrupt. The v0.5
    backend captures viewport frames (``_-ViewCaptureToFile``); true
    photo-realistic engine integration is on the roadmap.
    

Inputs: args (required). Returns: object

rhino_render_setupB

Set render resolution / samples / engine / transparency on the active render context.

Inputs: args (required). Returns: object

rhino_render_to_fileC

Execute the configured render and write the result to output_path.

Inputs: args (required). Returns: object

rhino_render_viewportB

Render the active viewport to an image file (bridge required).

Inputs: args (required). Returns: object

rhino_replicate_along_curveB

Distribute copies of a source object along a curve at evenly-spaced parameters.

    With ``align_to_tangent`` (default), each copy is reoriented so that
    the world-X direction maps to the curve tangent at its sample point.
    ``include_endpoints`` controls whether the first/last samples land on
    the curve's start/end points.
    

Inputs: args (required). Returns: object

rhino_report_mesh_healthB
Read-only

Mesh health — closed, manifold, vertex/face counts, validity log.

Inputs: args (required). Returns: object

rhino_revolveC

Revolve a profile curve about an axis.

Inputs: args (required). Returns: object

rhino_rotateC

Rotate objects about an axis through a centre point.

Inputs: args (required). Returns: object

rhino_saveC

Write the document to disk.

Inputs: args (required). Returns: object

rhino_scaleB

Scale objects non-uniformly about a centre.

Inputs: args (required). Returns: object

rhino_scatterA

Scatter count copies of a source inside a 2-D AABB with optional Z-rotation jitter.

    The boundary is interpreted in world XY; Z is taken from
    ``boundary_min.z``. Use ``seed`` for deterministic output.
    

Inputs: args (required). Returns: object

rhino_schedule_by_layerB
Read-only

Aggregate objects per layer with optional filter and sublayer merging.

    Returns ``rows`` (one entry per layer) plus a ``totals`` block.
    

Inputs: args (required). Returns: object

rhino_schedule_by_materialA
Read-only

Aggregate objects grouped by assigned material name.

    Standalone treats ``MaterialIndex == -1`` (default material) as
    'Default'. Bridge mode resolves each object's effective material via
    Rhino's render content lookup.
    

Inputs: args (required). Returns: object

rhino_schedule_by_user_textA
Read-only

Aggregate objects grouping by user_text[group_key] value.

    Useful for BIM-style schedules: ``group_key='assembly_type'`` produces a
    wall/window schedule, ``group_key='material'`` produces a material BOM.
    

Inputs: args (required). Returns: object

rhino_schedule_export_csvA

Write rows produced by any rhino_schedule_* tool to CSV.

Inputs: args (required). Returns: object

rhino_screenshotA

Capture a viewport screenshot (bridge required).

    Returns MCP image content (JPEG, at most ``max_width`` px wide by
    default) plus a summary, so the model sees the viewport directly.
    When ``path`` is given the full-size file is written there too;
    ``include_image=False`` (or legacy ``as_base64=False``) with a
    ``path`` returns only the summary.
    

Inputs: args (required).

rhino_search_rhinoscript_functionsA
Read-only

Search RhinoScript functions by keyword or description.

    Use this BEFORE writing any RhinoScript Python code to find correct
    function names and signatures.  Returns matching functions sorted by
    relevance.

    Example queries: "loft surface", "boolean union", "rotate object",
    "create curve", "extrude".
    

Inputs: args (required). Returns: object

rhino_sectionC

Slice the listed objects with a plane (bridge required).

Inputs: args (required). Returns: object

rhino_section_at_axisA

Slice a surface (or Brep / mesh in bridge) into count section curves.

    Standalone supports ``axis='u'`` and ``axis='v'`` (surface isocurves).
    World-axis slicing (``axis='x'/'y'/'z'``) requires bridge mode.
    

Inputs: args (required). Returns: object

rhino_selection_bboxD
Read-only

Return the union bounding box of all objects in the document.

Inputs: args (required). Returns: object

rhino_set_control_pointsC

Replace control points of a NURBS curve or surface.

Inputs: args (required). Returns: object

rhino_set_user_textB

Attach a key-value user text entry to an object.

Inputs: args (required). Returns: object

rhino_shadow_projectB

Project objects' bounding-box corners along sun_vector to the ground plane.

    Standalone produces a coarse 4-corner shadow polygon per object
    (suitable for sketch-grade studies). Bridge mode emits accurate
    wireframe-projection shadow polygons.
    

Inputs: args (required). Returns: object

rhino_shellC
Destructive

Hollow a closed Brep, optionally leaving the listed faces open.

Inputs: args (required). Returns: object

rhino_skin_from_sectionsA

Generate a skin (loft-equivalent) through ordered section curves.

    - Standalone: chains ``CreateRuledSurface`` between adjacent section
      pairs and returns the list of surface IDs; the caller can join them
      downstream if needed.
    - Bridge: emits a single Brep loft via ``Brep.CreateFromLoft``.
    

Inputs: args (required). Returns: object

rhino_smooth_polylineA

Apply Laplacian smoothing to a polyline (or NURBS curve via its control points).

    Each iteration replaces every interior point P_i with
    ``(1 - factor) * P_i + factor * (P_{i-1} + P_{i+1}) / 2``.
    With ``pin_endpoints=True`` the first and last points are held.
    Returns the new curve's object_id (the input is replaced).
    

Inputs: args (required). Returns: object

rhino_solar_exposure_estimateA
Read-only

Estimate cumulative solar exposure (lit minutes / total minutes) on an object (bridge only).

Bridge implementation samples the time range, casts a ray from the target's centroid toward the sun at each step, and counts lit samples (no obstruction along the ray). Returns a 0-1 ratio.

Inputs: args (required). Returns: object

rhino_sphereC

Add a sphere primitive.

Inputs: args (required). Returns: object

rhino_spiralC

Add a tapered spiral sampled into a NURBS curve.

Inputs: args (required). Returns: object

rhino_stack_floorsA

Replicate a source object N times along world +Z with constant spacing.

    Architectural shortcut for "stack this slab N floors high". The source
    sits at level 0; copies populate levels 1 .. floor_count.
    

Inputs: args (required). Returns: object

rhino_subd_inspectA
Read-only

Report SubD topology: vertex/edge/face counts, vertex and edge tags, boundary / crease / sharp edges, corners, and face side-count histogram.

    Standalone reads the SubD control net through rhino3dm 8.32+ iterators.
    

Inputs: args (required). Returns: object

rhino_subd_to_nurbsC

Convert a SubD object to a NURBS polysurface (Brep).

Inputs: args (required). Returns: object

rhino_sun_pathB

Draw monthly sun-path polylines on a hemisphere of given radius around center_point.

    Standalone draws into the active rhino3dm document; bridge mode
    forwards so the path is visible in Rhino's viewport.
    

Inputs: args (required). Returns: object

rhino_sun_positionB
Read-onlyIdempotent

Compute solar azimuth + altitude for a location/time. Pure calculation, no doc edits.

Inputs: args (required). Returns: object

rhino_surface_closest_pointA
Read-only

Find the UV parameters and 3D point closest to a test point on a surface.

Inputs: args (required). Returns: object

rhino_surface_curvature_atB
Read-only

Evaluate true Gaussian / mean / principal curvatures at (u, v) (bridge only).

Inputs: args (required). Returns: object

rhino_surface_developable_scoreA
Read-only

Estimate how far a surface deviates from being developable.

    Samples a (sample_u+1) x (sample_v+1) grid of normals; for each
    interior 2x2 block computes the maximum angle (in radians) between
    adjacent normals. Reports max / mean / RMS over the whole sheet
    plus a 0..1 normalised score (0 = perfectly developable,
    1 = π/2 normal swing within a single cell).

    A truly developable surface (cone, cylinder, plane) returns ~0;
    a sphere section returns a positive value proportional to the
    spanned solid angle.
    

Inputs: args (required). Returns: object

rhino_surface_from_pointsB

Create a NURBS surface from a 2D grid of control points.

Inputs: args (required). Returns: object

rhino_surface_normal_atA
Read-only

Evaluate the surface unit normal at a normalised (u, v).

    ``u`` and ``v`` are 0..1 ratios over the surface's domain; the
    actual parameters are computed internally so the LLM doesn't need
    to know the domain bounds.
    

Inputs: args (required). Returns: object

rhino_sweep1A

Sweep profiles along a single rail.

Inputs: args (required). Returns: object

rhino_sweep2C

Sweep profiles along two rails.

Inputs: args (required). Returns: object

rhino_taperC

Taper objects along an axis with start/end radii.

Inputs: args (required). Returns: object

rhino_textC

Add 3D text annotation. Bridge mode honours the active dim style; standalone uses text-dot fallback.

Inputs: args (required). Returns: object

rhino_text_dotA

Add a small label that always faces the camera in Rhino.

Inputs: args (required). Returns: object

rhino_tolerance_getA
Read-only

Read absolute / angle / relative model tolerances.

Inputs: args (required). Returns: object

rhino_tolerance_setA

Set absolute / angle / (optional) relative tolerances on the document.

Inputs: args (required). Returns: object

rhino_torusB

Add a torus primitive around the world Z axis through center.

    Standalone builds an exact revolved Brep (circle profile on the XZ plane).
    

Inputs: args (required). Returns: object

rhino_turntableC

Render a turntable animation to output_path (PNG sequence or GIF).

Inputs: args (required). Returns: object

rhino_turntable_renderC

Render a turntable sequence (camera orbits around target) to output_dir.

Inputs: args (required). Returns: object

rhino_twistC

Twist objects around an axis by a specified angle.

Inputs: args (required). Returns: object

rhino_undoA

Undo the last operation(s) in the Rhino document.

Each step reverses one undo record. Changes made by MCP tools are grouped into undo records automatically.

Inputs: args (required). Returns: object

rhino_unrollA

Unroll a developable surface or polysurface flat.

Inputs: args (required). Returns: object

rhino_unweld_meshC

Unweld vertices to break mesh smoothing.

Inputs: args (required). Returns: object

rhino_uv_grid_panelsA

Sample a surface on a regular UxV grid and emit it as panels.

    ``output='mesh'`` writes a single quad mesh (one face per panel) to
    the doc; ``'curves'`` writes count_u+count_v isocurves; ``'corners'``
    only returns the (count_u+1) x (count_v+1) sample points without
    writing geometry.
    

Inputs: args (required). Returns: object

rhino_validate_brepB
Read-only

Validate a Brep — closed/solid/manifold, face/edge counts, log of issues.

    Standalone surfaces ``IsValid``/``IsSolid``/``IsManifold``/edge+face
    counts and the rhino3dm validation log. Bridge mode adds a list of
    naked-edge identifiers and lengths via RhinoCommon.
    

Inputs: args (required). Returns: object

rhino_viewport_imageA

Capture the viewport pixels and return them as MCP image content.

    Lightweight alternative to ``rhino_render_to_file`` — no render engine
    is invoked, just a viewport bitmap dump. Use 0 for ``width``/``height``
    to inherit the on-screen viewport size; the inline image is then
    downscaled to ``max_width`` (default 1024, JPEG). Pass ``output_path``
    to also keep the full-size PNG.
    

Inputs: args (required).

rhino_viewport_previewA

Capture a viewport preview restricted to a selection or layer set.

    Spotlights ``selection_ids`` and/or objects on ``layers``; everything
    else is either ghosted (default) or hidden during the capture and
    restored afterwards. Selection and visibility are restored, so the
    document is left unchanged. Returns MCP image content plus a summary
    (see ``rhino_screenshot`` for the image controls). Bridge only.
    

Inputs: args (required).

rhino_view_setC

Activate a saved named view.

Inputs: args (required). Returns: object

rhino_volumeA
Read-onlyIdempotent

Compute the volume of a closed mesh (Brep volume requires bridge).

Inputs: args (required). Returns: object

rhino_weld_meshB

Weld coincident vertices in a mesh.

Inputs: args (required). Returns: object

rhino_zebraC
Read-only

Run zebra-stripe surface continuity analysis (bridge required).

Inputs: args (required). Returns: object

rhino_zoom_extentA

Zoom the active view to the extent of selected (or all) objects.

Inputs: args (required). Returns: object

rhino_zoom_layerA

Zoom the active viewport to fit every object on layer.

Inputs: args (required). Returns: object

rhino_zoom_objectA

Zoom the active viewport to fit the given object ids exactly.

Inputs: args (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.6/5.0

    Scored across 246 tools

    Disambiguation2/5

    Multiple tools have overlapping purposes: viewport capture is split across rhino_screenshot, rhino_viewport_preview, rhino_viewport_image, and rhino_render_viewport; surface blending appears as both rhino_blend_surface and rhino_blend_surface_edges; flow operations appear as rhino_flow and rhino_flow_along_curve; and array/replication tools (rhino_array_linear/rectangular/polar, rhino_place_grid, rhino_stack_floors, rhino_replicate_along_curve, rhino_scatter) overlap heavily. Curvature analysis is spread across rhino_curvature_analysis, rhino_surface_curvature_at, and rhino_panel_curvature_classify, making selection error-prone for an agent.

    Naming Consistency3/5

    The rhino_/gh_ prefixes and snake_case casing are consistent throughout, which is good. However, verb placement is mixed: some tools use verb_noun (rhino_move, rhino_rotate), others noun_verb (rhino_layer_create, rhino_display_mode_set, rhino_named_view_save), and primitives use a bare noun (rhino_box, rhino_sphere, rhino_circle). This makes the intended pattern less predictable.

    Tool Count1/5

    246 tools is an extreme surface for a single server and far exceeds a well-scoped set. Even for a broad CAD domain, this many tools suggests redundancy and discoverability problems, with many near-duplicate operations that could be consolidated.

    Completeness4/5

    The server covers an unusually wide domain: primitives, Booleans, NURBS, meshing, SubD, rendering, BIM/IFC, Grasshopper, analysis, and export. Most lifecycle operations appear represented, though a few gaps and inconsistencies (e.g., some bridge-only operations, missing unified capture/render abstraction) remain.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude to control AutoCAD—draw, edit, query, layers, blocks, annotations, screenshots, plot to PDF—using plain language.
      8
      13
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects Rhino and Grasshopper to Claude AI via the Model Context Protocol, enabling prompt-assisted 3D modeling, scene manipulation, and control through tools like object creation, layer management, and code execution.
      32
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI-powered 3D modeling in Rhino 8 through 135+ tools for geometry, transformations, booleans, layers, materials, and more, using natural language.
      7
      MIT