Agoda Open Sources APIAgent to Convert Any REST pr GraphQL API into an MCP Server with Zero Code

Agoda Open Sources APIAgent: Revolutionizing AI Integration with Zero-Code MCP Server Conversion

By Amr Abdeldaym, Founder of Thiqa Flow

In the accelerating race of AI automation, one persistent challenge remains: enabling AI agents to seamlessly communicate with backend data sources. Agoda, a global leader in travel technology, addresses this integration bottleneck by launching APIAgent, an open-source solution that effortlessly converts any REST or GraphQL API into a Model Context Protocol (MCP) server—without writing a single line of code or managing deployments.

Understanding the Integration Tax in AI Development

Building powerful AI agents often hits a wall during API integrations. Traditional approaches require developers to:

  • Manually write and maintain MCP servers in languages like Python or TypeScript.
  • Define tools and parameters explicitly for each API.
  • Continuously update server code when underlying APIs evolve.
  • Deploy and monitor a multitude of MCP servers for internal and external APIs.

Agoda dubs this laborious overhead the “integration tax,” a costly barrier especially for enterprises managing thousands of microservices. APIAgent emerges as a scalable, zero-code answer to this challenge.

What is APIAgent?

APIAgent is a universal proxy that bridges your Large Language Models (LLMs)—such as GPT-4 or Claude—with any REST or GraphQL API by converting those APIs into MCP-compatible tools automatically. This innovative framework removes the need for custom MCP server development, streamlining AI-to-data communication.

Component Functionality
FastMCP Core MCP server layer powering APIAgent’s communication protocol
OpenAI Agents SDK Handles language model orchestration and interaction
DuckDB In-process SQL engine enabling advanced data filtering and aggregation locally

Zero-Code Schema Introspection

By simply pointing APIAgent to an OpenAPI specification or a GraphQL schema, the system automatically introspects the API, discovers endpoints, their parameters, and response structure. This powerful feature enables APIs to be exposed as usable tools for LLMs instantly—no manual mapping or coding required.

Advanced SQL Post-Processing with DuckDB

When APIs return large, unsorted datasets, APIAgent uses DuckDB to perform SQL queries locally. This permits efficient filtering, sorting, and aggregation of thousands of rows before condensing the data into concise results for the AI. This dramatically improves response relevance and reduces unnecessary data transfer.

Dynamic Tool Discovery & Recipe Learning: Transforming AI Efficiency

  • Dynamic Tool Discovery: APIAgent can generate tools dynamically for any API URL with no prior configuration—allowing LLMs to find and use new API functions on the fly.
  • Recipe Learning: For recurrent complex queries, APIAgent captures the execution trace and stores it as a parameterized ‘recipe.’ This template bypasses repeated LLM reasoning, resulting in faster and more cost-effective query processing.

Security-First Design

Recognizing the importance of safe AI interaction, APIAgent operates in a read-only mode by default. Any potentially mutating HTTP requests (POST, PUT, DELETE) are blocked unless explicitly enabled through configuration, ensuring data safety and compliance.

Table: APIAgent Benefits at a Glance

Feature Business Impact
Zero-Code MCP Server Generation Eliminates development bottlenecks, accelerating AI implementation time
Automatic Schema Introspection Reduces manual overhead and API mapping errors
DuckDB SQL Post-Processing Improves data quality and response precision for AI queries
Recipe Learning Optimizes performance and reduces operational costs
Secure, Read-Only by Default Ensures safe interactions with sensitive business data

Conclusion: Driving Business Efficiency with AI Automation and APIAgent

In an era where AI automation dictates competitive advantage, Agoda’s APIAgent provides a groundbreaking approach to AI integration, enabling businesses to connect language models with their APIs rapidly and securely. By removing the traditional integration tax, empowering zero-code deployments, and introducing performance-boosting techniques like Recipe Learning, APIAgent sets a new standard for scalable AI infrastructure.

For developers and enterprises aiming to unlock the potential of AI-driven workflows without the burden of complex backend work, APIAgent offers an elegant, open-source bridge between data and intelligence.

Explore APIAgent Today

Visit Agoda’s GitHub repository to explore how APIAgent can streamline your AI agent architectures and transform your business operations with intelligent automation.

Looking for custom AI automation for your business? Connect with me at https://amr-abdeldaym.netlify.app/