Purpose
esimfly-mcp is the official MCP (Model Context Protocol) server published by eSIMfly, with the goal of handing the capabilities of the eSIMfly Business API to AI assistants. Once MCP clients such as Claude, Cursor, and ChatGPT are connected, they can use natural language to search eSIM plans, view accounts and usage, diagnose connectivity issues, and place orders and top up after write permissions are enabled.
Main capabilities
- Search eSIM plans at wholesale prices, and calculate profit margins in combination with selling prices.
- Check account balance and eSIM usage, and filter for active eSIMs with low data.
- Diagnose connectivity issues such as "no data" based on real-time network data.
- Optional write operations: ordering, top-up, cancellation, suspension, SMS, and Webhook configuration.
- Two built-in prompts:
esimfly_integration_guide(a complete integration guide, optionally with a tech stack parameter) anddiagnose_esim(diagnosis by ICCID). - Built on the official
@esimfly/sdk; signing, retries, and error codes are handled by the SDK.
How to use
Hosted server (no installation required)
The official hosted address is https://mcp.esimfly.net/mcp, which can be added as a remote MCP server to Claude.ai, ChatGPT, Cursor, or VS Code, and logged in via OAuth 2.1 with an eSIMfly business account without pasting a key; write tools must be actively enabled on the authorization page. Example Claude Code command:
claude mcp add --transport http esimfly https://mcp.esimfly.net/mcp
Local run (stdio)
The server runs locally via stdio, and the API Key never leaves the local machine. Configure it in claude_desktop_config.json under mcpServers ; clients such as Cursor and Windsurf use .cursor/mcp.json or the corresponding configuration file.
Enable write tools
Add "ESIMFLY_MCP_ALLOW_WRITES": "true"to the environment variables. When it is not set, the ordering, top-up, cancellation, suspension, SMS, and Webhook tools are not registered.
Obtaining credentials
API Keys are obtained in the eSIMfly Business Dashboard → Settings → API Keys. Documentation address:https://docs.esimfly.net .
Security design
- Read-only by default; account balance is not touched unless write permissions are explicitly enabled.
- Write tools are two-step: a call without
confirmonly returns a preview (operation details, cost, balance) and does not make a mutating API call;create_orderandtopup_esimalso require theidempotency_keyreturned by their preview to prevent duplicate orders or duplicate top-ups. - Tool annotations mark read operations as
readOnlyHint, and mark cancellation/suspension asdestructiveHint, allowing the host to request user confirmation for high-risk tool calls. - The server does not record credentials and writes nothing to stdout other than the MCP protocol.
- It is recommended to assign a dedicated API Key to the agent and set the smallest possible rate limit; if in doubt, rotate the key in the dashboard.
Use cases
- Query the cheapest specified data plan for a country/region in natural language and calculate profit.
- Batch view active eSIMs with low data usage.
- Diagnose no-data issues based on ICCID.
- Configure Webhooks for events such as installed / status / low-data (write tool, preview first).
- Have an AI assistant generate integration code such as Node.js.
Limitations
- Requires an eSIMfly business account and API Key (local mode) or OAuth login (hosted mode).
- Write operations must be explicitly enabled
ESIMFLY_MCP_ALLOW_WRITES, and require two-step confirmation. - Specific plans, prices, rate limits, etc. are subject to the official eSIMfly documentation and the actual account configuration; the materials do not provide fixed values.