Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Drive McNeel Rhino 8 / Rhino 9 and Grasshopper through MCP. Each tool returns structured JSON (object IDs, bounding boxes, etc.) and a short human-readable summary. Standalone mode uses rhino3dm for headless 3DM I/O; bridge mode forwards calls to a live Rhino 8 or 9 session running the rhino-mcp.rhp C# plugin.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
rhino_pointC

Add a single point to the document.

rhino_lineB

Add a line between two points.

rhino_polylineB

Add a polyline through the given points; optionally closed.

rhino_arcB

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

rhino_circleA

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

rhino_ellipseB

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

rhino_rectangleB

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

rhino_polygonC

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

rhino_helixB

Add a helix sampled into a NURBS curve.

rhino_spiralC

Add a tapered spiral sampled into a NURBS curve.

rhino_nurbs_curveB

Add a NURBS curve from a control polygon.

rhino_interpolate_curveB

Add an interpolated NURBS curve passing through the given points.

rhino_rebuild_curveB

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

rhino_curve_lengthA

Return the curve's parametric domain and approximate length.

rhino_curve_point_atA

Evaluate position and tangent at a parameter on the curve.

rhino_curve_splitA

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

rhino_boxC

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

rhino_sphereC

Add a sphere primitive.

rhino_cylinderC

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

rhino_coneB

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

    Standalone builds an exact revolved Brep (``RevSurface`` + base cap).
    
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).
    
rhino_boolean_unionB

Boolean-union the given Brep groups. Bridge required.

rhino_boolean_differenceA

Subtract b_ids from a_ids. Bridge required.

rhino_boolean_intersectionB

Intersect a_ids with b_ids. Bridge required.

rhino_shellC

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

rhino_cap_holesB

Cap all open holes of a Brep.

rhino_plane_surfaceB

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

rhino_extrudeB

Linearly extrude a profile curve by distance along direction.

rhino_revolveC

Revolve a profile curve about an axis.

rhino_loftB

Loft a sequence of profile curves into a surface.

rhino_sweep1A

Sweep profiles along a single rail.

rhino_sweep2C

Sweep profiles along two rails.

rhino_network_surfaceB

Build a surface from a network of crossing curves.

rhino_patchC

Patch a region defined by boundary curves.

rhino_blend_surfaceB

Create a blend surface between two edges.

rhino_fillet_surfaceB

Create a constant-radius fillet between two surfaces.

rhino_offset_surfaceB

Offset a surface by distance along its normal.

rhino_mesh_boxC

Add a quad mesh box with the given subdivisions.

rhino_mesh_from_surfaceC

Mesh a surface (bridge only).

rhino_mesh_from_brepC

Mesh a Brep (bridge only).

rhino_weld_meshB

Weld coincident vertices in a mesh.

rhino_unweld_meshC

Unweld vertices to break mesh smoothing.

rhino_reduce_meshB

Reduce a mesh to a target face count.

rhino_mesh_boolean_unionC

Boolean-union meshes.

rhino_mesh_boolean_differenceB

Boolean-difference meshes (a - b).

rhino_moveC

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

rhino_rotateC

Rotate objects about an axis through a centre point.

rhino_scaleB

Scale objects non-uniformly about a centre.

rhino_mirrorB

Mirror objects across a plane (copies by default).

rhino_array_linearC

Array objects along a vector with constant spacing.

rhino_array_polarC

Array objects in a polar pattern.

rhino_array_rectangularC

Array objects in a 3D rectangular grid.

rhino_orientA

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

rhino_selection_bboxD

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

rhino_flowC

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

rhino_cage_editC

Deform objects with a control cage (bridge only).

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.
    
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.
    
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.
    
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.
    
rhino_text_dotA

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

rhino_textC

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

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.
    
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``.
    
rhino_annotation_revision_cloudA

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

rhino_annotation_calloutC

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

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.
    
rhino_dimension_linearC

Add a linear dimension between two points.

rhino_dimension_alignedB

Add an aligned dimension between two points.

rhino_dimension_angularC

Add an angular dimension at a vertex.

rhino_leaderB

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

rhino_hatchC

Add a hatch over the given closed curves.

rhino_clipping_planeB

Add a clipping plane to all viewports.

rhino_layer_createB

