Skip to main content

Rhino integration through the Model Context Protocol

Project description

RhinoClaw Server

Python MCP server that connects AI agents to Rhino 3D via the Model Context Protocol.

Overview

This server bridges AI agents (Claude, Cursor, etc.) to Rhino through:

  • FastMCP: Python MCP implementation
  • TCP Socket: Communication with Rhino plugin on localhost:1999

Installation

# Install uv (if not already installed)
# macOS: brew install uv
# Windows: powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# Install dependencies
cd rhinoclaw_server
uv pip install -e .

Usage

# Development mode
uv run python -m rhinoclaw

# Or via uvx (installed)
uvx rhinoclaw

Note: Start the Rhino plugin first (mcpstart in Rhino command line).

Project Structure

rhinoclaw_server/
├── src/rhinoclaw/
│   ├── server.py          # Main server, FastMCP setup
│   ├── tools/             # MCP tool implementations
│   │   ├── create_object.py
│   │   ├── modify_object.py
│   │   ├── get_document_info.py
│   │   └── ...
│   ├── utils/             # Helper utilities
│   └── prompts/           # AI prompts
├── dev/                   # Development scripts
│   ├── dev_test.py        # Basic testing
│   └── dev_castle.py      # Example: castle generation
└── pyproject.toml         # Package configuration

Available Tools

For the complete and up-to-date tool list, see USAGE.md.

Categories:

  • System: ping, get_document_info, get_logs, set_debug_mode
  • Object Creation: create_object, create_objects, create_text, create_text_dot
  • Object Manipulation: modify_object, delete_object, select_objects, get_object_properties, set_object_properties
  • Boolean Operations: boolean_operation (union, difference, intersection)
  • Transform: copy_object, mirror_object, array_linear, array_polar
  • Curves: offset_curve, fillet_curves, chamfer_curves
  • Surfaces: loft_curves, extrude_curve, revolve_curve
  • Dimensions: create_linear_dimension, create_angular_dimension, create_radial_dimension
  • Layers & Materials: create_layer, create_material, assign_material_to_layer
  • Scripts: execute_rhinoscript_python_code

Development

# Run tests
uv run python dev/dev_test.py

# Build package
uv build

# Publish to PyPI
uv publish

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rhinoclaw-0.7.1.tar.gz (570.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rhinoclaw-0.7.1-py3-none-any.whl (579.5 kB view details)

Uploaded Python 3

File details

Details for the file rhinoclaw-0.7.1.tar.gz.

File metadata

  • Download URL: rhinoclaw-0.7.1.tar.gz
  • Upload date:
  • Size: 570.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rhinoclaw-0.7.1.tar.gz
Algorithm Hash digest
SHA256 9281892e9d6f34c1c97210622f2f7af9a8207a7667a4a89117eb1c01c35bdd8f
MD5 7af15422023e398c61362e43fbae7895
BLAKE2b-256 734a92d64256f0da61a88be7bdbebe3490f6a8bb5507ff8c275cb65a53b96b05

See more details on using hashes here.

File details

Details for the file rhinoclaw-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: rhinoclaw-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 579.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rhinoclaw-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de1e6ebdf841be2d7f6eababc61ba581e060dc4c97078b13dda5788dbd83c04f
MD5 0e13ddbca927266f7ba3054c3c3909f8
BLAKE2b-256 04131c28730aac0021797d0a3822cb8a764d9a49971cc9ce1cae33d1b2b1890f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page