otpbox

OTPBox / AI / Qwen Code

AI coding agent · MCP

Test email verification with Qwen Code

Qwen Code (Alibaba's open-source terminal coding agent) supports remote MCP servers the same way Gemini CLI does - add OTPBox once, use it from any Qwen Code session.

Get a free key Read the MCP docs

Connect OTPBox

Mint a free key first (no account, no card):

curl -X POST https://otpbox.io/api/v1/keys/free -H "content-type: application/json" -d '{}'
→ { "id": "lic_...", "key": "...", "plan": "free", "quotaLimit": 200 }

Add to ~/.qwen/settings.json, or via the CLI:

qwen mcp add --scope user --transport http otpbox https://otpbox.io/mcp

# or in settings.json directly:
{
  "mcpServers": {
    "otpbox": {
      "httpUrl": "https://otpbox.io/mcp",
      "headers": { "Authorization": "Bearer <your-otpbox-key>" }
    }
  }
}
Qwen Code uses httpUrl for the streamable-HTTP transport, matching Gemini CLI's convention (it began as a fork of it).

Try a prompt

Once connected, Qwen Code can call OTPBox's 13 MCP tools directly. For example:

"Use otpbox to create a test inbox, sign up for this app with it, and get me the OTP code."

What you get

Real inboxes, not mocks

Every code and link comes from a real delivered email, not a stub - so the test proves the actual signup flow works.

Extraction built in

OTP codes and verification links are parsed out automatically. No regex against raw email bodies.

Free tier, no card

200 requests/month with a key minted in one call - no account, no payment info, no waiting.

13 MCP tools

create_test_inbox, wait_for_email, get_otp, get_verification_link, create_test_identity, and more - the full loop is agent-callable.

Official Qwen Code docs

For Qwen Code's own MCP setup UI/flags beyond the snippet above, see Qwen Code's MCP documentation.

Next steps

← Back to OTPBox