About Mail Server
Mail Server is an MCP server published by yunfeizhu in the Communication category: a lightweight Model Context Protocol (MCP) server that provides IMAP and SMTP email functionality for AI assistants like Claude in Cursor IDE. Built with TypeScript and optimized for easy deployment via npm/npx. Conduid read 14 tools from its source: check_connection, continue_email_thread, delete_message, delete_messages, find_unreplied_messages, get_message and 8 more. It is published to npm as mcp-mail-server and starts with npx.
The repository has 53 stars and 29 forks, is licensed MIT, and its last commit was on 13 Nov 2026. The latest release is v2.1.2 (16 Oct 2026): Bug Fixes preserve mail identities and bound styled replies… The release before it was v2.1.1 (14 Oct 2026). It passes all 2 static checks Conduid ran on the repository. Its topics include imap, smtp, email and mail.
Install
claude mcp add mail-server-9ba4 -- npx -y mcp-mail-servernpx -y mcp-mail-servergit clone https://github.com/yunfeizhu/mcp-mail-serverTools (14)
check_connectionConnect to IMAP when needed, actively verify SMTP, then return structured status for both services.continue_email_threadFind the newest sent message with the same normalized subject, optionally narrowed by recipient and date, then continue its thread. Designed for recurring reports; reply-all and quoted history both default to true.delete_messagePermanently delete one existing mailbox-scoped message using targeted UID EXPUNGE. Fails safely when the UID is missing or the IMAP server lacks UIDPLUS, and returns a structured unknown outcome when a transport failure prevents confirmation.delete_messagesPermanently delete several mailbox-scoped messages in a single call using targeted UID EXPUNGE. Each UID is deleted independently and reported separately, so a failure on one message does not abort the rest. Returns deletedCount, failedCount and a per-UID results array; inspect any entry whose deleted flag is false before retrying that UID.find_unreplied_messagesFind messages from a sender that have no thread-header reply in the sent mailbox. Messages without Message-ID are returned separately as unknown.get_messageRetrieve one message, including full bodies and attachment metadata. Set markSeen only when the message should be marked as read.get_messagesRetrieve multiple messages from one mailbox, including full bodies and attachment metadata. Fails if any requested UID is missing or the aggregate response-body budget would be exceeded.list_mailboxesList all available mailboxes (folders). Auto-connects to IMAP when needed.move_messageMove an existing mailbox-scoped message to another existing mailbox. If a move, copy, or source-cleanup outcome cannot be confirmed, returns a structured partial error that must be inspected before retrying.move_messagesMove several mailbox-scoped messages from one mailbox into another existing mailbox in a single call. Each UID is moved independently and reported separately, so a failure on one message does not abort the rest. Returns movedCount, failedCount and a per-UID results array; inspect any entry whose moved flag is false before retrying that UID.reply_to_emailReply to a mailbox-scoped message with threading headers, optional reply-all recipients, signature, and quoted original content.save_attachmentSave one or all attachments from a mailbox-scoped message into an allowed local directory. Select one attachment by zero-based index or exact filename. If a later write fails, returns the files already saved as a structured partial result.search_messagesSearch one or more mailboxes with combined filters. Defaults to INBOX and the detected sent mailbox. Returns message summaries unless includeBody is true; full-body hydration fails explicitly if a selected message disappears or the aggregate response-body budget would be exceeded.send_emailSend a new email via SMTP and try to save a MIME-equivalent copy with the accepted Message-ID to the sent mailbox.Security checks
- ✓License declaredThe repository declares the MIT license.
- ✓No dynamic code executionScanned 16 source files and found no eval, dynamic Function or shell execution.
4 checks have not been run yet.