
Maildev Mcp
io.github.pierre3Published by GitHub account pierre3v1.0.1Updated Oct 24, 2026
MailDev MCP server. Manage Docker containers and inspect emails from your AI editor or MCP client.
Overview
A local MCP server for MailDev that lets an assistant start and stop a MailDev Docker container and inspect, search, wait for and verify the emails it receives.
- What you can do
- Start, stop and check the status of a local MailDev Docker container, with configurable SMTP and API ports, optional SMTP authentication and TLS with a self-signed certificate. List, search and read received emails by subject, sender or recipient, including HTML bodies and attachment details. Wait for a matching email to arrive, useful after triggering an application to send mail. Delete single emails or clear the whole inbox. Fetch attachment content as Base64 and verify an attachment byte-for-byte against an original payload.
- When to use it
- Local development and test automation where an assistant needs to drive a MailDev instance: start it, trigger an app to send mail, wait for delivery, then inspect or validate the message and its attachments. Not intended for production mail handling.
- Requirements
- Runs as a local process; the package is a .NET global tool requiring the .NET 10 SDK or later. Docker must be installed and available on the same machine. MailDev is reached over its HTTP API on localhost; the MAILDEV_API_PORT environment variable sets the API port (default 1080) and must match the port exposed by Docker.
Installation
In SourceWeft
- Open Maildev Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
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:
After installation, the maildev-mcp command becomes available.
MCP Client Configuration
Add the following to your MCP client settings (e.g. Claude Desktop, VS Code, etc.):
Environment Variables
Typical Workflow
- Call
StartMaildevto launch a local MailDev container - Trigger your application to send an email
- Call
WaitForEmailif delivery is asynchronous - Use
ListEmails,SearchEmails, orGetEmailto inspect the result - Use
GetEmailHtml,GetAttachmentContent, orVerifyAttachmentwhen deeper validation is needed - Clean up with
DeleteEmail,DeleteAllEmails, orStopMaildev
Available Tools
Tool Behavior Notes
StartMaildev- Supports 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
GetEmailandListEmails- Render missing or empty subjects as
(no subject) - Render missing address lists as
(none)
- Render missing or empty subjects as
WaitForEmail- Polls 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
VerifyAttachment- Accepts 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
localhost - The 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
License
Source: README.md at commit 15c2a39
Tools
0Version history
1- v1.0.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts