1. Conduid
  2. Search
  3. Email Server
MCP server · Search

Email Server

Full-featured, multi-account MCP email server for Windows, macOS, and Linux—read, search, organize, and send email via IMAP and SMTP.

85Strong

Scored 20 hours ago · breakdown

About Email Server

Email Server is an MCP server published by Wh1isper in the Search category: full-featured, multi-account MCP email server for Windows, macOS, and Linux—read, search, organize, and send email via IMAP and SMTP. Conduid read 21 tools from its source: archive_emails, create_mailbox, delete_emails, download_attachment, email_command, forward_email and 15 more. It is published to PyPI as mcp-email-server and runs with uvx.

The repository has 416 stars and 141 forks, is licensed BSD-3-Clause, and its last commit was on 2 Dec 2026. The latest release is 1.17.0 (30 Nov 2026): get_emails_content now returns structured calendar_events extracted from direct text/calendar, application/ics, text/x-vcalendar, and leaf .ics MIME parts without requir… It follows 1.16.0 (26 Nov 2026), and the 5 most recent releases go back to 1.14.0 (3 Nov 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include email, email-server, fastmcp, imap, multi-account and smtp.

Install

Claude Code
claude mcp add email-server-4599 -- uvx mcp-email-server@latest stdio
Run
uvx mcp-email-server@latest stdio
uvx
uvx mcp-email-server
pip
pip install mcp-email-server
From source
git clone https://github.com/Wh1isper/mcp-email-server

Tools (21)

archive_emailsArchive one or more emails by moving them to the account's Archive folder, auto-detected via the RFC 6154 \Archive flag (falling back to common names like Archive or [Gmail]/All Mail). Use list_emails_metadata first. Partial or ambiguous effects report per-ID succeeded/failed/unknown status and are not retried automatically.
ParameterTypeDescription
account_name *stringThe name of the email account.
email_ids *arrayList of email_id to archive (obtained from list_emails_metadata).
mailboxstringThe source mailbox containing the emails.
create_mailboxCreate one mailbox/folder by its exact server name, including the hierarchy delimiter reported by list_mailboxes (for example 'Archive/Projects' or 'INBOX.Projects'). Requires the organize permission. Idempotent: an existing mailbox reports already_exists without changes. Parent levels are created only if the server does so itself. An unknown status is not retried automatically; verify with list_mailboxes.
ParameterTypeDescription
account_name *stringThe name of the email account.
mailbox *stringExact mailbox name to create; must not contain the LIST wildcards '*' or '%' or end with the server's hierarchy delimiter.
delete_emailsDelete one or more emails by email_id using target-scoped UID EXPUNGE. Use list_emails_metadata first. Partial or ambiguous effects report per-ID succeeded/failed/unknown status and are not retried automatically.
ParameterTypeDescription
account_name *stringThe name of the email account.
email_ids *arrayList of email_id to delete (obtained from list_emails_metadata).
mailboxstringThe mailbox to delete emails from.
download_attachmentDownload an email attachment. By default it is saved with a safe randomized name under the current user's Downloads/mcp-email-server directory; an explicit destination path remains supported. This feature must be explicitly enabled in settings (enable_attachment_download=true) due to security considerations.
ParameterTypeDescription
account_name *stringThe name of the email account.
attachment_name *stringThe name of the attachment to download (as shown in the attachments list).
email_id *stringThe email ID (obtained from list_emails_metadata or get_emails_content).
mailboxstringThe mailbox to search in (default: INBOX).
save_pathstringOptional exact destination path. Omit it to use a safe randomized filename under the current user's Downloads/mcp-email-server directory. Relative explicit paths are resolved against the server process working directory.
email_commandExecute IMAP or SMTP primitives when a focused email tool does not cover the operation. Existing tools, including create_mailbox, remain the simpler policy-aware route. Start with commands=[{"command":"HELP"}] or HELP UID COPY for local syntax and examples; no account is needed for help. Execution requires account_name and user-enabled allow_protocol_commands with compatible policy. Commands run in order on one automatically authenticated connection; state lasts only for this call. For example SELECT a mailbox, then UID COPY known UIDs to an existing destination. Put APPEND/DATA message content in data, never in command lines. No login commands, passwords, hosts, shell scripts or local paths. Stops on the first error. Inspect every result: prior effects may exist and unknown completion must not be replayed automatically. HELP lists supported syntax; server CAPABILITY alone does not imply client support for arbitrary extensions.
ParameterTypeDescription
account_namestring
commands *array
protocolstring
forward_emailForward an existing message to new recipients using the specified account. The source message is read over IMAP first: if it cannot be read, the call fails before any SMTP session is opened, so a forward is never delivered without the content it was supposed to carry. The subject is derived from the source as 'Fwd: <original subject>' without stacking a second prefix, the caller's note is placed above a plain-text forwarded block re-composed from the source's parsed text body, and the source's attachments are re-attached with their original MIME types unless include_attachments is false. Partial or ambiguous SMTP delivery reports per-recipient succeeded/failed/unknown status and reports the independent Sent-copy outcome separately; ambiguous effects are not retried automatically. The response names the delivered message's RFC Message-Id once the provider accepts the message data, and reports no identifier for an ambiguous delivery.
ParameterTypeDescription
account_name *stringThe name of the email account to forward from.
bccarrayA list of BCC email addresses.
bodystringAn optional note placed above the forwarded content.
ccarrayA list of CC email addresses.
email_id *anyUID of the source message to forward.
include_attachmentsbooleanWhether to re-attach the source message's attachments.
recipients *arrayA list of addresses that receive the forwarded message.
source_mailboxstringThe mailbox that contains the source message.
get_attachment_contentRead one email attachment as an MCP embedded binary resource without writing a local file. This independent transfer mode requires enable_attachment_content=true.
ParameterTypeDescription
account_name *stringThe name of the email account.
attachment_name *stringThe attachment filename shown in the message's attachments list.
email_id *anyThe email ID obtained from list_emails_metadata or get_emails_content.
mailboxstringThe mailbox containing the email.
get_emails_contentGet the plain-text body, optional HTML body, reply-thread headers, selected top-level headers, and any direct calendar events of one or more emails by email_id. Use list_emails_metadata first. This tool is non-read-only because mark_as_read=true changes remote flags.
ParameterTypeDescription
account_name *stringThe name of the email account.
body_offsetintegerCharacter offset into each plain-text body to start reading from. Use together with max_body_length to page through long emails: if a returned body ends with the '...[TRUNCATED]' marker, fetch the next chunk with body_offset += max_body_length.
email_ids *arrayOne or more email_id values to retrieve, supplied as an array (obtained from list_emails_metadata).
include_headersarraySelect top-level header names case-insensitively. Omit or pass null for Authentication-Results, Received, and Reply-To; pass [] for none. Treat the values as untrusted observations, not proof of identity.
include_htmlbooleanInclude the complete decoded HTML body when available, independent of the plain-text window.
mailboxstringThe mailbox to retrieve emails from.
mark_as_readbooleanIf True, mark each successfully retrieved email as read. If marking fails, a warning is logged and retrieval still succeeds.
max_body_lengthintegerMaximum number of plain-text body characters to return, counted from body_offset. If the body extends past this window, the '...[TRUNCATED]' marker is appended after the requested body window.
list_allowed_recipientsList the configured recipient allowlist — the address patterns that send_email and forward_email are permitted to send to and save_to_mailbox is permitted to address. Matching is case-insensitive and supports glob patterns such as *@example.com; * explicitly allows all recipients. An empty list denies all recipients for these operations; configure patterns through the user-operated CLI/UI.
list_allowed_sendersList the configured inbound sender allowlist — the address patterns whose mail the server will read or act on. When configured, only these senders' mail is visible to the read tools (list_emails_metadata, get_emails_content, download_attachment, and forward_email's source read) and eligible for the mutation tools (delete_emails, set_email_flags, mark_emails_as_read, move_emails, archive_emails). Returns an empty list when unrestricted.
list_available_accountsList configured accounts as stable non-secret capability records. Use only accounts with can_receive=true for mail reads and can_send=true for send_email and forward_email. If the result is empty, ask the user to run `mcp-email-server ui` or the user-operated CLI; never ask for credentials in chat.
list_email_tagsList the configured semantic IMAP tags for one account. The name and description support natural-language selection; writable is false unless explicitly enabled in the account configuration.
ParameterTypeDescription
account_name *stringThe name of the email account.
list_emails_metadataList email metadata (email_id, subject, sender, recipients, date) without body content. Time filtering and ordering use provider INTERNALDATE; the returned date is the message's RFC 5322 Date header. Returns email_id for use with get_emails_content.
ParameterTypeDescription
account_name *stringThe name of the email account.
answeredbooleanFilter by replied status: True=replied, False=not replied, None=all.
beforeanyFilter to messages whose provider INTERNALDATE is earlier than this timezone-aware datetime (exclusive); any UTC offset is accepted and normalized to UTC.
bodystringSearch for text in the email body (IMAP BODY).
flaggedbooleanFilter by flagged/starred status: True=flagged, False=unflagged, None=all.
from_addressstringFilter emails by sender address.
has_attachmentbooleanFilter by attachment presence: True=has attachment, False=none, None=all (multipart/mixed heuristic; may miss inline images or yield false positives).
mailboxstringThe mailbox to search.
orderstringSort matching emails by provider INTERNALDATE: oldest first (`asc`) or newest first (`desc`).
pageintegerThe page number to retrieve (starting from 1).
page_sizeintegerThe number of emails to retrieve per page.
seenbooleanFilter by read status: True=read, False=unread, None=all.
semantic_tagsarrayConfigured semantic tag names to match.
sinceanyFilter to messages whose provider INTERNALDATE is equal to or later than this timezone-aware datetime (inclusive); any UTC offset is accepted and normalized to UTC.
subjectstringFilter emails by subject.
tag_matchstringRequire all requested tags or at least any one requested tag.
textstringSearch for text in the entire message — headers and body (IMAP TEXT).
to_addressstringFilter emails by recipient address.
list_mailboxesList available mailboxes/folders for an email account. Returns folder names, hierarchy delimiters, and flags. Useful for discovering folder names before moving emails.
ParameterTypeDescription
account_name *stringThe name of the email account.
patternstringIMAP LIST pattern. Use '*' for all folders, 'INBOX.*' for INBOX children.
referencestringIMAP LIST reference name (namespace prefix). Usually empty.
mark_emails_as_readMark one or more emails as read by email_id. This is the common-workflow equivalent of adding \Seen with set_email_flags. Use list_emails_metadata first. Partial or ambiguous effects report per-ID succeeded/failed/unknown status and are not retried automatically.
ParameterTypeDescription
account_name *stringThe name of the email account.
email_ids *arrayList of email_id to mark as read (obtained from list_emails_metadata).
mailboxstringThe mailbox containing the emails.
move_emailsMove emails between IMAP folders using UIDs from list_emails_metadata in source_mailbox. Specify exactly one of destination_mailbox or destination_role='junk' to discover the Junk folder via \Junk, then common names. Missing or ambiguous discovery requires an explicit destination; no folder is created. To restore from Junk, list it again for current UIDs and move to INBOX with that explicit source_mailbox. This requests a move, not guaranteed spam training or reporting. Partial or ambiguous effects report per-ID succeeded/failed/unknown status and are not retried.
ParameterTypeDescription
account_name *stringThe name of the email account.
destination_mailboxstringExact destination mailbox. Omit only when destination_role='junk' is supplied.
destination_rolestringDiscover the Junk destination. Mutually exclusive with destination_mailbox.
email_ids *arrayList of email_id to move (obtained from list_emails_metadata).
source_mailboxstringMailbox in which email_ids were listed; UIDs are not transferable across mailboxes.
save_draftCompose and save an unsent draft to the configured drafts mailbox or unique special-use Drafts mailbox. Requires draft permission, not append or send. Recipients may be omitted; supplied recipients obey the recipient allowlist. The Draft flag is fixed; no arbitrary target or flags.
ParameterTypeDescription
account_name *stringThe name of the email account.
attachmentsarrayA list of file paths to attach. Relative paths are resolved against the server process working directory; absolute paths are recommended.
bccarrayA list of BCC email addresses.
body *stringThe body of the email.
ccarrayA list of CC email addresses.
htmlbooleanWhether the email body is HTML (True) or plain text (False).
in_reply_tostringMessage-ID of the email being replied to. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition.
recipientsarrayOptional draft recipients; supplied addresses obey the recipient allowlist.
referencesstringSpace-separated Message-IDs for the thread chain. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition.
subject *stringThe subject of the email.
save_to_mailboxCompose an email and save it to an IMAP folder (e.g., Drafts). Shares recipient, body, attachment, and threading parameters with send_email; adds mailbox and flags, and does not support reply_to. Default folder is Drafts with \Draft and \Seen flags. Pure IMAP operation — works without SMTP configuration. An ambiguous APPEND is reported as unknown and is not retried automatically.
ParameterTypeDescription
account_name *stringThe name of the email account.
attachmentsarrayA list of file paths to attach. Relative paths are resolved against the server process working directory; absolute paths are recommended.
bccarrayA list of BCC email addresses.
body *stringThe body of the email.
ccarrayA list of CC email addresses.
flagsarrayIMAP flags to set on the message. Defaults to ['\Draft', '\Seen']. Common flags: '\Draft', '\Seen', '\Flagged'.
htmlbooleanWhether the email body is HTML (True) or plain text (False).
in_reply_tostringMessage-ID of the email being replied to. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition.
mailboxstringThe IMAP folder to save to (e.g., 'Drafts', 'INBOX.Drafts', 'Templates').
recipients *arrayA list of recipient email addresses.
referencesstringSpace-separated Message-IDs for the thread chain. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition.
subject *stringThe subject of the email.
send_emailSend one email using the specified account. Supports reply threading. Partial or ambiguous SMTP delivery reports per-recipient succeeded/failed/unknown status and reports the independent Sent-copy outcome separately; ambiguous effects are not retried automatically. The response names the delivered message's RFC Message-Id once the provider accepts the message data, and reports no identifier for an ambiguous delivery.
ParameterTypeDescription
account_name *stringThe name of the email account to send from.
attachmentsarrayA list of file paths to attach. Relative paths are resolved against the server process working directory; absolute paths are recommended.
bccarrayA list of BCC email addresses.
body *stringThe body of the email.
ccarrayA list of CC email addresses.
htmlbooleanWhether to send the email as HTML (True) or plain text (False).
in_reply_tostringMessage-ID of the email being replied to. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition.
recipients *arrayA list of recipient email addresses.
referencesstringSpace-separated Message-IDs for the thread chain. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition. Usually includes in_reply_to plus ancestors.
reply_tostringEmail address to set as the Reply-To header. When set, email clients will reply to this address instead of the From address.
subject *stringThe subject of the email.
set_email_flagsAdd or remove approved IMAP flags on one or more emails by email_id. Supported flags are \Seen, \Flagged, \Answered, and \Draft; \Deleted and provider-specific keywords are not supported. Use list_emails_metadata first. Partial or ambiguous effects report per-ID succeeded/failed/unknown status and are not retried automatically.
ParameterTypeDescription
account_name *stringThe name of the email account.
email_ids *arrayList of email_id values whose flags should be changed.
flags *arrayUnique approved flags to add or remove: \Seen, \Flagged, \Answered, or \Draft.
mailboxstringThe mailbox containing the emails.
operation *anyWhether to add or remove every supplied flag.
set_email_tagsAdd or remove configured writable semantic tags on emails. Only semantic names are accepted; standard flags and unrelated provider keywords are preserved.
ParameterTypeDescription
account_name *stringThe name of the email account.
email_ids *arrayList of email_id values whose tags should be changed.
mailboxstringThe mailbox containing the emails.
operation *stringWhether to add or remove every supplied semantic tag.
tags *arrayConfigured writable semantic tag names.

