Notion
HTTP-SSEA bridge server connecting Grasshopper and Claude Desktop using MCP protocol.
A bridge server connecting Grasshopper and Claude Desktop using MCP protocol.
Grasshopper MCP Bridge is a bridging server that connects Grasshopper and Claude Desktop using the Model Context Protocol (MCP) standard.
The system consists of the following parts:
Install the Grasshopper MCP Component
Method 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:
%APPDATA%\Grasshopper\Libraries\
Method 2: Build from source
If you prefer to build from source, clone the repository and build the C# project using Visual Studio.
Install the Python MCP Bridge Server
Method 1: Install from PyPI (Recommended)
The simplest method is to install directly from PyPI using pip:
pip install grasshopper-mcp
Method 2: Install from GitHub
You can also install the latest version from GitHub:
pip install git+https://github.com/alfredatnycu/grasshopper-mcp.git
Method 3: Install from Source Code
If you need to modify the code or develop new features, you can clone the repository and install:
git clone https://github.com/alfredatnycu/grasshopper-mcp.git
cd grasshopper-mcp
pip install -e .
Install a Specific Version
If you need to install a specific version, you can use:
pip install grasshopper-mcp==0.1.0
Or install from a specific GitHub tag:
pip install git+https://github.com/alfredatnycu/[email protected]
Start Rhino and Grasshopper
Launch Rhino and open Grasshopper.
Add the GH_MCP Component to Your Canvas
Find the GH_MCP component in the Grasshopper component panel and add it to your canvas.
Start the Python MCP Bridge Server
Open a terminal and run:
python -m grasshopper_mcp.bridge
Note: The command
grasshopper-mcpmight not work directly due to Python script path issues. Usingpython -m grasshopper_mcp.bridgeis the recommended and more reliable method.
Connect Claude Desktop to the MCP Bridge
Method 1: Manual Connection
In Claude Desktop, connect to the MCP Bridge server using the following settings:
Method 2: Configure Claude Desktop to Auto-Start the Bridge
You can configure Claude Desktop to automatically start the MCP Bridge server by modifying its configuration:
"grasshopper": { "command": "python", "args": ["-m", "grasshopper_mcp.bridge"] }
This configuration tells Claude Desktop to use the command python -m grasshopper_mcp.bridge to start the MCP server.
Start Using Grasshopper with Claude Desktop
You can now use Claude Desktop to control Grasshopper through natural language commands.
Here are some example commands you can use with Claude Desktop:
If you encounter issues, check the following:
GH_MCP Component Not Loading
Bridge Server Won't Start
grasshopper-mcp command doesn't work, use python -m grasshopper_mcp.bridge insteadClaude Desktop Can't Connect
Commands Not Executing
grasshopper-mcp/
├── grasshopper_mcp/ # Python bridge server
│ ├── __init__.py
│ └── bridge.py # Main bridge server implementation
├── GH_MCP/ # Grasshopper component (C#)
│ └── ...
├── releases/ # Pre-compiled binaries
│ └── GH_MCP.gha # Compiled Grasshopper component
├── setup.py # Python package setup
└── README.md # This file
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or support, please open an issue on the GitHub repository.