Abaqus MCP Plugin logo

Abaqus MCP Plugin

Community
Cai-aa

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

PublisherCai-aa
Repositoryabaqus-mcp
LanguagePython
Forks
25
Stars
282
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Abaqus MCP Plugin 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

    282 stars and 25 forks from the linked 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

Installation

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

Use Abaqus MCP Plugin MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Abaqus MCP Plugin 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 Abaqus MCP Plugin 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 Abaqus MCP Plugin 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": {
    "abaqus-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Abaqus MCP Plugin 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 Abaqus MCP Plugin 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 Abaqus MCP Plugin to help me with this task?
Abaqus MCP Plugin
Sure. I read it.
Here is what I found using Abaqus MCP Plugin.

Frequently asked questions

What is the Abaqus MCP Plugin MCP server used for?

Abaqus MCP Plugin 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 Abaqus MCP Plugin MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Abaqus MCP Plugin 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 Abaqus MCP Plugin 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 Abaqus MCP Plugin connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Abaqus MCP Plugin MCP to TypingMind?

Abaqus MCP Plugin 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 Abaqus MCP Plugin MCP provide in TypingMind?

Abaqus MCP Plugin 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 Abaqus MCP Plugin MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Abaqus MCP Plugin 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 👇