Submitted:
22 July 2025
Posted:
23 July 2025
You are already at the latest version
Abstract
Keywords:
Introduction
2. Methods
2.1. Architecture Workflow
2.2. Implementation of MCP
2.3. MCP Client-Server Workflow
2.4. Tool Integration and Execution Logic
2.5. Study Case
3. Results
3.1. Storey Drift
3.2. Max Displacement
3.3. Base Shear
3.4. Building period
| Case | GPT | GPT+MCP | OPENSEES |
| A | 22.290 | 0.818 | 0.818 |
| B | 35.673 | 0.731 | 0.731 |
| C | 20.280 | 1.399 | 1.399 |
| D | 34.363 | 1.030 | 1.030 |
4. Discussion
5. Conclusions
Author Contributions
Data Availability Statement
Conflicts of Interest
Abbreviations
| AI | Artificial Intelligence |
| API | Application Programming Interface |
| ASCE 7-22 | American Society of Civil Engineers Standard 7, 2022 Edition |
| CIDI | Context–Intent–Details–Instructions (prompting structure) |
| ETABS | Extended Three-Dimensional Analysis of Building Systems |
| GPT | Generative Pre-trained Transformer |
| GPT+MCP | Generative Pre-trained Transformer integrated with Model Context Protocol |
| JSON | JavaScript Object Notation |
| LLM | Large Language Model |
| MCP | Model Context Protocol |
| NEC-15 | Norma Ecuatoriana de la Construcción, 2015 Edition |
| OpenSees | Open System for Earthquake Engineering Simulation |
| OpenSeesPy | Python interface for OpenSees |
| REST | Representational State Transfer |
| Tcl | Tool Command Language |
References
- Suh J-K. DYNAMIC UNCONFINED COMPRESSION OF ARTICULAR CARTILAGE UNDER A CYCLIC COMPRESSIVE LOAD. Pergamon Biorheology 1996;33:28–304.
- Garza Morales GA, Nizamis K, Bonnema GM. Engineering complexity beyond the surface: discerning the viewpoints, the drivers, and the challenges. Res Eng Des 2023;34:367–400. [CrossRef]
- Morales GAG, Nizamis K, Bonnema GM. Why is there complexity in engineering? A scoping review on complexity origins. 2023 IEEE International Systems Conference (SysCon), IEEE; 2023, p. 1–8. [CrossRef]
- Oladele Junior Adeyeye, Ibrahim Akanbi. ARTIFICIAL INTELLIGENCE FOR SYSTEMS ENGINEERING COMPLEXITY: A REVIEW ON THE USE OF AI AND MACHINE LEARNING ALGORITHMS. Computer Science & IT Research Journal 2024;5:787–808. [CrossRef]
- Suh, NP. Complexity in Engineering. CIRP Annals 2005;54:46–63. [CrossRef]
- Salehi H, Burgueño R. Emerging artificial intelligence methods in structural engineering. Eng Struct 2018;171:170–89. [CrossRef]
- Liang H, Kalaleh MT, Mei Q. Integrating Large Language Models for Automated Structural Analysis 2025. [CrossRef]
- Cha Y-J, Ali R, Lewis J, Büyükӧztürk O. Deep learning-based structural health monitoring. Autom Constr 2024;161:105328. [CrossRef]
- Zhang L, Le B, Akhtar N, Lam S-K, Ngo T. Large Language Models for Computer-Aided Design: A Survey. ACM Comput Surv 2025;37:31. [CrossRef]
- Yang X, Chen B, Tam Y-C. Arithmetic Reasoning with LLM: Prolog Generation & Permutation. 2024 Annual Conference of the North American Chapter of the Association for Computational Linguistics, Mexico: 2024.
- Ismayilzada M, Paul D, Montariol S, Geva M, Bosselut A. CRoW: Benchmarking Commonsense Reasoning in Real-World Tasks. The 2023 Conference on Empirical Methods in Natural Language Processing, 2023. [CrossRef]
- Hong J, Suh E, Kim S-J. Context-aware systems: A literature review and classification. Expert Syst Appl 2009;36:8509–22. [CrossRef]
- Anthropic. Introducing the Model Context Protocol 2024. https://www.anthropic.com/news/model-context-protocol (accessed June 17, 2025).
- Ray PP, Pratim PR. A Survey on Model Context Protocol: Architecture, State-of-the-art, Challenges and Future Directions 2025. [CrossRef]
- Krishnan, N. Advancing Multi-Agent Systems Through Model Context Protocol: Architecture, Implementation, and Applications 2025.
- Hou X, Zhao Y. Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions 2025;1. [CrossRef]
- Rane, N. Role of ChatGPT and Similar Generative Artificial Intelligence (AI) in Construction Industry. SSRN Electronic Journal 2023. [CrossRef]
- Ghimire P, Kim K, Acharya M. Opportunities and Challenges of Generative AI in Construction Industry: Focusing on Adoption of Text-Based Models. Buildings 2024;14. [CrossRef]
- CAMICON, MIDUVI. Norma ecuatoriana de la construcción - NEC: NEC-SE-MP - Mamposteria estructural. Quito: 2014.
- American Society of Civil Engineers. Minimum Design Loads and Associated Criteria for Buildings and Other Structures, ASCE/SEI 7-22. Reston: 2022.
- Hardman, P. Structured Prompting for Educators 2023. https://drphilippahardman.substack.com/p/structured-prompting-for-educators (accessed July 13, 2025).
- Baccarini, D. The concept of project complexity - A review. International Journal of Project Management 1996;14:201–4. [CrossRef]
- Joffe I, Felobes G, Elgouhari Y, Kalaleh MT, Mei Q, Chui YH. The Framework and Implementation of Using Large Language Models to Answer Questions about Building Codes and Standards. Journal of Computing in Civil Engineering 2025;39:05025004. [CrossRef]
- Liu J, Geng Z, Cao R, Cheng L, Bocchini P, Cheng M. A Large Language Model-Empowered Agent for Reliable and Robust Structural Analysis 2025.
- Wei J, Wang X, Schuurmans D, Bosma M, Ichter B, Xia F, et al. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models 2023.
- Nielsen, J. Response Times: The 3 Important Limits 1993. https://www.nngroup.com/articles/response-times-3-important-limits/ (accessed July 17, 2025).




