MailDevMcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MailDevMcpWhat emails are in the MailDev inbox?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
# MailDevMcp
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:
start or stop a MailDev container
inspect inbox contents
wait for emails after triggering application behavior
inspect HTML bodies and attachments
verify attachment integrity byte-for-byte
Installation
Install as a global .NET tool:
dotnet tool install -g MailDevMcpAfter installation, the maildev-mcp command becomes available.
Related MCP server: @injaan.dev/ms365-email-cli-mcp
MCP Client Configuration
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"
}
}
}
}Environment Variables
Variable | Default | Description |
|
| Port number for the MailDev REST API |
Typical Workflow
Call
StartMaildevto launch a local MailDev containerTrigger your application to send an email
Call
WaitForEmailif delivery is asynchronousUse
ListEmails,SearchEmails, orGetEmailto inspect the resultUse
GetEmailHtml,GetAttachmentContent, orVerifyAttachmentwhen deeper validation is neededClean up with
DeleteEmail,DeleteAllEmails, orStopMaildev
Available Tools
Tool | Description |
| Start the MailDev Docker container with configurable SMTP port, API port, authentication, and TLS |
| Stop and remove the MailDev Docker container |
| Check the running status of MailDev |
| Retrieve the list of received emails |
| Get the details of an email by ID, including attachment information |
| Get the HTML body of an email by ID |
| Search received emails by subject, sender, or recipient |
| Delete a single email by ID |
| Delete all received emails |
| Wait until a new email matching given criteria arrives (useful for test automation) |
| Get the raw Base64-encoded content of an email attachment |
| Verify that an email attachment matches the original data by byte-by-byte comparison |
Tool Behavior Notes
StartMaildevSupports custom SMTP and API ports
Supports optional SMTP authentication
Treats empty or whitespace-only credentials as authentication disabled
Supports TLS with a generated self-signed certificate
GetEmailandListEmailsRender missing or empty subjects as
(no subject)Render missing address lists as
(none)
WaitForEmailPolls MailDev until a matching email arrives or the timeout is reached
Reports transient MailDev connection failures in the returned message when they occur during polling
VerifyAttachmentAccepts a Base64-encoded original payload
Compares the received attachment byte-by-byte
Reports either exact match, size mismatch, or content mismatch
Requirements and Assumptions
Docker must be installed and available on the same machine where this MCP server runs
MailDev is accessed through its HTTP API on
localhostThe configured API port in the MCP client must match the MailDev API port exposed by Docker
Prerequisites
.NET 10 SDK or later
Docker (for running the MailDev container)
Building from Source
git clone https://github.com/pierre3/MailDevMcp.git
cd MailDevMcp
dotnet pack -c Release
dotnet tool install -g --add-source ./bin/Release MailDevMcpLicense
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides MCP tools for setting up and managing Hephaestus development environment with Docker containers, including starting/stopping services, initializing databases, and troubleshooting.7MIT
- AlicenseAqualityDmaintenanceDeprecated MCP server wrapper for ms365-email-cli that exposes Microsoft 365 email operations (list, read, send, reply, search, etc.) as MCP tools. Use the main ms365-email-cli package instead, which now includes built-in MCP server support.1030ISC
- FlicenseNot gradedqualityCmaintenanceCentralizes Thunderbird email operations as MCP tools: read, send, draft, search, attachments.
- FlicenseAqualityBmaintenanceProvides a dummy SMTP server for catching emails during development, with MCP tools to list, retrieve, and manage received messages.4
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
MCP tools for TON Sites, TON DNS and TON Storage.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pierre3/MailDevMcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server