Cordyceps logo

Cordyceps

Community
brookstalley

Grasshopper MCP Bridge - Claude takes control of Grasshopper

Publisherbrookstalley
Repositorycordyceps
LanguageC#
Forks
9
Stars
105
Available tools
0
Transport typestdio, streamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Cordyceps exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    105 stars and 9 forks from the linked repository.

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

Installation

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

Use Cordyceps MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Cordyceps is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Cordyceps as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Cordyceps MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cordyceps": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Cordyceps MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Cordyceps MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Cordyceps to help me with this task?
Cordyceps
Sure. I read it.
Here is what I found using Cordyceps.

Option 2: Add an MCP server URL

Use this when Cordyceps is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter http://127.0.0.1:26929/mcp in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste http://127.0.0.1:26929/mcp into the Server URL field.
  2. Enter a connection name for Cordyceps.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Cordyceps connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Cordyceps tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Cordyceps tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Cordyceps to help me with this task?
Cordyceps
Sure. I read it.
Here is what I found using Cordyceps.

Frequently asked questions

What is the Cordyceps MCP server used for?

Cordyceps is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Cordyceps MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Cordyceps with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Cordyceps MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Cordyceps connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Cordyceps MCP to TypingMind?

Cordyceps can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does Cordyceps MCP provide in TypingMind?

Cordyceps exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Cordyceps MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Cordyceps requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