Next Article in Journal
An Advanced Eco-Solution to Address the Excessive Consumption of Water, Electricity and Towels/Linen at Luxury Hotels/Resorts: An Incentive-Linked Smart Meter System to Influence Consumer Behaviors
Next Article in Special Issue
Ensemble Learning with Systematic Hyperparameter Optimization for Urban-Bike-Sharing Demand Prediction
Previous Article in Journal
Climate Risk and Firm Value Preservation from the Perspective of Supply Chain Strategic Choice
Previous Article in Special Issue
DeepWasteSort-SI-SSO: A Vision Transformer-Based Waste Image Classification Framework Optimized with Self Improved Sparrow Search Optimizer
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Facilitating AI-Driven Sustainability: A Service-Oriented Architecture for Interoperable Environmental Data Access

by
Babak Jalalzadeh Fard
1,*,
Sadid A. Hasan
2 and
Jesse E. Bell
1,3,4
1
Department of Environmental, Agricultural, and Occupational Health, College of Public Health, University of Nebraska Medical Center, Omaha, NE 68198, USA
2
Microsoft AI, Cambridge, MA 02142, USA
3
Daugherty Water for Food Global Institute, University of Nebraska System, Lincoln, NE 68588, USA
4
School of Natural Resources, University of Nebraska-Lincoln, Lincoln, NE 68583, USA
*
Author to whom correspondence should be addressed.
Sustainability 2026, 18(5), 2445; https://doi.org/10.3390/su18052445
Submission received: 9 January 2026 / Revised: 16 February 2026 / Accepted: 24 February 2026 / Published: 3 March 2026
(This article belongs to the Special Issue Artificial Intelligence and Sustainable Development)

Abstract

Advances in artificial intelligence (AI), particularly agentic AI, have created opportunities to enhance global sustainability by improving the efficiency and accuracy of environmental monitoring and response systems. Agentic AIs autonomously plan and execute towards specific goals with minimal or no human intervention; however, accessing environmental data is challenging and requires expertise due to inherent fragmentation and the diversity of data formats. The Model Context Protocol (MCP) is an open standard that allows AI systems to securely access and interact with diverse software tools and data sources through unified interfaces, reducing the need for custom integrations while enabling more accurate, context-aware assistance. This study introduces WeatherInfo_MCP, an interface that provides the required expertise for AI agents to access National Weather Service (NWS) data. Built on a service-oriented architecture, the system uses a centralized engine to handle robust geocoding and data extraction while providing AI agents with simple, independent tools to retrieve weather data from the NWS API. The system was validated through 14 unit tests and 23 comprehensive protocol compliance tests against the MCP 2025-06-18 specification, achieving a 100% pass rate across all categories, demonstrating its reliability when working with AI agents. We also successfully tested our model alongside a memory MCP to showcase its performance in a multi-MCP environment. While in its earliest version, WeatherInfo_MCP connects to the NWS API, its modular design and compliance with software development and MCP standards facilitate immediate expansion to additional environmental data and tools. WeatherInfo_MCP is released as an open-source tool to support the sustainable development community, enabling broad adoption of AI agents for environmental use cases.

Graphical Abstract

1. Introduction

Weather- and climate-related disasters represent a mounting global challenge, imposing ever-greater costs on societies and threatening more lives each year [1]. The United States was hit by 14 billion-dollar weather disasters in the first half of 2025, causing $101.4 billion in damage [2]. From 1980 to mid-2025, the country suffered more than 417 events exceeding $1 billion each, with a cumulative loss of over $3.1 trillion and more than 17,000 lives lost [3]. Globally, the scale is even more dramatic: the World Meteorological Organization (WMO) reports that the number of weather-related disasters has increased fivefold during the past half-century, primarily due to climate change, population growth in high-risk areas, and improved reporting [4]. Although improved disaster management and early warning systems have reduced fatalities per event, the total exposure and financial toll continue to increase, creating a demand for more effective and inclusive resilience strategies [5].
Informing vulnerable groups about weather hazards and their consequences in a timely manner is vital for overcoming these challenges. Culturally appropriate, community-led interventions and integration of digital tools are promising avenues for increasing the utilization of interventions [6]. Active, low-cost communication and outreach campaigns have demonstrated substantial value, and further research is needed to optimize disaster response and preparedness activities, such as work on heatwaves [7]. Increasingly, programs recognize the need to resolve the interplay between environmental exposure, population sensitivity, adaptive capacity, and behavior as determinants of risk, requiring advances in observational data and individual-scale modeling tools [8].
The recent advancements in artificial intelligence (AI) applications in meteorology are transforming the prediction and communication of environmental risks. Initial advances focused on enhancing forecasting skill and spatial resolution through machine learning, deep learning, and geospatial foundation models [9,10]. Using techniques such as recurrent neural networks, diffusion models, and transformer-based architectures to analyze large, multimodal datasets, AI-driven methodologies have considerably improved accuracy in predicting environmental variables [11,12]. The advent of large language models (LLMs) and multimodal AI systems further expands the range of applications to include scenario planning, advanced early warning, and near-real-time risk assessment for decision-makers and the public [13].
Despite this technological progress, significant barriers persist in the mobilization of accurate, actionable information for crisis management [14,15]. Early warning systems are often closed, lack global reach, and miss relevant risk drivers, which burdens organizations with high costs and time investment [14]. Consistent, robust, and trusted data access remains crucial for enabling AI systems to support reliable and scalable hazard monitoring and adaptive crisis response [16]. AI and advanced Information and Communications Technology (ICT) can help collect, process, analyze, and disseminate vast and heterogeneous data streams [14]. Machine learning algorithms and natural language processing now allow for standardization and normalization of diverse inputs, extraction of risk factors from unstructured data, and integration of social, physical, and health-related signals to support better-informed decisions [17,18]. However, the absence of unified or standardized data access approaches can hinder interoperability, slow critical updates, and introduce errors in high-stakes applications [19].
Addressing the urgent need for reliable, standardized, and open access environmental data systems is foundational for the next generation of AI-enabled early warning and crisis management platforms [20]. By lowering the technical barriers to API integration, standardized protocols can facilitate broader access to environmental intelligence, potentially enabling non-expert developers to build robust decision-support tools. The introduction of the Model Context Protocol (MCP) has paved the way for standardizing access to different tools and datasets for AI agents [21,22]. This article introduces WeatherInfo_MCP, our development of a specialized MCP to help AI agents across diverse environmental applications access the information they need. The initial motivation behind developing WeatherInfo_MCP was to support an agentic AI system for managing heatwave scenarios, highlighting the protocol’s value in separating data extraction from the broader agentic workflow. This separation acts as a common data access layer, fostering correctness and security, and allowing agent developers to focus on core logic rather than duplicative data integration work. This architecture facilitates the shift from the traditional M × N integration problem, where M agents need to interact with N data sources, to a simpler M + N solution, where the MCP acts as the intermediary (Figure 1).
The prospects for such integration promise not only better preparedness and reduced losses but also more equitable access to life-saving information worldwide. We will continue with a brief explanation of MCP and then describe the futuristic design of WeatherInfo_MCP v1.00, which applies software architecture standards to make future system expansion easier and straightforward.

