Conversational 3D modeling using CAD-Query via MCP. Generate parametric CAD models from natural language descriptions, verify designs, and export STL files for 3D printing.
Generate parametric 3D CAD models from natural language using CAD-Query via Model Context Protocol.
This skill enables conversational 3D modeling using an external CAD-Query MCP server. Generate parametric CAD models from descriptions, verify designs, and export STL files for 3D printing.
Before generating any CAD model, thoroughly review the documentation:
1. Read `docs/cadquery/classreference.md` for CAD-Query API methods
2. Read `docs/cadquery/primer.md` for core concepts
3. Read `docs/cadquery/examples.md` for modeling patterns
4. Study `examples/` directory for similar models to what you're creating
Use the Read tool to search documentation for specific techniques.
Use the `generate_cad_query` MCP tool with clear, detailed descriptions:
```python
generate_cad_query(
description="Create a coffee mug with a handle, 10cm tall and 8cm diameter, wall thickness 3mm",
parameters="height=100mm, diameter=80mm, wall_thickness=3mm, handle_width=15mm"
)
```
**Important Requirements:**
**Example Script Structure:**
```python
import cadquery as cq
result = cq.Workplane("XY").box(10, 10, 10)
show_object(result) # Required for MCP server
```
**ALWAYS** verify generated models before presenting to users:
```python
verify_cad_query(
file_path="outputs/coffee_mug.py",
verification_criteria="coffee mug with handle, 10cm height, 8cm diameter, 3mm wall thickness"
)
```
**Never skip verification** - it ensures quality and correctness.
Only after verification passes:
1. Inform user of successful generation
2. Describe the generated model
3. Provide paths to output files:
- `{model_name}.py` - CAD-Query Python script
- `{model_name}.stl` - STL file for 3D printing
- `{model_name}.step` - STEP file for CAD software
Generates CAD-Query Python scripts from natural language.
**Parameters:**
**Note:** Currently stub implementation - manually create scripts based on documentation and examples when needed.
Validates generated CAD models before presentation.
**Parameters:**
Study these samples in `examples/`:
1. **Always study documentation first** - Review relevant docs before generating models
2. **Use clear descriptions** - Provide detailed, unambiguous descriptions to MCP tools
3. **Specify dimensions** - Include precise measurements and constraints
4. **Always verify** - Never present unverified models to users
5. **Reference examples** - Study similar models in `examples/` directory
6. **Follow script requirements** - End all scripts with `show_object(result)`
```python
result = cq.Workplane("XY").box(10, 10, 10)
result = cq.Workplane("XY").circle(5).extrude(10)
result = cq.Workplane("XY").sphere(5)
```
```python
result = part1.union(part2)
result = base.cut(hole)
result = part.edges().fillet(1)
```
```python
result = cq.Workplane("XZ").lineTo(10, 0).lineTo(10, 20).lineTo(5, 20).close().revolve()
```
All generated files are saved to `outputs/`:
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/cad-query-workspace-mcp/raw