When used with LLMs that support the MCP protocol, this server enables natural language interaction with gNucleus:\n\n### 1. Text to CAD
"draw a block in CAD"
"draw a block with length=80mm, width=40mm, height=20mm in CAD"
"draw a spur gear shaft in CAD"
"draw an elbow flange with number_bolt_holes=4 in CAD"
2. Text to Assembly
"generate a tapered roller bearing using text-to-cad tool"
3. Result CAD Display
The generated result includes the design spec with Key Parameter, Description and a shared URL with 3D display viewer. The shared URL will expire in 24 hrs.
Claude Desktop Setup# 1. Add or update the Claude Desktop configuration file(claude_desktop_config.json):\n\n### virtual python environment
If you use virtual python environment, use this config:
{
"mcpServers": {
"gnucleus": {
"command": "/ABSOLUTE/PATH/TO/YOUR/text-to-cad-mcp/.venv/bin/python",
"args": [
"/ABSOLUTE/PATH/TO/YOUR/text-to-cad-mcp/main.py"
],
"workingDirectory": "/ABSOLUTE/PATH/TO/YOUR/text-to-cad-mcp",
"env": {
"GNUCLEUS_HOST": "genai.gnucleus.ai",
"GNUCLEUS_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
```\n\n### 2. Save the file and restart Claude Desktop
You should see the gNucleus Text-To-CAD tools in Claude.
## Troubleshooting# CAD Model
If the CAD model looks incorrect or only partially generated, try logging in at https://gnucleus.ai, enter the same prompt, and download the CAD file (e.g., FreeCAD format). Then open it in your CAD software (e.g., FreeCAD). This issue is often caused by incomplete generation of CAD features within the part. You can also report a bug or contact us with the model link and prompt at https://gnucleus.ai/contact.
## Security Considerations
- Secure your `.env` file and never commit it to github
- Run this server in a secure environment