Create a layer with optional colour and visibility.

rhino_layer_deleteA

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

rhino_layer_set_colorB

Change a layer's display colour.

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.
    
rhino_object_move_to_layerB

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

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.
    
rhino_object_deleteC

Delete the given objects from the document.

rhino_groupC

Group objects together under a (named) group.

rhino_material_createB

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

rhino_material_assignB

Assign an existing material to one or more objects.

rhino_material_preset_listA

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``.
    
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.

rhino_render_viewportB

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

rhino_environment_setA

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

rhino_openC

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

rhino_saveC

Write the document to disk.

rhino_export_objA

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

rhino_export_stlB

Export meshes to an ASCII STL file.

rhino_importC

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

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).
    
rhino_export_stepA

Export to STEP (bridge required).

rhino_export_igesC

Export to IGES (bridge required).

rhino_export_dxfB

Export to DXF (bridge required).

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.
    
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.
    
rhino_areaA

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

rhino_volumeA

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

rhino_bounding_boxB

Return the union bounding box of one or more objects.

rhino_distanceB

Euclidean distance between two points.

rhino_curvature_analysisA

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

rhino_draft_angleC

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

rhino_zebraC

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

rhino_sectionC

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

rhino_contourC

Generate equally spaced section curves (bridge required).

rhino_probe_intersectionB

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.
    
rhino_list_objectsA

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.
    
rhino_object_infoB

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

rhino_document_summaryB

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

rhino_layer_listB

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

rhino_get_user_textA

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

rhino_set_user_textB

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

rhino_document_units_getB

Read the current document unit system.

rhino_document_units_setB

Set the document unit system, optionally scaling existing geometry.

rhino_tolerance_getA

Read absolute / angle / relative model tolerances.

rhino_tolerance_setA

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

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).
    
rhino_document_settingsA

Bundled units / tolerances / base point in one call.

rhino_validate_brepB

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.
    
rhino_report_mesh_healthB

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

rhino_curve_continuityB

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

rhino_check_naked_edgesA

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``.
    
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.
    
rhino_drawing_view_placeA

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

rhino_drawing_section_cutC

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

rhino_drawing_title_block_addB

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

rhino_drawing_export_pdfC

Export a sheet to PDF (bridge only).

rhino_schedule_by_layerB

Aggregate objects per layer with optional filter and sublayer merging.

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

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.
    
rhino_schedule_by_materialA

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.
    
rhino_object_quantityC

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

rhino_schedule_export_csvA

Write rows produced by any rhino_schedule_* tool to CSV.

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``.
    
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.
    
rhino_block_listB

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

rhino_block_explodeC

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

rhino_block_redefineA

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

rhino_sun_positionB

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

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.
    
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.
    
rhino_direct_irradianceA

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.

rhino_daylight_factorA

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.
    
rhino_solar_exposure_estimateA

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.

rhino_export_ifcA

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

rhino_import_ifcA

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

rhino_export_gbxmlB

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

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.
    
rhino_bim_pset_getA

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).
    
rhino_bim_pset_setC

Persist a PropertySet block on an object.

rhino_bim_pset_deleteB

Remove every property under a named PropertySet from an object.

rhino_camera_setB

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

rhino_light_addB

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

rhino_render_setupB

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

rhino_render_to_fileC

Execute the configured render and write the result to output_path.

rhino_turntable_renderC

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

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.
    
rhino_render_queue_statusA

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

rhino_render_queue_cancelA

Cancel a running or queued render job.

rhino_render_queue_listA

List recent render jobs and their progress.

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``.
    
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.
    
rhino_axis_ribsA

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

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.
    
rhino_panel_planarityA

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.
    
rhino_panel_curvature_classifyB

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.
    
rhino_surface_normal_atA

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.
    
rhino_surface_developable_scoreA

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.
    
rhino_surface_curvature_atB

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

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).
    
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).
    
rhino_search_rhinoscript_functionsA

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".
    
rhino_get_rhinoscript_docsA

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.
    
rhino_list_rhinoscript_modulesA

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.

rhino_get_module_functionsA

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.
    
rhino_bridge_list_instancesA

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.
    
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.
    
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).
    
rhino_execute_csharpA

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.
    
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.

rhino_redoC

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

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.
    
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``.
    
