by rishigundakaram
A Model Context Protocol (MCP) server that provides CAD generation and verification tools for Claude Code. This server enables conversational 3D modeling by exposing CAD-Query functionality through MCP tools.
verify_cad_query
- Validates CAD-Query generated models against criteriagenerate_cad_query
- (Stub implementation) Generates CAD-Query Python scripts from descriptions# Install dependencies uv sync # For development with CAD verification capabilities uv sync --extra cad # Test the server uv run python tests/test_server.py # Run with MCP Inspector (interactive testing) uv run mcp dev server.py
Add this to your Claude Desktop configuration file:
Location: ~/Library/Application Support/Claude/claude_desktop_config.json
Location: %APPDATA%/Claude/claude_desktop_config.json
*Configuration content*
verify_cad_query
Validates a CAD-Query generated model against specified criteria.
Parameters:
file_path
(string): Path to the CAD-Query Python fileverification_criteria
(string): Description of what to verifyExample:
*Configuration content*
Returns:
*Configuration content*
generate_cad_query
(Stub Implementation)Generates CAD-Query Python scripts from natural language descriptions.
NOTE: Currently returns a stub response indicating the feature is not yet implemented.
Parameters:
description
(string): Natural language description of the desired 3D modelparameters
(string, optional): Specific dimensions or constraintsExample:
*Configuration content*
Returns:
*Configuration content*
All CAD-Query scripts must end with show_object(result)
:
import cadquery as cq result = cq.Workplane("XY").box(10, 10, 10) show_object(result) # Required for processing
# Test server functionality uv run python tests/test_server.py # Interactive testing with MCP Inspector uv run mcp dev server.py # Run evaluations uv run python evaluations/evaluate_verify.py
The current verify_cad_query
implementation is a basic validator. You can enhance it to:
# formatting
uvx rff format
# running the MCP server
npx @modelcontextprotocol/inspector \
uv \
--directory $(pwd) \
run \
server.py
No version information available
0 contributors