| MCP Layer | Role of tools declaration |
|---|---|
| Client Layer | Hosts the LLM-based application and initiates tool execution requests. |
| Server Layer | Provides the tools to the Client Layer and executes them upon request. |
| External Applications | Supply expert context and domain-specific information to support tool execution. |
| Category | Parameter | Magnitude |
| Geometry | Number of Stories Story Heights Spans in X Direction Spans in Y Direction |
5 3.0, 2.5, 2.5, 2.5, 2.5 m (from bottom to top) 4 m, 5 m, 6 m 3.5 m, 4.5 m |
| Sections | Beam Cross-Section Column Cross-Section Cracking Factor (Beams) Cracking Factor (Columns) |
0.30 m × 0.40 m 0.40 m × 0.40 m 0.7 0.8 |
| Material | Concrete Young’s Modulus | 21,458,890.83 kN/m2 |
| Loads | Dead Load Live Load Dead Load Weight Coefficient Live Load Weight Coefficient |
4.9 kN/m2 1.9 kN/m2 1.0 0.15 |
| Seismic Parameters |
Base Shear Coefficient Vertical Distribution Coefficient Accidental Torsion Coefficient Drift Amplification Factor (for Inelastic Drift) Maximum Allowable Drift |
0.1488 1.0 0.05 6.0 0.02 |
| Case ID | No. of Floors | Story Heights (m) | Spans X (m) | Spans Y (m) | Geometry Type |
|---|---|---|---|---|---|
| A | 2 | 3.0 – 3.0 | 4 – 4 | 4 – 4 | Symmetric |
| B | 3 | 3.0 – 3.0 – 3.0 | 4 – 5 – 4 | 3.5 – 4.5 | Asymmetric |
| C | 5 | 3.5 – 2.5 – 2.5 – 2.5 – 2.5 | 4 – 4 – 4 | 4 – 4 – 4 | Symmetric |
| D | 5 | 3.5 – 2.5 – 2.5 – 2.5 – 2.5 | 4 – 5 – 6 | 3.5 – 4.5 | Asymmetric |
![]() (a) |
| prompt = ( "Context:" "You are an expert in structural analysis using natural language and numerical simulation with OpenSeesPy. " "The implemented system is capable of interpreting technical prompts and generating automated structural simulations " "based on international seismic-resistant design standards." "Instructions:" "Analyse a three-dimensional reinforced concrete frame, verify code compliance for inter-story drift, " "and apply structural optimization if necessary." "Details:" "The modulus of elasticity for concrete is 21,458,890.83 kN/m2. " "The structural system has spans of 4, 5, and 6 meters in the X direction, and spans of 3.5 and 4.5 meters in the Y direction. " "The structure has 5 stories, with story heights of: 3.0, 2.5, 2.5, 2.5, and 2.5 meters respectively. " "Beams have a cross-sectional dimension of 0.3 x 0.4 meters, and columns are 0.40 x 0.45 meters. " "Cracking factors are 0.7 for beams and 0.8 for columns. " "Dead load is 4.9 Kn/m2 and live load is 1.9 kN/m2. " "The weight coefficients are: 1.0 for dead load, 0.15 for live load, 0.1488 for base shear coefficient, " "1.0 for vertical distribution of base shear, 0.05 for accidental torsion, " "and a drift amplification factor of 6.0 is applied to estimate inelastic drift. The maximum allowable drift is 0.02." "Tasks:" "1. Perform linear static seismic analysis using the equivalent lateral force method with OpenSeesPy. " "2. Compute maximum displacements and story drifts per level and direction (X and Y). " "3. Perform strict numerical validation:" " - Iterate through all obtained inelastic drift values. " " - For each value, compare it against the allowable maximum (0.02). " " - If *at least one value* exceeds 0.02, *you must not state that all values are compliant*. " " - Report precisely: story number, direction (X or Y), and the drift value that exceeds the limit. " " - Only if *all drifts* are ≤ 0.02, the code compliance can be confirmed. " " - Present results in tabular format and be rigorous with numerical precision." "4. Also determine floor-by-floor shear forces and vibration modes." "5. Structural optimization:" " - If any drift exceeds the limit, propose a structural optimisation based on displacements, " " storey drifts, shear forces, and vibration modes. " " - Generate 10 alternatives by modifying material properties and section dimensions. " " - Evaluate drift for each alternative and present the comparison in tabular format. " " - Highlight the configurations that meet code requirements and provide better structural efficiency." "Intent:" "Generate an automated technical report, including detailed structural analysis, code validation, " "and optimisation in case of non-compliance. The output must be expressed in technical language and clear tables, " "suitable for professional and academic environments." ) (b) |
| Inter-Storey Drift in X | |||||
| Case | Story | GPT | GPT+MCP | OPENSEES | ETABS |
| A | 2 1 MAX ERROR VS ETABS (%) |
0.009 0.007 |
0.013 0.012 1.408 |
0.013 0.012 1.408 |
0.013 0.012 NA |
| 35.527 | |||||
| B | 3 2 1 MAX ERROR VS ETABS (%) |
0.022 0.014 0.010 |
0.015 0.022 0.015 1.087 |
0.015 0.022 0.015 1.087 |
0.016 0.022 0.015 NA |
| 2.441 | |||||
| C | 5 4 3 2 1 MAX ERROR VS ETABS (%) |
0.022 0.016 0.014 0.012 0.007 |
0.007 0.012 0.016 0.019 0.014 2.756 |
0.007 0.012 0.016 0.019 0.014 2.756 |
0.008 0.013 0.017 0.019 0.015 NA |
| 12.120 | |||||
| D | 5 4 3 2 1 |
0.016 0.012 0.011 0.010 0.006 |
0.009 0.015 0.020 0.022 0.016 1.900 |
0.009 0.015 0.020 0.022 0.016 1.900 |
0.009 0.015 0.020 0.022 0.016 NA |
| MAX ERROR VS ETABS (%) | 26.119 | ||||
| Inter-Storey Drift in Y | |||||
| Case | Story | GPT | GPT+MCP | OPENSEES | ETABS |
| A | 2 1 MAX ERROR VS ETABS |
0.008 0.006 |
0.013 0.012 1.408 |
0.013 0.012 1.408 |
0.013 0.012 NA |
| 38.491 | |||||
| B | 3 2 1 MAX ERROR VS ETABS |
0.019 | 0.017 0.024 0.016 1.511 |
0.017 0.024 0.016 1.511 |
0.017 0.024 0.017 NA |
| 0.013 | |||||
| 0.009 | |||||
| 20.800 | |||||
| C | 5 4 3 2 1 MAX ERROR VS ETABS |
0.022 0.016 0.014 0.012 0.007 |
0.007 0.012 0.016 0.019 0.014 2.756 |
0.007 0.012 0.016 0.019 0.014 2.756 |
0.008 0.013 0.017 0.019 0.015 NA |
| 12.120 | |||||
| D | 5 4 3 2 1 MAX ERROR VS ETABS |
0.015 0.011 0.010 0.008 0.005 |
0.010 0.016 0.020 0.022 0.015 1.269 |
0.010 0.016 0.020 0.022 0.015 1.269 |
0.010 0.016 0.021 0.023 0.016 NA |
| 32.791 | |||||
| GPT | GPT+MCP | OPENSEES | ||||
| Case | X | Y | X | Y | X | Y |
| A | 266.529 | 235.335 | 1.427 | 1.427 | 1.427 | 1.427 |
| B | 421.029 | 320.329 | 1.208 | 1.624 | 1.208 | 1.624 |
| C | 481.640 | 443.333 | 2.834 | 0.233 | 2.834 | 0.233 |
| D | 298.652 | 247.555 | 1.998 | 1.422 | 1.998 | 1.422 |
| Case | GPT | GPT+MCP | OPENSEES |
| A | 27.774 | 0.007 | 0.007 |
| B | 30.489 | 0.003 | 0.003 |
| C | 35.397 | 0.022 | 0.022 |
| D | 43.590 | 0.017 | 0.017 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
