Skip to content
Home ยป Agoda Releases APIAgent: Effortlessly Transform Any REST or GraphQL API into an MCP Server Without Coding

Agoda Releases APIAgent: Effortlessly Transform Any REST or GraphQL API into an MCP Server Without Coding

Agoda, a leading travel company, has launched an innovative open-source tool called APIAgent. This tool is designed to simplify the way AI agents interact with various APIs, making it easier for developers to integrate AI capabilities into their applications. By allowing developers to convert any REST or GraphQL API into a Model Context Protocol (MCP) server without needing to write code or manage deployments, APIAgent aims to reduce what the Agoda team calls the "integration tax."

The integration tax refers to the challenges developers face when connecting AI agents to data sources. Traditionally, developers had to create custom servers for each API, which involved writing code, defining parameters, and maintaining the server. This process can be overwhelming, especially for companies with numerous internal APIs.

APIAgent acts as a universal MCP server, serving as a bridge between AI models like GPT-4 and existing APIs. Instead of requiring extensive custom logic, developers only need to provide a definition of their API using an OpenAPI specification for REST or a schema for GraphQL. APIAgent then handles the rest, automatically generating the necessary tools for the AI.

The tool is built on a robust technical stack, including FastMCP for the MCP server layer, the OpenAI Agents SDK for language model orchestration, and DuckDB, which is used for SQL post-processing. This combination allows APIAgent to efficiently manage and manipulate data returned from APIs, ensuring that it can deliver concise and relevant responses to user queries.

One of the standout features of APIAgent is its ability to learn from successful queries through a process called "Recipe Learning." When a user makes a complex request, the system can save the execution trace as a recipe. This means that for future similar requests, APIAgent can use the recipe directly, speeding up response times and reducing costs associated with AI processing.

Security is also a priority for APIAgent. The system is designed to operate in a read-only state by default, blocking any actions that could modify data unless explicitly permitted by the developer in the configuration file.

With APIAgent, Agoda is addressing the growing need for efficient AI integration in the travel industry and beyond. This tool not only simplifies the process for developers but also opens up new possibilities for enhancing user experiences through AI-driven applications. As companies continue to explore AI’s potential, tools like APIAgent will be crucial in easing the integration process and fostering innovation.