Skip to main content

An MCP plugin for creating 3D models with Claude AI using CadQuery

Project description

Claude CAD

A Model Context Protocol (MCP) plugin for creating 3D models with Claude AI using CadQuery.

Overview

Claude CAD is an MCP plugin that allows Claude AI to create 3D models based on text prompts. It leverages the powerful parametric modeling capabilities of CadQuery, a Python-based CAD scripting library, to generate complex 3D models that can be exported in various formats (STEP, STL, etc.).

Features

  • Generate 3D models from natural language descriptions
  • Parametric modeling using CadQuery's Python API
  • Support for primitives, boolean operations, extrusions, and more
  • Export models in various formats (STEP, STL, etc.)
  • Full integration with Claude AI via MCP

Installation

Prerequisites

  • Python 3.9+
  • CadQuery
  • Model Context Protocol SDK
  • uv (Modern Python package installer)

Install using uv

# Install uv if not already installed
pip install uv

# Create a virtual environment
uv venv

# Activate the virtual environment
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install from PyPI
uv pip install claude-cad

# Or install from source
git clone https://github.com/bronson/claude_cad.git
cd claude_cad
uv pip install -e .

For detailed installation instructions, see INSTALL.md.

Configuration

To use Claude CAD with Claude, you need to update your Claude configuration file:

{
  "mcpServers": {
    "claude_cad": {
      "command": "python",
      "args": ["-m", "claude_cad.server"],
      "env": {}
    }
  }
}

Usage

Once installed and configured, you can ask Claude to create 3D models using natural language:

Please create a 3D model of a small gear with 10 teeth and a 20mm diameter.

Claude will use the Claude CAD MCP plugin to generate the model and provide a download link or preview.

Examples

See the examples directory for sample models and prompts:

  • simple_box.py: Creates a basic box primitive
  • lego_brick.py: Creates a LEGO-compatible brick
  • text_to_model.py: Demonstrates text-to-3D-model generation

Development

To set up a development environment:

# Clone the repository
git clone https://github.com/bronson/claude_cad.git
cd claude_cad

# Create a virtual environment
uv venv

# Install dependencies
uv pip install -r requirements.txt

# Install in development mode
uv pip install -e .

# Run tests
python -m unittest discover tests

License

Apache 2.0

Credits

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

claude_cad-0.1.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

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

claude_cad-0.1.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file claude_cad-0.1.0.tar.gz.

File metadata

  • Download URL: claude_cad-0.1.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for claude_cad-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9dcb8234cee72bbe143a9e5e7e47e3b43961af456a500fde00b7578278ae2436
MD5 4101c44e004b6792c15d426c1cebb4d2
BLAKE2b-256 6cb6979bc0b7457532b0494088a8e11d0aa43b665c0e2f4b5c865ba82d92f58e

See more details on using hashes here.

File details

Details for the file claude_cad-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: claude_cad-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for claude_cad-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6428838d316fa551b4f5284997ab8653cec7a5e111b84359182b360a6b14c1dd
MD5 fb6b12d424eb7f4a124e08d7491e6029
BLAKE2b-256 2c5641a0a7c1758963fa07f84a84c31b1dc6e734df963d09ddae567a7ed901da

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