SuperAPI AI Directory

MailFlat/mailflat-sdks

The MailFlat MCP server is the Model Context Protocol server implementation in the official MailFlat SDK repository. Built on the MailFlat Python SDK, it provides real mailbox operation capabilities for MCP clients such as Claude Desktop and Cursor. It allows agents or test suites to programmatically create real inboxes, wait for and read one-time passcodes (OTP), send DKIM-signed emails, and clean up mailboxes after tasks are complete. Each email address is permanent; only the messages within it expire according to the retention window selected by the user. Before use, obtain an API key from the Agents page in the MailFlat console and configure it via the MAILFLAT_API_KEY environment variable; the API base URL can be overridden via MAILFLAT_API_URL to support self-hosted or bring-your-own-domain scenarios. The package uses io.github.MailFlat/mailflat-mcp on PyPI as the ownership marker, consistent with the name in server.json.

Open website

About this tool

The MailFlat MCP server is a component under the packages/mcp directory in the official MailFlat SDK repository (mailflat-sdks). It is a native Model Context Protocol server that provides real inbox tools for Claude Desktop, Cursor, or any MCP client.

Purpose: to enable AI agents or automated test suites to programmatically create real email addresses, receive emails, and read one-time passcodes, thereby completing registration, login, or test flows that require email verification.

Main capabilities:

  • Create inboxes: each address is permanent until the user actively deletes it; only messages within the mailbox expire, and the expiration time is determined by the retention window selected by the user.
  • Wait for and read one-time passcodes (OTP).
  • Send DKIM-signed emails.
  • Clean up mailboxes after tasks are complete.
  • By default, reading returns received emails; if this were not so, after sending an email to the other party and then waiting for a reply, it would immediately match the message sent by itself.

Usage:

  • Add this server in Claude Desktop's claude_desktop_config.json or the MCP configuration of the client being used.
  • Obtain an API key from the Agents page in the MailFlat console.
  • Configure the MAILFLAT_API_KEY environment variable (required, account API key).
  • Optionally configure MAILFLAT_API_URL to override the API base URL (default https://mailflat.net,适用于自托管或 BYOD scenarios).
  • The package's README on PyPI contains the ownership marker line mcp-name: io.github.MailFlat/mailflat-mcp, which allows the official MCP Registry to verify that the GitHub namespace and the published package belong to the same owner, preventing registry entries from being claimed by others; this marker must stay in sync with the name field in server.json, and there is a test asserting that the two are consistent.

Applicable scenarios: agent workflows that require real email verification, email registration and passcode reading in automated tests, and automated tasks that need to send DKIM-signed emails.

Limitations: the materials do not provide specific installation commands, complete configuration examples, pricing, or quota information, and none are currently provided.