gNucleus Text To CAD MCP server logo

gNucleus Text To CAD MCP server

Community
gNucleus

gNucleus Text To CAD MCP server

PublishergNucleus
Repositorytext-to-cad-mcp
LanguagePython
Forks
3
Stars
18
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    gNucleus Text To CAD MCP server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    18 stars and 3 forks from the linked repository.

gNucleus Text To CAD MCP server

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.

Prerequisites

  • Python 3.7+
  • gNucleus Developer Accounts with:
    • gNucleus API key

Setup

  1. Clone this repository

  2. Create and activate a virtual environment (recommended):

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. 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>

Obtaining gNucleus API KEY

  1. gNucleus Account: sign-up on https://gnucleus.ai/
  2. API KEY: Create a personal access token in gNucleus:
    • Go to User Profile (click your user icon in the top right)

    • Go to "Account"

    • Click "Generate New API Key" to generate a new API KEY

    • Each account start with 200 free API credit

Running the Server

Start the MCP server:

python main.py

You can test the MCP server using the inspector by running

npx @modelcontextprotocol/inspector python3 main.py

Available MCP Tools

The following MCP tools are available:

  • text_to_cad(input: str) - Generate CAD from input

Example Prompt with LLMs

When used with LLMs that support the MCP protocol, this server enables natural language interaction with gNucleus:

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 a spur gear shaft with number_teeth=20 in CAD"
  • "draw an elbow flange in CAD"
  • "draw an elbow flange with number_bolt_holes=4 in CAD"

i18n support: You can use any language as the prompt, in general english works better than other languages, but it should work in general.

  • Chinese: "在CAD中绘制一个大小为10mm的方块"
  • Spanish: "Dibuja un bloque cuadrado de 10 mm en CAD"

2. Text to Assembly

  • "generate a tapered roller bearing using text-to-cad tool"
  • "draw a differential gear box in CAD"

3. Result CAD Display

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.

Claude Desktop Setup

1. Add or update the Claude Desktop configuration file(claude_desktop_config.json):

virtual python environment

If you use virtual python enviroment, use this config:

json
{
  "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",
      }
    }
  }
}

global python environment

If you use global python enviroment and also installed the requirments.txt into your global python enviroment, use this config

json
{
  "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",
      }
    }
  }
}

2. Save the file and restart Claude Desktop

You should see the gNucleus Text-To-CAD tools in Claude gNucleus Text-To-CAD Tool

3. Chat with Claude to generate the CAD model

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

  • Rotate by holding the left mouse button
  • Pan by holding the right mouse button
  • Zoom using the middle mouse button

Example 1: Text To CAD Part

  • Input and CAD Part design spec Chat with Claude to generate CAD

  • CAD Part in 3D viewer Display the generated CAD model in gNucleus Viewer

Example 2: Text To CAD Assembly

  • Input and CAD Assembly design spec Chat with Claude to generate CAD Assembly

  • CAD Assembly in 3D viewer Display the generated CAD Assembly in gNucleus 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.

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

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "gnucleus-text-to-cad-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use gNucleus Text To CAD MCP server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once gNucleus Text To CAD MCP server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add gNucleus Text To CAD MCP server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the gNucleus Text To CAD MCP server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "gnucleus-text-to-cad-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "text-to-cad-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the gNucleus Text To CAD MCP server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the gNucleus Text To CAD MCP server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use gNucleus Text To CAD MCP server to help me with this task?
gNucleus Text To CAD MCP server
Sure. I read it.
Here is what I found using gNucleus Text To CAD MCP server.

Frequently asked questions

What is the gNucleus Text To CAD MCP server MCP server used for?

gNucleus Text To CAD MCP server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use gNucleus Text To CAD MCP server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use gNucleus Text To CAD MCP server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use gNucleus Text To CAD MCP server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With gNucleus Text To CAD MCP server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect gNucleus Text To CAD MCP server MCP to TypingMind?

gNucleus Text To CAD MCP server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does gNucleus Text To CAD MCP server MCP provide in TypingMind?

gNucleus Text To CAD MCP server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use gNucleus Text To CAD MCP server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If gNucleus Text To CAD MCP server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