Research Article

A Modular, Protocol-Driven Architecture for Distributed LLM-Based Applications

By: Jian Li*
CNPC R&D (DIFC) COMPANY LIMITED
*Corresponding author
Received: 2026-10-28Revised: 2026-10-30Accepted: 2026-11-06Published: 2026-12-15
AESIG 2026, 2(3), 23-65
Funding: This research was funded by the China National Petroleum Corporation (CNPC) under Grant No. 2025ZG60. The APC was funded by the authors’ institution.
Abstract
Large Language Models (LLMs) are evolving from simple chatbots into autonomous agents that use tools, maintain memory, and collaborate across distributed systems. However, current frameworks lack standardized interfaces, leading to tight coupling between components (LLMs, memory, tools) and poor replaceability. This paper proposes a modular reference architecture for distributed LLM-based applications built on the Model Context Protocol (MCP) as the universal communication backbone. The architecture defines six decoupled service categories—Bus, Compute, Fast Memory, External Memory, Storage, and Tools—each with a complete API specification. A two-tier memory hier-archy separates low-latency ephemeral storage from persistent retrievable storage, optimizing both cost and response time. Components are independently deployable and communicate exclusively through MCP, enabling hot-swapping and incremental upgrades. A real-world case study from the oil and gas domain—an autonomous production diagnostic and reservoir connectivity analysis agent—demonstrates the architecture’s feasibility. Quantitative evaluation shows 50% reduction in response time through fast memory, 53% reduction in token usage, and near-zero code changes for component replacement. The architecture provides a standardized, composable foundation for next-generation LLM systems.
Keywords: Model Context Protocol (MCP); LLM agents; Distributed AI architecture; Modular design; API decoupling; Composable systems
 

Full Text
Download the full text PDF for viewing and using it according to the license of this paper.

 

References

  1. Anthropic. Model Context Protocol. 2024. Available from: https://modelcontextprotocol.io
  2. Anthropic. Claude 3 Model Family. 2024. Available from: https://www.anthropic.com/claude
  3. Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, et al. Attention Is All You Need. Advances in Neural Information Processing Systems. 2017;30.
  4. Brown T, et al. Language Models are Few-Shot Learners. Advances in Neural Information Processing Systems. 2020;33.
  5. OpenAI. GPT-4 Technical Report. arXiv preprint arXiv:2303.08774. 2023.
  6. Touvron H, et al. Llama 2: Open Foundation and Fine-Tuned Chat Models. arXiv preprint arX - iv:2307.09288. 2023.
  7. Wei J, et al. Chain-of-Thought Prompting Elicits 65 ASEIG V ol. 2, Issue. 3 ( 2026 ) Reasoning in Large Language Models. Advances in Neural Information Processing Systems. 2022;35.
  8. Schick T, et al. Toolformer: Language Models Can Teach Themselves to Use Tools. arXiv preprint arXiv:2302.04761. 2023.
  9. Chase H. LangChain. 2022. Available from: https:// github.com/langchain-ai/langchain
  10. Wu Q, et al. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. arXiv preprint arXiv:2308.08155. 2023.
  11. Microsoft. Semantic Kernel. 2023. Available from: https://github.com/microsoft/semantic-kernel
  12. OpenAI. Function Calling and Other API Updates. 2023. Available from: https://openai.com/blog/ function-calling-and-other-api-updates
  13. Anthropic. Tool Use with Claude. 2024. Available from: https://docs.anthropic.com/claude/docs/tool-use
  14. CrewAI. CrewAI: Multi-Agent Framework. 2024. Available from: https://github.com/joaomdmoura/ crewAI
  15. Packer C, Fang V, Patil SG, Lin K, Wooders S, Gon-zalez JE. MemGPT: Towards LLMs as Operating Systems. arXiv preprint arXiv:2310.08560. 2023.
  16. Zep. Zep: Long-term Memory for AI Assistants. 2024. Available from: https://github.com/getzep/zep
  17. Lewis P, Perez E, Piktus A, Petroni F, Karpukhin V, Goyal N, et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems. 2020;33:9459–9474.
  18. KServe. KServe: Standardized Serverless ML Inference Platform on Kubernetes. 2022. Available from: https://github.com/kserve/kserve
  19. BentoML. BentoML: Unified Model Serving Framework. 2021. Available from: https://github. com/bentoml/BentoML
  20. Moritz P, Nishihara R, Wang S, Tumanov A, Liaw R, Liang E, et al. Ray: A Distributed Framework for Emerging AI Applications. Proceedings of the 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI 18). 2018:561–577.
  21. JSON-RPC Working Group. JSON-RPC 2.0 Specification. 2013. Available from: https://www.jsonrpc.org/specification
  22. JSON Schema Working Group. JSON Schema Draft-07. 2020. Available from: https://json-schema.org/
  23. OpenTelemetry. OpenTelemetry Specification. 2024. Available from: https://opentelemetry.io/
  24. Docker Inc. Docker Container Platform. 2024. Available from: https://www.docker.com/
  25. Cloud Native Computing Foundation. Kubernetes Production-Grade Container Orchestration. 2024. Available from: https://kubernetes.io/
  26. Locust. Locust: Open Source Load Testing Tool. 2024. Available from: https://locust.io/
CC BY 4.0
© 2026 by author(s). Licensee MOSP, Macao, China. This is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY 4.0) license.
Disclaimer: The statements, opinions and data contained in this journal are solely those of the individual authors and contributors and not of Macao Scientific Publishers and/or the editors. Macao Scientific Publishers and/or the editors disclaim responsibility for any injury to persons or property resulting from any ideas, methods, instructions or products referred to in the content.
Cite

Reference format:

Jian Li. A Modular, Protocol-Driven Architecture for Distributed LLM-Based Applications[J]. AESIG, 2026, 2(3): 23-65.
Share

Copy the link below to share this article:

Contact Us

Contact us via:

Email
Telephone
+853 62961666
Supplementary

No supplementary material is available for this article.

Submit Your Manuscript Now