# eSIMFOX public MCP API

Search destinations, retrieve eSIM plans and prices, and check device compatibility. All exposed tools are public and read-only; no authentication is required. Do not send customer credentials or payment details.

Server: esimfox-ucp (1.0.0). MCP protocol version: 2025-06-18.

Endpoint: POST https://esimfox.com/api/ucp/mcp

Send Content-Type: application/json and Accept: application/json, text/event-stream. Requests use JSON-RPC 2.0. Send one request per POST with a unique id; notifications omit id.

## Discovery

- [API catalog](https://esimfox.com/.well-known/api-catalog)

- [MCP server card](https://esimfox.com/.well-known/mcp/server-card.json)

- [Current tool input/output schemas](https://esimfox.com/api/ucp/tools.json) (the MCP tool schema format, not an OpenAPI document).

## Connect and discover tools

Initialize the connection:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-06-18",
    "capabilities": {},
    "clientInfo": {
      "name": "esimfox-example-client",
      "version": "1.0.0"
    }
  }
}
```

Then send the initialized notification (accepted with HTTP 202 and no response body):

```json
{
  "jsonrpc": "2.0",
  "method": "notifications/initialized"
}
```

List the current tools and their schemas:

```json
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list"
}
```

## Available tools

- search_catalog: Search eSIM destinations

- list_destinations: Browse eSIM destinations

- get_product: View eSIM plans

- check_compatibility: Check eSIM compatibility

All tools accept an optional locale (default en). Use a product slug returned for the same locale when requesting its details. Tool input/output schemas are available through tools/list and the tool reference above.

## Find a plan and hand off to the buyer

1. Search for the destination:

```json
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "search_catalog",
    "arguments": {
      "query": "Japan",
      "limit": 5,
      "locale": "en"
    }
  }
}
```

2. Read result.structuredContent.products and use a returned slug in get_product. This example assumes search returned esim-japan:

```json
{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "get_product",
    "arguments": {
      "slug": "esim-japan",
      "currency": "EUR",
      "locale": "en"
    }
  }
}
```

3. Read result.structuredContent.plans for data allowance, validity, price, and plan_url. Treat a null price as unavailable, never as free. Use each plan's price.currency; a currency fallback can occur. Do not guess missing coverage or network details.

4. Give the buyer the returned plan_url or product url. The buyer completes checkout on the website. This API does not create orders, charge payments, or access customer accounts.

Supported currencies in this deployment: EUR, USD, GBP, CHF, CAD, AUD, PLN. The default is EUR. Unsupported requested currencies fall back to EUR; individual plan prices may also fall back to EUR when presentment pricing is unavailable. Recheck the website price before purchase.

## Device compatibility

```json
{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "check_compatibility",
    "arguments": {
      "device": "iPhone 14",
      "locale": "en"
    }
  }
}
```

Read supported, matches, note, and compatibility_page. An unmatched device is not conclusive proof that every regional variant lacks eSIM support; consult the compatibility page and confirm the device is carrier-unlocked.

## Results and errors

Tool results provide structuredContent for programmatic use and content for text. Check result.isError before using a tool result. A JSON-RPC error appears in error; do not treat it as a successful tool result. Empty search results mean no matches were returned, not an outage diagnosis.

The server also exposes resources/list and resources/read for optional interface widgets, plus ping. Widgets are not required to consume structuredContent.

This is an HTTP MCP interface. It does not register browser WebMCP tools or expose an agent checkout workflow.

