Skip to main content
Give your AI coding assistants (Claude Desktop, Cursor, Antigravity) and autonomous agents full programmatic access to send transactional emails, query delivery logs, and inspect templates.

1. Get an API Key

Generate an API key with sending permissions:
  1. Open your Mailofly Dashboard.
  2. Click Create API Key.
  3. Name it (e.g. claude-assistant or cursor-agent).
  4. Copy your secret key (mfly_live_...).

2. Connect via MCP (Model Context Protocol)

Add the Mailofly MCP server to your agent configuration:

3. What Your AI Agent Can Do

Once connected, your AI agent can invoke:
  • send_email: Send transactional messages with HTML or dynamic template variables.
  • get_email_status: Check if an email was delivered, opened, clicked, or bounced.
  • list_domains: Verify DNS and DKIM status for your sending domains.
  • query_logs: Search real-time delivery logs for specific recipients.