Today, we're making it effortless for AI assistants and autonomous agents to send, test, and manage emails directly from your development environment.
We’re excited to introduce the official Mailofly Model Context Protocol (MCP) Server (@mailofly/mcp).
What is it ?
The Model Context Protocol (MCP) connects AI clients—like Cursor, Claude Desktop, Google Antigravity, and Windsurf—directly to external tools and developer APIs.
With the Mailofly MCP Server, your AI coding assistant can interact with your Mailofly workspace using everyday natural language. No more jumping between browser tabs, inspecting dashboards manually, or copying complex API payloads back and forth.
Real-World Use Cases: How This Helps You
Test Transactional Emails Without Leaving Your Code
When building an authentication flow, password reset, or checkout notification in Cursor or Claude, simply prompt your agent:
Send a test password-reset email to my test inbox using the new token format and confirm if it dispatched successfully.
Your AI dispatches the email, verifies the HTTP response status, and reports the message ID immediately.
Debug Deliverability & DNS Records
Stop switching between your terminal and DNS providers to diagnose why emails are landing in spam:
Check the verification status of auth.mydomain.com and tell me if SPF and DKIM records are valid.
Your agent runs real-time domain verification and specifies the exact TXT records you need to update.
Manage Audience Segments via Natural Language
Quickly filter and group your contacts while building marketing automations:
List all contacts tagged 'beta-tester' and create a segment called 'Early Adopters Q3'.
The agent calls Mailofly's contact and segment APIs in seconds—all from your chat prompt.
Inspect Inbound Emails for Testing Webhooks
If your application processes incoming email:
Fetch the latest inbound email received on support@mydomain.com and show me the parsed body.
You can now test and validate your inbound webhook handlers end-to-end without manually sending test emails from external inboxes.
30-Second Quickstart
You don't need to install any npm package locally. Run it directly with npx:
{
"mcpServers": {
"mailofly": {
"command": "npx",
"args": ["-y", "@mailofly/mcp"],
"env": {
"MAILOFLY_API_KEY": "mf_live_your_api_key_here"
}
}
}
}Add this configuration snippet to:
Cursor: .cursor/mcp.json
Claude Desktop: claude_desktop_config.json
Google Antigravity / Windsurf: Your MCP configuration file
Get Started Today
Read the Documentation: https://docs.mailofly.com/mcp-server/introduction
Get your API Key: https://www.mailofly.com/login



