MCP Mailtrap Server
An MCP server that provides tools for sending and testing in sandbox via Mailtrap.
Prerequisites
Before using this MCP server, you need to:
- Create a Mailtrap account
- Verify your domain
- Get your API token from Mailtrap API settings
- Get your Account ID from Mailtrap account management
Required Environment Variables:
MAILTRAP_API_TOKEN- Required for all functionalityMAILTRAP_ACCOUNT_ID- Required for templates, stats, email logs, sandbox list/show, and sending domains. Optional only for send-email and send-sandbox-email.
Optional (can be passed as tool parameters instead):
DEFAULT_FROM_EMAIL- Default sender email whenfromis not provided to send-email or send-sandbox-email. Enables switching sender per call via thefromparameter.MAILTRAP_TEST_INBOX_ID- Default test inbox ID for sandbox tools whentest_inbox_idis not provided. Enables switching between inboxes per call via thetest_inbox_idparameter.MAILTRAP_SANDBOX_ID- Default sandbox ID for sandbox tools whensandbox_idis not provided. Enables switching between sandboxes per call via thesandbox_idparameter.MAILTRAP_ORGANIZATION_ID- Required for organization tools (list-sub-accounts,create-sub-account).MAILTRAP_ORGANIZATION_API_TOKEN- Organization-scoped API token. Required for organization tools (separate fromMAILTRAP_API_TOKEN).






