grasshopper parametric design.com
grasshopper parametric design.com logo

Grasshopper Parametric Design

Connects Grasshopper parametric design software with Claude through a bidirectional TCP server and Python bridge, enabli...

Created byApr 23, 2025

Grasshopper MCP Bridge

Grasshopper MCP Bridge is a bridging server that connects Grasshopper and Claude Desktop using the Model Context Protocol (MCP) standard.

Features

  • Connects Grasshopper and Claude Desktop through the MCP protocol
  • Provides intuitive tool functions for creating and connecting Grasshopper components
  • Supports high-level intent recognition, automatically creating complex component patterns from simple descriptions
  • Includes a component knowledge base that understands parameters and connection rules for common components
  • Provides component guidance resources to help Claude Desktop correctly connect components

System Architecture

The system consists of the following parts:
  1. Grasshopper MCP Component (GH_MCP.gha): A plugin installed in Grasshopper that provides a TCP server to receive commands
  1. Python MCP Bridge Server: A bridge server that connects Claude Desktop and the Grasshopper MCP component
  1. Component Knowledge Base: JSON files containing component information, patterns, and intents

Installation Instructions

Prerequisites

  • Rhino 7 or higher
  • Grasshopper
  • Python 3.8 or higher
  • Claude Desktop

Installation Steps

  1. Install the Grasshopper MCP ComponentMethod 1: Download the pre-compiled GH_MCP.gha file (Recommended)Download the GH_MCP.gha file directly from the GitHub repository and copy it to the Grasshopper components folder:Method 2: Build from sourceIf you prefer to build from source, clone the repository and build the C# project using Visual Studio.
  1. Install the Python MCP Bridge ServerMethod 1: Install from PyPI (Recommended)The simplest method is to install directly from PyPI using pip:Method 2: Install from GitHubYou can also install the latest version from GitHub:Method 3: Install from Source CodeIf you need to modify the code or develop new features, you can clone the repository and install:Install a Specific VersionIf you need to install a specific version, you can use:Or install from a specific GitHub tag:

Usage

  1. Start Rhino and GrasshopperLaunch Rhino and open Grasshopper.
  1. Add the GH_MCP Component to Your CanvasFind the GH_MCP component in the Grasshopper component panel and add it to your canvas.
  1. Start the Python MCP Bridge ServerOpen a terminal and run:
  1. Connect Claude Desktop to the MCP BridgeMethod 1: Manual ConnectionIn Claude Desktop, connect to the MCP Bridge server using the following settings:Method 2: Configure Claude Desktop to Auto-Start the BridgeYou can configure Claude Desktop to automatically start the MCP Bridge server by modifying its configuration:This configuration tells Claude Desktop to use the command python -m grasshopper_mcp.bridge to start the MCP server.
  1. Start Using Grasshopper with Claude DesktopYou can now use Claude Desktop to control Grasshopper through natural language commands.

Example Commands

Here are some example commands you can use with Claude Desktop:
  • "Create a circle with radius 5 at point (0,0,0)"
  • "Connect the circle to a extrude component with a height of 10"
  • "Create a grid of points with 5 rows and 5 columns"
  • "Apply a random rotation to all selected objects"

Troubleshooting

If you encounter issues, check the following:
  1. GH_MCP Component Not Loading
  1. Bridge Server Won't Start
  1. Claude Desktop Can't Connect
  1. Commands Not Executing

Development

Project Structure

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the Rhino and Grasshopper community for their excellent tools
  • Thanks to Anthropic for Claude Desktop and the MCP protocol

Contact

For questions or support, please open an issue on the GitHub repository.

Grasshopper MCP Bridge

Grasshopper MCP Bridge is a bridging server that connects Grasshopper and Claude Desktop using the Model Context Protocol (MCP) standard.

Features

  • Connects Grasshopper and Claude Desktop through the MCP protocol
  • Provides intuitive tool functions for creating and connecting Grasshopper components
  • Supports high-level intent recognition, automatically creating complex component patterns from simple descriptions
  • Includes a component knowledge base that understands parameters and connection rules for common components
  • Provides component guidance resources to help Claude Desktop correctly connect components

System Architecture

The system consists of the following parts:
  1. Grasshopper MCP Component (GH_MCP.gha): A plugin installed in Grasshopper that provides a TCP server to receive commands
  1. Python MCP Bridge Server: A bridge server that connects Claude Desktop and the Grasshopper MCP component
  1. Component Knowledge Base: JSON files containing component information, patterns, and intents

Installation Instructions

Prerequisites

  • Rhino 7 or higher
  • Grasshopper
  • Python 3.8 or higher
  • Claude Desktop

Installation Steps

  1. Install the Grasshopper MCP ComponentMethod 1: Download the pre-compiled GH_MCP.gha file (Recommended)Download the GH_MCP.gha file directly from the GitHub repository and copy it to the Grasshopper components folder:Method 2: Build from sourceIf you prefer to build from source, clone the repository and build the C# project using Visual Studio.
  1. Install the Python MCP Bridge ServerMethod 1: Install from PyPI (Recommended)The simplest method is to install directly from PyPI using pip:Method 2: Install from GitHubYou can also install the latest version from GitHub:Method 3: Install from Source CodeIf you need to modify the code or develop new features, you can clone the repository and install:Install a Specific VersionIf you need to install a specific version, you can use:Or install from a specific GitHub tag:

Usage

  1. Start Rhino and GrasshopperLaunch Rhino and open Grasshopper.
  1. Add the GH_MCP Component to Your CanvasFind the GH_MCP component in the Grasshopper component panel and add it to your canvas.
  1. Start the Python MCP Bridge ServerOpen a terminal and run:
  1. Connect Claude Desktop to the MCP BridgeMethod 1: Manual ConnectionIn Claude Desktop, connect to the MCP Bridge server using the following settings:Method 2: Configure Claude Desktop to Auto-Start the BridgeYou can configure Claude Desktop to automatically start the MCP Bridge server by modifying its configuration:This configuration tells Claude Desktop to use the command python -m grasshopper_mcp.bridge to start the MCP server.
  1. Start Using Grasshopper with Claude DesktopYou can now use Claude Desktop to control Grasshopper through natural language commands.

Example Commands

Here are some example commands you can use with Claude Desktop:
  • "Create a circle with radius 5 at point (0,0,0)"
  • "Connect the circle to a extrude component with a height of 10"
  • "Create a grid of points with 5 rows and 5 columns"
  • "Apply a random rotation to all selected objects"

Troubleshooting

If you encounter issues, check the following:
  1. GH_MCP Component Not Loading
  1. Bridge Server Won't Start
  1. Claude Desktop Can't Connect
  1. Commands Not Executing

Development

Project Structure

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the Rhino and Grasshopper community for their excellent tools
  • Thanks to Anthropic for Claude Desktop and the MCP protocol

Contact

For questions or support, please open an issue on the GitHub repository.