October 26, 2026
Model Context Protocol (MCP) as an interoperability standard between artificial intelligence agents
Amanda Biacchi Eloy; Juliano Schimiguel
DOI: 10.22167/2675-6528-202600522
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
This work investigated the Model Context Protocol (MCP) as an interoperability standard between artificial intelligence agents, through the implementation of an experimental prototype and a case study in an environment representative of real use. The research adopted a qualitative approach and experimental design, combining documentary survey, development of an MCP server, and analysis of its integration with external tools. For this purpose, JSON-RPC communication logs were analyzed, allowing observation of the protocol’s operation and the use of tools in an applied scenario with the Miro platform. The results indicated that the MCP contributed significantly to the standardization and auditability of interactions, by enabling structured access to external context sources and consistent interpretation of requirements for code generation. However, the protocol also introduced challenges related to context overhead and operational complexity, especially in the tool discovery phase and the maintenance of reasoning state. It was concluded that the MCP represents a relevant approach for agent interoperability, expanding the capabilities of language models and influencing agent behavior and the organization of execution logic, while also highlighting new trade-offs in the development of AI-based systems.
Keywords: Intelligent agents; Software engineering; Systems integration; Interoperability; Language Models.
1. Introduction
The rapid evolution of artificial intelligence (AI) has transformed the way software systems are developed and operated. In 2023, the introduction of function calling by OpenAI marked a turning point, enabling language models (LLMs) to access external application programming interfaces (APIs) and execute tasks autonomously. This innovation significantly expanded the capability of AI agents to interact with the real world, seeking real-time data and performing complex operations on external systems.
With the growing adoption of this practice, several LLM-based applications began to develop their own plugins and platform-specific functionalities. Tools like LangChain and LlamaIndex emerged to facilitate the integration of LLMs with external services. However, the proliferation of similar mechanisms by different AI providers, such as Anthropic, Google, and Meta, has resulted in a fragmented ecosystem. This scenario demands considerable manual effort from developers to configure, authenticate, and implement each service, creating barriers to the interoperability and scalability of agent-based systems.
Faced with this fragmentation and the need for unified communication, Anthropic proposed, in 2024, the Model Context Protocol (MCP). This open protocol was designed to standardize communication between AI agents and external tools, seeking to resolve the complexity inherent in integrating multiple services and contexts. The MCP is inspired by the Language Server Protocol (LSP), widely used in software development, to offer a structured format for information exchange.
The architecture of the Model Context Protocol is composed of three main elements that operate in an integrated manner (MODEL CONTEXT PROTOCOL, 2025). The MCP Host is the artificial intelligence application that coordinates and manages one or more clients. The MCP Client establishes communication with the server, obtaining and relaying the necessary context for the host’s operations. In turn, the MCP Server is the component responsible for making these contexts available to the clients, acting as the main source of information. The protocol adopts a session-oriented model, supported by a rigorous specification in JSON-RPC, which allows for the maintenance of continuous connections and the dynamic negotiation of capabilities between hosts, clients, and servers.
Unlike conventional communication protocols, such as HTTP and gRPC, which do not offer native mechanisms for managing persistent sessions and dynamic capability negotiation, MCP represents a direct response to these limitations (Ray, 2025). Its modular architecture facilitates the implementation of adaptive and secure flows, capable of integrating multiple context sources, such as databases, APIs, local files, and sensors, under a unified authorization and discovery scheme. In addition to standardizing tool invocation, MCP redefines the communication infrastructure of LLM-based systems, integrating capability negotiation, context injection, and tool orchestration mechanisms within the protocol itself (Hou et al., 2025; Ray, 2025).
Despite the rapid growth and increasing adoption in tools like Claude Desktop and Cursor, the MCP ecosystem is still in its early stages of maturity. Issues related to security, performance, and version standardization remain open and require further research on governance, threat mitigation, and compatibility between different implementations (Hou et al., 2025). Operational complexity and context overload are notable challenges that arise with the adoption of the protocol, highlighting new trade-offs in the development of AI-based systems.
In this context, the study of the Model Context Protocol becomes essential to understand the advancement of agent-oriented architectures and the role of open protocols in consolidating secure, scalable, and interoperable AI infrastructures. Thus, this work investigates the functioning of the Model Context Protocol (MCP) as an interoperability standard between artificial intelligence agents, through the practical and experimental analysis of a prototype.
2. Material and Methods
This work was characterized as an applied research, of a qualitative nature, conducted through a controlled experiment and a case study. The methodological design was structured in five main stages, combining exploratory research and practical implementation, aiming to investigate the functioning of the Model Context Protocol (MCP) as an interoperability standard between artificial intelligence agents.
The first stage consisted of an exploratory and documentary research. A comprehensive theoretical and documentary survey was carried out on the Model Context Protocol, its origins, architecture, and current applications. Academic and technical publications, official protocol documentation, reference repositories, and existing implementations were analyzed, with the aim of understanding the communication structure and integration challenges (Gil, 2019).
In the second stage, the planning and modeling of the experimental prototype were carried out. Based on the theoretical framework, the prototype’s architecture was defined, following the MCP’s `client-host-server` model, according to the protocol specification. The objective was to create a controlled environment to observe the protocol’s operation in a practical case.
The prototype components were specified: the tools exposed by the MCP server, the host responsible for communication, and the client, represented by the textual interaction interface with artificial intelligence. To formalize the system’s functionalities and restrictions, functional requirements were defined, such as communication between `client`, `host`, and `server` via MCP, the provision of tools for interacting with the Miro API, listing items from a `board`, creating elements (sticky notes, shapes, texts), and logging interactions in JSON-RPC format.
Additionally, non-functional requirements were established, including the use of the JSON-RPC 2.0 protocol, ensuring compatibility with the official MCP SDK, execution in a controlled local environment, maintaining acceptable response time in calls, and structuring the tools with JSON Schema. The interaction between components was designed so that the language model (LLM) acted as an intermediary between the user and the MCP Server, accessing and executing the functionalities available in the system, such as tool consultation and data manipulation in external sources (Sommerville, 2011).
The third stage involved the implementation of the MCP Server and its integration with the Miro platform. The server was developed in TypeScript, using Node.js (version 24.3.0) and the official Model Context Protocol SDK (version 1.25.2). The execution environment was configured locally, allowing the simulation of interactions between `client`, `host`, and `server`.
The development followed an incremental approach, which allowed for progressive validation of the system components. Activities included configuring and registering tools, implementing communication `endpoints` between `host` and `server`, and generating detailed logs for subsequent analysis of interactions. Large Language Models (LLMs) were employed to support code generation, documentation interpretation, and error identification, with subsequent manual validation and adjustment.
The Miro platform was selected because it represents an environment where the context necessary for software development is distributed across different artifacts, such as textual descriptions, diagrams, and visual prototypes. This choice allowed the experiment to approximate real-world scenarios, in which relevant information is not centralized in a single `prompt`.
The fourth stage consisted of experimental tests and observation of the results. After implementation, the interactions between `client`, `host`, and `server` were observed in a controlled environment. The experiment was conducted based on an applied scenario, configuring a simplified case study involving integration with the Miro platform, with the objective of approximating the analysis to real usage conditions.
The process of tool discovery and invocation, the compliance of messages with the JSON-RPC format, the stability of interactions, and the technical difficulties associated with integration, such as authentication, capability negotiation, and latency, were analyzed. In addition to qualitative analysis, quantitative metrics were considered, including call response time, volume of data processed (tokens), and the number of tool invocations during execution.
The tests were performed using different interaction environments with language models, including Cursor IDE and Claude Code API, with multiple independent runs of the experiment. This approach aimed to reduce biases associated with single runs and observe recurring behavioral patterns, following software engineering experimentation principles (Wohlin et al., 2012).
Finally, in the fifth stage, the analysis and validation of the data obtained during the tests were carried out. The generated logs and observed interactions were qualitatively analyzed. The identified behavior was compared with the MCP specification, allowing an evaluation of the degree of adherence to the protocol, as well as the identification of limitations and benefits. This qualitative analysis was used to interpret the observed phenomena and propose practical improvements, consolidating the experiment’s results, including logs, communication flows, and technical considerations regarding the use of MCP.
3. Results and Discussion
The results of this work were obtained from two complementary approaches, aiming for a comprehensive understanding of the Model Context Protocol (MCP). The first approach involved the development and execution of an experimental prototype in a controlled environment, allowing for detailed observation of the protocol’s operation. The second consisted of using an MCP server in a scenario representative of software development, which made it possible to evaluate the protocol’s behavior under conditions closer to practice. This methodological combination not only technically validated the protocol but also allowed for the analysis of its practical implications, limitations, and contributions in the context of integration between language models and external tools.
The research sought to investigate the functioning of the Model Context Protocol (MCP) as an interoperability standard between artificial intelligence agents. The findings demonstrate that the MCP acts as a facilitator in the standardization and auditability of interactions, by enabling structured access to external context sources and consistent interpretation of requirements for code generation. However, the implementation and case study also revealed significant challenges, such as context overhead and operational complexity, especially in the tool discovery phases and in maintaining the agents’ reasoning state.
Prototype Implementation
In the implementation phase, an MCP Server was developed to expose tools for integration with the collaborative digital whiteboard platform, Miro. This server allowed for the creation and reading of visual elements, such as sticky notes, simulating a real development environment. The communication architecture adopted in the prototype highlighted the separation of responsibilities between the client, host, and server components, as defined by the MCP (MODEL CONTEXT PROTOCOL, 2025). The server was implemented strictly following the protocol specification, using stdio as the transport layer and the JSON-RPC standard for communication, with each functionality formally described through JSON Schema schemas.
Additionally, a second MCP Server was implemented for reading local files, with the purpose of providing structured content directly from the file system. This server acted as a complementary source of context, expanding the experiment’s capacity to simulate scenarios with multiple information sources, a crucial characteristic in real-world MCP-based applications. The use of large language models (LLMs) during the prototype development aided in code generation, documentation interpretation, and error identification, although the generated code required validation and manual adjustments to ensure adherence to requirements.
JSON-RPC communication analysis
During the prototype execution, detailed records of the JSON-RPC communication between the MCP client (cursor-vscode) and the implemented server (miro-server) were collected. This analysis allowed observation of the different phases of the connection lifecycle, as foreseen in the protocol specification, and empirically validated several concepts described in the official documentation. The first set of captured messages highlighted the MCP session initialization process, performed through the `initialize` method. In this stage, the client sent a JSON-RPC request containing the protocol version used, its declared capabilities, and identification information, allowing the server to identify the connection client.
In response, the server returned its own capabilities, which included the provision of tools with support for change notification and their identification data. This process completed the capability negotiation phase, as foreseen by the protocol. After initialization, the client sent a `notifications/initialized` notification, signaling its readiness to operate. This behavior highlighted the stateful nature of communication in MCP, which depends on the sequence of interactions and connection lifecycle management, unlike purely request-response-based protocols.
Next, the invocation of the `tools/list` method was observed, through which the client requested the server for the list of available tools. The response returned by the server contained a structured array of objects, each representing a specific tool, with fields such as name, description, `inputSchema`, and `execution`. In the case of the developed server, four tools were exposed: `get_board_items`, `create_sticky_note`, `create_shape`, and `create_text`. The use of JSON Schema in the definition of the tools was crucial, allowing for the formal specification of input parameters, including types, descriptions, and mandatory fields.
This mechanism functions as a contract between the server and the language model, ensuring that tool calls follow a valid structure. The declarative approach allows the model to dynamically interpret how to use each tool, without relying on specific prior knowledge, reinforcing the role of the MCP as a contract-oriented protocol. Technical analysis of the logs also confirmed that the communication between client and server strictly followed the JSON-RPC 2.0 standard, with all messages containing the mandatory fields `jsonrpc`, `method`, and `id`, when applicable. The absence of validation errors indicated that the SDK used adequately abstracts the complexity of the transport protocol, allowing development to focus on the business logic of the tools.
Performance and Scalability Challenges
From a performance and scalability standpoint, the logs allowed us to observe the volume and structure of messages exchanged during tool discovery. The response to the `tools/list` method contained approximately 15,000 lines of structured JSON, reflecting the amount of metadata required to formally describe each available tool. This data volume indicates that the tool discovery process in MCP can introduce significant overhead, especially in scenarios where multiple tools are exposed simultaneously. The need to transfer complete descriptions, including detailed JSON Schema schemas, tends to increase processing costs and the model’s context window usage.
This behavior aligns with what is discussed by Liu et al. (2026), who describe the traditional MCP architecture as a centralized model, in which a main component is responsible for maintaining the reasoning state and coordinating interactions with external servers. In this approach, significant volumes of context need to be constantly transmitted and processed with each tool invocation, directly impacting the system’s computational cost and latency. Thus, the experiments showed that the MCP’s performance challenges manifest in both the tool discovery phase, with the transfer of large volumes of metadata, and in the operational phase with the continuous maintenance and transmission of context between components.
Limitations in AI-Assisted Development
One of the central aspects observed in the preliminary results refers to the use of large language models (LLMs) in the development and testing process of the MCP Server. LLMs were used to support code implementation, interpretation of official documentation, and adaptation of the MCP guide to the environment used. This usage showed initial productivity gains, but also revealed significant limitations associated with the adoption of emerging technologies together with AI agents.
During initial implementation attempts, it was observed that a generalist LLM encountered difficulties in correctly interpreting the official MCP documentation. The model generated inconsistent configurations, introduced execution errors, and in some cases, incorrectly indicated that the implementation would not be technically feasible. In contrast, when using an LLM with a greater capacity for contextual reasoning and incremental debugging, it was possible to quickly identify specific configuration errors and validate the functional execution of the MCP server. This contrast highlights that different AI models can lead to substantially distinct technical outcomes, even when applied to the same problem and the same set of tools, a behavior also observed in recent studies pointing to significant variations in LLM performance on code generation tasks (Zhang and Kothari, 2025).
Another relevant result concerns the difficulty of LLMs in keeping up with recent updates to the MCP SDK. During the experiments, responses based on outdated SDK versions were identified, which disregarded higher-level abstractions introduced later to simplify development and reduce repetitive code. This lag resulted in the generation of incompatible or excessively complex code, requiring constant human validation to ensure adherence to the version actually used. These limitations highlight the need for more robust and up-to-date AI-assisted development to handle the rapid evolution of protocols and tools.
Case study: evaluation of MCP server usage in a real development context
The case study was conducted with the objective of observing, in a practical scenario, how the Model Context Protocol (MCP) acts as an aggregator between a language model and external tools during the development of an application. For this purpose, the Cursor environment integrated with the official Miro MCP server was used, as well as different language models, including Claude, in order to evaluate possible variations in behavior when interacting with the protocol. Multiple independent executions of the experiment were carried out to increase the reliability of the observations, focusing specifically on the protocol’s behavior and minimizing inconsistencies of the previously developed prototype.
Miro, used in this study as a structured source of context, gathered artifacts such as brainstorming, product requirements document, interface prototype, and Minimum Viable Product (MVP) instructions on a digital board. The board’s organization was designed to simulate a scenario closer to real development, where product requirements and decisions are not concentrated in a single prompt but distributed across different artifacts, including textual and visual representations. In this scenario, the MCP enabled the model to access this set of information in an integrated manner, contributing to the reduction of ambiguities and to the alignment between the generated implementation and the previously defined expectations.
Upon connecting to Miro’s official server, the presence of the characteristics described by the protocol was observed, evidenced by the automatic discovery of 14 tools and 2 prompts, all accompanied by their respective detailed schemas. This set of tools was made available to the model as a catalog of functionalities accessible at runtime. Each tool was identified by a name and associated with a specific operation, allowing the agent to select and utilize these capabilities as needed. This behavior indicates that the MCP exposes functionalities in a structured and self-descriptive manner, reducing the need for prior configuration by the agent.
The data collected in the experiment showed that, although the server provided a wider set of tools, only 5 types were effectively used over 19 calls, indicating that the agent performs an active selection of relevant tools for each stage of the process. Subsequently, the model was asked to develop the application, using the MCP Server to search for the necessary context for implementation within the Miro board. During this process, the systematic use of the `context_explore` tool was observed, employed to explore board items at a high level, before using the `context_get` tool, responsible for retrieving detailed information from the parts considered most relevant.
This usage pattern demonstrates a strategy oriented towards efficiency in context management, as it seeks to avoid overloading the context window and reduce the volume of information transferred to the LLM. This behavior is consistent with the data collected in the experiment, in which approximately 79% of the total token volume consumed was associated with reading HTML-formatted prototypes. As a result, the model was able to consistently interpret the requirements and reflect them in the structure of the generated code. The comparison between the visual prototype defined in the board and the implemented application showed a high degree of correspondence between the interface elements, information organization, and main functionalities.
It is observed that components such as metrics, badges, and navigation structure were reproduced coherently, indicating that the model managed to translate visual artifacts into a functional implementation. This alignment contributed to the initial result being close to what was expected, reducing the need for structural redefinitions. This behavior suggests that the MCP, by enabling structured access to external context sources, expands the model’s capacity to operate with information closer to a real development environment. Thus, instead of relying exclusively on textual instructions provided in the prompt, the model begins to incorporate persistent and multimodal artifacts as part of its decision-making process.
After the initial generation of the application, a change in the interaction pattern was observed: the more refined adjustments were made through direct interactions with the model in the development environment, without the need to resort to the board again. This transition highlights the existence of two distinct phases in the process: an initial phase, heavily dependent on external structured context, and a later phase, more oriented towards incremental code adjustments. Although this change is not necessarily mediated by the MCP, it indicates that different types of tasks demand distinct interaction strategies with the model.
Subsequently, the model was instructed to document the developed application on the Miro board itself, as well as to generate diagrams representing the system’s structure and flow. At this stage, the MCP once again played a central role, enabling the creation of visual artifacts from the produced code. Before creating any artifact on the board, it was observed that the agent consistently invoked the `context_explore` tool to map the current state of the environment, identifying spatial coordinates of existing elements, types of items present, and areas available for positioning new content.
This behavior suggests the adoption of a conservative “explore before acting” strategy, reducing the risk of collisions and overlaps. It is also observed that this pattern did not emerge exclusively from the LLM’s internal reasoning but was influenced by the availability of the tool and the instructions associated with the MCP server. Regarding diagram creation, operations were identified that explicitly depend on previous steps, composed of the `diagram_get_dsl` step, responsible for obtaining the DSL (Domain-Specific Language) specification for the diagram type, and `diagram_create`, responsible for its creation from a valid DSL. The execution of these operations followed a mandatory sequence defined by the tools themselves.
This sequence indicates that part of the orchestration logic for interactions is transferred to the contracts defined by the tools, reducing ambiguities about how to interact with external systems. On the other hand, this same characteristic contributes to the increase in the complexity of the LLM’s decision space, which becomes dependent on the correct interpretation of these constraints. This sequential dependency also impacts performance, contributing to the increase in latency observed in write operations, which reached approximately 55 seconds per call. In general, the results of the case study indicate that MCP acts as a facilitator in the integration between language models and external tools, especially in the definition and communication of requirements phase.
However, its use also introduces an additional layer of complexity, as the model needs to interpret and follow previously defined formal structures. Experiments have shown that by allowing language models to discover and execute external tools in a structured manner, MCP significantly expands the role of LLMs in the operation of software systems. In this context, the quality, timeliness, and reasoning ability of the model directly impact the reliability, correctness, and security of interactions. Models with outdated knowledge or inadequate interpretation of the context can generate incorrect configurations, silent failures, and inconsistent decisions, with effects potentially amplified by the protocol architecture itself.
Additionally, by enabling the execution of external actions, the MCP also introduces new concerns related to the governance and control of operations carried out by agents. The results indicate that the MCP acts not only as an integration mechanism but also as an element that influences the model’s behavior during task execution. The availability of tools and their formal contracts guide the sequence of decisions, inducing patterns such as prior context exploration and the execution of structured flows defined by the tools themselves. In this sense, part of the orchestration logic ceases to be exclusively in the model and becomes incorporated into the system’s structure.
From an architectural point of view, it was observed that MCP promotes relevant gains in standardization, auditability, and reduction of ambiguities in API interaction, especially through the use of explicit contracts and structured communication. On the other hand, its adoption introduces new challenges, such as increased complexity in the agent’s decision-making process, fragmentation of operations into multiple calls, and context overhead in more extensive scenarios. Additionally, it was found that, although the protocol ensures the syntactic compliance of interactions, the semantic quality of the results remains dependent on the model’s capability and human validation.
From a technological maturity perspective, it is observed that the MCP ecosystem is still evolving, with frequent changes in specifications and SDKs. Nevertheless, the growing adoption of the protocol and the availability of servers maintained by different vendors indicate a consistent movement towards its consolidation as an integration standard. In general, the results indicate that MCP significantly enhances the capabilities of LLMs, not only due to the evolution of the models but also by enabling structured integration with specialized external tools. This approach provides greater flexibility in the development of agent-based systems, allowing different sources of context and services to be incorporated in a standardized manner.
In summary, the Model Context Protocol represents a promising approach for interoperability between artificial intelligence agents, by standardizing communication and access to external tools. The experiments demonstrated that MCP directly influences agent behavior and the organization of execution logic, promoting greater auditability and reduction of ambiguities. However, the research also highlighted challenges related to context overload, operational complexity, and the need for continuous human validation, especially given the rapid evolution of AI technologies and their SDKs, pointing to new trade-offs in the development of agent-based systems.
4. Conclusion
This study investigated the Model Context Protocol (MCP) as an interoperability standard between artificial intelligence agents, through the practical and experimental analysis of a prototype. It was found that the MCP acts as a facilitator in the standardization and auditability of interactions, by enabling structured access to external context sources and consistent interpretation of requirements for code generation. The experiments demonstrated that the protocol significantly expands the capabilities of language models, allowing structured integration with specialized external tools. It was observed that the MCP directly influences agent behavior and the organization of execution logic, promoting greater auditability and reduction of ambiguities in API interaction, especially through explicit contracts and structured communication. This approach provides greater flexibility in the development of agent-based systems, enabling the standardized incorporation of different context sources and services.
However, the research also highlighted significant challenges, such as context overload and operational complexity, particularly in the tool discovery phases and in maintaining agents’ reasoning state. It was identified that the semantic quality of the results remains dependent on the model’s capability and human validation, and that the rapid evolution of the protocol specification and SDKs requires continuous attention. The adoption of MCP introduces an additional layer of complexity, as the model needs to interpret and follow previously defined formal structures, and the sequential dependency of operations can impact performance. For future studies, it is suggested to investigate mechanisms to mitigate context overload, enhance reasoning state management in complex scenarios, and explore approaches to ensure compatibility between different protocol implementations, in addition to deepening research on governance and security in MCP ecosystems.
Bibliographic References
Anthropic, 2024 [Referência completa não encontrada no documento original]
Gil, A.C. 2019. Métodos e técnicas de pesquisa social. 7ed. Atlas, São Paulo, SP, Brasil.
Hou, X.; Zhao, Y.; Wang, S.; Wang, H. 2025. Model Context Protocol (MCP): landscape, security threats, and future research directions. Huazhong University of Science and Technology, Wuhan, China. Disponível em: https://arxiv.org/abs/2503.23278. Acesso em: 1 nov. 2025.
Liu, Y.; Zhang, H.; Li, S.; Wang, R.; Liu, Y. 2026. Enhancing Model Context Protocol (MCP) with context-aware server collaboration. arXiv. Disponível em: https://arxiv.org/abs/2601.11595. Acesso em: 1 fev. 2026.
Model Context Protocol. 2025. Architecture overview. Disponível em: https://modelcontextprotocol.io/docs/learn/architecture. Acesso em: 3 nov. 2025.
Ray, P.P. 2025. A survey on Model Context Protocol: architecture, state-of-the-art, challenges and future directions. TechRxiv. Disponível em: https://www.techrxiv.org/doi/full/10.36227/techrxiv.174495492.22752319. Acesso em: 3 nov. 2025.
Sommerville, I. 2011. Engenharia de software. 10ed. Pearson, São Paulo, SP, Brasil.
Wohlin, C. et al. 2012. Experimentation in software engineering. Springer.
Zhang, L.; Kothari, S. 2025. Holistic evaluation of state-of-the-art LLMs for code generation. arXiv preprint. Disponível em: https://arxiv.org/abs/2512.18131. Acesso em: 10 abr. 2026.
Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform