Short opener.
Agoda’s API Agent: Convert Any API to MCP with Zero Code and Zero Deployments
Short opener.
Agoda’s API Agent converts an API into an MCP endpoint without writing code, because it inspects existing API surface, generates the required control-plane artifacts, and exposes a managed proxy that enforces policies, security, and telemetry with no backend deployments. — Ernie Castro
Key Takeaways:
- What it is: A zero-code adapter that turns existing APIs into an MCP managed endpoint.
- Why it matters: Faster integration, fewer ops, consistent security and policy enforcement.
- When to use it: When you need to expose legacy or third-party APIs under a unified control plane.
What is Agoda’s API Agent?
Short statement here.
The API Agent is a tool that converts an API—whether REST, gRPC, or even legacy SOAP—into a managed control-plane endpoint called MCP, by consuming interface artifacts like OpenAPI or by passively observing traffic and then generating proxy configuration, security rules such as OAuth2 or mTLS, and telemetry hooks in the control plane, all without requiring changes to the service code or additional deployments.
Clear and simple.

Short note.
Conceptually, the agent performs four technical tasks: discovery (reading OpenAPI/Swagger or tracing runtime to learn endpoints), translation (mapping endpoints to control-plane resources), policy synthesis (creating rate limits, auth policies, and schema validation), and exposure (publishing a managed endpoint that clients call while the original backend remains untouched).
Yep.
Short context.
From a systems perspective, this approach reduces coupling between on-call teams and platform updates because the management of cross-cutting concerns—security, rate limiting, logging, authorization—shifts from per-service implementation to a centralized control plane that can be audited and governed consistently.
Important.
Core Benefits/Importance
Short summary.
Adopting an API Agent that outputs an MCP endpoint gives four tangible benefits: faster onboarding for third-party or legacy APIs, fewer operational changes required by product teams, uniform enforcement of security and compliance requirements, and improved observability since the agent inserts telemetry consistently across endpoints.
Practical wins.
Short anecdote lead.
I remember when I was on an integration project at a previous company where we needed to bring ten external vendors under a single policy regime—manually mapping each vendor took engineers weeks, but when we scripted an automated mapping it cut that work down dramatically, and the difference in stress for on-call was obvious, because incidents dropped and mean time to recovery improved.
True story.
Short caution.
Beyond time savings, the agent enforces **consistency**, since the same authentication flows, logging standards, and error formats are applied centrally, which matters for compliance and for teams that must treat sensitive data with care—this aligns with a stewardship mindset where platform teams manage shared resources responsibly.
Do it right.
Short capabilities note.
Operationally, the agent can integrate with existing systems: it can emit telemetry to the same observability backends (Prometheus, OpenTelemetry collectors), translate authentication to your identity provider, and create policies consumable by service meshes or API control planes like **Istio** or **Envoy**; that minimizes the learning curve for platform engineers.
Useful.
Step-by-Step Implementation/Guide
Short intro.
To implement an agent-based conversion to **MCP**, follow a four-phase workflow that fits with typical engineering processes: discovery, generation, validation, and exposure—each phase should be automatable and reversible so teams can test without risk.
Here’s how.
Short step one.
1) Discovery: Gather API contracts via OpenAPI/Swagger specs, WSDL files, or by recording traffic over a capture window, and catalog endpoints, methods, and schemas into a central registry; this is where accuracy matters, so collect full examples of request/response payloads to ensure correct schema generation.
Start here.
Short step two.
2) Generation: The agent synthesizes proxy configuration—routes, retries, timeouts—security definitions—OAuth2 scopes, mTLS settings—rate limits and validation rules, and produces a set of control-plane objects (virtual services, policies, and telemetry rules) that represent the API inside **MCP**.
Automate it.
Short step three.
3) Validation: Route mirrored traffic or run tests against a staging proxy to validate behavior, exercising edge cases such as chunked uploads, streaming gRPC calls, and error codes; verify auth flows and observe latency and error rates before flipping any production traffic.
Don’t skip.
Short step four.
4) Exposure: Publish the managed endpoint in your service catalog and update client config or DNS to point to the MCP proxy—start with a small percentage of live traffic and progress to full cutover using traffic shifting or canary techniques integrated with your CI/CD system.
Go slow.
Short operational tip.
In my experience, integrating the agent with CI pipelines and maintaining a human review step for generated policies prevents surprises; I’ve seen generated rate limits that were overly strict because sample traffic missed peak scenarios, so guardrails and automated tests are essential.
Be cautious.
Comparison Table
Short table lead.
Below is a comparison between using an agent that converts APIs to **MCP** and a traditional API gateway approach, focusing on onboarding effort, code changes, deployment footprint, and observability.
Quick look.
| Feature | **Agoda’s API Agent (MCP)** | Traditional API Gateway |
|---|---:|---:|
| Onboarding time | Minutes to hours | Days to weeks |
| Required code changes | **None** | Often required |
| Deployment changes | **No backend deployments** required | Gateway deploy plus backend updates |
| Policy enforcement | Centralized via **MCP** generation | Central mapping and manual configs |
| Observability | Auto-generated telemetry | Manual instrumentation often necessary |
| Best for | Legacy or third-party APIs | Greenfield or controlled services |
Common Mistakes to Avoid
Short warning.
Teams often treat automated conversions as a silver bullet and skip crucial steps: they accept generated policies without a security review, forget to test edge cases like streaming or multipart uploads, or fail to validate user identity flows—which leads to production incidents that are harder to debug because the configuration was never exercised end-to-end.
Beware.
Short personal note.
I once debugged a conversion where the agent mapped an error code path incorrectly because a vendor used non-standard status codes, and the on-call team spent the night reverting DNS instead of fixing the root cause; a careful validation phase would have prevented that outage.
Lesson learned.
Short governance point.
Another frequent mistake is not establishing policy ownership: platforms must own the generated control-plane artifacts, but product teams must validate semantics; without clear stewardship and audit trails, you get policy drift and confusion about who fixes what during incidents.
Assign roles.
Short security tip.
Don’t assume that a zero-code approach eliminates security work; you still need to validate authentication, scope mapping, and secrets rotation, and ensure that the generated configs don’t leak internal endpoints or sensitive headers—treat conversion as a migration, not a substitute for review.
Check everything.
Frequently Asked Questions
Short lead.
Q: Can the agent handle streaming and long-lived connections like WebSockets or gRPC streams?
A: Many agents support these protocols in the proxy if the control plane and upstream proxy implement streaming semantics; verify streaming coverage and test at scale.
Good question.
Short Q.
Q: Does zero code mean no security review?
A: Absolutely not—zero code means you avoid service changes, but you still need policy reviews, access control audits, and secrets management as part of governance.
Important.
Short Q.
Q: How does the agent differ from an API gateway?
A: The agent focuses on converting existing services into control-plane resources with minimal service-side change and no deployments, while a gateway typically requires manual configuration and sometimes code changes when backends need to adapt.
Compare.

Final Thought
Short closing.
Most platform efforts are shortcuts away from chaos unless they are accompanied by clear governance, proper tests, and a respect for the teams who will operate the system—I've spent years building platforms at big companies, and the projects that lasted were the ones that honored stewardship of shared resources and treated engineers' time as sacred, not expendable. — Ermenildo V Castro
Keep it ethical.