Grasshopper
This is a MCP Server that allows LLM to interact with Rhino and Grasshopper directly.
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
Maintainer
Works with
Installation
Manual Installation
npx gh-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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_serverSet 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 .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"]
}
}
}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.
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.
Grasshopper Alternatives — Similar Developer Tools Servers
Looking for alternatives to Grasshopper? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up Grasshopper in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.