Skip to main content
Glama

ライノMCP

RhinoMCP は、モデル コンテキスト プロトコル (MCP) を介して Rhino3D を Claude AI に接続し、Claude が Rhino3D と直接対話して制御し、AI 支援の 3D モデリング、分析、設計ワークフローを実行できるようにします。

プロジェクト概要

この統合は、次の 2 つの主要コンポーネントで構成されます。

  1. Rhino プラグイン: Rhino の Python エディター内で実行されるソケット サーバー。Rhino の機能への通信インターフェイスを提供します。

  2. MCP サーバー: Claude AI を Rhino プラグインに接続し、AI 制御の操作を可能にするモデル コンテキスト プロトコルの実装。

Related MCP server: SketchupMCP

特徴

  • PythonとRhino間のソケットベースの双方向通信

  • Claude AI 統合のためのモデル コンテキスト プロトコル サーバー

  • NURBS 曲線作成のサポート (初期テスト機能)

  • Rhino のコンテキスト内での Python スクリプトの実行

  • Claude DesktopとWindsurfの両方のクライアントと互換性があります

インストール

要件

  • Rhinoceros 3D(バージョン7または8)

  • Python 3.10以上

  • Windows 10または11

uv を使用してインストールする(推奨)

# Create and activate a virtual environment 
mkdir -p .venv
uv venv .venv
source .venv/Scripts/activate  # On Windows with Git Bash

# Install the package
uv pip install -e .

pipを使ってインストールする

# Create and activate a virtual environment
python -m venv .venv
.venv\Scripts\activate  # On Windows

# Install the package
pip install -e .

使用法

ステップ1: Rhino Bridge Serverを起動する

  1. オープンライノ

  2. コマンドラインにEditPythonScriptと入力して、RhinoのPythonエディタを開きます。

  3. src/rhino_plugin/rhino_server.pyからRhinoサーバースクリプトを開きます。

  4. スクリプトを実行します(F5 または実行ボタンをクリックします)

  5. 出力パネルに「Rhino Bridge が起動しました!」と表示されていることを確認します。

ステップ2: MCPサーバーを起動する

# Activate your virtual environment
source .venv/Scripts/activate  # On Windows with Git Bash

# Start the MCP server
rhinomcp

またはカスタム設定で実行します:

rhinomcp --host 127.0.0.1 --port 5000 --rhino-host 127.0.0.1 --rhino-port 8888 --debug

ステップ3: Claude DesktopまたはWindsurfに接続する

次の MCP サーバーに接続するように Claude Desktop または Windsurf を構成します。

ws://127.0.0.1:5000

例: NURBS曲線の作成

Claude に接続すると、次のようなプロンプトを使用して Rhino で NURBS 曲線を作成するように要求できます。

Create a NURBS curve in Rhino using points at (0,0,0), (5,10,0), (10,0,0), and (15,10,0).

発達

開発環境のセットアップ

# Clone the repository
git clone https://github.com/FernandoMaytorena/RhinoMCP.git
cd RhinoMCP

# Create and activate virtual environment
uv venv .venv
source .venv/Scripts/activate  # On Windows with Git Bash

# Install development dependencies
uv pip install -e ".[dev]"

テストを実行する

pytest

コードスタイル

このプロジェクトでは、リンティングとフォーマットに Ruff を使用します。

ruff check .
ruff format .

プロジェクト構造

RhinoMCP/
├── src/
│   ├── rhino_plugin/  # Code that runs inside Rhino
│   │   └── rhino_server.py
│   └── rhino_mcp/     # MCP server implementation
│       ├── rhino_client.py
│       └── mcp_server.py
├── tests/             # Test modules
├── docs/              # Documentation
├── config/            # Configuration files
├── ai/                # AI documentation and prompts
├── setup.py           # Package installation
├── requirements.txt   # Package dependencies
└── README.md          # Project documentation

ライセンス

MITライセンス

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender for AI-assisted 3D modeling, scene manipulation, and rendering.
      21
      36,015
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Connects Sketchup to Claude AI through the Model Context Protocol, allowing Claude to directly interact with and control Sketchup for prompt-assisted 3D modeling and scene manipulation.
      10
      568
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Connects SketchUp to Claude AI through the Model Context Protocol, enabling prompt-assisted 3D modeling, scene manipulation, and woodworking joinery operations.
      20
      4,459 PyPI
      75
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects Claude AI to Houdini via the Model Context Protocol, enabling prompt-assisted 3D modeling, scene manipulation, and rendering within Houdini.
      11
      GPL 3.0