How it works
Add Mailtrap’s MCP server to give the Augment Code’s Agent access to Mailtrap’s Email API, Email Sandbox, and template management. Type a natural-language prompt in the Agent panel, and Augment handles the API calls; no manual HTTP requests, no context switching.

Configuration
Step 1: Open the Augment panel in your editor and go to Settings via the gear icon.
Step 2: In the MCP section, click Import from JSON.
Step 3: Paste the following configuration and click Save:
{
"mcp": {
"servers": {
"mailtrap": {
"command": "npx",
"args": ["-y", "mcp-mailtrap"],
"env": {
"MAILTRAP_API_TOKEN": "your_mailtrap_api_token",
"DEFAULT_FROM_EMAIL": "your_sender@example.com",
"MAILTRAP_ACCOUNT_ID": "your_account_id",
"MAILTRAP_TEST_INBOX_ID": "your_test_inbox_id"
}
}
}
}
}
Step 4: Replace the placeholder values with your actual Mailtrap credentials before importing.
Step 5: Confirm the Mailtrap MCP server appears as active in the Agent’s tool list.
Note: DEFAULT_FROM_EMAIL must be an address on a domain you’ve already verified in Mailtrap’s Sending Domains. You can find MAILTRAP_ACCOUNT_ID under Settings → Account Settings, and MAILTRAP_TEST_INBOX_ID in your sandbox inbox URL.
For detailed guidance’ including the GUI setup option and step-by-step credential retrieval consult the knowledge base article.
Use cases
- Prompt the Agent to create and iterate on email templates.
- Send test emails to Mailtrap’s Email Sandbox and inspect delivery results.
- Set up transactional email sending for a project by describing what you need.
- Generate HTML email content from a design spec or wireframe description, then push it to Mailtrap as a reusable template.
Supported functionality
- Send transactional emails
- Manage email templates
- Use Email Sandbox for testing
- Track delivery statistics (opens, clicks, bounces)
- Manage sending streams