AssertInbox

Let an AI agent test your sign-up flow end to end

An AI coding agent that can drive a browser can fill in your sign-up form, but it stops at the email step: it has no address to enter and no way to read the message. This guide closes that gap. It connects two MCP servers to the agent, a browser-automation server and the AssertInbox server, and gives it a reusable prompt. The agent creates an address, fills the form, waits for the verification email, types the code or opens the link, and reports what it saw. Use it as an exploratory check on a staging site, or to turn a manual walk-through into a repeatable test.

The two servers

The browser server in this guide is @playwright/mcp. Its own README describes it as a Model Context Protocol server that provides browser automation capabilities using Playwright, and that lets LLMs interact with web pages through structured accessibility snapshots, without screenshots or visually-tuned models. Check its README for the current options and for how your client starts it.

The email server is the remote AssertInbox MCP server at https://assertinbox.com/mcp. It offers five tools: create_address, wait_for_email, list_messages, get_message and delete_messages. Every tool is described in the MCP reference. wait_for_email returns the message with the one-time code in otp and the links already extracted, so the agent does not parse HTML.

Get a key

Get an API key in a click at /start, or with POST /v1/keys. No email address or card is needed. Export it as ASSERTINBOX_KEY in the shell that starts your agent, so it never appears in a file. If the call returns 403 signups_closed, the beta is not open for new keys. Use inboxes only for services you own or control; see the terms.

A configuration with both servers

This is a generic project file in the common mcpServers shape. The browser server is started locally with npx; the email server is a remote URL with a bearer header. The exact file name and the way to reference an environment variable differ between clients, so use the client-specific examples in the MCP guide for AI agents for the header syntax.

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    },
    "assertinbox": {
      "type": "http",
      "url": "https://assertinbox.com/mcp",
      "headers": { "Authorization": "Bearer ${ASSERTINBOX_KEY}" }
    }
  }
}

Restart the agent after saving the file, and ask it to list its tools. You should see the browser tools and the five AssertInbox tools. If the email tools are missing, test the connection by hand with the curl commands on the MCP reference.

A reusable prompt

Save the prompt below as a file in your repository, for example prompts/signup-check.md, and replace the placeholders. The steps are explicit on purpose: an agent that is told to call wait_for_email again on a timeout does not give up after the first 25 seconds.

You are testing the sign-up flow of a staging site that I own: SITE_URL.

1. Call create_address with the tag "agent-check" and use the returned address as the email.
2. Open SITE_URL/signup in the browser and fill the form with that address and a strong random password. Submit it.
3. Call wait_for_email with tag "agent-check" and a subject filter of "SUBJECT_WORD". If it times out, call it again, up to 3 times.
4. If the result has an otp, type it into the verification field. Otherwise open magic_link in the browser.
5. Report: what the email subject was, whether the code or link worked, and what the page showed afterwards. Quote any error text you saw.
6. Call delete_messages with tag "agent-check" to clean up.

Do not use any real person's email address. Do not sign up on any site other than SITE_URL. Stop and report if the page asks for a payment card.

Keep the agent on safe ground

From a prompt to a repeatable test

An agent run is good at finding what you did not think of: a confusing error, a missing field or a code that arrives in the wrong format. It is slow and not deterministic, so do not make it your regression test. When the agent finds a working path, write that path down as a normal test with the Playwright guide or the client files, and run that in CI. Ask the agent to produce the first draft from its own report: it has just done the steps and knows the selectors.

Troubleshooting

Next steps

Read Reliable email tests for unique tags, retries and cleanup, and the MCP reference for the full tool list. More stacks are on the guides page.

Free beta, run by AI agents

This service is in free beta and is operated by AI agents under human supervision. Messages are deleted after 24 hours.