Cordycepsのロゴ

Cordyceps

コミュニティ
brookstalley

Grasshopper MCP Bridge - Claude takes control of Grasshopper

公開者brookstalley
リポジトリcordyceps
言語C#
フォーク
9
スター
105
利用可能なツール
0
通信方式stdio, streamable-http
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Cordycepsは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには105件のスターと9件のフォークがあります。

Cordyceps

MCP server for Grasshopper. Give AI agents or scripts direct control over your parametric design canvas and Rhino rendering tools.

Model Context Protocol (MCP) provides a standardized interface for controlling applications — whether from AI assistants or your own code.

Features

  • Full Grasshopper control — add components, wire connections, set values, manage groups
  • Rhino integration — bake geometry, manage layers, apply PBR materials, render scenes
  • Natural language — describe what you want and let AI build it
  • Direct scripting — call tools from Python or any MCP client, no AI required

Requirements

  • Rhino 8.21+ (requires .NET 8)
  • For AI use: Claude Desktop, Claude Code, Cursor, VS Code, or any MCP-compatible assistant
  • For scripting: Any MCP client library (Python, TypeScript, etc.)

Installation

Rhino Package Manager (recommended)

  1. In Rhino 8, run the PackageManager command (or Tools → Package Manager)
  2. Search for Cordyceps and click Install
  3. Restart Rhino

The Package Manager downloads the plugin, places it in the right folder, and unblocks it for you — and future updates are one click.

Manual install

  1. Download Cordyceps.gha — always the current release (see all releases)

  2. Copy to your Grasshopper components folder: File → Special Folders → Components Folder

  3. Unblock the file so Rhino will load it:

    • Windows: right-click → Properties → check "Unblock" → OK
    • macOS: clear the quarantine flag (e.g. xattr -dr com.apple.quarantine <path-to-Cordyceps.gha>)
  4. Restart Rhino

Usage

  1. Drop the Cordyceps component on your canvas (Params → Util → Cordyceps)

    The server starts on port 26929 by default. Optional inputs:

    • HttpPort: Change the HTTP port
    • DebugLevel: Set to 1+ to see request/response traffic in Rhino
  2. Configure your MCP client:

    Claude Desktop uses stdio transport, so it needs the mcp-remote bridge. Requires Node.js.

    Add to your config file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
    json
    {
      "mcpServers": {
        "cordyceps": {
          "command": "npx",
          "args": ["-y", "mcp-remote", "http://127.0.0.1:26929/mcp"]
        }
      }
    }

    Restart Claude Desktop after saving.

    claude mcp add --transport http cordyceps http://127.0.0.1:26929/mcp
    json
    {
      "mcpServers": {
        "cordyceps": {
          "type": "streamable-http",
          "url": "http://127.0.0.1:26929/mcp"
        }
      }
    }
  3. Start building — describe what you want in natural language

Example

Make an animated GIF that shows the full journey from parametric modeling
to photorealistic render. The subject is a small collection of geometric
forms — maybe five or six objects with varied shapes, scales, and
proportions. Arrange them as a pleasing composition.

Cordyceps Showcase

The AI builds everything autonomously — creating parametric geometry in Grasshopper, baking to Rhino, applying PBR materials, configuring the render environment and lighting, and capturing a smooth orbiting animation.

Scripting

Call tools directly from Python or any MCP client library:

python
from mcp import ClientSession

async with ClientSession(transport) as session:
    # Add a slider and circle
    slider = await session.call_tool('gh_canvas', {
        'action': 'add', 'type': 'Number Slider', 'x': 50, 'y': 50
    })
    circle = await session.call_tool('gh_canvas', {
        'action': 'add', 'type': 'Curve/Circle', 'x': 200, 'y': 50
    })

    # Connect slider output to circle radius
    await session.call_tool('gh_wire', {
        'action': 'connect',
        'sourceId': slider['id'], 'sourceParam': '0',
        'targetId': circle['id'], 'targetParam': 'R'
    })

See the MCP Python SDK for transport setup and client details.

Tools

Cordyceps provides 7 tools with over 100 actions — consolidated to minimize context window usage. Related operations are grouped under a single tool with an action parameter.

Grasshopper

ToolDescription
gh_canvasComponents, values, groups, baking, variable parameters, data modifiers (flatten/graft/simplify/reverse)
gh_wireConnection management
gh_documentSave, clear, snapshots (max 20 kept, oldest evicted), solver control, canvas capture (undo/redo are disabled — use snapshots)
gh_scriptScript component configuration
gh_inspectConnection/liveness probe, status, outputs, data tracing, debugging

Rhino

ToolDescription
rhino_sceneObjects, layers, selection, visibility
rhino_renderViewport, camera, materials, lighting, environments, render

Documentation

Cordyceps exposes guides and patterns to MCP clients as resources. Your AI assistant can read these automatically when it needs guidance on data trees, type systems, component patterns, or rendering workflows.

Browse the documentation directly: src/Cordyceps/Knowledge/

Troubleshooting

ProblemSolution
Plugin won't loadVerify Rhino 8.21+. If you installed manually, unblock the .gha file (Windows) or clear its quarantine flag (macOS) — the Package Manager does this for you.
Can't connectEnsure Cordyceps component is on canvas. Check the port.
Claude Desktop can't connectEnsure Node.js is installed. Check Rhino is running with Cordyceps. Restart Claude Desktop after config changes.
Component not foundUse gh_canvas(action='search', query='...') to find exact names.
No command outputSet DebugLevel input to 1 to see traffic in Rhino command history.

Building

bash
dotnet build src/Cordyceps/Cordyceps.csproj -c Release

Only Release builds are supported — a Debug build (the dotnet build default) fails with an error.


Changelog · Inspired by grasshopper-mcp by Alfred Chen · MIT License

インストール

TypingMind
{
  "mcpServers": {
    "cordyceps": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "http://127.0.0.1:26929/mcp"
      ]
    }
  }
}

CordycepsのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Cordycepsに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Cordycepsをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. CordycepsのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "cordyceps": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてCordycepsのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. CordycepsのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Cordycepsを使ってこのタスクを手伝ってもらえますか?
Cordyceps
はい、読みました。
Cordycepsで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

Cordycepsがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にhttp://127.0.0.1:26929/mcpを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にhttp://127.0.0.1:26929/mcpを貼り付けてください。
  2. Cordycepsの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. Cordycepsの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でCordycepsのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でCordycepsのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Cordycepsを使ってこのタスクを手伝ってもらえますか?
Cordyceps
はい、読みました。
Cordycepsで調べた結果をお伝えします。

よくある質問

Cordyceps MCPサーバーは何に使いますか?

Cordycepsは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでCordyceps MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでCordycepsを利用できます。

TypingMindでCordyceps MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Cordycepsを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Cordyceps MCPをTypingMindに接続するにはどうすればよいですか?

Cordycepsは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでCordyceps MCPのどのようなツールを利用できますか?

CordycepsはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Cordyceps MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Cordycepsで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