Logo vun Abaqus MCP Plugin

Abaqus MCP Plugin

Communautéit
Cai-aa

A plugin that enables communication between Abaqus/CAE and external AI assistants (or any MCP client) via file-based IPC.

EditeurCai-aa
Repositoryabaqus-mcp
SproochPython
Forks
25
Stären
282
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    Abaqus MCP Plugin stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    282 Stären an 25 Forks aus dem verlinkte Repository.

Abaqus MCP Plugin v4.0

A plugin that enables communication between Abaqus/CAE and external AI assistants (or any MCP client) via file-based IPC.

What's New in v4.0

  • Job management — list and submit Abaqus jobs remotely
  • ODB inspection — open ODB files read-only and query steps, frames, instances
  • Viewport capture — screenshot any Abaqus viewport as base64 image
  • Richer model info — now includes loads, BCs, interactions, and assembly instances
  • MCP resource — abaqus://status resource for real-time plugin status
  • Stale command cleanup — automatically removes commands older than 2 minutes
  • Logging — all operations logged to ~/.abaqus-mcp/mcp.log
  • Version tracking — status.json and ping responses include plugin version
  • GUI Status button — check plugin state from the Plug-ins menu

Architecture

text
┌─────────────┐  MCP protocol   ┌───────────────┐  file IPC   ┌──────────────┐
│  MCP Client  │ ──────────────> │  mcp_server.py │ ─────────> │ Abaqus/CAE   │
│  (Cursor AI) │ <────────────── │  (FastMCP)     │ <───────── │ (plugin.py)  │
└─────────────┘                  └───────────────┘             └──────────────┘
                                        │
                                   commands/*.json ──>  (plugin reads & deletes)
                                   results/*.json  <──  (plugin writes)
                                   status.json     <──  (heartbeat every 2s)

Features

  • Execute Python scripts in Abaqus remotely
  • Query model information (parts, materials, steps, loads, BCs, interactions)
  • List and submit analysis jobs
  • Inspect ODB result files
  • Capture viewport screenshots
  • Simple file-based communication (no sockets required)
  • Non-blocking background mode (GUI stays responsive)
  • GUI menu entries for start / stop / status control
  • Works with any MCP-compatible client (Cursor, Claude Desktop, etc.)

Installation

1. Clone the repository

bash
git clone https://github.com/Cai-aa/abaqus-mcp.git ~/.abaqus-mcp

2. Install Python dependencies (for the MCP server)

bash
pip install mcp

3. (Optional) Auto-load plugin on Abaqus startup

powershell
# Windows
copy "$env:USERPROFILE\.abaqus-mcp\abaqus_v6.env.example" "$env:USERPROFILE\abaqus_v6.env"
bash
# Linux/Mac
cp ~/.abaqus-mcp/abaqus_v6.env.example ~/abaqus_v6.env

4. (Optional) Install GUI plugin menu

powershell
# Windows
Copy-Item -Recurse "$env:USERPROFILE\.abaqus-mcp\abaqus_plugins\mcp_control" "$env:USERPROFILE\abaqus_plugins\mcp_control"
bash
# Linux/Mac
cp -r ~/.abaqus-mcp/abaqus_plugins/mcp_control ~/abaqus_plugins/mcp_control

5. Configure your MCP client

Add to your Cursor / Claude Desktop MCP settings (.mcp.json):

json
{
  "mcpServers": {
    "abaqus-mcp-server": {
      "command": "python",
      "args": ["C:/Users/YourUsername/.abaqus-mcp/mcp_server.py"]
    }
  }
}

Usage

Start MCP (in Abaqus)

Experimental — non-blocking background thread (may be unstable on some Abaqus builds):

python
mcp_start()  # GUI remains responsive if background worker is supported

Menu: Plug-ins → MCP → Start MCP (Background)

Alternative — cooperative loop (mostly responsive):

python
mcp_coop_loop()

Menu: Plug-ins → MCP → Start MCP (Cooperative)

Alternative — blocking mode:

python
mcp_loop()  # blocks console

Menu: Plug-ins → MCP → Start MCP (Blocking)

ModeGUI ResponsiveStop Method
Background (mcp_start())Yes (if supported)mcp_stop() or menu
Cooperative (mcp_coop_loop())Mostly yesmcp_stop() or stop.flag
Blocking (mcp_loop())Nostop.flag / interrupt

For maximum reliability, use mcp_loop() in production sessions.

Check Status

python
mcp_status()  # prints status to console

Menu: Plug-ins → MCP → MCP Status

Stop MCP

Option 1 — GUI menu: Plug-ins → MCP → Stop MCP

Option 2 — Abaqus console:

python
mcp_stop()

Option 3 — PowerShell:

powershell
echo $null > "$env:USERPROFILE\.abaqus-mcp\stop.flag"

Option 4 — Run stop_mcp.py from any Python environment.

MCP Tools

These tools are exposed to MCP clients via mcp_server.py:

ToolDescription
check_abaqus_connectionVerify Abaqus is running and plugin is responding
execute_scriptExecute a Python script inside Abaqus/CAE
get_model_infoGet model details (parts, materials, steps, loads, BCs, etc.)
list_jobsList all analysis jobs in the session
submit_jobSubmit a job by name and wait for completion
get_odb_infoOpen an ODB file read-only and return metadata
get_viewport_imageCapture a viewport screenshot as base64
pingTest connection (returns version info)

MCP Resources

URIDescription
abaqus://statusReal-time plugin status (running/stopped, version, uptime)

File-Based IPC Protocol

Write a JSON command file into ~/.abaqus-mcp/commands/:

python
import json, os, time

command = {
    'id': 'my_command',
    'type': 'execute_script',
    'script': 'print("Hello from Abaqus!")',
    'timestamp': time.time(),
}

cmd_path = os.path.expanduser('~/.abaqus-mcp/commands/cmd_my_command.json')
with open(cmd_path, 'w') as f:
    json.dump(command, f)

Result will appear at ~/.abaqus-mcp/results/my_command.json.

Command Types

TypeParametersDescription
execute_scriptscript (str)Execute Python script in Abaqus
get_model_info—Get current model information
list_jobs—List all defined jobs
submit_jobjob_name (str)Submit and wait for a job
get_odb_infoodb_path (str)Read ODB metadata
get_viewport_imageviewport_name, formatCapture viewport screenshot
ping—Test connection
stop—Request loop stop

Directory Structure

text
~/.abaqus-mcp/
├── abaqus_mcp_plugin.py      # Abaqus-side plugin (runs inside CAE)
├── mcp_server.py              # MCP server (runs externally)
├── stop_mcp.py                # Helper to send stop signal
├── abaqus_v6.env.example      # Auto-load config template
├── .mcp.json                  # MCP client config example
├── abaqus_plugins/
│   └── mcp_control/
│       ├── __init__.py
│       └── mcp_control_plugin.py
├── commands/                  # Incoming command files
├── results/                   # Outgoing result files
├── scripts/                   # Temporary script files
├── screenshots/               # Temporary viewport captures
├── status.json                # Heartbeat status (updated every 2s)
├── mcp.log                    # Operation log
└── stop.flag                  # Stop signal file

Troubleshooting

  • Plugin says "running" but no commands are consumed:
    1. Run mcp_stop() then mcp_start() again
    2. Check ~/.abaqus-mcp/status.json — timestamp should update every ~2s
    3. Check ~/.abaqus-mcp/mcp.log for errors
  • Abaqus uses a different home directory:
    python
    import os; os.environ['ABAQUS_MCP_HOME'] = r'C:\Users\YourName\.abaqus-mcp'
    Set this before loading the plugin.
  • Commands timing out:
    • Stale commands (>2 min) are auto-cleaned
    • Ensure the plugin is in running state via mcp_status()
  • GUI plugin not showing:
    • Verify ~/abaqus_plugins/mcp_control/ exists and contains mcp_control_plugin.py
    • Restart Abaqus/CAE

License

MIT License

Installatioun

TypingMind
{
  "mcpServers": {
    "abaqus-mcp": {
      "command": "python",
      "args": [
        "C:/Users/YourUsername/.abaqus-mcp/mcp_server.py"
      ]
    }
  }
}

Abaqus MCP Plugin MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Abaqus MCP Plugin verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Abaqus MCP Plugin als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Abaqus MCP Plugin an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "abaqus-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Abaqus MCP Plugin. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Abaqus MCP Plugin.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Abaqus MCP Plugin?
Abaqus MCP Plugin
Jo. Ech hunn et gelies.
Dat hunn ech mat Abaqus MCP Plugin fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Abaqus MCP Plugin benotzt?

Abaqus MCP Plugin ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Abaqus MCP Plugin MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Abaqus MCP Plugin mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Abaqus MCP Plugin MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Abaqus MCP Plugin verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Abaqus MCP Plugin MCP mat TypingMind?

Abaqus MCP Plugin leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Abaqus MCP Plugin MCP an TypingMind zur Verfügung?

Abaqus MCP Plugin stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Abaqus MCP Plugin MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Abaqus MCP Plugin eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