cad-query-workspace
cad-query-workspace is a shell environment designed for querying CAD data. Users can easily execute queries on CAD models to extract the necessary information. This tool streamlines the manipulation of CAD data and supports the design process.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
29
Forks
1
Issues
1
AI 3D Print - Claude Code Workspace
A Claude Code workspace for conversational 3D modeling using CAD-Query via MCP (Model Context Protocol). This workspace provides documentation, examples, and structure for Claude to generate parametric CAD models that can be exported as STL files for 3D printing.
Features
- CAD-Query Documentation: Complete searchable reference documentation for Claude to use
- Example Models: Sample CAD-Query scripts demonstrating various modeling techniques
- MCP Integration: Uses CAD-Query MCP server for model generation and verification
- Output Management: Organized structure for generated STL and visualization files
Prerequisites
This workspace requires a CAD-Query MCP server to be running. The MCP server handles:
- CAD-Query code generation (
generate_cad_querytool) - Model verification (
verify_cad_querytool) - STL/STEP file exports
- Visualization generation
Workspace Structure
├── docs/cadquery/ # CAD-Query reference documentation (for Claude)
├── examples/ # Sample CAD-Query scripts
├── outputs/ # Generated STL files and visualizations
└── CLAUDE.md # Instructions for Claude Code
Usage for Claude Code
- Reference Documentation: Use
docs/cadquery/to understand CAD-Query syntax and methods - Study Examples: Review
examples/for CAD modeling patterns and techniques - Use MCP Tools: Call MCP server tools to generate and verify CAD models
- Output Files: Generated STL files will be saved to
outputs/directory
Example Workflow
1. Claude references docs/cadquery/classreference.md for Workplane methods
2. Claude studies examples/box.py for basic modeling patterns
3. Claude uses generate_cad_query MCP tool to create new CAD script
4. Claude uses verify_cad_query MCP tool to validate the generated model
5. MCP server exports STL file to outputs/ directory
Example Models
The examples/ directory contains sample CAD-Query scripts:
box.py- Simple box with holecoffee_mug.py- Coffee mug with handledonut.py- Torus shapesnowman.py- Multi-sphere assembly
CAD-Query Script Requirements
All CAD-Query scripts must end with show_object(result) for compatibility:
import cadquery as cq
result = cq.Workplane("XY").box(10, 10, 10)
show_object(result) # Required for processing
Documentation
- Claude Instructions: See
CLAUDE.mdfor detailed usage guidelines - CAD-Query Reference: Browse
docs/cadquery/for comprehensive API documentation - Documentation Guide: See
docs/README.mdfor navigation help
Development
This workspace includes basic development tools:
# Run tests
uv run pytest
# Code quality checks
./run_lint.sh
0
Followers
0
Repositories
0
Gists
0
Total Contributions
awesome-mcp-lists is a curated list of containerized MCP servers, clients, and toolkits. This repository provides resources across various categories, including DevOps, infrastructure, databases, and web content. It particularly promotes the use of MCP with Docker, making it a highly valuable resource for developers and engineers looking to leverage containerization in their workflows.
The rust-analyzer-mcp-server is an MCP server that provides advanced Rust language analysis capabilities. It allows AI assistants and other MCP clients to access features such as diagnostics, navigation to symbol definitions, code completions, and workspace analysis. This tool is highly beneficial for developers as it enables comprehensive analysis of entire Rust projects.