mails0

Open-source email API that gives AI agents their own inboxes and OTP code extraction.

Visit mails0 Opens the vendor's site in a new tab

mails0 is an open-source email API built for AI agents that need their own inboxes. It provides permanent named mailboxes, verification-code extraction, search, replies, and MCP tools, and can be self-hosted on your own Cloudflare account. The site describes it as "Open-source email infrastructure for agents that need inboxes, verification-code extraction, search, replies, MCP tools, and self-hosted Cloudflare control." It ships a CLI, Python SDK, and MCP server for Claude Desktop, Cursor, and Windsurf.

What it does

  • OTP extraction: The CLI command "mails code --to [email protected] --timeout 30" waits for and returns a verification code.
  • MCP tools: An MCP server config is provided for Claude Desktop, Cursor, and Windsurf.
  • Scoped keys: "Every mailbox gets its own API key" so a leaked key only touches that mailbox.
  • Raw-first storage: "Every inbound email is persisted to R2 before any parsing or routing."
  • Rate limits: "100 sends/day per mailbox (configurable when self-hosted)" plus bounce and complaint suppression.
  • Self-hosting: "Self-hosted on your own Cloudflare account. MIT licensed."

Best for

  • Agent signups: Let an agent receive and read verification emails during account signup flows.
  • Inbox search: Query a mailbox with "mails inbox --query \"verification\"" to find messages.
  • Browser agents: Give browser-automation agents a mailbox for inbound and outbound email.

Not ideal for

  • Human email client: The product targets agents and developers, not everyday personal email use.
  • No-code users: Setup requires npm or pip installs and API key configuration.

Pros

  • Open source: MIT licensed and self-hostable on your own Cloudflare account.
  • Agent tooling: CLI, Python SDK, Agent Skills, and MCP server are all documented.
  • Guardrails: Per-mailbox keys and send limits contain runaway agents.

Cons

  • No privacy policy: Security checks report the privacy policy and terms as failing.
  • Thin pricing: The pricing and plans pages show no tier names or prices.
  • No proof: No ratings, reviews, or third-party discussion were found on the page.

Pricing and facts

Pricing modelOpen source
Free tierSelf-hosted on Cloudflare free tier at $0, per the site
Websitehttps://mails0.com
Last reviewed2026-11-27

Alternatives to mails0

Questions about mails0

What is mails0?

mails0 is an open-source email API built for AI agents that need their own inboxes. It provides permanent named mailboxes, verification-code extraction, search, replies, and MCP tools, and can be self-hosted on your own Cloudflare account. The site describes it as "Open-source email infrastructure for agents that need inboxes, verification-code extraction, search, replies, MCP tools, and self-hosted Cloudflare control." It ships a CLI, Python SDK, and MCP server for Claude Desktop, Cursor, and Windsurf.

Is mails0 free?

mails0 is open source. Self-hosted on Cloudflare free tier at $0, per the site

What is mails0 best for?

Agent signups: Let an agent receive and read verification emails during account signup flows.; Inbox search: Query a mailbox with "mails inbox --query \"verification\"" to find messages.; Browser agents: Give browser-automation agents a mailbox for inbound and outbound email.

Listed in Email & Communication. Something out of date? Tell us.