# MCP server email verification

The Humanless MCP server gives an agent email verification tools: `create_verification_identity` returns a fresh address, the agent submits it in your app, then `wait_for_verification_code` blocks until the email arrives and returns `OTP: <code>` and/or `Magic link: <url>`. Pass `since_unix_ms` (taken just before submitting) so a fast email is never missed. A timeout isn't an error; the agent calls wait again. Connect it at `https://api.usehumanless.com/mcp` (Streamable HTTP) with `Authorization: Bearer <key>`, and set your client's tool timeout to at least 90 seconds, because a wait can block for up to 60.

```json .cursor/mcp.json
{
  "mcpServers": {
    "humanless": {
      "url": "https://api.usehumanless.com/mcp",
      "headers": { "Authorization": "Bearer ${env:HUMANLESS_API_KEY}" }
    }
  }
}
```

## Other options

- **Write your own MCP tool** that reads a test mailbox over IMAP or the Gmail API and returns the code.
- **Mailpit plus a small MCP tool** that calls its REST API, for local development.
- **A test-mode bypass** in your app (a fixed code for one test user), so the agent never needs email.

> **Use policy:** Only for apps the owner owns or is authorized to test. See the [Terms](/terms).

More: [Humanless MCP server docs](/docs/mcp) · [All answers](/answers/)

Last updated 2026-12-04

Canonical: https://usehumanless.com/answers/mcp-server-email-verification

---
More: https://usehumanless.com/llms.txt