2. Materials and Methods

2.1. Model Context Protocol (MCP)

The Model Context Protocol (MCP) is an open standard that was recently developed. It enables AI agents to securely and efficiently use digital tools and datasets [21]. MCP was formally introduced in November 2024, motivated by the rapid expansion of AI agents in different domains [22]. This shift highlights a critical, shared need for reliable methods for AI systems to access, query, and manipulate up-to-date, real-world information. Without MCP, most autonomous AI agents require custom code or proprietary interfaces to connect with new data sources or software platforms [23]. This can lead to increased development overhead, frequent errors, and significant systemic security risks, particularly concerning data privacy and authorization. MCP addresses these challenges by providing a unified, transparent, and extensible technical solution [24]. By providing a standard interface, the hard-coding of data access can be separated from the development of agents, so developers can more easily build robust AI agents that interact correctly with complex information systems—such as climate databases, sensor networks, or data analytics tools—without risking interoperability breakdowns across different platforms.
At its core, MCP structures communications as a series of standardized “tool calls” or function requests [22]. This process allows an agent to request specific operations, fetch data, or trigger actions in external systems using simple, well-defined formats, typically relying on secure, lightweight HTTPS exchanges. MCP servers expose modular capabilities, where each “tool” corresponds to a distinct unit of function—such as retrieving weather data, querying a document archive, or performing a specific risk calculation. This design separates the AI model’s probabilistic reasoning core from the deterministic external data access layer, greatly enhancing system security and observability.
MCP is expected to play a major role in the future of AI deployment for different purposes, including sustainable development and crisis management. Its modular architecture and open ecosystem enable organizations to rapidly innovate and scale AI solutions, ensuring the robustness and reproducibility required for high-stakes applications such as climate risk assessment and autonomous decision support. This standardized approach to grounding LLM-powered agents is essential for transforming siloed AI efforts into resilient, trustworthy, and interoperable agent networks. In the following sections, we introduce our MCP server, WeatherInfo_MCP.

2.2. WeatherInfo_MCP

The design of WeatherInfo_MCP emphasizes modularity, efficiency, and standards-based communication to support robust, maintainable, and extensible service delivery. The package was designed in two focused parts, which are explained as follows: The first part includes a service-oriented core architecture and an object-oriented design of the geospatial data model. The second part is a Model Context Protocol (MCP) layer that exposes the functionality of WeatherInfo_MCP to AI agents through a standardized, stateless interface. Figure 2 shows the system with the separation of these layers.

2.2.1. Service-Oriented Core Architecture and the Object Model

For the WeatherInfo_MCP design, we opted for a service-oriented architecture (SOA) [25]. This approach lets us break the system into independent services that talk to each other through standard interfaces. By decoupling these components, we gained the ability to scale or update specific parts of the software without overhauling the entire codebase. At the core of WeatherInfo_MCP’s architecture is a service class named “Location”, which follows recommended best practices by encapsulating all data access and geospatial operations. Upon instantiation, a location object either accepts an address or direct coordinates. If an address is provided, it is geocoded into latitude and longitude through a controlled process with retry and timeout controls to handle network unreliability.
Immediately after creation, the location object resolves and caches the URL of the nearest National Weather Service (NWS) observation station. This URL serves as a unique, persistent identity attribute of the location. Caching this station link minimizes repeated API calls during subsequent weather data retrievals, thereby reducing unnecessary network traffic. Variable data, such as temperature, humidity, and wind, are accessed on demand through methods of the class, distinguishing between relatively constant properties (location and station identities) and dynamically changing observations.
To enable long-lived or distributed use, the location object supports serialization—conversion to a JSON-compatible dictionary—which can be safely stored, transmitted, and later reconstructed into a live object. This serialization is necessary since the Model Context Protocol operates over JSON-RPC, which requires exchanging JSON-serializable data structures rather than raw Python (version 3.12) objects [26].
This design pattern ensures that each MCP tool call restores a fully functional location instance from its serialized form. This approach enforces isolation between calls, prevents state-sharing-related bugs, and allows session persistence or multi-agent communication where the same location information is reused efficiently.
A key trade-off in this architecture is prioritizing separation of concerns over initial implementation speed. While a monolithic script would have reduced the codebase size, it would have created a dependency between the data extraction logic and the MCP interface. By isolating the location server, we accepted a higher initial development effort to ensure that future changes to the NWS API do not propagate errors to the agent communication layer—a critical requirement for maintaining long-term autonomous systems. In addition, expanding the system to more data sources and capabilities will be more straightforward in future versions.

2.2.2. MCP Layer: Agent Interaction and Protocol Design

WeatherInfo_MCP server uses the Model Context Protocol (MCP) to expose its core functionality to AI agents through stateless functions that are decorated to handle specific agent requests [27]. Each function operates independently to process location data and retrieve specific weather metrics. These functions provide structured outputs with clear documentation to ensure accurate identification and utilization of the server’s capabilities by agents.
This modular design follows established best practices for building reliable and scalable AI systems by providing independently operating tools that rely on a shared central processing unit. By isolating each function, the system ensures that complex requests can be handled concurrently without interference, maximizing stability for decision-making applications. The separation of the MCP layer from the location service class simplifies maintenance and extension, since new weather variables or extraction functions can be added by writing additional stateless MCP tools without altering the core data access code.
To minimize network load, the system consolidates data retrieval into a single step, occurring only when a new location is defined or when a live update is explicitly requested. All subsequent analysis is performed on this locally stored dataset rather than repeatedly querying the external source, aligning with established efficiency standards [28]. This enhanced design, grounded in recognized architectural standards such as SOA and MCP, results in a flexible, maintainable, and efficient system. It is well-suited for integrated, AI-driven environmental monitoring and other related applications that require access to meteorological data.

3. Results

To ensure the reliability of the WeatherInfo_MCP tool, we conducted extensive unit tests and comprehensive MCP tests, following best practices in modern software engineering and the MCP requirements. Unit tests verified the accuracy of each core component (such as location geocoding and weather data processing). In contrast, broader test cases of the MCP layer assessed the tool’s robustness in various real-world scenarios, as explained in more detail in subsequent sections. Additionally, we simulated a simple agentic model integrating WeatherInfo_MCP with a memory MCP. All critical tests were run using industry-standard testing frameworks, and the results are summarized below. This approach assures end-users and stakeholders of the tool’s trustworthiness. The GitHub repo with open-source code is available at this link: https://github.com/Babakjfard/weatherinfo_mcp (accessed on 8 January 2026).

