Logo di gNucleus Text To CAD MCP server

gNucleus Text To CAD MCP server

Community
gNucleus

gNucleus Text To CAD MCP server

Pubblicato dagNucleus
Repositorytext-to-cad-mcp
LinguaPython
Fork
3
Stelle
18
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    gNucleus Text To CAD MCP server mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 18; fork: 3 (repository collegato).

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

Installazione

TypingMind
Prerequisiti:

Node.js 18+

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

Usa gNucleus Text To CAD MCP server MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso gNucleus Text To CAD MCP server, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi gNucleus Text To CAD MCP server come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di gNucleus Text To CAD MCP server.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "gnucleus-text-to-cad-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "text-to-cad-mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di gNucleus Text To CAD MCP server, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di gNucleus Text To CAD MCP server.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare gNucleus Text To CAD MCP server per aiutarmi con questa attività?
gNucleus Text To CAD MCP server
Certo. L’ho letto.
Ecco cosa ho trovato con gNucleus Text To CAD MCP server.

Domande frequenti

A cosa serve il server MCP gNucleus Text To CAD MCP server?

gNucleus Text To CAD MCP server è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP gNucleus Text To CAD MCP server con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare gNucleus Text To CAD MCP server con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP gNucleus Text To CAD MCP server con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando gNucleus Text To CAD MCP server, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP gNucleus Text To CAD MCP server a TypingMind?

gNucleus Text To CAD MCP server funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP gNucleus Text To CAD MCP server in TypingMind?

gNucleus Text To CAD MCP server mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP gNucleus Text To CAD MCP server?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se gNucleus Text To CAD MCP server richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