Add eSIMs to your AI travel app
How to offer the right travel eSIM inside your own AI app with the Wigoo MCP server: two ways to wire it, when to offer it, what it shows and how the traveler pays.
You have an AI app that plans trips, and travelers in it need mobile data abroad. The Wigoo MCP server gives your app a live eSIM catalog it can read, and a link that sends the traveler to pay. This page is the overview: how to connect, where an eSIM fits in a trip, what you can show, and what to take care of before you ship. The server is public and read-only, so there is no key to request and nothing to sign.
https://api.getwigoo.com/api/mcpTwo ways to wire it
Either your own model calls the tools, or the model provider calls the server for you. Both end the same way: the model gets the tool results and your app shows the answer.
| Your app calls the tools | The provider calls the server | |
|---|---|---|
| How | Your code is an MCP client. It lists the tools, hands them to your model, runs the calls the model asks for and returns the results | You name the server in the model request, and the provider connects and calls the tools inside that request |
| You write | A small client and the tool loop (an SDK does most of it) | The server entry in the request |
| Control | Full: you can cache, log, filter tool results and set timeouts | Less: the provider decides how the connection is made |
| Needs | Any model with tool calling, and a server or agent runtime to run the client | A provider that offers remote MCP tools |
| Good for | Apps that already have a tool loop, or that mix several servers and their own tools | The quickest start, and apps that call one provider's API directly |
The code for both is on call the server from your code: the official TypeScript SDK, the Vercel AI SDK, the OpenAI Responses API and the Anthropic Messages API.
Call the server from your backend, not from browser or phone code. It sends no CORS headers, so a web page on another site cannot reach it, and a backend is also where your model key and your cache belong.
What your app can show
Everything comes from the four tools, in the language of your conversation:
- Plans. Data size, validity in days and price for each plan on sale, with
list_plans. - Networks. The mobile networks a plan connects to, such as
NTT docomo (5G), so a traveler can see the coverage. - Unlimited day passes. A daily amount at full speed and then a reduced speed, offered for several lengths of trip.
get_destinationsays which lengths exist. - Top ups.
get_destinationand each plan say whether more data can be added later to the same eSIM. - Prices in 55 currencies. Pass the traveler's currency and every price comes back in it, already formatted. See currency.
- Names and links in 8 languages. Region names and the buy page follow
language:en,it,es,fr,de,pl,ptandtr. Everything else in a response is English on purpose, so the model can read it and then answer in the traveler's own language.
When to offer an eSIM
An eSIM is useful from the moment a trip has a destination. Three moments work well in a trip flow:
- When the destination and dates are set, next to the flight and the stay. This is the best time, because the traveler can install the eSIM at home on wifi and it is ready on landing. Validity starts when the eSIM first connects at the destination, so buying early costs nothing.
- In the pre-departure checklist, a few days before the trip, with the other things to sort out.
- On arrival, for the traveler who forgot. Installing needs an internet connection, so mention that they need wifi for a few minutes.
Offer one plan, not the catalog. Ask the questions on rules for agents (is the phone eSIM compatible and unlocked, how much data, fixed or unlimited), pick a plan with list_plans and call get_quote only for the one you recommend.
What the server does not do
- It creates no orders and takes no payment. The traveler pays on getwigoo.com.
- It cannot see accounts. There are no eSIMs, credit or saved cards to read, and no way to learn whether a traveler bought.
- A quote is a list price. The server calculates the real amount again at checkout, so show it as "about" or "from", never as final.
How the traveler buys
The buy_url from get_quote is the whole handoff. It opens the destination page with that plan selected, and the traveler presses Buy, types an email and pays, with no account needed. The plan link explains the link and checkout without an account explains the page. What your app does with the link is on hand the traveler to checkout.
Before you ship
These are the points that matter once real travelers use it. They are advice for your side, apart from the facts about the server.
- Timeouts. Every call finishes in well under a second, and the platform cuts anything still open after 30 seconds. Set a client timeout of about 10 seconds and show a normal reply without eSIM information if it runs out, rather than waiting.
- Cache the catalog briefly. The catalog is synced once a day, so
search_destinations,get_destinationandlist_plansfor one destination, currency and language can be kept for minutes or an hour. That keeps your model loop fast and your request count low. - Do not cache quotes for long. Prices follow exchange rates and plans change. Ask for the quote when the traveler is about to buy, and again if they come back to the conversation later.
- Pass the traveler's currency and language on every call:
currencyas an ISO code such asEUR,languageas a two letter code. Check the currency in the price you get back before you show it. - Handle tool errors as results. A wrong id or argument is a normal reply with
isError: trueand a text that names the next tool to call, not an HTTP error. Give that text to the model and let it recover, and do not retry the same arguments. See errors. - Retry only transient failures. A
429or500is worth one retry after a moment. Everything the tools do is read-only and idempotent, so a retry is safe. - Keep the link intact,
utm_source=mcpandutm_medium=agentincluded. That is how Wigoo sees what your app brings. If you need your own attribution, write to support first rather than editing the link. - Rate limits. A per-IP limit of 300 requests per minute applies, and a conversation makes a handful of calls. If many of your users share one server address, they share the limit too, so cache the catalog calls. See protocol and limits.
- Plans and prices change. Do not store plan ids or prices in your own database as facts. Store the destination and the traveler's choices, and read the rest when you need it.
Check your integration
Test it has requests to copy and a one-line check that connections close. The tool reference lists every parameter, and the FAQ answers the common questions.
Help
For a problem with the server, a question about volume or something your app needs that the tools do not offer, write to support@getwigoo.com.
Errors
The three kinds of error the Wigoo MCP server returns, with the exact messages, and what a client should do about each.
Call the server from your code
Working examples for the Wigoo MCP server: the Vercel AI SDK, the OpenAI Responses API and the Anthropic Messages API, with what is tested and what is not.