This server wraps the MailDev email testing tool with MCP, giving you programmatic control over a Docker container running a local SMTP sink. You get tools to start and stop the container with configurable ports and auth, then inspect received emails through MailDev's REST API. The workflow is built for test automation: trigger your app to send mail, call WaitForEmail to poll until it arrives, then use GetEmail, SearchEmails, or GetEmailHtml to validate the result. You can also pull attachment content as base64 or run byte-by-byte verification against expected payloads. Useful when you're testing email flows locally and want your AI assistant to orchestrate the SMTP environment and assertion logic without manual Docker or API wrangling.
English | 日本語
mcp-name: io.github.pierre3/maildev-mcp
An MCP (Model Context Protocol) server for MailDev.
Manage MailDev Docker containers and inspect received emails directly from your AI-powered editor or MCP client.
This server is intended for local development and test automation scenarios where an MCP client needs to:
Install as a global .NET tool:
dotnet tool install -g MailDevMcp
After installation, the maildev-mcp command becomes available.
Add the following to your MCP client settings (e.g. Claude Desktop, VS Code, etc.):
{
"mcpServers": {
"maildev-mcp": {
"command": "maildev-mcp",
"env": {
"MAILDEV_API_PORT": "1080"
}
}
}
}
| Variable | Default | Description |
|---|---|---|
MAILDEV_API_PORT | 1080 | Port number for the MailDev REST API |
StartMaildev to launch a local MailDev containerWaitForEmail if delivery is asynchronousListEmails, SearchEmails, or GetEmail to inspect the resultGetEmailHtml, GetAttachmentContent, or VerifyAttachment when deeper validation is neededDeleteEmail, DeleteAllEmails, or StopMaildev| Tool | Description |
|---|---|
StartMaildev | Start the MailDev Docker container with configurable SMTP port, API port, authentication, and TLS |
StopMaildev | Stop and remove the MailDev Docker container |
MaildevStatus | Check the running status of MailDev |
ListEmails | Retrieve the list of received emails |
GetEmail | Get the details of an email by ID, including attachment information |
GetEmailHtml | Get the HTML body of an email by ID |
SearchEmails | Search received emails by subject, sender, or recipient |
DeleteEmail | Delete a single email by ID |
DeleteAllEmails | Delete all received emails |
WaitForEmail | Wait until a new email matching given criteria arrives (useful for test automation) |
GetAttachmentContent | Get the raw Base64-encoded content of an email attachment |
VerifyAttachment | Verify that an email attachment matches the original data by byte-by-byte comparison |
StartMaildev
GetEmail and ListEmails
(no subject)(none)WaitForEmail
VerifyAttachment
localhostgit clone https://github.com/pierre3/MailDevMcp.git
cd MailDevMcp
dotnet pack -c Release
dotnet tool install -g --add-source ./bin/Release MailDevMcp
MAILDEV_API_PORTPort number for the MailDev REST API (default: 1080)
silenceper/mcp-k8s
azure/containerization-assist
io.github.evozim/aws-builder
reza-gholizade/k8s-mcp-server
flux159/mcp-server-kubernetes