Can an AI agent buy an eSIM for you?
Yes, with a connector. Add an eSIM seller's MCP server to ChatGPT, Claude, Perplexity or an IDE agent, and the assistant can search plans for your trip, compare them and create a checkout link. You pay on the checkout page, and the QR code arrives by email. Two steps stay with you: paying (unless you've pre-approved a spending limit) and installing the eSIM on your phone. The agent also can't see whether your phone supports eSIM or is unlocked, so check that first.
"Buy" covers four separate jobs here: finding a plan, choosing one, paying for it and installing it. An AI agent can do the first two well and set up the third. The fourth happens on your phone, and no chat assistant can do it for you. Here's who does what, and how to set it up.
Who does what
| Step | Who | How it works with cartapi |
|---|---|---|
| Find plans for the destination | Agent | search_esim_plans with a country code, optional minimum GB, validity days and a price ceiling |
| Compare and shortlist | Agent, with you | Sort by price, data or value; the agent explains the trade-offs |
| Create the checkout | Agent | get_checkout_link with the plan's ID and your email returns a Stripe-hosted URL |
| Pay | You | You open the link and pay on Stripe's page; the agent never sees the card |
| Receive the eSIM | Automatic | An email with the QR code and, where the provider supplies them, an iOS install link and the manual SM-DP+ details |
| Install and switch on | You | Scan the QR on your phone before you fly; switch mobile data to it on arrival |
| Check the order | Agent | get_order_status returns the order state and the QR and activation details |
The tool names and fields come from cartapi's MCP server. Other eSIM connectors split the work differently. Some are read-only and only send you to their own shop.
Which assistants can do it
Any assistant that lets you add a remote MCP server. According to cartapi's install page, that covers:
- ChatGPT on Plus, Pro, Business and Enterprise, through a custom connector. Free accounts can't add one.
- Claude on claude.ai and Claude Desktop. Anthropic's custom connector guide lists Free (one custom connector), Pro, Max, Team and Enterprise plans.
- Perplexity Pro and the Comet browser.
- Claude Code, Cursor, Windsurf, Zed and Warp, if you're already working in one of them.
The consumer Gemini app is the exception. It doesn't accept arbitrary MCP connectors, so you can't add cartapi there today.
Anthropic's guide also warns that custom connectors aren't verified by Anthropic. It recommends connecting only to servers you trust and reviewing what each tool call does. For a connector that can create purchases, that's the right habit.
The flow, step by step
- Add the connector. In Claude or ChatGPT, add a custom connector with the URL
https://mcp.cartapi.io/mcp. In Claude Code:claude mcp add cartapi https://mcp.cartapi.io/mcp. No API key is needed for the MCP endpoint today. - Ask with constraints. Give the destination, trip length, data you expect to use and a budget:
using cartapi, find a Japan eSIM for 10 days, at least 20GB, under $35
- Read the shortlist. Each plan comes back with its data, validity, price in USD, network type and whether hotspot is allowed. Ask follow-ups: "which of these has the most data per dollar?" or "is there a Japan and Korea plan?"
- Say which one. The server's instructions tell the agent not to create a checkout without your explicit go-ahead. When you confirm, it calls
get_checkout_link. - Pay on Stripe. The link opens a Stripe-hosted page. Stripe may ask your bank to confirm the payment, because cartapi requests 3D Secure on card payments.
- Install from the email. Show the QR on a second screen and scan it with the phone that will use it. The steps are in how to activate a travel eSIM.
What the agent can't do
- See your phone. It can't confirm that your phone supports eSIM or that it's carrier-unlocked. A locked phone or a model without eSIM is the most expensive mistake here, so check before you pay.
- Install the eSIM. Adding a cellular plan happens in your phone's settings. The agent can walk you through it, but you tap the buttons.
- Give you a phone number by default. The plans in cartapi's catalog are data plans. The Japan plans returned on 2026-11-16 all listed voice as not included. Your WhatsApp stays on your home number: see Will a travel eSIM change my WhatsApp number?
- Know the provider's fair-use terms. The catalog shows data, days and price. It doesn't show a provider's throttling rules for "unlimited" plans, so ask the agent to flag unlimited plans and read the terms yourself.
- Pay without your involvement, unless you set that up. More on that below.
Paying: a link each time, or a pre-approved limit
The default is a checkout link per purchase. You see the price on Stripe's page, and nothing is charged until you pay. That's the model described in Consent-first checkout.
For people who want the agent to finish the purchase itself, cartapi has a consent envelope. You save a card once, with 3D Secure at setup. Then you set the limits: a maximum per purchase, a maximum in total or per time window, allowed categories and countries, and an expiry date. The agent passes the envelope's token to get_checkout_link. If the purchase fits the limits, it completes with no link. If it doesn't, the tool returns envelope_denied with the reason, and you decide.
Card networks are working on their own versions of this. Visa's Intelligent Commerce developer page describes tokenized credentials, Visa Payment Passkeys for consumer authentication, and consumer-approved purchase instructions for agents. It's a developer program with sandbox, certification and production stages, each needing Visa approval. It isn't a setting you switch on in ChatGPT.
Before you ask an agent to buy one
- eSIM support and unlock status confirmed on the phone that will use it.
- Country code or region known. The search takes a two-letter country code such as JP or TH. The catalog also has regional plans, for example Europe, Asia, the Balkans and Global.
- Data estimate. Check how much mobile data you used last month in your phone's settings, then scale it to the trip length.
- Budget stated in the prompt. The agent can filter with
max_price_usd. - An email you can open on a second screen, so you can scan the QR from it.
- Price read on the Stripe page before you pay. Catalog prices change as providers update them.
Related guides
- Ask Claude for a Japan eSIM, a worked example for one country
- Unlimited vs fixed-data eSIM, prices compared
- How to buy an eSIM for someone else
- Airalo vs Holafly vs Nomad vs Saily
- MCP servers for e-commerce, for builders
Frequently asked questions
Can ChatGPT or Claude buy an eSIM for me?
Yes, once you add an eSIM seller's MCP connector. The assistant searches, compares and creates a checkout link; you pay and the QR arrives by email.
Does the AI agent see my card details?
Not with cartapi. You enter the card on Stripe's hosted page, so neither the agent nor cartapi receives the card number.
Can the agent install the eSIM on my phone?
No. You scan the QR or enter the SM-DP+ details yourself, ideally before you fly.
Can the agent check that my phone supports eSIM?
Not reliably. It can't see your phone. Confirm eSIM support and unlock status before you pay.
Can an agent buy an eSIM without asking me each time?
Only inside a consent envelope you set up in advance, with per-purchase and total caps, categories and an expiry. Otherwise every purchase goes through a checkout link you pay.
Try it
Add cartapi from the install page and ask for an eSIM for your next trip. Building an agent that sells eSIMs? Start with the docs or how to add Stripe Checkout to an MCP server.