esimfly-mcp

v0.2.0
io.github.eSimfly-Official/esimfly-mcp Checked 4 days ago Published 17 days ago

eSIMfly Business API: search eSIM plans, check usage, diagnose eSIMs, optionally order (confirmed)

Values you need

VariableWhat it is
ESIMFLY_ACCESS_CODErequired secret eSIMfly API access code (esf_...)
ESIMFLY_SECRET_KEYrequired secret eSIMfly API secret key (sk_...)
ESIMFLY_MCP_ALLOW_WRITESoptional Set to true to enable ordering, top-up, cancel, suspend, SMS and webhook tools

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add esimfly-mcp -e 'ESIMFLY_ACCESS_CODE=<ESIMFLY_ACCESS_CODE>' -e 'ESIMFLY_SECRET_KEY=<ESIMFLY_SECRET_KEY>' -- npx -y --package=@esimfly/mcp@0.2.0 esimfly-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "esimfly-mcp": {
      "args": [
        "-y",
        "--package=@esimfly/mcp@0.2.0",
        "esimfly-mcp"
      ],
      "command": "npx",
      "env": {
        "ESIMFLY_ACCESS_CODE": "<ESIMFLY_ACCESS_CODE>",
        "ESIMFLY_SECRET_KEY": "<ESIMFLY_SECRET_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "esimfly-mcp": {
      "args": [
        "-y",
        "--package=@esimfly/mcp@0.2.0",
        "esimfly-mcp"
      ],
      "command": "npx",
      "env": {
        "ESIMFLY_ACCESS_CODE": "<ESIMFLY_ACCESS_CODE>",
        "ESIMFLY_SECRET_KEY": "<ESIMFLY_SECRET_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "ESIMFLY_ACCESS_CODE",
      "id": "esimfly-access-code",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "ESIMFLY_SECRET_KEY",
      "id": "esimfly-secret-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "esimfly-mcp": {
      "args": [
        "-y",
        "--package=@esimfly/mcp@0.2.0",
        "esimfly-mcp"
      ],
      "command": "npx",
      "env": {
        "ESIMFLY_ACCESS_CODE": "${input:esimfly-access-code}",
        "ESIMFLY_SECRET_KEY": "${input:esimfly-secret-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.esimfly-mcp]
command = "npx"
args = ["-y", "--package=@esimfly/mcp@0.2.0", "esimfly-mcp"]
env = { "ESIMFLY_ACCESS_CODE" = "<ESIMFLY_ACCESS_CODE>", "ESIMFLY_SECRET_KEY" = "<ESIMFLY_SECRET_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http esimfly-mcp https://mcp.esimfly.net/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "esimfly-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.esimfly.net/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "esimfly-mcp": {
      "url": "https://mcp.esimfly.net/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "esimfly-mcp": {
      "type": "http",
      "url": "https://mcp.esimfly.net/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.esimfly-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.esimfly.net/mcp"]

For AI agents

  1. Ask the user for: ESIMFLY_ACCESS_CODE, ESIMFLY_SECRET_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_packages, get_balance, list_esims, get_esim_usage, get_esim_live_status, get_network_events, get_usage_report, list_orders, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json