RhinoMCP
RhinoMCP: Rhino 3D용 MCP 서버
105개의 도구로 Model Context Protocol을 통한 AI 기반 3D 모델링, 분석, 진단 및 Grasshopper 통합을 지원합니다.
RhinoMCP는 기본 프리미티브부터 고급 서피스 모델링(loft, sweep, revolve), 불리언 연산, 메시 진단, 블록 관리, Grasshopper를 통한 파라메트릭 디자인까지 포괄하는 다양한 도구 세트로 Claude를 Rhino 3D에 연결합니다.
아키텍처
┌────────────────┐ stdio ┌──────────────┐ TCP/JSON ┌──────────────┐
│ Claude Desktop │◄──────────►│ rhino_mcp │◄─────────────►│ Rhino 3D │
│ │ (MCP) │ (Python) │ localhost: │ listener.py │
│ │ │ server.py │ 9876 │ (inside │
└────────────────┘ └──────────────┘ │ Rhino) │
└──────────────┘MCP 서버 (rhino_mcp/). FastMCP를 사용하는 Python 패키지입니다. stdio를 통해 Claude와 통신하고 TCP를 통해 Rhino와 통신합니다.
Rhino 리스너 (rhino/listener.py). Rhino 내부에서 실행되는 Python 스크립트입니다. TCP 서버를 열고 JSON 명령을 수신하여 RhinoCommon/rhinoscriptsyntax를 사용해 실행하고 결과를 반환합니다.
Related MCP server: revit-mcp
기능
지오메트리 생성 (21개 도구)
도구 | 설명 |
| 단일 또는 일괄 점 생성 |
| 선 및 폴리라인 |
| 보간된 NURBS 커브 |
| 원형 지오메트리 |
| 사각형 폴리라인 |
| 솔리드 프리미티브 |
| 커브를 따른 돌출 및 파이프 |
| NURBS 서피스 및 메시 |
| 텍스트 점 |
| 단면을 통한 로프트 서피스 |
| 단일 및 이중 레일 스윕 |
| 축을 중심으로 프로파일 회전 |
| 평면 및 패치 서피스 |
변환 (8개 도구)
move, rotate, scale, scale_non_uniform, mirror, copy, array_linear, array_polar
불리언 연산 (3개 도구)
boolean_union, boolean_difference, boolean_intersection
수정 (18개 도구)
도구 | 설명 |
| 기본 수정 |
| 그룹화 |
| 지오메트리 결합 및 분해 |
| 커브 트림 및 분할 |
| 지오메트리 오프셋 |
| 모서리 처리 |
| 열린 브렙 캡 |
| 커브 편집 |
| 서피스에 커브 투영 |
| 모서리/경계 추출 |
블록 및 인스턴스 (4개 도구)
create_block, insert_block, list_blocks, explode_block
사용자 데이터 (2개 도구)
set_user_text, get_user_text: 메타데이터, BIM 데이터, 비용 등을 저장합니다.
레이어 (6개 도구)
list_layers, create_layer, delete_layer, set_layer_color, set_layer_visibility, set_current_layer
재질 (3개 도구)
list_materials, create_material, assign_material
분석 (10개 도구)
도구 | 설명 |
| 측정 |
| 공간 쿼리 |
| 객체 간 교차점 찾기 |
| 곡률 분석 |
| 점 포함 테스트 |
진단 (4개 도구)
도구 | 설명 |
| 유효성 확인, 불량 지오메트리 찾기 |
| 서피스의 틈 찾기 |
| 메시 품질 분석 |
| 메시 문제 자동 수정 |
뷰 (5개 도구)
zoom_extents, set_view, capture_view (base64 옵션 포함), list_views, set_display_mode
Grasshopper (3개 도구)
gh_run_script, gh_set_slider, gh_get_outputs
코드 실행 (2개 도구)
run_python, run_command: rhinoscriptsyntax 및 RhinoCommon에 대한 전체 액세스
실행 취소/다시 실행 (2개 도구)
undo, redo
씬 (4개 도구)
scene_info, get_objects, get_object (모서리 정보 포함 상세), select_objects
가져오기/내보내기 (2개 도구)
export (.3dm, .obj, .stl, .step, .iges, .fbx), import_file
굵게 = v2.0의 새로운 기능
사전 요구 사항
Rhino 7 또는 8 (Windows 또는 Mac)
Python 3.10+
uv 패키지 관리자 (설치)
설치
1. 클론 및 설치
git clone https://github.com/kbangaru-cyber/rhino-mcp.git
cd Rhino_MCP
uv sync2. Rhino 리스너 시작
Rhino에서:
도구 > PythonScript > 실행으로 이동
rhino/listener.py선택다음이 표시되어야 합니다:
============================================================
RhinoMCP Listener v2.0.0
Listening on 127.0.0.1:9876
Registered handlers: 90
Ready for MCP connection (Claude)
============================================================3. Claude Desktop 구성
Claude Desktop
claude_desktop_config.json 편집:
{
"mcpServers": {
"rhino": {
"command": "uv",
"args": ["--directory", "/ABSOLUTE/PATH/TO/Rhino_MCP", "run", "rhino-mcp"],
"env": {
"RHINO_MCP_HOST": "127.0.0.1",
"RHINO_MCP_PORT": "9876",
"RHINO_MCP_TIMEOUT": "30"
}
}
}
}사용 예시
간단한 건물 형태 만들기
"건물 볼륨으로 10x8x4미터 박스를 만들고, 중앙에 반지름 2, 높이 6의 실린더를 타워로 추가하세요. 함께 유니온하고 반지름 0.3으로 모든 모서리를 필렛하세요."
모델 문제 진단
"씬의 모든 객체에 문제가 있는지 확인하세요. 열린 모서리를 찾아 무엇을 수정해야 하는지 알려주세요."
파라메트릭 디자인
"프로파일 커브를 만들고 회전시켜 꽃병 형태를 만드세요. 그런 다음 주변에 장식용 실린더의 극좌표 배열을 만드세요."
내장 프롬프트
RhinoMCP는 안내된 워크플로우 프롬프트를 포함합니다:
model-from-description: 텍스트 설명에서 3D 모델을 생성하는 구조화된 워크플로우diagnose-model: 모델 문제를 찾고 수정하는 체계적인 접근 방식parametric-design: Grasshopper/파라메트릭 워크플로우 가이드
리소스
서버는 실시간 데이터를 MCP 리소스로 노출합니다:
URI | 설명 |
| 현재 씬 개요 |
| 레이어 트리 |
| 재질 목록 |
| 블록 정의 |
구성
환경 변수 | 기본값 | 설명 |
|
| Rhino 리스너 호스트 |
|
| Rhino 리스너 포트 |
|
| 명령 시간 초과 (초) |
개발
# Install dev dependencies
uv sync --extra dev
# Run tests (no Rhino needed)
uv run pytest -v
# Lint
uv run ruff check .
# Type check
uv run mypy rhino_mcp통합 테스트
Rhino가 실행 중이고 리스너가 활성화된 상태에서:
uv run pytest -v -m integration프로토콜
명령은 TCP를 통해 전송되는 JSON 객체입니다 (줄바꿈 구분):
{"id": "abc123", "action": "create_sphere", "params": {"center": [0,0,0], "radius": 5}}응답:
{"id": "abc123", "ok": true, "result": {"guid": "d3e4f5..."}}스레드 안전성
Rhino 리스너는 Rhino 8+에서 Rhino.RhinoApp.InvokeOnUiThread()를 사용하여 모든 지오메트리 연산이 UI 스레드에서 실행되도록 보장합니다. Rhino 7에서는 연산이 직접 실행됩니다 (단일 클라이언트 연결에 안전함).
라이선스
MIT. LICENSE 참조.
작성자
Karthick Raja B G, 포트폴리오 · GitHub
관련 프로젝트: SPIDER, 계산 기하학 및 공간 분석을 위한 Grasshopper 플러그인.
Available Tools
105 toolsrhino_array_linearB
Create a linear array of objects along a direction with even spacing.
Inputs: params (required). Returns: result
rhino_array_polarB
Create a polar (circular) array of objects around a center point.
Inputs: params (required). Returns: result
rhino_assign_materialCIdempotent
Assign an existing material to objects.
Inputs: params (required). Returns: result
rhino_boolean_differenceBDestructive
Subtract solid B from solid A.
Inputs: params (required). Returns: result
rhino_boolean_intersectionCDestructive
Keep only the intersecting volume of two solids.
Inputs: params (required). Returns: result
rhino_boolean_unionADestructive
Boolean union of two solids (merge into one).
Inputs: params (required). Returns: result
rhino_cap_planar_holesADestructive
Cap all planar openings on an open brep to make it solid.
Inputs: params (required). Returns: result
rhino_capture_viewARead-onlyIdempotent
Capture the active viewport as a PNG image. Set include_base64=true to get the image data directly in the response.
Inputs: params (required). Returns: result
rhino_chamfer_edgeBDestructive
Apply a chamfer (beveled edge) to specified edges of a solid. Use get_object first to see available edge indices.
Inputs: params (required). Returns: result
rhino_check_meshARead-onlyIdempotent
Check mesh quality: closed, normals, degenerate faces, naked edges.
Inputs: params (required). Returns: result
rhino_check_objectsARead-onlyIdempotent
Check objects for validity, bad geometry, naked edges, and common problems. Provide specific GUIDs or leave empty to check the entire scene.
Inputs: params (required). Returns: result
rhino_closest_pointARead-onlyIdempotent
Find the closest point on an object to a test point.
Inputs: params (required). Returns: result
rhino_copyB
Duplicate objects with an optional translation offset.
Inputs: params (required). Returns: result
rhino_create_arcB
Create an arc from center, radius, and angle range.
Inputs: params (required). Returns: result
rhino_create_blockC
Create a block definition from existing objects. Blocks are reusable geometry instances that save memory and allow batch updates.
Inputs: params (required). Returns: result
rhino_create_boxB
Create a box/cuboid with origin, width, depth, and height.
Inputs: params (required). Returns: result
rhino_create_circleC
Create a circle with given center, radius, and optional plane normal.
Inputs: params (required). Returns: result
rhino_create_coneC
Create a cone with base center, radius, and height.
Inputs: params (required). Returns: result
rhino_create_curveC
Create an interpolated NURBS curve through control points.
Inputs: params (required). Returns: result
rhino_create_cylinderB
Create a cylinder with base center, radius, and height.
Inputs: params (required). Returns: result
rhino_create_ellipseC
Create an ellipse with separate X and Y radii.
Inputs: params (required). Returns: result
rhino_create_extrusionB
Extrude an existing curve along a direction. Caps closed curves.
Inputs: params (required). Returns: result
rhino_create_layerC
Create a new layer. Use :: for nesting (e.g., 'Walls::Interior').
Inputs: params (required). Returns: result
rhino_create_lineC
Create a line from start to end point.
Inputs: params (required). Returns: result
rhino_create_loftA
Loft a surface through multiple cross-section curves. Great for creating smooth transitions between different profile shapes.
Inputs: params (required). Returns: result
rhino_create_materialB
Create a new render material with color, transparency, and reflectivity.
Inputs: params (required). Returns: result
rhino_create_meshA
Create a mesh from vertices and face indices (triangles or quads).
Inputs: params (required). Returns: result
rhino_create_patchA
Create a patch surface from boundary curves and/or interior points.
Inputs: params (required). Returns: result
rhino_create_pipeC
Create a pipe (tube) along an existing rail curve.
Inputs: params (required). Returns: result
rhino_create_planar_surfaceA
Create a planar surface from one or more closed planar curves.
Inputs: params (required). Returns: result
rhino_create_pointD
Create a point object in Rhino.
Inputs: params (required). Returns: result
rhino_create_pointsC
Create multiple point objects at once.
Inputs: params (required). Returns: result
rhino_create_polylineB
Create a polyline through ordered vertices. Optionally close it into a polygon.
Inputs: params (required). Returns: result
rhino_create_rectangleB
Create a rectangle from origin, width, and height.
Inputs: params (required). Returns: result
rhino_create_revolveA
Revolve a profile curve around an axis to create a surface of revolution. Use for creating vases, goblets, turned parts, etc.
Inputs: params (required). Returns: result
rhino_create_sphereA
Create a solid sphere with given center and radius.
Inputs: params (required). Returns: result
rhino_create_surface_from_pointsC
Create a NURBS surface from a grid of control points.
Inputs: params (required). Returns: result
rhino_create_sweep1B
Sweep one or more cross-section curves along a single rail curve. Useful for creating moldings, pipes with varying cross-sections, etc.
Inputs: params (required). Returns: result
rhino_create_sweep2A
Sweep cross-section curves along two rail curves. Gives more control over the shape of the resulting surface than single-rail sweep.
Inputs: params (required). Returns: result
rhino_create_textC
Create a text dot (always-facing label) at a point.
Inputs: params (required). Returns: result
rhino_create_torusC
Create a torus (donut shape) with major and minor radii.
Inputs: params (required). Returns: result
rhino_deleteBDestructive
Permanently delete objects by GUID.
Inputs: params (required). Returns: result
rhino_delete_layerADestructive
Delete a layer and its objects.
Inputs: params (required). Returns: result
rhino_distanceBRead-onlyIdempotent
Calculate the distance between two objects.
Inputs: params (required). Returns: result
rhino_duplicate_borderB
Duplicate the border/naked edge curves of a surface, brep, or mesh.
Inputs: params (required). Returns: result
rhino_duplicate_edgeC
Duplicate the edges of a brep as individual curves.
Inputs: params (required). Returns: result
rhino_explodeBDestructive
Explode compound objects into individual components.
Inputs: params (required). Returns: result
rhino_explode_blockADestructive
Explode a block instance into its constituent objects.
Inputs: params (required). Returns: result
rhino_exportBRead-onlyIdempotent
Export objects or the entire scene to a file (.3dm, .obj, .stl, .step, .iges, .fbx).
Inputs: params (required). Returns: result
rhino_extend_curveBDestructive
Extend a curve by a given length from start, end, or both ends.
Inputs: params (required). Returns: result
rhino_fillet_curvesC
Create a fillet arc between two curves at their intersection.
Inputs: params (required). Returns: result
rhino_fillet_edgeADestructive
Apply a fillet (rounded edge) to specified edges of a solid. Use get_object first to see available edge indices.
Inputs: params (required). Returns: result
rhino_get_areaBRead-onlyIdempotent
Calculate the surface area of a surface, brep, or mesh.
Inputs: params (required). Returns: result
rhino_get_bounding_boxARead-onlyIdempotent
Get the axis-aligned bounding box of an object: min/max points, dimensions, center.
Inputs: params (required). Returns: result
rhino_get_curvatureBRead-onlyIdempotent
Get curvature at a point on a curve or surface. Returns curvature, radius of curvature, tangent, and (for surfaces) gaussian/mean curvature.
Inputs: params (required). Returns: result
rhino_get_lengthBRead-onlyIdempotent
Calculate the length of a curve.
Inputs: params (required). Returns: result
rhino_get_naked_edgesA
Find and duplicate the naked (unjoined) edges of a brep. These indicate gaps in the surface that prevent it from being a closed solid.
Inputs: params (required). Returns: result
rhino_get_objectARead-onlyIdempotent
Get detailed information about a specific object by GUID, including geometry type, dimensions, area, volume, edge info, material, and user data.
Inputs: params (required). Returns: result
rhino_get_objectsARead-onlyIdempotent
List objects in the scene with optional filters by type, layer, or name. Returns guid, name, type, layer, color, and bounding box for each.
Inputs: params (required). Returns: result
rhino_get_user_textARead-onlyIdempotent
Get user text from an object. Returns a specific key or all key/value pairs.
Inputs: params (required). Returns: result
rhino_get_volumeCRead-onlyIdempotent
Calculate the volume of a closed solid.
Inputs: params (required). Returns: result
rhino_gh_get_outputsARead-onlyIdempotent
Read current output values from the active Grasshopper definition.
Inputs: no named parameters. Returns: result
rhino_gh_run_scriptB
Execute a GHPython script inside Grasshopper. Has access to all Grasshopper and RhinoCommon APIs.
Inputs: params (required). Returns: result
rhino_gh_set_sliderAIdempotent
Set the value of a Grasshopper slider to drive parametric updates.
Inputs: params (required). Returns: result
rhino_groupB
Group objects together with an optional name.
Inputs: params (required). Returns: result
rhino_import_fileB
Import geometry from a file into the current document.
Inputs: params (required). Returns: result
rhino_insert_blockB
Insert a block instance at a point with optional scale and rotation.
Inputs: params (required). Returns: result
rhino_intersectBRead-onlyIdempotent
Find intersection between two geometric objects. Creates intersection curves if surfaces/breps intersect.
Inputs: params (required). Returns: result
rhino_is_point_in_solidARead-onlyIdempotent
Check if a point is inside a closed solid.
Inputs: params (required). Returns: result
rhino_is_point_on_surfaceARead-onlyIdempotent
Check if a point lies on a surface within tolerance.
Inputs: params (required). Returns: result
rhino_joinBDestructive
Join adjacent curves or surfaces into a single object.
Inputs: params (required). Returns: result
rhino_list_blocksARead-onlyIdempotent
List all block definitions in the document.
Inputs: no named parameters. Returns: result
rhino_list_layersARead-onlyIdempotent
List all layers with colors, visibility, lock state, and object counts.
Inputs: no named parameters. Returns: result
rhino_list_materialsARead-onlyIdempotent
List all render materials in the document.
Inputs: no named parameters. Returns: result
rhino_list_viewsARead-onlyIdempotent
List all viewports and named views with their display modes.
Inputs: no named parameters. Returns: result
rhino_mirrorC
Mirror objects across a plane, creating copies.
Inputs: params (required). Returns: result
rhino_moveB
Move objects by a translation vector.
Inputs: params (required). Returns: result
rhino_offset_curveC
Create an offset copy of a curve at a given distance.
Inputs: params (required). Returns: result
rhino_offset_surfaceB
Offset a surface or brep by a distance. Optionally create a solid.
Inputs: params (required). Returns: result
rhino_project_to_surfaceC
Project curves onto a brep/surface along a direction.
Inputs: params (required). Returns: result
rhino_rebuild_curveADestructive
Rebuild a curve with a new point count and degree for a smoother result.
Inputs: params (required). Returns: result
rhino_redoB
Redo the last undone operation.
Inputs: no named parameters. Returns: result
rhino_repair_meshADestructive
Attempt to repair common mesh issues: degenerate faces, duplicate vertices, unified normals, and optionally fill holes.
Inputs: params (required). Returns: result
rhino_rotateB
Rotate objects around an axis through a center point.
Inputs: params (required). Returns: result
rhino_run_commandC
Execute a Rhino command string as if typed in the command line.
Inputs: params (required). Returns: result
rhino_run_pythonA
Execute arbitrary Python code inside Rhino. Has access to rhinoscriptsyntax (rs), RhinoCommon (Rhino.*), and scriptcontext (sc). Use this for advanced operations not covered by other tools.
Inputs: params (required). Returns: result
rhino_scaleB
Uniformly scale objects from a center point.
Inputs: params (required). Returns: result
rhino_scale_non_uniformD
Scale objects with separate X, Y, Z factors.
Inputs: params (required). Returns: result
rhino_scene_infoARead-onlyIdempotent
Get an overview of the current Rhino document: filename, unit system, tolerances, object count by type, layers, and active view.
Inputs: no named parameters. Returns: result
rhino_select_objectsBIdempotent
Select objects in the Rhino viewport by their GUIDs.
Inputs: params (required). Returns: result
rhino_set_colorBIdempotent
Set the display color on objects.
Inputs: params (required). Returns: result
rhino_set_current_layerCIdempotent
Set the active/current layer.
Inputs: params (required). Returns: result
rhino_set_display_modeAIdempotent
Set the display mode of the active viewport (Wireframe, Shaded, Rendered, etc.).
Inputs: params (required). Returns: result
rhino_set_layerCIdempotent
Move objects to a specified layer.
Inputs: params (required). Returns: result
rhino_set_layer_colorCIdempotent
Change the color of a layer.
Inputs: params (required). Returns: result
rhino_set_layer_visibilityBIdempotent
Show or hide a layer.
Inputs: params (required). Returns: result
rhino_set_materialBIdempotent
Assign a named material to objects.
Inputs: params (required). Returns: result
rhino_set_nameAIdempotent
Set or change the name of a Rhino object.
Inputs: params (required). Returns: result
rhino_set_user_textBIdempotent
Set a user text key/value pair on objects. Useful for storing metadata, BIM data, cost information, etc.
Inputs: params (required). Returns: result
rhino_set_viewBIdempotent
Switch the viewport to a named view (Top, Front, Right, Perspective, etc.).
Inputs: params (required). Returns: result
rhino_splitBDestructive
Split a curve at its intersection with a cutting object.
Inputs: params (required). Returns: result
rhino_trimBDestructive
Trim a curve at its intersection with a cutting object.
Inputs: params (required). Returns: result
rhino_undoA
Undo the last operation in Rhino.
Inputs: no named parameters. Returns: result
rhino_ungroupAIdempotent
Ungroup a named group, releasing its members.
Inputs: params (required). Returns: result
rhino_zoom_extentsAIdempotent
Zoom the active viewport to show the entire scene.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 105 tools
Most geometry creation/editing tools are distinguishable by their object type and operation, but the set contains direct duplicates (set_material/assign_material, duplicate_border/get_naked_edges) and overlapping checks (check_objects/check_mesh). With 105 tools, an agent must navigate many near-synonyms and the line between trim/split and copy/array is not always obvious.
Tools consistently use the rhino_ prefix with snake_case verb_noun operations, making groups like create_* and get_* easy to scan. Minor inconsistencies exist (scene_info is noun-only, distance/intersect have no target, set_material vs assign_material) but they do not undermine the overall pattern.
At 105 tools, this is an extreme mismatch for an MCP tool surface, far beyond the 25+ threshold where selection overhead becomes severe. Many narrow variants (e.g., point vs points, multiple sweep/loft surface creators) could be consolidated without losing capability.
The server covers the full Rhino modeling lifecycle: primitive creation, editing, transformations, booleans, analysis, layers, materials, blocks, Grasshopper, and file I/O. Minor gaps like layer rename/lock or block definition removal exist, but the universal run_python and run_command escape hatches prevent dead ends.
Maintenance
Related MCP Connectors
Read and edit models in Rhino 7, 8 and 9 WIP on your PC. Needs the Rhino MCP plug-in.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
AI Hub for AEC — 50+ 3D formats, clash detection, ACC integration via Autodesk Platform Services.
AI for Revit: 450+ tools, 1 undo step. Windows, Revit 2024–2027 (2021–2023 included). Free account.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceConnects Rhino3D to Claude AI via the Model Context Protocol, enabling AI-assisted 3D modeling and design workflows through direct control of Rhino's functionality.13-
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Autodesk Revit to query project data, manage elements, and execute generated code via the Model Context Protocol. It provides full compatibility with GitHub Copilot and Claude to automate BIM modeling workflows.13MIT
- AlicenseNot gradedqualityDmaintenanceConnects 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.32MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered 3D modeling in Rhino 8 through 135+ tools for geometry, transformations, booleans, layers, materials, and more, using natural language.7MIT