Skip to main content

dlubal-mcp

Model Context Protocol (MCP) server that enables AI tools and large language models (LLMs) to interact with running Dlubal structural analysis applications.

Built on top of the dlubal.api gRPC client library, dlubal-mcp exposes tools that AI assistants can call directly to do modelling, analysis or reading results through the API scripts.

Supported Applications

Application Script Tool
RFEM 6 — Finite Element Analysis run_rfem_script
RSTAB 9 — Frame and Truss Analysis run_rstab_script
RSECTION 1 — Cross-Section Analysis run_rsection_script

How It Works

dlubal-mcp acts as a bridge between an AI assistant and a running Dlubal application. The application must already be open and its API service active — the MCP server connects to the live session, it does not launch applications itself.

  1. Start RFEM 6, RSTAB 9, or RSECTION 1 on your machine
  2. Launch the MCP server with proper settings (urls, API ports)
  3. An AI tool calls e.g. run_rfem_script with Python code
  4. The code executes against the live application and returns the output

LLM Responsibility for API Scripts

The run_rfem_script, run_rstab_script, and run_rsection_script tools execute arbitrary Python code against the live application. The LLM is responsible for composing correct and valid API scripts — the MCP server simply runs whatever code it receives and returns the output or any errors.

To write correct scripts, the LLM should consult the Dlubal API Documentation, which covers all available objects, methods, and usage patterns for the gRPC-based API.

Requirements

  • Python 3.11 or higher
  • A running Dlubal application (RFEM 6, RSTAB 9, or RSECTION 1)
  • Active API Service subscription — see dlubal.api for details

Installation

pip install "dlubal-mcp[rfem]"      # RFEM 6
pip install "dlubal-mcp[rstab]"     # RSTAB 9
pip install "dlubal-mcp[rsection]"  # RSECTION 1
pip install "dlubal-mcp[all]"       # All products

Available MCP Tools

Tool Description
run_rfem_script Execute Python code against a running RFEM 6 instance
read_rfem_results Read an allowlisted, bounded RFEM result summary without executing caller code or changing the model
run_rstab_script Execute Python code against a running RSTAB 9 instance
run_rsection_script Execute Python code against a running RSECTION 1 instance
health_check Server status: installed products, running state, available tools

Typed RFEM result access

read_rfem_results is the preferred path for read-only agents. It accepts only five fixed result types (calculation_status, member internal forces, node deformations, stability critical load factors, and steel member design ratios). Result queries require bounded integer object numbers (except stability) and validated loading identifiers. Both filters are verified against every returned row. It never calculates, writes, opens, saves or switches a model.

The response is bounded to at most 100 rows and contains only allowlisted numeric fields, units, the active model GUID, the RFEM version, a complete model-input state_fingerprint and a canonical result_hash. The fingerprint is produced from RFEM's Python-gRPC model export before and after the result query. The export is canonicalised and hashed locally, then deleted; its model contents never leave the machine. If the model changes during the read or RFEM cannot produce the complete snapshot, the tool returns unavailable fail-closed. Model paths, object names, arbitrary RFEM warning text and exception messages are not returned. no_results and unavailable are explicit states, not successful checks.

Related

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dlubal_mcp-1.0.10.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dlubal_mcp-1.0.10-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file dlubal_mcp-1.0.10.tar.gz.

File metadata

  • Download URL: dlubal_mcp-1.0.10.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for dlubal_mcp-1.0.10.tar.gz
Algorithm Hash digest
SHA256 afb65358cb46e0a36583574eb25f25f7bb7603566ce75a78033b4c9798fe735d
MD5 eec7dea0a8eddd8b4283e4fd4bf212d1
BLAKE2b-256 617144632ab567aa5c12aba80521163d42e1f5e3145699f6a5b2d20e325f4951

See more details on using hashes here.

File details

Details for the file dlubal_mcp-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: dlubal_mcp-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.16

File hashes

Hashes for dlubal_mcp-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 94f00be33289d2519d040a4a5bb4bb8892099888fdcc3f1b338fd49a587249b2
MD5 d7dae5daed100072eaa9cec8c78a7131
BLAKE2b-256 e9a683c567c5b67b8bf1fefe62f8c8f9a3fa16016237f34af23a8ac7060e317d

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.11

2 files

This release

1.0.10 This release

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page