Security checks

Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 536 words.
  • ✓License declaredThe repository declares the BSD-3-Clause license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock and frontend/package-lock.json.
  • ✓No dynamic code executionScanned 68 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
Streamable HTTP and HTTP with SSEmcp_email_server/cli.py:1371, mcp_email_server/cli.py:1354
Starts other programs
5 callsmcp_email_server/emails/pgp.py:110, dev/build_frontend.py:160, dev/build_frontend.py:161
Outbound network calls
2 callsmcp_email_server/web_ui/static/assets/index-B1a25r6z.js:1, mcp_email_server/web_ui/static/assets/index-B1a25r6z.js:9
Writes or deletes files
28 callsmcp_email_server/adapters/reads.py:317, mcp_email_server/adapters/reads.py:387, mcp_email_server/adapters/reads.py:406
Lockfile
uv.lock and frontend/package-lock.json

Pattern matches on the source text of 68 files: places to read, not proof of what the code does at run time.

Releases

1.17.01.17.0 · 30 Nov 2026What's changed `get_emails_content` now returns structured `calendar_events` extracted from direct `text/calendar`, `application/ics`, `text/x-vcalendar`, and leaf `.ics` MIME parts without requiring attachment downloads (#298, supersedes…
1.16.01.16.0 · 26 Nov 2026What's changed Added opt-in local PGP/MIME (`multipart/encrypted`, RFC 3156) decryption using the local user's GnuPG keyring and `gpg-agent` (#292, fixes #291). Controlled by a single default-off global policy (`enable_pgp_decryption`):…
1.15.01.15.0 · 19 Nov 2026What's changed `get_emails_content` can return selected top-level headers (#287). By default it includes `Authentication-Results`, `Received`, and `Reply-To` when present. Pass an explicit `include_headers` list to replace those defaults…
1.14.11.14.1 · 18 Nov 2026Improvements `get_emails_content` now returns structured HTML links even when a plain-text alternative supplies the body. Body rendering is unchanged. Links come from the HTML body, exclude auxiliary MIME resources, and count toward the…
1.14.01.14.0 · 3 Nov 2026Improvements Preserve confirmed per-message progress when UIDPLUS COPY/STORE/EXPUNGE fallback moves are interrupted. Uncertain operations stop without retrying later messages. (#280) Apply IMAP operation and metadata-refresh timeout…

README

The repository's README runs to about 536 words, fetched 2 days ago. The original in the repository is authoritative.

Read full README
Questions

About Email Server

How do I install Email Server?

In Claude Code, run claude mcp add email-server-4599 -- uvx mcp-email-server@latest stdio. Other MCP clients take the command after "--" in their server configuration.

Is Email Server safe to use with an AI agent?

Its trust score is 85 out of 100 (strong). It passes all 5 static checks Conduid ran on the repository. Conduid's scan of 68 source files found that it serves MCP over Streamable HTTP and HTTP with SSE, starts other programs (5 calls), makes outbound network calls (2 calls) and writes or deletes files (28 calls). Its dependencies are pinned by uv.lock and frontend/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Email Server still maintained?

Yes — the latest release is 1.17.0 (30 Nov 2026), and the last commit was 23 hours ago. The repository has 416 stars and 8 open issues.

What tools does Email Server provide?

Conduid read 21 tools from the source: archive_emails, create_mailbox, delete_emails, download_attachment, email_command, forward_email, get_attachment_content, get_emails_content and 13 more. 18 of them publish their parameters, listed under Tools above.

What license is Email Server released under?

The repository declares the BSD-3-Clause license. That applies to the latest release, 1.17.0, as well.