mail_health
Mail Health
Report the active Apple Mail MCP configuration.
Takes no parameters.

io.github.JonathanRReedPublished by GitHub account JonathanRReedv1.1.6Updated Nov 7, 2026
Read, search, compose, and send emails via Apple Mail on macOS.
Lets an assistant read, search, draft, send, reply to, forward, move and delete email through Apple Mail on macOS.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
MCP server for Apple Mail on macOS.
Provides access to mailboxes, message search, reading, and composition. Keep Mail as the system of record while enabling agents to search, read, draft, and send email.
search_tools and get_tool_info for context-constrained clientsmail_get_thread, mail_reply_latest_in_thread, mail_archive_threadmail_health, mail_permission_guide, mail_recheck_permissionsmail_health, mail_permission_guide, mail_recheck_permissions, mail_list_mailboxes, mail_search_messages, mail_get_message, mail_get_thread, mail_compose_draft, mail_send_message, mail_reply_message, mail_forward_message, mail_mark_message, mail_move_message, mail_delete_message, mail_reply_latest_in_thread, mail_archive_thread, mail_list_prompts, mail_get_prompt, plus the discovery helpers search_tools and get_tool_info.
This builds one workspace environment with every server's entry point in .venv/bin (for example .venv/bin/apple-mail-mcp). You can also point an MCP client at AppleMail-MCP/start.sh, which prefers uv run and falls back to a plain venv bootstrap (Python 3.11+ required).
Running from a clone instead? Use /path/to/Apple-MCPs/AppleMail-MCP/start.sh as the command with empty args.
--scope user makes the server available in every project. To share it with one repository through its .mcp.json instead, use --scope project.
Set the mode with APPLE_MAIL_MCP_SAFETY_PROFILE:
safe_readonly, read and search onlysafe_manage, read, create drafts, reply and forward as drafts, mark, move, delete, and archive threads; this mode sends no mail. Replies and forwards are saved as unsent drafts in Mail for the user to review; switch to full_access to send them directlyfull_access, full Mail tool surface in this repo, including new-message sendingDeleting or archiving does not require switching from safe_manage to full_access.
Defaults depend on how you installed the server:
To change it in Claude Desktop, open Settings > Extensions, choose Apple Mail, click Configure, and set "Mail safety mode". In other clients, set APPLE_MAIL_MCP_SAFETY_PROFILE in the server's env block and restart the client. If a tool is blocked, its error names the setting and the value to use. An invalid or blank value selects safe_readonly, and mail_health explains it in safety_mode_warning.
Attachments are off until you set APPLE_MAIL_MCP_ALLOWED_ATTACHMENT_ROOT (bundle setting: "Mail attachment folder") to a dedicated folder.
stdio is the default and recommended transport. Set APPLE_MAIL_MCP_TRANSPORT=streamable-http (with optional APPLE_MAIL_MCP_HOST and APPLE_MAIL_MCP_PORT) to serve Streamable HTTP instead.
Issue #23 reports AppleScript -1728 errors containing item ... of every message/mailbox/account. The move and delete scripts now resolve account/mailbox matches into concrete objects and look up messages by Mail's numeric ID within the original mailbox, instead of retaining positional repeat-loop references. They refuse missing or ambiguous targets and do not automatically retry mutations.
Use message_id exactly as returned by mail_search_messages. If the message has moved or the ID no longer resolves in its original mailbox, search again rather than editing the ID. ACCOUNT_AMBIGUOUS, MAILBOX_AMBIGUOUS, and their TARGET_ counterparts mean the configured names do not uniquely identify the requested object; make the selection unambiguous before retrying. Other native errors, including permission errors, remain visible.
For archiving, call mail_list_mailboxes and pass the actual destination name. Do not assume the account exposes a mailbox literally named Archive, particularly with localized or nested Gmail labels. Keep the intended account explicit when moving between accounts.
A successful mail_health response does not verify a move/delete round trip. Validate a new installation using disposable messages with unique subjects: search, perform one requested operation, and confirm the outcome in Mail. Thread archiving moves messages individually and is not transactional; after an error, inspect Mail before retrying the whole thread.
Restart the MCP client after upgrading. A fix merged on GitHub is not available to uvx installations from PyPI until a package release includes it. A source checkout can be tested through the clone instructions above; use Apple-Tools-MCP/start.sh for the unified server. If an error persists, report the installed version or source commit, macOS version, operation, and redacted error text. Do not post message bodies or private account details.
uvx apple-mcp-mail (or a clone's AppleMail-MCP/start.sh) to your MCP clientmail_health first to confirm the server is reachablemail_permission_guidemail_recheck_permissionstools/list returns the full Mail tool surface. Context-constrained clients can call search_tools first, then get_tool_info for the exact Mail tool they plan to call.mail_search_messages requires a query string. Use a sender, a subject fragment, or * as a wildcard.account (an account name from mail_list_mailboxes) to search one account. Without it, accounts are searched in Mail's order and stop once limit results are collected, so a busy first account can fill the whole result set and hide mailboxes with the same name in other accounts.mail_get_thread when the user means a conversation, not a single message.mail_reply_latest_in_thread when the agent should reply to the newest message in the conversation.mail_archive_thread when the user wants thread-level cleanup and Archive is the intended mailbox.from_account.from_account is applied through Mail's own sender property (Full Name <address>, with the name quoted when it contains a comma or quote), which needs no extra macOS permissions. Only if Mail does not accept it does the server fall back to picking the From pop-up via System Events, which additionally needs Automation consent for System Events and Accessibility for the process running the server.APPLE_MAIL_MCP_SCRIPT_TIMEOUT_SECONDS (whole seconds, default 120, minimum 5; an invalid or smaller value uses the default) so a pending macOS consent prompt surfaces as an error instead of a hung request. The default leaves room for slow but legitimate searches: a subject/sender search of a 4,900-message Exchange mailbox took about 56 seconds.mail_send_message, or a sending mail_reply_message, mail_reply_latest_in_thread or mail_forward_message, times out, the result is SEND_STATUS_UNKNOWN, not a failure: Mail may already have sent it. Check the account's Sent mailbox (mail_search_messages with mailbox set to Sent Messages, or the name mail_list_mailboxes shows, such as Sent Items) before retrying, or the message can go out twice.File attachments are disabled until you set APPLE_MAIL_MCP_ALLOWED_ATTACHMENT_ROOT
to a directory you choose, such as ~/Documents/Mail Attachments. This applies to
both drafts and sends, including calls through Apple Tools. The server resolves
symlinks and accepts only regular files inside that directory. Files outside it,
directories, and paths containing the attachment transport separator are rejected.
Mail operations without attachments continue to work with the existing safety profile.
Source: AppleMail-MCP/README.md at commit 013b3f6
Mail Health
Report the active Apple Mail MCP configuration.
Takes no parameters.
Mail Permission Guide
Explain how to grant Apple Mail automation permission on macOS.
Takes no parameters.
Mail Recheck Permissions
Recheck Mail access after the user changes macOS permissions, and notify the client that Mail resources changed.
Takes no parameters.
List Mailboxes
List Apple Mail mailboxes, optionally filtered by account.
accountSearch Mail
Search Apple Mail messages by query with optional account, mailbox and unread filters. Without account, accounts are searched in Mail's order and the limit can be filled by the first one; pass account (as returned by mail_list_mailboxes) to search a specific account.
limitqueryrequiredaccountmailboxunread_onlyGet Email
Fetch a single Apple Mail message by message_id.
message_idrequiredGet Thread
Find related messages in the same mailbox thread by normalized subject, anchored on a message_id.
limitmessage_idrequiredCompose Draft
Create a draft message in Apple Mail without sending it. Optionally specify from_account as an email address or account name to set the sender.
cctorequiredbccbodysubjectattachmentsfrom_accountSend Email
Send an email immediately via Apple Mail. Optionally specify from_account as an email address or account name to set the sender.
cctorequiredbccbodysubjectattachmentsfrom_accountReply to Message
Reply to an existing email message. Provide a message_id and body text. Set reply_all=true to reply to all recipients. Optionally specify from_account. In full_access the reply is sent; in safe_manage it is saved as an unsent draft in Mail for the user to review (check `sent` and `note` in the result).
bodyrequiredreply_allmessage_idrequiredfrom_accountForward Message
Forward an existing email message to new recipients. Provide a message_id and the to list. Optionally prepend body text and specify from_account. In full_access the forward is sent; in safe_manage it is saved as an unsent draft in Mail for the user to review (check `sent` and `note` in the result).
torequiredbodymessage_idrequiredfrom_accountMark Message Read/Unread
Set the read status of an email message. Pass is_read=true to mark as read, is_read=false to mark as unread.
is_readrequiredmessage_idrequiredMove Message
Move an email message to a different mailbox. Optionally specify target_account if the mailbox is in a different account.
message_idrequiredtarget_accounttarget_mailboxrequiredDelete Message
Delete (trash) an email message by its message_id.
message_idrequiredReply To Latest In Thread
Find the latest related message in the same mailbox thread and reply to that message. In full_access the reply is sent; in safe_manage it is saved as an unsent draft in Mail for the user to review (check `sent` and `note` in the result).
bodyrequiredlimitreply_allmessage_idrequiredfrom_accountArchive Thread
Move related messages in the same mailbox thread to the target archive mailbox.
limitmessage_idrequiredarchive_accountarchive_mailboxMail List Prompts
Fallback prompt discovery tool for tool-only MCP clients.
Takes no parameters.
Mail Get Prompt
Fallback prompt rendering tool for tool-only MCP clients.
namerequiredarguments_jsonSearch Tools
Search this server's tool catalog by keyword, alias, or domain tag.
modelimitqueryrequireddomain_tagsGet Tool Info
Load the full schema, examples, and metadata for one tool from this server.
namerequiredinclude_schemainclude_examples90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
uvx apple-mcp-mailgit clone https://github.com/JonathanRReed/Apple-MCPs.gitcd Apple-MCPsuv sync --all-packages{ "mcpServers": { "apple-mail": { "command": "uvx", "args": ["apple-mcp-mail"], "env": { "APPLE_MAIL_MCP_SAFETY_PROFILE": "safe_manage", "APPLE_MAIL_MCP_VISIBLE_DRAFTS": "true" } } }}claude mcp add --transport stdio --scope user apple-mail -- uvx apple-mcp-mail