3.1. Unit Tests

Unit testing is a foundational practice in software development where individual components of a program are tested separately to ensure they behave correctly [29]. By testing each part in isolation, developers can quickly identify and fix errors, which leads to higher software quality and easier maintenance to ensure reliability, reproducibility, and credibility. We implemented unit tests for all functions in the two central Python modules of WeatherInfo_MCP. These tests cover crucial capabilities, such as initializing location objects from addresses or coordinates, retrieving weather observation data, and extracting specific weather parameters, including temperature, humidity, and wind. To make the tests efficient and reliable, we used a technique called mocking [30]. Mocking simulates external systems or network calls, allowing tests to run without making real requests to service APIs. This ensures the tests are fast, reproducible, and unaffected by network issues or external service availability.
The test suite was written using Python’s unit test framework supplemented by mocks for network interactions. It includes 14 distinct test cases spanning both core location services and weather tool MCP components, validating both success and error-handling scenarios comprehensively. All tests were passed successfully, underlining the reliability of WeatherInfo_MCP’s fundamental functions. These unit tests provide confidence that each component performs as designed, serving as a robust foundation for building advanced agentic systems that use WeatherInfo_MCP. Such agentic systems can use WeatherInfo_MCP to attain dependable weather information by means of conversation rather than embedded coding or expertise in accessing related APIs. This is shown through a simple example later in this manuscript. Appendix A.1 shows the output of the unit test.

3.2. Rigorous Validation of MCP Tool Compliance

To ensure that the WeatherInfo_MCP tool meets the standards of reliability, interoperability, and robustness expected for modern agentic systems, we conducted a comprehensive test suite in line with the Model Context Protocol (MCP) 2025-06-18 specification and related best practices [24]. Each category of test addresses a specific aspect of system behavior that is critical for correct, predictable functioning in real-world, multi-agent, and multi-MCP environments. Below are the seven test categories over four areas—each completed and passed for WeatherInfo_MCP—along with a brief explanation of their purpose and connection to current standards:
  • MCP Protocol Compliance (2025-06-18):
    • Tool Manifest Validation: Validates the presence and correctness of the entire tool manifest. This guarantees the discoverability of the functions for agents.
    • Tool Execution Validation: Confirms the correct execution of declared tools, such as create_location and related utilities, and the delivery of expected outputs for valid input.
  • Session and Lifecycle Management
    • Protocol Version Negotiation: Ensures accurate communication of the MCP protocol version.
    • Session Initialization and State Management: Assesses robust session creation, state transitions, maintenance, and cleanup, ensuring stable and predictable operation, especially in continuous or long-running deployments.
  • Error Handling & Recovery
    • Investigates system responses to invalid inputs, malformed requests, and external API timeouts. The test verified that the system fails gracefully under stress conditions (such as rapid sequential requests or upstream API outages), preserving data integrity. Multi-user load testing was not conducted because the system is designed to run as an independent instance for each user. This design inherently prevents one user’s heavy usage from slowing down or affecting another’s session.
  • WeatherInfo_MCP-Specific Functional Tests
    • Focuses on domain-relevant capabilities unique to WeatherInfo_MCP, including location-aware weather queries, observation retrieval, and alert serving, ensuring correct operation and robustness for real-world environmental health use cases.
Security compliance was not tested in this deployment, as WeatherInfo_MCP handles only public, non-sensitive information and does not introduce risks related to privacy, authorization, or data protection per MCP security requirements. This category will be revisited if future versions require the handling of sensitive data. The primary potential for misuse lies in operational resource consumption, where an autonomous agent might inadvertently generate excessive API requests. While the MCP architecture permits host-side throttling, the ultimate safeguard is enforced by the NWS upstream API rate limits, which automatically reject excessive traffic from a single IP address, preventing systemic disruption. Table 1 summarizes the test results and coverage for WeatherInfo_MCP. In total, the testing program comprised 23 unique tests, with every category achieving a 100% pass rate. These results provide comprehensive evidence that WeatherInfo_MCP conforms to core MCP 2025-06-18 standards and is robust for deployment in agentic environments. Given that the primary contribution of this work is infrastructural, this validation of protocol compliance and deterministic function execution (via unit tests) provides the requisite assurance of system stability prior to the introduction of variable AI reasoning layers. Appendix A.2 shows the report of the compliance test.
It is worth noting that the system operates as an I/O-bound application, where total response latency is dominated by the network Round-Trip Time (RTT) and processing time of the upstream NWS API. The internal overhead introduced by WeatherInfo_MCP’s abstraction layer consists of in-memory serialization and logic execution, which is computationally negligible compared to the external HTTP request lifecycle [31]. Therefore, the modular architecture preserves the performance profile of direct API integration without introducing considerable latency.

3.3. A Simple Use Case: An AI Agent Using WeatherInfo_MCP and a Memory MCP

