Skip to main content

MailFlat — MCP server

Native Model Context Protocol server for MailFlat. Gives Claude Desktop, Cursor, or any MCP client disposable inbox tooling — create inboxes, wait for OTP codes, send DKIM-signed mail, and clean up. Built on the mailflat Python SDK.

Run

# zero-install, isolated (recommended)
MAILFLAT_API_KEY=mf_live_… uvx mailflat-mcp

# or install it
pipx install mailflat-mcp
MAILFLAT_API_KEY=mf_live_… mailflat-mcp

Claude Desktop / Cursor config

Add to claude_desktop_config.json (or your client's MCP config):

{
  "mcpServers": {
    "mailflat": {
      "command": "uvx",
      "args": ["mailflat-mcp"],
      "env": { "MAILFLAT_API_KEY": "mf_live_..." }
    }
  }
}

Get your API key from the MailFlat dashboard → Agents.

Tools (11)

Tool What it does
create_inbox(prefix?, label?, retention_hours?) Open a disposable inbox; retention_hours capped by your plan
list_inboxes() All inboxes this key can see
read_messages(address, direction="in") Read messages; received mail by default (out / all for the rest)
wait_for_otp(address, timeout=30) Poll until an OTP arrives, then return it
wait_for_message(address, timeout=30) Poll until a new message arrives; ignores mail you sent
send_email(address, to, subject?, body?, html?) Send a DKIM-signed mail from the inbox
reply(address, message_id, body?, html?) Answer a message in the same conversation (threading headers filled in)
mark_read(address, message_id) Mark one message read so later polls skip it
burn_inbox(address) Delete every message but KEEP the address
delete_inbox(address) Delete the inbox and its messages
delete_message(address, message_id) Delete one message; the inbox itself stays

Reads return received mail by default. Without that, sending to a peer and then waiting for the reply would immediately match your own outgoing message.

Configuration

  • MAILFLAT_API_KEY — your account API key (required).
  • MAILFLAT_API_URL — override the API base (default https://mailflat.net; for self-hosted / BYOD).

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mailflat_mcp-0.8.2.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mailflat_mcp-0.8.2-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file mailflat_mcp-0.8.2.tar.gz.

File metadata

  • Download URL: mailflat_mcp-0.8.2.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for mailflat_mcp-0.8.2.tar.gz
Algorithm Hash digest
SHA256 c3a9a606461d7add9fe6fd77c49c306138fa269fbeea3fd4007689231689694b
MD5 fa6a832fdcfd447ded123c8bc435c0a4
BLAKE2b-256 783273d7458ca8d7a7a8de00d67f2242c3c0dfcaa72da90df858d7de3bfaba87

See more details on using hashes here.

File details

Details for the file mailflat_mcp-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: mailflat_mcp-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.9

File hashes

Hashes for mailflat_mcp-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5df0158d404e03586eb598591809f270b67d02b17a558af0639a4cb30a054b5
MD5 524fb9ae0b5d5e7675b3b8eab3993117
BLAKE2b-256 6ea5b3cba580b6da7da08e601173abf01d3fddeb69890e2a5d942f3670cf4327

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page