1. Conduid
  2. Developer Tools
  3. MailSandbox
MCP server · Developer Tools

MailSandbox

MailSandbox is a fast, zero-dependency email testing tool & API with a web UI, SMTP server, Postmark API emulation, and MCP server for AI-assisted debugging.

Unclaimed MIT last commit a year ago devtools
51Fair

Scored 6 hours ago · breakdown

About MailSandbox

MailSandbox is an MCP server published by btafoya in the Developer Tools category: mailSandbox is a fast, zero-dependency email testing tool & API with a web UI, SMTP server, Postmark API emulation, and MCP server for AI-assisted debugging.

The repository has 8 stars and 1 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/btafoya/mailsandbox

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about MailSandbox

Powered by Claude · Grounded in docs

I know everything about MailSandbox. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 6 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !No dynamic code executionSource scan found eval or shell execution. Review how tool inputs reach it before granting credentials.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v1.28.1-mailsandboxv1.28.1-mailsandbox: Fixed SMTP handler compilation · 11 Sep 2025Test release for Docker build workflow validation with fixed SMTP handler code after reverting refactoring that caused compilation errors.
v1.28.0-mailsandbox.1v1.28.0-mailsandbox.1: Performance, Security & Monitoring · 11 Sep 2025🚀 Major Improvements Release This release brings significant enhancements to MailSandbox's security, performance, and operational visibility. ✨ Highlights 🔒 Enhanced Security: TLS 1.2+ with modern cipher suites ⚡ 50x Performance:…
v1.27.7-mailsandbox.2MailSandbox v1.27.7-mailsandbox.2 · 11 Sep 2025MailSandbox v1.27.7-mailsandbox.2 🎉 What's New This release marks significant improvements to the MailSandbox fork of Mailpit, focusing on documentation, branding, and developer experience. ✨ Features & Improvements 🏷️ Rebranding:…

README

MailSandbox — email testing & simulation for developers

Fork of Mailpit adding Postmark API emulation and an MCP server for AI-assisted debugging.
Inspired by and grateful to the original work on Mailpit and MailHog. See Credits.

Go Version Docker Build docker edge images Build docker images CodeQL Tests (rqlite)


MailSandbox is a small, fast, low-memory, zero-dependency, multi-platform email testing tool & API for developers.
It provides an SMTP server, modern web interface, REST API, Postmark API emulation, and an MCP server for AI-powered workflows.


Features

  • 🚀 Lightweight — single static binary or multi-arch Docker image
  • 🌐 Modern Web UI — view HTML, source, headers, attachments, search & filter
  • 📬 SMTP & POP3 servers — STARTTLS/SSL/TLS, authentication, forwarding, relaying
  • 🔍 Testing tools — HTML check, link check, spam score, screenshots, mobile preview
  • 🏷 Tagging & filtering — manual or automated (incl. plus addressing)
  • ⚡ Performance — 100–200 emails/sec, automatic pruning (default 500 emails)
  • 🧪 Chaos mode — inject SMTP errors to test resilience
  • 🔔 Integrations — webhooks, browser notifications, List-Unsubscribe validation
  • 🆕 Postmark API emulation — drop-in replacement for Postmark during development
  • 🤖 MCP server — AI assistants (e.g., Claude Code) can list, search, and analyze messages

Installation

The web UI runs on http://0.0.0.0:8025 and SMTP on 0.0.0.0:1025.

Script (Linux & macOS)

sudo sh < <(curl -sL https://raw.githubusercontent.com/btafoya/mailsandbox/main/install.sh)

Static binary

Download from releases, rename to mailsandbox, and add to $PATH.

Docker

docker run -d --name mailsandbox   -p 8025:8025 -p 1025:1025   btafoya/mailsandbox

Usage

List options:

mailsandbox -h

Postmark API Emulation

Enable Postmark API emulation:

mailsandbox --postmark-api --postmark-token "your-secret-token"

Environment variables:

export MP_POSTMARK_API=true
export MP_POSTMARK_TOKEN=your-secret-token
mailsandbox

Example: Node.js

const postmark = require("postmark");
const client = new postmark.ServerClient("your-secret-token");
client.apiUrl = "http://localhost:8025";
client.sendEmail({ From:"a@x.com", To:"b@y.com", Subject:"Test", TextBody:"Hello" });

Endpoints:

  • POST /email
  • POST /email/batch
  • POST /email/withTemplate

MCP Server for AI Assistants

Enable MCP server:

mailsandbox --mcp-server --mcp-transport stdio

Environment variables:

export MP_MCP_SERVER=true
export MP_MCP_TRANSPORT=stdio

Docker with MCP

docker build -t mailsandbox-with-mcp .
docker run -d --name mailsandbox   -p 127.0.0.1:8025:8025 -p 1025:1025   -e MP_MCP_SERVER=true   -e MP_MCP_TRANSPORT=stdio   -e MP_POSTMARK_API=true   -e MP_POSTMARK_TOKEN=dev-token-123   mailsandbox-with-mcp

MCP tools

  • list_messages — list/filter emails
  • get_message — retrieve full message
  • search_messages — advanced search
  • analyze_message — HTML, links, spam scoring

Migration Guide

  • Binary name renamed mailsandbox; create a symlink if you prefer mailpit.
  • Default ports unchanged: HTTP 8025, SMTP 1025.
  • APIs: REST API unchanged; Postmark & MCP are opt-in.
  • Docker: use forked image for MCP/Postmark features.

Credits & Acknowledgements

  • Mailpit — by Axel Lenferna de la Motte and contributors. Original project and active development.
  • MailHog — the original inspiration for mainer email testing tools.
  • MailSandbox — maintained by Brian Tafoya, adding Postmark API emulation and MCP server support.

License

MailSandbox inherits the upstream license from Mailpit. See LICENSE for details.

Star History

Star History Chart

README fetched from the repository 6 hours ago. The original is authoritative.

Questions

About MailSandbox

How do I install MailSandbox?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is MailSandbox safe to use with an AI agent?

Its trust score is 51 out of 100 (fair). It passes 4 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is MailSandbox still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.