Back to Home
mailtrap icon

mailtrap-mcp

Verified Safe

by mailtrap

Overview

This MCP server integrates with Mailtrap.io to provide tools for sending transactional emails, managing email templates (create, list, update, delete), and testing emails in a sandbox environment.

Installation

Run Command
npx -y mcp-mailtrap

Environment Variables

  • MAILTRAP_API_TOKEN
  • DEFAULT_FROM_EMAIL
  • MAILTRAP_ACCOUNT_ID
  • MAILTRAP_TEST_INBOX_ID

Security Notes

The server follows good security practices: sensitive credentials (Mailtrap API token) are expected from environment variables and marked as 'sensitive' in the manifest. Input validation is performed using JSON schemas (though Zod is used internally for schema definition). No direct 'eval' or obvious malicious patterns were found. Network communication is handled by `axios` to the Mailtrap API, and the MCP server uses standard I/O, minimizing direct network exposure from the server itself. The code includes error handling for missing environment variables. The sandbox client explicitly checks for the `MAILTRAP_TEST_INBOX_ID` environment variable.

Similar Servers

Stats

Interest Score46
Security Score9
Cost ClassLow
Avg Tokens300
Stars51
Forks12
Last Update2025-12-02

Tags

emailmailtrapsmtpemail-testingtemplates