loading…
Search for a command to run...
loading…
Translates natural language commands into structured geometric operations for a simulated CAD engine using LLMs. It enables users to create shapes, modify dimen
Translates natural language commands into structured geometric operations for a simulated CAD engine using LLMs. It enables users to create shapes, modify dimensions, and perform 3D operations like extrusion through the Model Context Protocol.
A local-first, open-source MVP of an MCP (Model Context Protocol) type server that uses a cloud LLM (via Groq's free API running Llama 3.3) to translate natural language user commands into structured geometric operations for a simulated CAD engine.
Install the project dependencies:
cd mcp-cad-server
pip3 install -r requirements.txt
Start the FastAPI backend server with your Groq key:
export GROQ_API_KEY='your-groq-api-key-here'
python3 -m uvicorn app.main:app --reload
The server runs by default on http://localhost:8000.
You can easily interact with the running CAD Server through test_cli.py:
python3 test_cli.py "Increase hole diameter by 5mm"
Expected JSON response:
{
"status": "success",
"message": "Successfully modified hole to 5.0mm.",
"data": {
"feature": "hole",
"new_value": 5.0,
"unit": "mm"
}
}
More examples:
python3 test_cli.py "Create a sphere"
python3 test_cli.py "Extrude the top face by 50mm"
python3 test_cli.py "What is the volume?"
create_shape (shape_type, dimensions) — Generates box, sphere, cylinder, cone, or torusmodify_dimension (feature, value, unit)extrude (face, distance, unit)get_volume (unit)Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"mcp-server-for-cad": {
"command": "npx",
"args": []
}
}
}