1. Conduid
  2. Search
  3. Apple Mail MCP
MCP server · Search

Apple Mail MCP

MCP server giving AI assistants full access to Apple Mail - read, search, compose, organize & analyze emails via natural language

85Strong

Scored 21 hours ago · breakdown

About Apple Mail MCP

Apple Mail MCP is an MCP server published by patrickfreyer in the Search category: mCP server giving AI assistants full access to Apple Mail - read, search, compose, organize & analyze emails via natural language. Conduid read 28 tools from its source: compose_email, create_mailbox, create_rich_email_draft, export_emails, forward_email, get_awaiting_reply and 22 more. It is published to PyPI as mcp-apple-mail and runs with uvx.

The repository has 274 stars and 63 forks, is licensed MIT, and its last commit was on 25 Nov 2026. The latest release is v3.3.0 (3 Nov 2026): list_email_attachments and save_email_attachment accept message_id (the id search_emails returns) and mailbox, looking the message up directly instead of by subject, so… It follows v3.2.1 (15 Oct 2026), and the 5 most recent releases go back to v3.1.7 (13 Jun 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Its topics include apple-mail, applescript, automation, email, fastmcp and macos.

Install

uvx
uvx mcp-apple-mail
pip
pip install mcp-apple-mail
From source
git clone https://github.com/patrickfreyer/apple-mail-mcp

Tools (28)

compose_emailSend new emails (plain text or HTML body)
ParameterTypeDescription
account *stringAccount name to send from (e.g., "Gmail", "Work", "Personal")
attachmentsstringOptional file paths to attach, comma-separated for multiple (e.g., "/path/to/file1.png,/path/to/file2.pdf")
bccstringOptional BCC recipients, comma-separated for multiple
body *stringEmail body text (used as plain-text fallback when body_html is provided)
body_htmlstringOptional HTML body for rich formatting (bold, headings, links, colors). When provided, the email is sent as HTML. The plain 'body' field is still required as fallback text.
ccstringOptional CC recipients, comma-separated for multiple
from_addressstringOptional sender address to use for this message. Must be one of the account's configured email addresses. When omitted, Mail uses the account's default "Send new messages from" setting.
modestringDelivery mode — "send" (send immediately, default), "draft" (save to Drafts without opening a window; the result gives the draft's id for manage_drafts), or "open" (open compose window for review before sending). With body_html, "draft" still uses a compose window, because the HTML body is pasted in.
subject *stringEmail subject line
to *stringRecipient email address(es), comma-separated for multiple
create_mailboxCreate new mailboxes (supports nested paths)
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
name *stringName for the new mailbox. May contain "/" to create a nested path in one call (each segment is created if needed).
parent_mailboxstringOptional existing parent folder for nesting.
create_rich_email_draftExport an unsent HTML `.eml` preview; Mail opens it in a read-only viewer. Use `compose_email(mode="draft")` for a sendable draft
ParameterTypeDescription
account *stringAccount name to use for the sender identity (e.g., "Work", "Oracle")
bccstringOptional BCC recipients, comma-separated for multiple
ccstringOptional CC recipients, comma-separated for multiple
from_addressstringOptional sender address to stamp into the `.eml` `From:` header. Must be one of the account's configured email addresses. When omitted, Mail fills the account's default "Send new messages from" address on open.
html_bodystringOptional HTML body. If omitted but text_body is provided, a basic HTML wrapper is generated.
open_in_mailbooleanIf True, open the generated `.eml` in Mail (default: True)
output_pathstringOptional path for the generated `.eml` file (same protected-location rules as save_email_attachment; defaults to ~/Library/Caches/apple-mail-mcp/rich-drafts)
save_as_draftbooleanNot currently supported. Mail opens a `.eml` as a read-only message viewer, not a compose object, so it can never be saved into Drafts this way. Passing True is reported honestly in the output rather than silently ignored; use `compose_email(mode="draft")` or `manage_drafts` for a real, sendable draft.
subjectstringSubject line for the draft (optional; defaults to empty)
text_bodystringOptional plain-text body. If omitted but html_body is provided, a fallback plain body is generated.
tostringOptional recipient email address(es), comma-separated for multiple
export_emailsExport single emails or mailboxes to TXT/HTML
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
formatstringExport format: "txt", "html" (default: "txt")
mailboxstringMailbox to export from (default: "INBOX")
max_emailsintegerMaximum number of emails to export for entire_mailbox (default: 1000, safety cap)
save_directorystringDirectory to save exports (default: "~/Desktop"). Protected locations (dot-folders in ~, LaunchAgents, ~/Library/Application Support, ...) are rejected.
scope *stringExport scope: "single_email" (requires subject_keyword) or "entire_mailbox"
subject_keywordstringKeyword to find email (required for single_email)
forward_emailForward with optional message, CC/BCC; `mode="draft"` saves it without a window, keeping the original attachments
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
bccstringOptional BCC recipients, comma-separated for multiple
ccstringOptional CC recipients, comma-separated for multiple
from_addressstringOptional sender address to use when forwarding. Must be one of the account's configured email addresses. When omitted, Mail uses the account's default "Send new messages from" setting.
mailboxstringMailbox to search in (default: "INBOX")
messagestringOptional message to add before forwarded content
message_idstringNumeric internal Mail id returned by search_emails; overrides subject_keyword
modestring"send" (default), "open" (Mail's own forward in a compose window, left for review, not sent), or "draft" (saved to Drafts without opening a window). A draft is rebuilt from the original: its plain-text body under a "Begin forwarded message:" header, with copies of the original attachments. It has no HTML formatting.
subject_keywordstringKeyword to search for in email subjects (ignored with message_id)
to *stringRecipient email address(es), comma-separated for multiple
get_awaiting_replyFind sent emails that haven't received a reply
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work", "Personal")
days_backintegerHow many days back to check sent emails (default: 7, 0 = all time)
exclude_noreplybooleanSkip emails sent to noreply/no-reply addresses (default: True)
max_resultsintegerMaximum results to return (default: 20)
get_email_sourceRaw RFC 822 source of one message (headers, MIME parts)
ParameterTypeDescription
account *stringAccount name (e.g., ``"Gmail"``, ``"Work"``).
headers_onlybooleanWhen ``True``, return only the header block.
mailboxstringMailbox name (default: ``"INBOX"``). Resolved via the shared ``build_mailbox_ref`` helper so non-English / Exchange inboxes (Posteingang, Bandeja de entrada, etc.) are found.
max_bytesintegerByte cap on the returned payload (default 256 KB).
message_idstringRFC 822 Message-Id for exact match (preferred when known).
subject_keywordstringSubstring to match against subject (first hit).
get_email_threadConversation thread view
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
mailboxstringMailbox to search in (default: "INBOX", use "All" for all mailboxes)
max_messagesintegerMaximum number of candidate messages to inspect (default: 50). The cap applies before linking: only the first N subject matches that Mail returns are considered, so the thread is seeded from the newest of those N, not necessarily the newest message overall. Raise it for long-running subjects.
subject_keyword *stringKeyword to identify the thread (e.g., "Re: Project Update")
get_inbox_overviewDashboard with unread counts, folders, and recent emails
get_mailbox_unread_countsUnread counts per mailbox or per-account summary
ParameterTypeDescription
accountstringOptional account name filter
include_zerobooleanWhether to include mailboxes with zero unread messages
summary_onlybooleanIf True, return only per-account inbox unread totals (flat dict of account name -> unread count)
get_needs_responseIdentify emails that likely need your response
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work", "Personal")
days_backintegerHow many days back to look (default: 7)
mailboxstringMailbox to scan (default: "INBOX")
max_resultsintegerMaximum results to return (default: 20)
get_statisticsEmail analytics (volume, top senders, read ratios)
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
days_backintegerNumber of days to analyze (default: 30, 0 = all time)
mailboxstringSpecific mailbox for "mailbox_breakdown" scope
scopestringAnalysis scope: "account_overview", "sender_stats", "mailbox_breakdown"
senderstringSpecific sender for "sender_stats" scope
get_top_sendersAnalyse most frequent senders by count or domain
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work", "Personal")
days_backintegerHow many days back to look (default: 30, 0 = all time)
group_by_domainbooleanGroup results by domain instead of individual sender (default: False)
mailboxstringMailbox to analyse (default: "INBOX")
top_nintegerNumber of top senders to return (default: 10)
inbox_dashboardInteractive UI dashboard (requires mcp-ui-server)
list_account_addressesEmail addresses configured for each account
list_accountsList all configured Mail accounts
list_email_attachmentsList attachments with names and sizes
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work", "Personal")
mailboxstringMailbox for id lookup (default: "INBOX"); nested names use "/"
max_resultsintegerMaximum number of matching emails to check (default: 1)
message_idstringNumeric internal Mail id; overrides subject_keyword
subject_keywordstringKeyword to search for in email subjects
list_inbox_emailsList emails with account/read-status filtering and optional content preview
ParameterTypeDescription
accountstringOptional account name to filter (e.g., "Gmail", "Work"). If None, shows all accounts.
include_contentbooleanWhether to include a content preview for each email (slower, default: False)
include_readbooleanWhether to include read emails (default: True)
max_emailsintegerMaximum number of emails to return per account (0 = all)
output_formatstring"text" (default, human-readable) or "json" (structured list of email dicts)
list_mailboxesFolder hierarchy with message counts
ParameterTypeDescription
accountstringOptional account name to filter (e.g., "Gmail", "Work"). If None, shows all accounts.
include_countsbooleanWhether to include message counts for each mailbox (default: True)
manage_draftsCreate, list, open, send, and delete drafts, by subject or draft id
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
action *stringAction to perform: "list", "create", "send", "open", "delete". Use "open" to open a draft in a visible compose window for review before sending.
bccstringOptional BCC recipients for create
bodystringEmail body (required for create)
ccstringOptional CC recipients for create
draft_idstringNumeric Mail id of the draft, as shown by action="list" or returned when a draft is saved. Overrides draft_subject for send/open/delete.
draft_subjectstringSubject keyword to find draft (send/open/delete need this or draft_id)
from_addressstringOptional sender address for new drafts (action="create"). Must be one of the account's configured email addresses. When omitted, Mail uses the account's default "Send new messages from" setting.
subjectstringEmail subject (required for create)
tostringRecipient email(s) for create (comma-separated)
manage_trashSoft delete, permanent delete, empty trash (with dry-run)
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
action *stringAction to perform: "move_to_trash", "delete_permanent", "empty_trash"
apply_to_allbooleanMust be True to allow operations without subject_keyword or sender filter
confirm_emptybooleanMust be True to execute "empty_trash" action (safety confirmation)
dry_runbooleanIf True (default), preview what would be affected without acting
mailboxstringSource mailbox (default: "INBOX", not used for empty_trash or delete_permanent)
max_deletesintegerMaximum number of emails to delete (safety limit, default: 5)
message_idsarrayOptional list of exact Mail message ids (move_to_trash only). When set, subject/sender/age filters and apply_to_all are ignored, and the number of ids must not exceed max_deletes.
older_than_daysintegerOptional age filter - only affect emails older than N days
senderstringOptional sender to filter emails (not used for empty_trash)
subject_keywordstringOptional keyword to filter emails (not used for empty_trash)
subject_keywordsarrayOptional list of subject keywords; matches any keyword
move_emailMove/archive emails with filters (subject, sender, date, read status, dry-run)
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
dry_runbooleanIf True, preview what would be moved without acting (default: False)
from_mailboxstringSource mailbox name (default: "INBOX")
max_movesintegerMaximum number of emails to move (default: 50, safety limit)
message_idsarrayOptional list of exact Mail message ids for precise targeting. When set, all other filters are ignored.
older_than_daysintegerOptional age filter - only move emails older than N days
only_readbooleanIf True, only move emails that have been read (default: False)
senderstringOptional sender to filter emails by
subject_keywordstringOptional keyword to search for in email subjects
subject_keywordsarrayOptional list of keywords to match in subjects; matches any keyword
to_mailbox *stringDestination mailbox name. For nested mailboxes, use "/" separator (e.g., "Projects/Amplify Impact")
read_emailRead one message by numeric id — headers, capped plain-text body and attachment metadata (text or JSON)
ParameterTypeDescription
account *string
mailboxstring
max_charsinteger
message_id *string
output_formatstring
reply_to_emailReply or reply-all with optional HTML body
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
attachmentsstringOptional file paths to attach, comma-separated for multiple (e.g., "/path/to/file1.png,/path/to/file2.pdf")
bccstringOptional BCC recipients, comma-separated for multiple
body_htmlstringOptional HTML body for rich formatting (bold, headings, links, colors). When provided, the reply is pasted as HTML. The plain 'reply_body' field is still required as fallback text.
ccstringOptional CC recipients, comma-separated for multiple
from_addressstringOptional sender address to use for this reply. Must be one of the account's configured email addresses. When omitted, Mail uses the account's default "Send new messages from" setting.
mailboxstringMailbox to look for the message in (default: "INBOX", which also matches localized inbox names). Use "/" for nested folders, e.g. "Projects/2026/Private".
modestringDelivery mode — "send" (send immediately), "draft" (save silently), or "open" (open compose window for review). Overrides send parameter when set.
reply_body *stringThe body text of the reply
reply_to_allbooleanIf True, reply to all recipients; if False, reply only to sender (default: False)
sendbooleanIf True (default), send immediately; if False, save as draft. Ignored if mode is set.
subject_keyword *stringKeyword to search for in email subjects
save_email_attachmentSave attachments to disk
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work", "Personal")
attachment_namestringName of the attachment to save
mailboxstringMailbox to search in (default: "INBOX"). Use e.g. "Archive" for an already archived message; nested mailboxes use "/".
message_idstringNumeric internal Mail id returned by search_emails
save_pathstringFull path where to save the attachment. Protected locations (shell startup and dotfiles in ~, .git/hooks, LaunchAgents, ~/Library/Application Support, ...) are rejected; see "File Access" in the README for opt-in restriction to specific folders.
subject_keywordstringKeyword to search for in email subjects (ignored with message_id)
search_emailsUnified search — subject, sender, body text, dates, attachments, flag status/color, cross-account
ParameterTypeDescription
accountstringAccount name to search in (e.g., "Gmail", "Work"). If None, searches ALL accounts (slower).
body_textstringOptional text to search for in email body content (case-insensitive). WARNING: body search is significantly slower as it reads each message body.
date_fromstringOptional start date filter (format: "YYYY-MM-DD")
date_tostringOptional end date filter (format: "YYYY-MM-DD")
flag_colorstringOptional filter for a specific flag color: "red", "orange", "yellow", "green", "blue", "purple", or "gray". Implies flagged=True.
flaggedbooleanOptional filter for flagged emails (True/False/None)
has_attachmentsbooleanOptional filter for emails with attachments (True/False/None)
include_contentbooleanWhether to include email content preview (slower)
limitintegerMaximum number of results to return per page
mailboxstringMailbox to search (default: "INBOX", use "All" for all mailboxes, or specific folder name)
max_body_readsintegerOnly used with body_text. Maximum number of message bodies read per call (default 50, max 500). Cheap filters (sender, subject, dates, read/flag status) are applied first, so this caps only the messages that pass them. If a result comes back with scan_limited=true, either narrow the filters or retry with a higher value; uncached bodies can take up to ~1 s each, so very high values risk the call timing out.
max_content_lengthintegerMaximum content length in characters when include_content=True (default: 500, 0 = unlimited)
max_resultsintegerBackward-compatible alias for limit
offsetintegerNumber of matching results to skip before returning data
output_formatstringOutput format: "text" or "json" (default: "text")
read_statusstringFilter by read status: "all", "read", "unread" (default: "all")
senderstringOptional sender email or name to filter by
sortstringResult sort order: "date_desc" or "date_asc"
subject_keywordstringOptional keyword to search in subject
subject_keywordsarrayOptional list of subject keywords; matches any keyword
synchronize_accountAsk Mail.app to check the server for new mail now
ParameterTypeDescription
accountstringAccount name (e.g., "Gmail", "Work"). Omit to sync every configured account.
update_email_statusMark read/unread, flag/unflag (optional flag color) — by filters or message IDs
ParameterTypeDescription
account *stringAccount name (e.g., "Gmail", "Work")
action *stringAction to perform: "mark_read", "mark_unread", "flag", "unflag"
apply_to_allbooleanMust be True to allow updates without any filter
flag_colorstringOptional flag color for the "flag" action: "red", "orange", "yellow", "green", "blue", "purple", or "gray". Omit to flag without setting a color — Mail shows its default (red), or the message's previous color if one remains from an earlier flag. Re-colors messages that are already flagged.
mailboxstringMailbox to search in (default: "INBOX")
max_updatesintegerMaximum number of emails to update (safety limit, default: 10)
message_idsarrayOptional list of exact Mail message ids for precise targeting
older_than_daysintegerOptional age filter - only update emails older than N days
senderstringOptional sender to filter emails by
subject_keywordstringOptional keyword to filter emails by subject
subject_keywordsarrayOptional list of subject keywords; matches any keyword

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 2.0K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • !Dependencies pinnedNo lockfile anywhere in the repository. Installs can pull different code over time.
  • ✓No dynamic code executionScanned 20 source files and found no eval, dynamic Function or shell execution.

1 check has not been run yet.

What the source scan found

Transport
None found in the source
Starts other programs
5 callsplugin/apple_mail_mcp/core.py:148, plugin/apple_mail_mcp/tools/compose.py:360, plugin/apple_mail_mcp/tools/compose.py:562
Outbound network calls
No outbound network calls
Writes or deletes files
7 callsplugin/apple_mail_mcp/core.py:55, plugin/apple_mail_mcp/tools/compose.py:355, plugin/apple_mail_mcp/tools/compose.py:587
Lockfile
None in the repository

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

Releases

v3.3.0v3.3.0 · 3 Nov 2026Added `list_email_attachments` and `save_email_attachment` accept `message_id` (the id `search_emails` returns) and `mailbox`, looking the message up directly instead of by subject, so recurring subjects can't pick the wrong month (#128 by…
v3.2.1v3.2.1 · 15 Oct 2026Fixed The server failed to start on any fresh install since the `mcp` SDK 2.0 release (`ModuleNotFoundError: No module named 'mcp.server.fastmcp'`, #97). `server.py` imported `FastMCP` from the SDK's bundled v1 module instead of from the…
v3.2.0v3.2.0 · 5 Jul 2026Added `get_email_source` — new tool exposing an email's raw RFC 822 source (full headers + MIME body) for debugging threading, authentication results, and encoding issues (#66). Supports a `headers_only` mode and a configurable byte cap…
v3.1.8v3.1.8 · 23 Jun 2026Fixed HTML replies/compositions no longer paste the body twice (a rendered copy plus a second copy of the raw `<p>`/`<b>` source). `reply_to_email`, `compose_email`, and `forward_email` placed the raw HTML *source* on the clipboard under…
v3.1.7v3.1.7 — PyPI fix + one-click .mcpb bundle · 13 Jun 2026Apple Mail MCP v3.1.7 First 3.x release published to PyPI — `uvx mcp-apple-mail` now works with no workaround. Versions 3.0.0–3.1.6 were tagged but never uploaded, so PyPI had been stuck on the broken 2.2.0 wheel (`ModuleNotFoundError: No…

README

The repository's README runs to about 2.0K words, fetched yesterday. The original in the repository is authoritative.

Read full README
Questions

About Apple Mail MCP

How do I install Apple Mail MCP?

Run uvx mcp-apple-mail, then add the server to your MCP client's configuration.

Is Apple Mail MCP safe to use with an AI agent?

Its trust score is 85 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Dependencies pinned. Conduid's scan of 20 source files found that it starts other programs (5 calls) and writes or deletes files (7 calls). It has no ConduID identity yet, so agent calls to it are not receipted.

Is Apple Mail MCP still maintained?

Yes — the latest release is v3.3.0 (3 Nov 2026), and the last commit was 7 days ago. The repository has 274 stars and 16 open issues.

What tools does Apple Mail MCP provide?

Conduid read 28 tools from the source: compose_email, create_mailbox, create_rich_email_draft, export_emails, forward_email, get_awaiting_reply, get_email_source, get_email_thread and 20 more. 24 of them publish their parameters, listed under Tools above.

What license is Apple Mail MCP released under?

The repository declares the MIT license. That applies to the latest release, v3.3.0, as well.