rhino_bendC

Bend objects along an axis through a specified point.

rhino_twistC

Twist objects around an axis by a specified angle.

rhino_taperC

Taper objects along an axis with start/end radii.

rhino_flow_along_curveC

Reposition objects from a base curve onto a target curve.

rhino_rebuild_surfaceC

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

rhino_surface_from_pointsB

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

rhino_unrollA

Unroll a developable surface or polysurface flat.

rhino_surface_closest_pointA

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

rhino_evaluate_surfaceA

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

rhino_create_subdB

Create a SubD object from an existing mesh.

rhino_subd_to_nurbsC

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

rhino_subd_inspectA

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.
    
rhino_match_surfaceC

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

rhino_blend_surface_edgesB

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

rhino_merge_surfacesC

Merge multiple surfaces into a single surface.

rhino_dup_edgeC

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

rhino_dup_borderC

Extract border curves from a surface or mesh.

rhino_isocurveB

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

rhino_make2dC

Generate a 2D drawing projection of 3D objects.

rhino_get_control_pointsA

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

rhino_set_control_pointsC

Replace control points of a NURBS curve or surface.

rhino_panelize_surfaceC

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

rhino_create_uv_gridB

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

rhino_panel_framesC

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

rhino_view_setC

Activate a saved named view.

rhino_zoom_extentA

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

rhino_named_view_saveB

Save the current camera as a named view.

rhino_display_mode_setA

Switch the active viewport's display mode.

rhino_turntableC

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

rhino_zoom_objectA

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

rhino_zoom_layerA

Zoom the active viewport to fit every object on layer.

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.
    
gh_add_componentB

Drop a Grasshopper component onto the active canvas.

gh_connect_componentsB

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

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``).
    
gh_delete_componentB

Remove a component from the canvas.

gh_component_listA

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

gh_cluster_createB

Group components into a named cluster.

gh_cluster_expandC

Expand a cluster back into its constituent components.

gh_plugin_listA

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.
    
gh_components_searchA

Search the Grasshopper component catalog (built-in + plugin-supplied).

    Returns ``rows`` of ``{guid, name, nickname, category, subcategory,
    description, plugin}`` and a ``summary`` block with match counts.
    Use this to find the GUID needed by ``gh_add_component`` before
    dropping a component on the canvas.
    
gh_get_parameterB

Read the current value of a component parameter.

gh_set_parameterC

Push a value into a component parameter.

gh_set_sliderC

Set a Number Slider component to a numeric value.

gh_set_panelB

Set the text contents of a Panel component.

gh_set_toggleB

Set a Boolean Toggle component to true or false.

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.
    
gh_open_fileC

Open a Grasshopper definition.

gh_save_fileA

Save the active Grasshopper definition.

gh_new_canvasB

Create a fresh empty Grasshopper canvas.

gh_runC

Run the current solution.

gh_resetA

Reset the canvas (clear cached solution).

gh_preview_toggleA

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

gh_bake_to_rhinoB

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

gh_data_tree_getB

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

gh_data_tree_setC

Push a DataTree into a component input.

gh_data_tree_get_batchA

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

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.
    
gh_template_listA

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.
    
gh_load_templateC

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

gh_bind_template_parameterA

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

gh_run_templateC

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

Prompts

Interactive templates invoked by user choice

NameDescription
general_strategyHigh-level decision tree for driving Rhino through rhino-mcp.
rhinoscript_workflowMandatory steps before invoking rhino_execute_python.
viewport_workflowVisual verification workflow (bridge mode).
parametric_workflowIterative parametric exploration workflow (sliders, sweeps, comparisons).
bim_authoring_workflowLayer / grouping / metadata conventions for architectural authoring.
design_dialogue_workflowMulti-turn, user-in-the-loop design checkpoints.
freeform_workflowFree-form architectural authoring workflow.
drawing_documentationDrawing-set authoring workflow (sheets, views, title block, PDF).
quantity_takeoffQuantity / BOM workflow (per-layer / per-material / per-user_text).

Resources

Contextual data attached and managed by the client

NameDescription
scene_summaryObject counts by type and layer, model units and scene bounding box.
layersNested layer tree (colour, visibility, lock state, object counts).
selectionObjects selected in the live Rhino session (bridge only).

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