This article provides a comprehensive guide based on Mailtrap's official tutorial onhow to send emails in Windsurf.
Before we start
Required accounts
- Windsurf account - to access the AI-powered development environment
- Mailtrap account - to send emails
- Node.js - latest version installed for MCP server functionality
Prerequisites setup
- Verify your email sending domain - Mailtrap requires domain verification before you can send emails. This process takes approximately 5 minutes and ensures optimal deliverability rates. Follow Mailtrap's domain setup guide for detailed instructions.
- Get your API Token - Navigate to your Mailtrap dashboard and obtain an API token with appropriate permissions for your sending domain and email operations.
- Install Windsurf - Download and install the latest version of Windsurf from windsurf.com to ensure compatibility with all MCP features.
- Update Node.js - Ensure you have the latest Node.js version installed, as the Mailtrap MCP server runs as a Node.js command line utility.
Important Note: The integration uses Mailtrap's MCP server, which provides a seamless interface between Windsurf's AI capabilities and Mailtrap's email infrastructure.
Configure Mailtrap Integration with Windsurf
Step 1: Add Mailtrap MCP to Windsurf
Begin by configuring the MCP server connection in Windsurf:
- Open Windsurf Settings
- Launch Windsurf application
- Navigate to Settings → Windsurf Settings
- This will open the main configuration panel
- Access MCP Configuration
- Look for the Manage MCPs button in the settings panel
- Click on it to open the mcp.config.json file
- This file controls all Model Context Protocol integrations
- Add Mailtrap MCP Configuration
Insert the following configuration into your mcp.config.json file: