1. Conduid
  2. Communication
  3. Mail Server
MCP server · Communication

Mail Server

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.

68Good

Scored 5 hours ago · breakdown

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 Code
claude mcp add mail-server-9ba4 -- npx -y mcp-mail-server
npx
npx -y mcp-mail-server
From source
git clone https://github.com/yunfeizhu/mcp-mail-server

Tools (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.

Releases

v2.1.2v2.1.2 · 16 Oct 20262.1.2 (2026-10-16) Bug Fixes preserve mail identities and bound styled replies…
v2.1.1v2.1.1 · 14 Oct 20262.1.1 (2026-10-14) Bug Fixes Fix reply-subject normalization when `Re`, `回复`, or `答复` is followed by a full-width colon (`:`) or whitespace before the colon. Subjects…
Questions

About Mail Server

How do I install Mail Server?

In Claude Code, run claude mcp add mail-server-9ba4 -- npx -y mcp-mail-server. Other MCP clients take the command after "--" in their server configuration.

Is Mail Server safe to use with an AI agent?

Its trust score is 68 out of 100 (good). It passes all 2 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Mail Server still maintained?

Yes — the latest release is v2.1.2 (16 Oct 2026), and the last commit was 19 days ago. The repository has 53 stars.

What tools does Mail Server provide?

Conduid read 14 tools from the source: check_connection, continue_email_thread, delete_message, delete_messages, find_unreplied_messages, get_message, get_messages, list_mailboxes and 6 more.

What license is Mail Server released under?

The repository declares the MIT license. That applies to the latest release, v2.1.2, as well.