To demonstrate the practical applicability and integration capability of the WeatherInfo_MCP tool within an agent-based system, a working AI agent was developed that incorporates two MCP servers: WeatherMCP and a memory MCP. This configuration enables the agent to provide real-time meteorological data while managing persistent user-related information, such as locations linked to individual names. The setup was designed to test the agent’s ability to maintain personalized context and operate the two MCP instances seamlessly within a single framework. We used OpenAI’s Agent SDK framework with gpt-4o-mini as the backend LLM for our test case, but WeatherInfo_MCP can be used by any agent framework and LLM.
The agent’s instructions guide it to identify the individual upon interaction and check for stored entities representing this person and their associated locations. If a location is not already stored, the agent prompts the individual to provide this information and subsequently saves it using the memory MCP. This strategy ensures that after the initial identification, the location data are persistently linked to the individual, allowing the agent to avoid redundant location queries in subsequent sessions or interactions. Weather information retrieval is then conducted by querying the WeatherInfo_MCP server for up-to-date observations, such as temperature, humidity, wind conditions, and descriptive weather summaries. Figure 3 illustrates this agent workflow.
An example of a session with three interactions illustrates the agent’s capabilities (Table 2). In the first interaction scenario, we introduced John Dove and specified his location as Omaha, Nebraska. The agent successfully creates entities for John and Omaha, establishes their relationship, and fetches the current weather observations for Omaha from the WeatherInfo_MCP tool. The agent responds with a detailed yet clear summary including temperature, wind speed and direction, and relative humidity. In a subsequent interaction (Interaction 3 in Table 2), the same person—John Dove—inquiries about weather alerts. The agent then retrieves corresponding entities for John and Omaha, establishes their relationship, and fetches active alerts associated with Omaha and reports their status appropriately. Also, using a new name without a related location—Bobby Jones in interaction 2 of Table 2—receives a message from the agent to provide their location.
These demonstrations show a sample of how WeatherInfo_ MCP can be effectively embedded as a component in larger multi-tool AI agent architectures, facilitating dynamic, context-aware user interactions. The agent’s ability to coordinate between persistent memory and live data retrieval highlights the tool’s readiness for real-world applications, complementing the previously described unit and protocol compliance tests with evidence of operational robustness in interactive settings. Detailed agent instruction prompts and relevant code snippets are provided in Appendix B.1 and Appendix B.2 to ensure transparency and reproducibility.
The presented agentic interaction is intentionally designed as a minimal validation scenario to isolate the reliability of the communication protocol from the variability of AI reasoning. In complex environmental modeling, higher-order tasks—such as multi-variable inference or temporal reasoning—rely heavily on the capabilities of other models and tools, such as the language model itself. Introducing such complexity at the validation stage would create confounding variables, making it difficult to distinguish between a failure in the tool’s architecture and a failure in the agent’s planning logic. By restricting the scope to a fundamental query-response cycle, this use case validates the determinism and stability of the underlying infrastructure, establishing a reliable foundation upon which more complex, reasoning-intensive applications can subsequently be built.
To facilitate independent verification of the system’s interoperability, we have deployed a live reference implementation hosted on Hugging Face Spaces (accessible at: https://huggingface.co/spaces/Babak321/Simple_Weather_App, accessed on 25 February 2026). This web-based interface utilizes the WeatherInfo_MCP backend to power a conversational agent and alert notification system in a cloud environment. Note that this deployment is provided strictly as a functional proof-of-concept to demonstrate the stability of the standardized connection. The application-level design of the web app is illustrative and remains outside the scope of the architectural analysis presented in this study.

4. Discussion

Here, we propose WeatherInfo_MCP, a Model Context Protocol implementation built on the National Weather Service (NWS) API to standardize weather data access for AI agents. Our design employs a utility-server pattern and service-oriented architecture (SOA), which strictly separates the core meteorological model logic from the MCP interface layer. This modular approach is a key strength, enhancing maintainability, flexibility, and extensibility, allowing for future integrations (e.g., memory MCPs) with minimal disruption. Crucially, WeatherInfo_MCP conforms rigorously to the latest MCP standard specification (July 2025), confirmed through extensive testing, ensuring seamless interoperability within multi-MCP agent environments.
To validate the operational benefits of WeatherInfo_MCP, we conceptually compared its integration workflow against a traditional direct API implementation. In a traditional setting, an AI agent developer must write custom code to handle HTTP requests, parse complex JSON responses from the NWS API, and manage connection errors. This creates a “tight coupling”—a high level of dependency between components of software, where one module directly relies on the internal implementation details of another—between the agent and the data source, where any change in the NWS API requires updating the agent’s core code.
In contrast, WeatherInfo_MCP abstracts these complexities into a standardized interface. Table 3 presents a conceptual, architecture-based comparison of these two approaches across key software engineering metrics. Also, the provided sample, the Jupyter notebook in the Notebooks folder of the provided GitHub, shows a reimplementation of the direct API use.
Several MCP weather servers have been developed and publicly released in the past year, providing weather data access through well-known APIs such as OpenWeatherMap, Open-Meteo, or the National Weather Service (Appendix B.3). These servers vary in scope from simple API wrappers offering limited forecast and alert querying to more complex implementations with modular designs and integration examples. Our MCP weather server distinguishes itself through two major strengths that address key challenges for developers and AI researchers working with agentic frameworks. First, it uses an SOA to separate the core meteorological model functionalities from the MCP interface and control logic. Second, our MCP server conforms rigorously to the latest MCP standard specification (version 2025-06-18). To our knowledge, many existing MCP weather servers have not yet undergone such detailed conformance testing, making this a key differentiator for robust and scalable use of WeatherInfo_MCP in AI assistant research and applications. All MCP servers listed in Appendix B.3 were published before the latest MCP standard specification (version 2025-06-18), which makes them all susceptible to failure in such tests and consequently in real-world applications. Among all the servers listed in Appendix B.3, only Weather MCP (third in the table in Appendix B.3) and knmi-weather-mcp (last in the table in Appendix B.3) provide open-source code with separated utility and server functionalities, making them comparable to our SOA benefits. However, the former is focused on data from the Open-Meteo API, and the latter is only focused on the Netherlands. It is important to clarify that our statements reflect the information available from public repositories and documentation of other MCP servers; we have not conducted exhaustive performance or feature testing across all products. Therefore, while we highlight these distinctive aspects of our MCP server, we welcome future benchmarking studies to establish broader performance and capability comparisons within the community.
Despite the discussed strengths, the current implementation is subject to data constraints. This version relies on the NWS API, which restricts geographic coverage to the United States and presents limitations in spatial and temporal resolution, as data are often sourced from the nearest airport or major weather station. Therefore, the initial version (v0.1.0) is not optimized for localized data extraction at the neighborhood level, limiting its current applicability to regional-scale monitoring and broad-context decision support. To overcome this, a feasible extension of the architecture could integrate supplementary, local data sources alongside advanced geocoding services to improve spatial resolution. Furthermore, the long-term success of this tool relies on continuous adaptation to evolving standards and the incorporation of access to other datasets. Specifically, environmental data are characterized by multi-scale spatiotemporal variability, non-uniform reporting standards, and heterogeneous formats (e.g., tabular, vector, and raster). Addressing these challenges requires architectural frameworks that can normalize diverse inputs into a consistent context for AI agents. While future capabilities may introduce new architectural dependencies, the current SOA design ensures a flexible foundation for scalable system expansion. Also, as with any data-centric system, the utility of this tool is directly constrained by the quality, availability, and consistency of the upstream data providers.

5. Conclusions

WeatherInfo_MCP v0.1.0 represents a crucial step toward standardizing reliable and flexible environmental data access for AI-driven applications. Designing robust data access protocols using open standards accelerates transformative advances across disciplines, including public health, emergency management, agriculture, and environmental monitoring [32,33,34]. By providing a universal connectivity layer, this system relieves researchers and system designers of the complex burden of raw data integration from the National Weather Service.
From the perspective of sustainable development, this work contributes to the creation of a resilient digital infrastructure capable of supporting integrated scientific approaches relying on agentic AI. By providing a standardized interface for environmental data access, the system directly facilitates the development and maintainability of AI agents designed for complex sustainability applications and research studies. This interoperability ensures agents’ reliable access to the environmental context needed to address broader socio-economic challenges. Furthermore, by reducing the technical resources required to deploy environmental AI agents, this architecture fosters informational equity, enabling resource-constrained organizations and local governments to leverage advanced decision-making support tools for sustainability and environmental planning. This potentially enables AI agents to deliver highly targeted, individual-level weather data for a specific location while allowing institutional platforms to efficiently process large-scale datasets for coordinated planning.
The broader vision is that establishing such technical infrastructure is a prerequisite for future AI-driven decision support systems. By decoupling data retrieval from agent reasoning, this architecture provides the necessary foundation for applications that improve preparedness and support individuals and communities in taking informed action against accelerating environmental risks and sustainability challenges.

Author Contributions

Conceptualization, B.J.F., S.A.H. and J.E.B.; Data curation, B.J.F.; Formal analysis, B.J.F.; Investigation, B.J.F.; Methodology, B.J.F. and S.A.H.; Software, B.J.F.; Validation, B.J.F.; Writing—original draft, B.J.F.; Supervision, S.A.H.; Writing—review and editing, S.A.H. and J.E.B.; Funding acquisition, J.E.B. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Aeronautics and Space Administration (NASA) Research Opportunities in Space and Earth Sciences (ROSES) program (Grant no. 8ONSSC22K1050). Additional funding support was provided by the Claire M. Hubbard Foundation.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The repository of the described system can be found at the following address: https://github.com/Babakjfard/weatherinfo_mcp, accessed on 25 February 2026.

Acknowledgments

During the preparation of this manuscript/study, the authors utilized Cursor version: 2.5.17 and Perplexity AI, powered by GPT-5.1, to assist in refining the main code and designing the test scripts and validation protocols. Gemini 1.5 Pro and Perplexity AI were used to refine the manuscript text. SciSpace, accessed on 20 December 2025, was used to ensure the validity and accuracy of citations for the latest related articles. Additionally, Adobe Firefly (Firefly Image 3 model) was used to generate the Graphical Abstract. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

Author Sadid A. Hasan was employed by the company Microsoft AI. The authors declare that the research was conducted in the absence of any commercial or financial interests or relationships that could be construed as a potential conflict of interest. The authors declare no conflicts of interest. The employers or funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
AIArtificial Intelligence
LLMsLarge Language Models
MCPModel Context Protocol
NWSNational Weather Service
SOAService-Oriented Architecture
WMOWorld Meteorological Organization

Appendix A

Appendix A.1. Unit Test Report

Sustainability 18 02445 i001

Appendix A.2. Comprehensive Stdio MCP Conformance Test Report

===============================================
☑ Testing stdio-based MCP server with comprehensive validation
   Server Command: /Users/babak.jfard/projects/WeatherInfoMCP/weatherinfo_mcp/.venv/bin/python
   Server Args: [‘-m’, ‘weatherinfo_mcp.mcp_tools.main’]
   Server CWD: /Users/babak.jfard/projects/WeatherInfoMCP/weatherinfo_mcp
   Protocol Version: 2025-06-18
   Test Date: 10 December 2025 15:55:36
Summary:
--------
Total Tests: 7
Passed: 7
Failed: 0
Success Rate: 100.0%
Test Categories:
----------------
Base MCP Protocol: 3 tests (3 passed)
WeatherInfo_MCP Specific: 3 tests (3 passed)
MCP Inspector: 1 tests (1 passed)
Detailed Results:
----------------
✓ PASS: [BASE] Base MCP Connection and Initialization (0.19 s)
    MCP Spec: Base Protocol-Lifecycle
    Details: {
    “protocol_version”: “2025-06-18”,
    “has_capabilities”: true,
    “has_server_info”: true,
    “server_name”: “nws_weather_server”,
    “server_version”: “1.13.0”,
}
✓ PASS: [BASE] Base MCP Tool Manifest Compliance (0.19 s)
    MCP Spec: Server Features-Tools
    Details: {
    “tools_found”: 8,
    “all_tools_valid”: true
}
✓ PASS: [BASE] Base MCP Tool Execution Compliance (3.72 s)
    MCP Spec: Server Features-Tools
    Details: {
    “tool_executed”: “create_location”,
    “has_result”: true,
    “result_type”: “CallToolResult”
}
✓ PASS: [WEATHERINFO_MCP] WeatherInfo_MCP Tool Availability (0.22 s)
    MCP Spec: Server Features-Tools
    Details: {
    “expected_tools”: [
          “create_location”,
          “get_current_observation”,
          “get_temperature_from_observation”,
          “get_humidity_from_observation”,
          “get_weather_description_from_observation”,
          “get_wind_info_from_observation”,
          “get_alerts”,
          “get_HeatRisk”
    ],
    “available_tools”: [
          “create_location”,
          “get_current_observation”,
          “get_temperature_from_observation”,
          “get_humidity_from_observation”,
          “get_weather_description_from_observation”,
          “get_wind_info_from_observation”,
          “get_alerts”,
          “get_HeatRisk”
    ],
    “missing_tools”: [],
    “all_tools_present”: true
}
✓ PASS: [WEATHERINFO_MCP] WeatherInfo_MCP Location Creation (1.35 s)
    MCP Spec: Server Features-Tools
    Details: {
    “location_created”: true,
    “address”: “San Francisco, CA”,
    “latitude”: 37.7879363,
    “longitude”: −122.4075201,
    “has_station_url”: true
}
✓ PASS: [WEATHERINFO_MCP] WeatherInfo_MCP Weather Observation (3.01 s)
    MCP Spec: Server Features-Tools
    Details: {
    “observation_retrieved”: true,
    “has_timestamp”: true,
    “has_temperature”: true,
    “has_humidity”: true,
    “observation_keys”: [
          “@id”,
          “@type”,
          “elevation”,
          “station”,
          “stationId”,
          “stationName”,
          “timestamp”,
          “rawMessage”,
          “textDescription”,
          “icon”
    ]
}
✓ PASS: [INSPECTOR] MCP Inspector Availability (0.53 s)
    MCP Spec: Developer Tools
    Details: {
    “inspector_available”: true,
    “npx_accessible”: true,
    “help_output_length”: 559
}
Test Coverage:
--------------
☑ Base MCP Protocol Tests:
   -Connection and Initialization (Base Protocol-Lifecycle)
   -Tool Manifest Compliance (Server Features-Tools)
   -Tool Execution Compliance (Server Features-Tools)
☑ WeatherInfo_MCP-Specific Tests:
   -Tool Availability Validation
   -Location Creation Functionality
   -Weather Observation Retrieval
☑ MCP Inspector Integration:
   -Inspector Tool Availability
   -CLI Integration Testing
Compliance Status:
------------------
☑ COMPREHENSIVE TESTING with MCP specification version 2025-06-18
☑ All required protocol components tested
☑ Proper stdio transport implementation
☑ FastMCP server compatibility validated
☑ WeatherInfo_MCP-specific functionality validated
References:
-----------
-MCP Specification: https://modelcontextprotocol.io/specification/2025-06-18, accessed on 10 December 2025.
-FastMCP Documentation: https://github.com/modelcontextprotocol/python-sdk, accessed on 10 December 2025
-MCP Inspector: https://modelcontextprotocol.io/docs/tools/inspector, accessed on 10 December 2025
-WeatherInfo_MCP Documentation: ../README.md, accessed on 10 December 2025

Appendix B

Appendix B.1. Agent Instruction Prompt

“””
You are a weather assistant with two specialized MCP tools:
1. A weather data tool for live weather information.
2. A memory management tool for storing and recalling user-related information.
Your responsibilities:
- Provide accurate and context-aware weather information.
- Maintain persistent memory of users and their associated locations.
Capabilities:
- Retrieve weather observations (temperature, humidity, wind, weather description).
- Report weather alerts only when the user explicitly asks for them.
- Provide relevant heat risk context as appropriate.
- Create, recall, and update user and location entities in long-term memory.
Memory and Identification Workflow:
Always begin by identifying the user. Use memory to check for an existing entity representing this person.
Use consistent entity naming when saving people, e.g.,:
   person_<user_name> → location_<city_name>
If a person or location entity does not exist, create both:
   -person entity: represents the user (e.g., “John Doe”)
   -location entity: represents their location (e.g., “New York, NY”)
   -create_relation: link person to location using “lives_in”
After identifying the entities, use the stored location for all weather queries.
Weather Query Workflow:
Retrieve the user’s stored location (if exists).
If not found, ask for it, then store using the memory tool.
Fetch new weather data using get_current_observation.
Extract only the requested details (e.g., temperature, humidity, or heat risk).
Only check and report active weather alerts if the user explicitly mentions alerts or warnings.
Response Guidelines:
Never ask for a location again if it is already stored in memory.
Persist all newly discovered user details consistently.
Recognize returning users by their saved memory entities.
Only mention weather alerts when explicitly requested.
Always prioritize clarity, factual accuracy, and contextual completeness in responses.
“””

Appendix B.2. Python Code Snippet to Create the Sample Agent

# MCP server params
params_weather_mcp = {“name”: “heat-mcp”,
          “command”: “python”,
          “args”: [“-m”, “heat_mcp.mcp_tools.main”],
          “env”: {“PYTHONPATH”: “/path/to/heat_mcp/src”}}
params_memory_mcp = {“name”: “memory-”, “command”: “npx”,
          “args”: [“-y”, “mcp-memory-libsql”],
          “env”: {“LIBSQL_URL”: “file:./memory/test_memory.db”}}
# Create and connect MCP servers
weather_server = MCPServerStdio(params=params_weather_mcp, client_session_timeout_seconds=30)
memory_server = MCPServerStdio(params=params_memory_mcp, client_session_timeout_seconds=30)
mcp_servers = [weather_server, memory_server]
# Create agent
agent = Agent(
   name = “weather-agent”,
   instructions = instructions,
   model = “gpt-4.1-mini”,
   mcp_servers = mcp_servers
)
# Running example query
question = “Hi. My name is John Dove and I live in Omaha, Nebraska. What’s the weather like today?”
for server in mcp_servers:
   await server.connect()
result = await Runner.run(agent, question, max_turns = 10)
print(result.final_output)

Appendix B.3. Links to Other Weather-Related MCP Products

MCP NameMCP/Github LinkInitial Publication DateRelated Paper LinkLanguage
WeatherInfo_MCP (This model)https://github.com/Babakjfard/weatherinfo_mcp
accessed on 25 February 2026
2025TBDPython
OpenWeatherMap MCPhttps://playbooks.com/mcp/rossshannon-openweathermap
accessed on 8 December 2025
8 April 2025N/APython
Weather MCP (Jiří Spilka)https://apify.com/jiri.spilka/weather-mcp-server
https://github.com/isdaniel/mcp_weather_server
accessed on 8 December 2025
29 May 2025N/APython
MCP-Weather (TimLukaHorstmann)https://github.com/TimLukaHorstmann/mcp-weather
accessed on 8 December 2025
3 May 2025N/ATypeScript
MCP-Weather (adhikasp)https://github.com/adhikasp/mcp-weather
accessed on 8 December 2025
31 December 2024N/AUnknown
MCP Weather Server (FlowHunt)https://www.flowhunt.io/mcp-servers/mcp-weather/
accessed on 8 December 2025
17 June 2025N/AUnknown
OpenWeather MCP (RoystonDAlmeida)https://mcp.so/server/mcp-weather-server/RoystonDAlmeida
accessed on 8 December 2025
UnknownN/AUnknown
knmi-weather-mcphttps://github.com/wolkwork/knmi-mcp
accessed on 8 December 2025
27 February 2025N/AUnknown

References

  1. World Meteorological Organization. Weather-Related Disasters Increase over Past 50 Years, Causing More Damage but Fewer Deaths. 2021. Available online: https://wmo.int/media/news/weather-related-disasters-increase-over-past-50-years-causing-more-damage-fewer-deaths (accessed on 20 December 2025).
  2. Climate Central. U.S. Sees 14 Billion-Dollar Disasters in First Half of 2025. 2025. Available online: https://www.climatecentral.org/climate-matters/billion-dollar-disasters-2025 (accessed on 20 December 2025).
  3. Climate Central. U.S. Billion-Dollar Weather and Climate Disasters. Available online: https://www.climatecentral.org/climate-services/billion-dollar-disasters (accessed on 5 January 2026).
  4. Rajabi, N.; Rajabi, K.; Rajabi, F. Forecasting and management of disasters triggered by climate change. In Visualization Techniques for Climate Change with Machine Learning and Artificial Intelligence; Elsevier: Amsterdam, The Netherlands, 2023; pp. 181–207. [Google Scholar] [CrossRef]
  5. World Meteorological Organization. Atlas of Mortality and Economic Losses from Weather, Climate and Water Extremes (1970–2019). 2021. Available online: https://library.wmo.int/index.php?lvl=notice_display&id=21930 (accessed on 20 December 2025).
  6. Johar, H.; Abdulsalam, F.I.; Guo, Y.; Baernighausen, T.; Jahan, N.K.; Watterson, J.; Leder, K.; Gouwanda, D.; Ramanathan, G.R.L.; Lee, K.K.C.; et al. Community-based heat adaptation interventions for improving heat literacy, behaviours, and health outcomes: A systematic review. Lancet Planet. Health 2025, 9, 101207. [Google Scholar] [CrossRef] [PubMed]
  7. Errett, N.A.; Hartwell, C.; Randazza, J.M.; Nori-Sarma, A.; Weinberger, K.R.; Spangler, K.R.; Sun, Y.; Adams, Q.H.; Wellenius, G.A.; Hess, J.J. Survey of extreme heat public health preparedness plans and response activities in the most populous jurisdictions in the United States. BMC Public Health 2023, 23, 811. [Google Scholar] [CrossRef] [PubMed]
  8. Hoehne, C.G.; Hondula, D.M.; Chester, M.V.; Eisenman, D.P.; Middel, A.; Fraser, A.M.; Watkins, L.; Gerster, K. Heat exposure during outdoor activities in the US varies significantly by city, demography, and activity. Health Place 2018, 54, 1–10. [Google Scholar] [CrossRef] [PubMed]
  9. Kochkov, D.; Yuval, J.; Langmore, I.; Norgaard, P.; Smith, J.; Mooers, G.; Klöwer, M.; Lottes, J.; Rasp, S.; Düben, P.; et al. Neural general circulation models for weather and climate. Nature 2024, 632, 1060–1066. [Google Scholar] [CrossRef] [PubMed]
  10. Chen, L.; Han, B.; Wang, X.; Zhao, J.; Yang, W.; Yang, Z. Machine Learning Methods in Weather and Climate Applications: A Survey. Appl. Sci. 2023, 13, 12019. [Google Scholar] [CrossRef]
  11. Hewage, P.; Trovati, M.; Pereira, E.; Behera, A. Deep learning-based effective fine-grained weather forecasting model. Pattern Anal. Appl. 2021, 24, 343–366. [Google Scholar] [CrossRef]
  12. Kim, B.; Kim, T. AI in extreme weather events prediction and response: A systematic topic-model review (2015–2024). Front. Environ. Sci. 2025, 13, 1659344. [Google Scholar] [CrossRef]
  13. World Meteorological Organization. Forecasting the Future: The Role of Artificial Intelligence in Transforming Weather Prediction and Policy. 2025. Available online: https://wmo.int/media/magazine-article/forecasting-future-role-of-artificial-intelligence-transforming-weather-prediction-and-policy (accessed on 20 December 2025).
  14. Shaik, F.A.; Oussalah, M. On mining mobile emergency communication applications in Nordic countries. Int. J. Disaster Risk Reduct. 2024, 108, 104566. [Google Scholar] [CrossRef]
  15. Wetterhall, F.; Zollo, A.; Colombelli, S. A roadmap to Multi-Risk Impact-Based Early Warning System for Weather and Geo Hazards in Europe. In Proceedings of the EMS Annual Meeting, Ljubljana, Slovenia, 7–12 September 2025. [Google Scholar] [CrossRef]
  16. Cao, A.; Nakamura, S.; Otsuyama, K.; Namba, M.; Yoshimura, K. Current status and challenges in operating flood early warning systems at the local level in Japan. Int. J. Disaster Risk Reduct. 2024, 112, 104802. [Google Scholar] [CrossRef]
  17. Akter, S.; Wamba, S.F. Big data and disaster management: A systematic review and agenda for future research. Ann. Oper. Res. 2019, 283, 939–959. [Google Scholar] [CrossRef]
  18. Imran, M.; Castillo, C.; Diaz, F.; Vieweg, S. Processing Social Media Messages in Mass Emergency: A Survey. ACM Comput. Surv. 2015, 47, 67. [Google Scholar] [CrossRef]
  19. Giambelli, M.; Meninno, S.; Deda, M.; Paniccia, C.; Vio, R.; Renzulli, S.; Morando, M.; Ponte, E.; Massabò, M. Linking early warnings to early actions through system approach: Learnings from pilots in Western Balkans and Türkiye. In Proceedings of the 25th EGU General Assembly, Vienna, Austria, 23–28 April 2023. [Google Scholar] [CrossRef]
  20. Hasan, M.M.; Bitto, A.K.; Chakraborty, A.; Nanwani, R.; Rahman, M.M.; Hameed, N. Net0Chain: An AI-Enabled Climate and Environmental Risks (CER) Framework for Achieving Net-Zero. In 2023 15th International Conference on Software, Knowledge, Information Management and Applications (SKIMA); IEEE: Piscataway, NJ, USA, 2023; pp. 163–168. [Google Scholar] [CrossRef]
  21. Anthropic. Introducing the Model Context Protocol. Announcements. Available online: https://www.anthropic.com/news/model-context-protocol (accessed on 20 December 2025).
  22. Ehtesham, A.; Singh, A.; Gupta, G.K.; Kumar, S. A survey of agent interoperability protocols: Model Context Protocol (MCP), Agent Communication Protocol (ACP), Agent-to-Agent Protocol (A2A), and Agent Network Protocol (ANP). arXiv 2025, arXiv:2505.02279. [Google Scholar] [CrossRef]
  23. Shethiya, A.S. LLM-Powered Architectures: Designing the Next Generation of Intelligent Software Systems. Acad. Nexus J. 2023, 2, 1–8. Available online: http://academianexusjournal.com/index.php/anj/article/view/21 (accessed on 21 November 2025).
  24. Ray, P.P. A Survey on Model Context Protocol: Architecture, State-of-the-art, Challenges and Future Directions. Available online: https://www.authorea.com/users/913189/articles/1286748-a-survey-on-model-context-protocol-architecture-state-of-the-art-challenges-and-future-directions (accessed on 12 November 2025).
  25. Marks, E.A.; Bell, M. (Eds.) Service-Oriented Architecture: A Planning and Implementation Guide for Business and Technology, 1st ed.; Wiley: Hoboken, NJ, USA, 2012. [Google Scholar] [CrossRef]
  26. JSON-RPC Working Group. JSON-RPC 2.0 Specification. 2013. Available online: https://www.jsonrpc.org/specification (accessed on 20 December 2025).
  27. Hou, X.; Zhao, Y.; Wang, S.; Wang, H. Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directions. arXiv 2025, arXiv:2503.23278. [Google Scholar] [CrossRef]
  28. Fowler, M. Patterns of Enterprise Application Architecture; Addison-Wesley: Boston, MA, USA, 2012; Available online: https://books.google.com/books?hl=en&lr=&id=vqTfNFDzzdIC&oi=fnd&pg=PR7&dq=Fowler,+M.+(2002).+Patterns+of+Enterprise+Application+Architecture.+Addison-Wesley.&ots=oVFlEuNOqD&sig=bD7FoqlhhivSPxYIAZnR14z5B-k (accessed on 12 December 2025).
  29. ANSI/IEEE Std 1008-1987; IEEE Standard for Software Unit Testing. IEEE: New York, NY, USA, 1987. [CrossRef]
  30. Fowler, M. Mocks Aren’t Stubs. Available online: https://martinfowler.com/articles/mocksArentStubs.html (accessed on 20 December 2025).
  31. Radhakrishnan, S.; Cheng, Y.; Chu, J.; Jain, A.; Raghavan, B. TCP fast open. In Proceedings of the Seventh COnference on Emerging Networking EXperiments and Technologies, Tokyo, Japan, 6–9 December 2011; pp. 1–12. [Google Scholar] [CrossRef]
  32. Jirka, S.; Nüst, D.; Proß, B. Sensor web and web processing standards for crisis management. In Proceedings of the ISCRAM 2013 Conference Proceedings—10th International Conference on Information Systems for Crisis Response and Management, Baden-Baden, Germany, 12–15 May 2013. [Google Scholar]
  33. Reznik, T.; Charvat, K., Jr.; Charvat, K.; Horakova, S.; Lukas, V.; Kepka, M. Open data model for (precision) agriculture applications and agricultural pollution monitoring. In EnviroInfo and ICT for Sustainability 2015; Atlantis Press: Paris, France, 2015; pp. 97–107. [Google Scholar] [CrossRef]
  34. Turbelin, C.; Boëlle, P.-Y. Exposing public health surveillance data using existing standards. Stud. Health Technol. Inform. 2013, 192, 802–806. [Google Scholar] [CrossRef]
Figure 1. Using WeatherInfo_MCP reduces the complexity of data access in a multi-agent system: (a) without WeatherInfo_MCP, (b) with WeatherInfo_MCP. Access to the dashed and grayed data sources is not included in this initial version.
Figure 1. Using WeatherInfo_MCP reduces the complexity of data access in a multi-agent system: (a) without WeatherInfo_MCP, (b) with WeatherInfo_MCP. Access to the dashed and grayed data sources is not included in this initial version.
Sustainability 18 02445 g001
Figure 2. WeatherInfo_MCP system architecture depicting its two-part design. Data flow occurs from the NWS API to AI agents via stateless, serialized endpoints.
Figure 2. WeatherInfo_MCP system architecture depicting its two-part design. Data flow occurs from the NWS API to AI agents via stateless, serialized endpoints.
Sustainability 18 02445 g002
Figure 3. Workflow diagram of a single agent session in our sample case.
Figure 3. Workflow diagram of a single agent session in our sample case.
Sustainability 18 02445 g003
Table 1. Summary of WeatherInfo_MCP testing coverage and outcomes in accordance with MCP Version 2025-06-18.
Table 1. Summary of WeatherInfo_MCP testing coverage and outcomes in accordance with MCP Version 2025-06-18.
No.CategoryTest NameTotal Tests% PassedNotes
1MCP Protocol Compliance 2025-06-18Tool Manifest, Connection, and Execution Validation3100%Validated initialization, tool manifest (8 tools), and execution of create_location
2Session and Lifecycle ManagementProtocol Version Negotiation7100%Includes protocol version negotiation and lifecycle tests, including session initialization and session state transition
3Error Handling & RecoveryError Handling & Recovery10100%Comprehensive error, retry, and timeout handling tests
4MCP-Specific Functional TestsMCP-Specific Functional Tests3100%Location creation, weather observation, and alert retrieval
5Security ComplianceSecurity Compliance0100%Not tested; system does not handle sensitive information
Table 2. The outcome generated by the sample agent system using WeatherInfo_MCP alongside a memory MCP. The list includes interactions with a single agent in a single session, testing with different combinations of names and locations *.
Table 2. The outcome generated by the sample agent system using WeatherInfo_MCP alongside a memory MCP. The list includes interactions with a single agent in a single session, testing with different combinations of names and locations *.
InteractionSpeakerUtterance
1UserHi. My name is John Dove and I live in Omaha, Nebraska. What’s the weather like today?
AgentJohn, the current weather in Omaha, Nebraska, is clear with a temperature of about 9 °C (48 °F). The wind is coming from the north-northwest at approximately 24 km/h (15 mph) with gusts up to 33 km/h (21 mph). The relative humidity is around 57%.
2UserHi. I am Bobby Jones. Is there any weather alert today?
AgentI don’t have your location saved yet. Could you please tell me the city or area where you are located? This will help me check for any weather alerts for your location.
3UserHi. I am John Dove. Is there any weather alert today?
AgentHello John Dove. There are no weather alerts for Omaha, Nebraska, today.
* User questions are in italic to ease the distinction from the system replies.
Table 3. Qualitative comparison of software engineering metrics between direct NWS API integration and the proposed WeatherInfo_MCP architecture.
Table 3. Qualitative comparison of software engineering metrics between direct NWS API integration and the proposed WeatherInfo_MCP architecture.
FeatureDirect NWS AIP IntegrationWeatherInfo_MCP (Proposed)
Integration ComplexityHigh: Requires handling HTTP headers, rate limits, and JSON parsing logic within the agent’s codebase.Low: Agent uses predefined tools (e.g., get_weather) without needing knowledge of the underlying API protocols.
Development EffortLinear (M × N): Each new agent requires a fresh integration script for every new data source.Modular (M + N): Once the MCP server is running, any number of agents can connect instantly without new code.
Error HandlingManual: Developers must write custom logic to catch timeouts or 500-level errors for every request.Built-in: The SOA core handles retries, timeouts, and graceful failures automatically before the agent sees a result.
MaintainabilityLow: If the NWS API changes its endpoints, every agent’s code must be rewritten.High: API updates are handled once within the MCP server; agents remain unaffected.
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.

Share and Cite

MDPI and ACS Style

Jalalzadeh Fard, B.; Hasan, S.A.; Bell, J.E. Facilitating AI-Driven Sustainability: A Service-Oriented Architecture for Interoperable Environmental Data Access. Sustainability 2026, 18, 2445. https://doi.org/10.3390/su18052445

AMA Style

Jalalzadeh Fard B, Hasan SA, Bell JE. Facilitating AI-Driven Sustainability: A Service-Oriented Architecture for Interoperable Environmental Data Access. Sustainability. 2026; 18(5):2445. https://doi.org/10.3390/su18052445

Chicago/Turabian Style

Jalalzadeh Fard, Babak, Sadid A. Hasan, and Jesse E. Bell. 2026. "Facilitating AI-Driven Sustainability: A Service-Oriented Architecture for Interoperable Environmental Data Access" Sustainability 18, no. 5: 2445. https://doi.org/10.3390/su18052445

APA Style

Jalalzadeh Fard, B., Hasan, S. A., & Bell, J. E. (2026). Facilitating AI-Driven Sustainability: A Service-Oriented Architecture for Interoperable Environmental Data Access. Sustainability, 18(5), 2445. https://doi.org/10.3390/su18052445

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop