← cartapi.io blog

Can an AI agent buy an eSIM for you?

Published 2026-11-16 · Last updated 2026-11-16 · 7 min read · travel eSIM
TL;DR

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

StepWhoHow it works with cartapi
Find plans for the destinationAgentsearch_esim_plans with a country code, optional minimum GB, validity days and a price ceiling
Compare and shortlistAgent, with youSort by price, data or value; the agent explains the trade-offs
Create the checkoutAgentget_checkout_link with the plan's ID and your email returns a Stripe-hosted URL
PayYouYou open the link and pay on Stripe's page; the agent never sees the card
Receive the eSIMAutomaticAn email with the QR code and, where the provider supplies them, an iOS install link and the manual SM-DP+ details
Install and switch onYouScan the QR on your phone before you fly; switch mobile data to it on arrival
Check the orderAgentget_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:

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

  1. 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.
  2. 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

  3. 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?"
  4. 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.
  5. 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.
  6. 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

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

Related guides

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.

About the author

Roc Chow

Roc Chow builds cartapi, the commerce layer for AI agents, and runs . The tool names and behaviour here come from cartapi's MCP server source code and live catalog queries on the day of writing.

LinkedIn · · cartapi.io