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 mcp add email-server-4599 -- uvx mcp-email-server@latest stdiouvx mcp-email-server@latest stdiouvx mcp-email-serverpip install mcp-email-servergit clone https://github.com/Wh1isper/mcp-email-serverTools (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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| email_ids * | array | List of email_id to archive (obtained from list_emails_metadata). |
| mailbox | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| mailbox * | string | Exact 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| email_ids * | array | List of email_id to delete (obtained from list_emails_metadata). |
| mailbox | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| attachment_name * | string | The name of the attachment to download (as shown in the attachments list). |
| email_id * | string | The email ID (obtained from list_emails_metadata or get_emails_content). |
| mailbox | string | The mailbox to search in (default: INBOX). |
| save_path | string | Optional 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.| Parameter | Type | Description |
|---|---|---|
| account_name | string | |
| commands * | array | |
| protocol | string |
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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account to forward from. |
| bcc | array | A list of BCC email addresses. |
| body | string | An optional note placed above the forwarded content. |
| cc | array | A list of CC email addresses. |
| email_id * | any | UID of the source message to forward. |
| include_attachments | boolean | Whether to re-attach the source message's attachments. |
| recipients * | array | A list of addresses that receive the forwarded message. |
| source_mailbox | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| attachment_name * | string | The attachment filename shown in the message's attachments list. |
| email_id * | any | The email ID obtained from list_emails_metadata or get_emails_content. |
| mailbox | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| body_offset | integer | Character 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 * | array | One or more email_id values to retrieve, supplied as an array (obtained from list_emails_metadata). |
| include_headers | array | Select 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_html | boolean | Include the complete decoded HTML body when available, independent of the plain-text window. |
| mailbox | string | The mailbox to retrieve emails from. |
| mark_as_read | boolean | If True, mark each successfully retrieved email as read. If marking fails, a warning is logged and retrieval still succeeds. |
| max_body_length | integer | Maximum 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| answered | boolean | Filter by replied status: True=replied, False=not replied, None=all. |
| before | any | Filter to messages whose provider INTERNALDATE is earlier than this timezone-aware datetime (exclusive); any UTC offset is accepted and normalized to UTC. |
| body | string | Search for text in the email body (IMAP BODY). |
| flagged | boolean | Filter by flagged/starred status: True=flagged, False=unflagged, None=all. |
| from_address | string | Filter emails by sender address. |
| has_attachment | boolean | Filter by attachment presence: True=has attachment, False=none, None=all (multipart/mixed heuristic; may miss inline images or yield false positives). |
| mailbox | string | The mailbox to search. |
| order | string | Sort matching emails by provider INTERNALDATE: oldest first (`asc`) or newest first (`desc`). |
| page | integer | The page number to retrieve (starting from 1). |
| page_size | integer | The number of emails to retrieve per page. |
| seen | boolean | Filter by read status: True=read, False=unread, None=all. |
| semantic_tags | array | Configured semantic tag names to match. |
| since | any | Filter 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. |
| subject | string | Filter emails by subject. |
| tag_match | string | Require all requested tags or at least any one requested tag. |
| text | string | Search for text in the entire message — headers and body (IMAP TEXT). |
| to_address | string | Filter 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| pattern | string | IMAP LIST pattern. Use '*' for all folders, 'INBOX.*' for INBOX children. |
| reference | string | IMAP 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| email_ids * | array | List of email_id to mark as read (obtained from list_emails_metadata). |
| mailbox | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| destination_mailbox | string | Exact destination mailbox. Omit only when destination_role='junk' is supplied. |
| destination_role | string | Discover the Junk destination. Mutually exclusive with destination_mailbox. |
| email_ids * | array | List of email_id to move (obtained from list_emails_metadata). |
| source_mailbox | string | Mailbox 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| attachments | array | A list of file paths to attach. Relative paths are resolved against the server process working directory; absolute paths are recommended. |
| bcc | array | A list of BCC email addresses. |
| body * | string | The body of the email. |
| cc | array | A list of CC email addresses. |
| html | boolean | Whether the email body is HTML (True) or plain text (False). |
| in_reply_to | string | Message-ID of the email being replied to. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition. |
| recipients | array | Optional draft recipients; supplied addresses obey the recipient allowlist. |
| references | string | Space-separated Message-IDs for the thread chain. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition. |
| subject * | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| attachments | array | A list of file paths to attach. Relative paths are resolved against the server process working directory; absolute paths are recommended. |
| bcc | array | A list of BCC email addresses. |
| body * | string | The body of the email. |
| cc | array | A list of CC email addresses. |
| flags | array | IMAP flags to set on the message. Defaults to ['\Draft', '\Seen']. Common flags: '\Draft', '\Seen', '\Flagged'. |
| html | boolean | Whether the email body is HTML (True) or plain text (False). |
| in_reply_to | string | Message-ID of the email being replied to. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition. |
| mailbox | string | The IMAP folder to save to (e.g., 'Drafts', 'INBOX.Drafts', 'Templates'). |
| recipients * | array | A list of recipient email addresses. |
| references | string | Space-separated Message-IDs for the thread chain. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition. |
| subject * | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account to send from. |
| attachments | array | A list of file paths to attach. Relative paths are resolved against the server process working directory; absolute paths are recommended. |
| bcc | array | A list of BCC email addresses. |
| body * | string | The body of the email. |
| cc | array | A list of CC email addresses. |
| html | boolean | Whether to send the email as HTML (True) or plain text (False). |
| in_reply_to | string | Message-ID of the email being replied to. Simple IDs may be bare or bracketed; bare IDs gain RFC angle brackets during composition. |
| recipients * | array | A list of recipient email addresses. |
| references | string | Space-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_to | string | Email address to set as the Reply-To header. When set, email clients will reply to this address instead of the From address. |
| subject * | string | The 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| email_ids * | array | List of email_id values whose flags should be changed. |
| flags * | array | Unique approved flags to add or remove: \Seen, \Flagged, \Answered, or \Draft. |
| mailbox | string | The mailbox containing the emails. |
| operation * | any | Whether 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.| Parameter | Type | Description |
|---|---|---|
| account_name * | string | The name of the email account. |
| email_ids * | array | List of email_id values whose tags should be changed. |
| mailbox | string | The mailbox containing the emails. |
| operation * | string | Whether to add or remove every supplied semantic tag. |
| tags * | array | Configured 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
README
The repository's README runs to about 536 words, fetched 2 days ago. The original in the repository is authoritative.
Read full README