Integrations

Augment Code

Create email templates, test in sandbox, and configure sending.

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

  1. Prompt the Agent to create and iterate on email templates. 
  2. Send test emails to Mailtrapโ€™s Email Sandbox and inspect delivery results.
  3. Set up transactional email sending for a project by describing what you need.
  4. Generate HTML email content from a design spec or wireframe description, then push it to Mailtrap as a reusable template.

Supported functionalities

  • Send transactional emails
  • Manage email templates
  • Use Email Sandbox for testing
  • Track delivery statistics (opens, clicks, bounces)
  • Manage sending streams

Category

AI

For developers

Documentation

docs.mailtrap.io