by gNucleus
Generate CAD parts and assemblies from natural language prompts via the gNucleus API.
The server provides a Model Context Protocol (MCP) endpoint that translates free‑form text into editable CAD models using gNucleus’s generative AI models. It supports both individual part creation and full assembly generation.
pip install -r requirements.txt
), and add a .env
file with GNUCLEUS_HOST
and GNUCLEUS_API_KEY
(plus GNUCLEUS_ORG_ID
for enterprise users).python main.py
(or test with npx @modelcontextprotocol/inspector python3 main.py
).text_to_cad(input: str)
tool from any MCP‑compatible client (e.g., Claude Desktop, custom agents).text_to_cad
) can be called from any model that supports MCP.Q: Do I need a paid gNucleus account? A: A free account provides 200 API credits; additional credits require a paid plan.
Q: Which CAD file formats are returned? A: The server returns a viewer link; downloading the model requires logging into gNucleus and using the full feature set (e.g., FreeCAD format).
Q: Can I run the server without a virtual environment?
A: Yes, install the requirements globally and start with python main.py
.
Q: How do I secure my API key?
A: Keep the .env
file out of version control and run the server in a trusted environment.
Q: What if the generated model looks incomplete? A: Re‑run the same prompt on the gNucleus web UI and download the full file for inspection.
gNucleus is a Generative AI platform that transforms text and images into editable CAD models.
This repository contains the gNucleus Text-To-CAD MCP server, which connects to the gNucleus API. It allows MCP clients to generate CAD parts or assemblies from text input using gNucleus’s GenAI models.
Clone this repository
Create and activate a virtual environment (recommended):
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Create a .env
file in the root directory with the following variables:
Invidisual User
GNUCLEUS_HOST="genai.gnucleus.ai"
GNUCLEUS_API_KEY=<your-personal-api-key>
Enterprise User
GNUCLEUS_HOST="genai.gnucleus.ai"
GNUCLEUS_API_KEY=<your-team-key>
GNUCLEUS_ORG_ID=<your-team-id>
Start the MCP server:
python main.py
You can test the MCP server using the inspector by running
npx @modelcontextprotocol/inspector python3 main.py
The following MCP tools are available:
When used with LLMs that support the MCP protocol, this server enables natural language interaction with gNucleus:
i18n support: You can use any language as the prompt, in general english works better than other languages, but it should work in general.
The generated result include the design spec with Key Parameter, Description and a shared URL with 3D display viewer. The shared URL will be expired in 24 hrs.
If you use virtual python enviroment, 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",
}
}
}
}
If you use global python enviroment and also installed the requirments.txt into your global python enviroment, use this config
{
"mcpServers": {
"gnucleus": {
"command": "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",
}
}
}
}
You should see the gNucleus Text-To-CAD tools in Claude
Chat with Claude and add "in CAD" in each prompt or tell Claude to use "text-to-cad tools"can help Claude to trigger the Text-To-CAD tool better.
The generated result include the design spec with Key Parameter, Description and a shared link with 3D display viewer. The shared URL will be expired in 24 hrs. If Claude didn't output the shared URL in the chat message, you can ask Claude to always output the shared URL.
Click the shared URL, it will display the CAD model in gNucleus 3D viewer, you can
Example 1: Text To CAD Part
Input and CAD Part design spec
CAD Part in 3D viewer
Example 2: Text To CAD Assembly
Input and CAD Assembly design spec
CAD Assembly in 3D viewer
Note: Downloading CAD models from the viewer is not yet supported. To download the model, please log in to https://gnucleus.ai and try the same prompt using the full feature set.
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.
.env
file and never commit it to githubPlease log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by danny-avila
Provides a customizable ChatGPT‑like web UI that integrates dozens of AI models, agents, code execution, image generation, web search, speech capabilities, and secure multi‑user authentication, all open‑source and ready for self‑hosting.
by ahujasid
BlenderMCP integrates Blender with Claude AI via the Model Context Protocol (MCP), enabling AI-driven 3D scene creation, modeling, and manipulation. This project allows users to control Blender directly through natural language prompts, streamlining the 3D design workflow.
by pydantic
Enables building production‑grade generative AI applications using Pydantic validation, offering a FastAPI‑like developer experience.
by GLips
Figma-Context-MCP is a Model Context Protocol (MCP) server that provides Figma layout information to AI coding agents. It bridges design and development by enabling AI tools to directly access and interpret Figma design data for more accurate and efficient code generation.
by mcp-use
Easily create and interact with MCP servers using custom agents, supporting any LLM with tool calling and offering multi‑server, sandboxed, and streaming capabilities.
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
by lharries
WhatsApp MCP Server is a Model Context Protocol (MCP) server for WhatsApp that allows users to search, read, and send WhatsApp messages (including media) through AI models like Claude. It connects directly to your personal WhatsApp account via the WhatsApp web multi-device API and stores messages locally in a SQLite database.
by idosal
GitMCP is a free, open-source remote Model Context Protocol (MCP) server that transforms any GitHub project into a documentation hub, enabling AI tools to access up-to-date documentation and code directly from the source to eliminate "code hallucinations."
by Klavis-AI
Klavis AI provides open-source Multi-platform Control Protocol (MCP) integrations and a hosted API for AI applications. It simplifies connecting AI to various third-party services by managing secure MCP servers and authentication.