Abstract
Probabilistic seismic hazard and risk analyses are the backbone to building codes, insurance pricing, and disaster management. Yet their open-engine pipelines remain accessible primarily to experts. We present the first agentic interface to the end-to-end probabilistic seismic hazard and risk chain via an open-source server, addressable through the Model Context Protocol (MCP). MCP wraps the OpenQuake engine and the 2020 European Seismic Hazard and Risk Models using twenty-four typed endpoints.
Here, an agent is defined as a large language model (LLM) with tools. LLM is confined to the role of an orchestrator, so it plans, translates, and explains, while the OpenQuake engine and custom codes compute hazard values, damage probability, and loss. Each response carries source-model, ground-motion model (GMM), and certified data provenance for transparency. Results are benchmarked against ESHM20 at seventy-three cities, with the replicated 475-year spectral accelerations matching official values within a median of 5%, and a full hazard-to-loss estimate runs in minutes.
The interface additionally accepts a user-supplied empirical or machine-learning GMM on any tectonic region type of the published tree, adding extra features that existing web services omit: conditional spectra, deterministic scenarios, surface hazard, per-building loss, retrofit comparison, and record selection with waveform retrieval. The proposed design layers transfer to other regional models and to other hazards.
Blogger's Review: This article demonstrates how modern technological approaches enhance the accessibility of seismic risk analysis. The introduction of an agent allows non-experts to perform complex calculations more easily, promoting the dissemination and application of seismic science. Its open-source nature also provides a solid foundation for further research.