Skip to content

Blog

How to let an AI agent sign up for a website and read the verification email

Published · Updated

Ask an AI assistant to "sign me up for this service" and it reaches the same wall every time: check your email for a code. It has no inbox, so it stops and hands the task back. The fix is an address of its own, separate from yours.

What the agent needs

  1. An address it can create on demand.
  2. A way to wait for the confirmation email without polling.
  3. The code or link, already pulled out of the message.

Mail for Bots provides these as three MCP tools: create_inbox, wait_for_message and get_message (the message includes extracted.codes and extracted.links). Connecting takes one command:

Terminal · Claude Code
claude mcp add --transport http mailforbots https://mailforbots.com/mcp \
  --header "Authorization: Bearer bm_YOUR_KEY"

Claude Desktop: add the same URL and header under Settings, Connectors.

The flow

  1. The agent calls create_inbox and gets an address like signup-bot@mailforbots.com.
  2. It registers on the website with that address.
  3. It calls wait_for_message, optionally filtering on the sender or subject, and the call returns when the email arrives.
  4. It reads the code or confirmation link and finishes the sign-up.
  5. It deletes the inbox, or you keep it for later receipts and notices.
Prompt
Create an inbox called signup-bot, sign up to example.com with it,
wait for the confirmation email and tell me the verification code.

One address, many sign-ups

Plus-addressing (signup-bot+shop@mailforbots.com) delivers to the same inbox, and wait_for_message can filter on the tag, so one inbox can serve many sign-ups without mixing them up. See plus-addressing.

Stay in control

  • Everything the agent receives appears in a normal webmail inbox you can read.
  • For anything that sends mail, have the agent write a draft that waits for your approval (how).
  • Sites that ban disposable addresses may reject shared-domain inboxes; on Pro use your own domain.
  • Respect each site's terms. Mail for Bots is for real work, not mass account creation (acceptable use).

More on the safety side of codes: AI agents and email verification codes.

Start free Read the quickstart