Integrating Large Language Models (LLMs) with enterprise software enables natural language interaction with external systems and the execution of operational tasks. However, this integration requires mechanisms that expose existing functionality while limiting the need for service-specific implementations. This thesis presents the design and implementation of an MCP Hub based on the Model Context Protocol, aimed at connecting conversational applications with REST services in the logistics domain. Developed in C# using the MCP SDK, the hub processes OpenAPI specifications and dynamically generates corresponding MCP tools, deriving their descriptions, input schemas, and invocation logic. It then translates tool calls into HTTP requests to the underlying services. The architecture also includes a chatbot with an integrated MCP client, allowing an LLM to select and invoke the tools needed to fulfil natural language requests. To limit the amount of tool information included in the model’s context, the system incorporates a semantic retrieval mechanism based on embeddings and cosine similarity. For each user request, the client retrieves a relevant subset of tools from a central registry and makes them available to the LLM. The architecture is demonstrated through the integration of the Antsim simulator and the EasyLogic warehouse control system, exposing a total of 315 MCP tools. The presented use cases illustrate both single-operation requests and multi-step workflows involving different backend services. These demonstrations establish the feasibility of a configurable integration layer between REST APIs and LLM-based applications, supporting the reuse of existing services and extending natural language interaction to logistics systems.
Integrating Large Language Models (LLMs) with enterprise software enables natural language interaction with external systems and the execution of operational tasks. However, this integration requires mechanisms that expose existing functionality while limiting the need for service-specific implementations. This thesis presents the design and implementation of an MCP Hub based on the Model Context Protocol, aimed at connecting conversational applications with REST services in the logistics domain. Developed in C# using the MCP SDK, the hub processes OpenAPI specifications and dynamically generates corresponding MCP tools, deriving their descriptions, input schemas, and invocation logic. It then translates tool calls into HTTP requests to the underlying services. The architecture also includes a chatbot with an integrated MCP client, allowing an LLM to select and invoke the tools needed to fulfil natural language requests. To limit the amount of tool information included in the model’s context, the system incorporates a semantic retrieval mechanism based on embeddings and cosine similarity. For each user request, the client retrieves a relevant subset of tools from a central registry and makes them available to the LLM. The architecture is demonstrated through the integration of the Antsim simulator and the EasyLogic warehouse control system, exposing a total of 315 MCP tools. The presented use cases illustrate both single-operation requests and multi-step workflows involving different backend services. These demonstrations establish the feasibility of a configurable integration layer between REST APIs and LLM-based applications, supporting the reuse of existing services and extending natural language interaction to logistics systems.
From Large Language Models to Agentic AI: Design and Implementation of an MCP Hub for Logistics Automation
CARLOTTO, MARCO
2025/2026
Abstract
Integrating Large Language Models (LLMs) with enterprise software enables natural language interaction with external systems and the execution of operational tasks. However, this integration requires mechanisms that expose existing functionality while limiting the need for service-specific implementations. This thesis presents the design and implementation of an MCP Hub based on the Model Context Protocol, aimed at connecting conversational applications with REST services in the logistics domain. Developed in C# using the MCP SDK, the hub processes OpenAPI specifications and dynamically generates corresponding MCP tools, deriving their descriptions, input schemas, and invocation logic. It then translates tool calls into HTTP requests to the underlying services. The architecture also includes a chatbot with an integrated MCP client, allowing an LLM to select and invoke the tools needed to fulfil natural language requests. To limit the amount of tool information included in the model’s context, the system incorporates a semantic retrieval mechanism based on embeddings and cosine similarity. For each user request, the client retrieves a relevant subset of tools from a central registry and makes them available to the LLM. The architecture is demonstrated through the integration of the Antsim simulator and the EasyLogic warehouse control system, exposing a total of 315 MCP tools. The presented use cases illustrate both single-operation requests and multi-step workflows involving different backend services. These demonstrations establish the feasibility of a configurable integration layer between REST APIs and LLM-based applications, supporting the reuse of existing services and extending natural language interaction to logistics systems.| File | Dimensione | Formato | |
|---|---|---|---|
|
Carlotto_Marco.pdf
Accesso riservato
Dimensione
16.28 MB
Formato
Adobe PDF
|
16.28 MB | Adobe PDF |
The text of this website © Università degli studi di Padova. Full Text are published under a non-exclusive license. Metadata are under a CC0 License
https://hdl.handle.net/20.500.12608/121585