Grasshopper

v1.0.0Developer Toolsstable

This is a MCP Server that allows LLM to interact with Rhino and Grasshopper directly.

gh-mcp-servermcpai-integration
Share:
31
Stars
0
Downloads
0
Weekly
0/5

What is Grasshopper?

Grasshopper is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this is a mcp server that allows llm to interact with rhino and grasshopper directly.

This is a MCP Server that allows LLM to interact with Rhino and Grasshopper directly.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • This is a MCP Server that allows LLM to interact with Rhino

Use Cases

Enable LLMs to interact directly with Rhino and Grasshopper.
Automate parametric design workflows through conversational AI interface.
veoery

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 7, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx gh-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Grasshopper

The Grasshopper MCP Server enables AI assistants to interact directly with Rhino 3D and Grasshopper parametric design software, bridging conversational AI with professional 3D modeling workflows. It exposes tools for analyzing .3dm CAD files, examining scene objects, and automatically generating GHPython scripts in Grasshopper based on natural language descriptions, enabling architects and designers to drive parametric design through conversation. The server runs locally alongside a Rhino instance and communicates via the CodeListener mechanism in RhinoPython.

Prerequisites

  • Rhino 7 or Rhino 8 installed on your machine
  • RhinoPython available in your Rhino installation
  • uv package manager installed (see docs.astral.sh/uv for installation)
  • Python 3.8+ (managed by uv)
  • Claude Desktop or another MCP-compatible AI client
1

Clone the repository

Clone the GH MCP Server repository to your local machine.

git clone [email protected]:veoery/GH_mcp_server.git
cd GH_mcp_server
2

Set up the virtual environment and install dependencies

Create a uv virtual environment and install the package in editable mode. Use the appropriate command for your operating system.

# macOS/Linux:
uv venv && source .venv/bin/activate && uv pip install -e .

# Windows:
uv venv && .venv\Scripts\activate && uv pip install -e .
3

Configure Claude Desktop

Add the server to your Claude Desktop config file. Use absolute paths for both the Python interpreter and the run_server.py script.

{
  "mcpServers": {
    "grasshopper": {
      "command": "/absolute/path/to/GH_mcp_server/.venv/bin/python",
      "args": ["/absolute/path/to/GH_mcp_server/run_server.py"]
    }
  }
}
4

Launch Rhino and activate CodeListener

Open Rhino 7 or 8, then type 'CodeListener' in the Rhino command line and press Enter. This starts the listener that allows the MCP server to send Python code to Rhino for execution.

5

Restart Claude Desktop and start designing

Restart Claude Desktop to load the server. With Rhino running and CodeListener active, you can now ask Claude to analyze CAD files or generate Grasshopper scripts.

Grasshopper Examples

Client configuration

Claude Desktop configuration for the Grasshopper MCP Server. Replace the paths with your actual absolute paths.

{
  "mcpServers": {
    "grasshopper": {
      "command": "/Users/yourname/GH_mcp_server/.venv/bin/python",
      "args": ["/Users/yourname/GH_mcp_server/run_server.py"]
    }
  }
}

Prompts to try

Example prompts for analyzing CAD files and generating parametric Grasshopper scripts.

- "Read the file '/Users/me/models/tower.3dm' and analyze the objects in the scene"
- "Write GHPython to create a parametric tower inspired by Zaha Hadid's style with 20 floors"
- "Generate a Grasshopper script that creates a Voronoi surface from a grid of points"
- "Analyze the geometry in my current Rhino scene and describe the objects and their properties"
- "Write GHPython that creates a twisted rectangular tower with variable floor plate sizes"

Troubleshooting Grasshopper

CodeListener not responding or Rhino not executing scripts

Ensure Rhino is running before starting Claude Desktop, and that you have typed 'CodeListener' in the Rhino command line and pressed Enter. The CodeListener command must be re-run each time Rhino restarts. Check Rhino's Python editor for any error messages.

Virtual environment Python not found at the configured path

Run 'ls /path/to/GH_mcp_server/.venv/bin/' to verify the Python executable exists. If the .venv was created without the right Python version, recreate it with 'uv venv --python 3.10' and reinstall with 'uv pip install -e .'.

Generated GHPython scripts fail to run in Grasshopper

Ensure you are using Rhino 7 or 8 — earlier versions have limited GHPython support. Complex scripts may require Grasshopper to be open with a GHPython component already placed on the canvas. Provide more specific constraints in your prompts to get scripts compatible with your Rhino version.

Frequently Asked Questions about Grasshopper

What is Grasshopper?

Grasshopper is a Model Context Protocol (MCP) server that this is a mcp server that allows llm to interact with rhino and grasshopper directly. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Grasshopper?

Follow the installation instructions on the Grasshopper GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Grasshopper?

Grasshopper works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Grasshopper free to use?

Yes, Grasshopper is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "gh-mcp-server": { "command": "npx", "args": ["-y", "gh-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Grasshopper?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides