MCP ScannerCustom audit
All servers

sweetrb/apple-mail-mcp

MCP server for Apple Mail - read, search, send, and manage emails via Claude and other AI assistants

Version2.20.63 in package.json
Publishersweetrb community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 113Forks 34Last push 2026-11-13npm downloads a month 24,605
TypeScript 92.5%JavaScript 7.5%by source files the scanner reads
Code safetypartly tracedExposure6.1Prompts10.0Supply chainnot checkedSecrets10.0Transparency10.0
Analysis confidence80%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure6.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chainnot checked—

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 412 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 1 file reached by the taint walk exceeded the 524288 byte size limit and were read and parsed only up to it
  • 1 file exceeded the 524288 byte size limit and were parsed only up to it
  • 186 bundled third-party modules from node_modules in 1 bundle file over the 524288 byte size limit were not analyzed; the bundles' own modules were
  • 43 source files could be read only in part
  • 1 of 69 tools, prompts and resources could not be followed through the code
  • Supply Chain: the dependency files state no exact versions the scanner could check, so it has no number

Top risks in plain words

  • INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 57 tools, 3 resources, 3 prompts. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
create-draft, create-newsletter-smart-mailboxes, create-rule, create-smart-mailbox, delete-mailbox, delete-template and 17 more
23 of 63
Connect to the internet or other hostssend requests or open connections
accounts, create-draft, create-mailbox, create-rule, delete-mailbox, doctor and 19 more
25 of 63
Read environment variablesoften where API keys are kept
accounts, create-draft, create-mailbox, create-newsletter-smart-mailboxes, create-rule, delete-mailbox and 26 more
32 of 63

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • files20 tools · create-draft, create-rule, delete-mailbox +17

Tool annotations

1 of 63 tools declares annotations. readOnlyHint 1.

Tools, prompts and resources (63: 57 tools, 3 resources, 3 prompts)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

compose-replyprompt Draft a reply to a specific message in a chosen tone.
Draft a reply to a specific message in a chosen tone.
triage-inboxprompt Review unread mail and propose actions (archive, reply, flag, delete).
Review unread mail and propose actions (archive, reply, flag, delete).
weekly-summaryprompt Summarize the week's mail activity into a short briefing.
Summarize the week's mail activity into a short briefing.
accountsresource All configured Mail accounts (name, email, enabled state).NetworkEnv vars
All configured Mail accounts (name, email, enabled state).
mailboxesresource Mailboxes/folders for a given account.NetworkEnv vars
Mailboxes/folders for a given account.
templatesresource Saved, reusable email templates.
Saved, reusable email templates.
batch-delete-messagestool Use when: deleting multiple messages in one call (1–100 ids; moves them to Trash).
Use when: deleting multiple messages in one call (1–100 ids; moves them to Trash).
Returns: counts of how many were deleted and how many failed, plus the distinct reasons for any failures.
Do not use when: deleting just one (use delete-message) or filing messages away (use batch-move-messages).
Safety: destructive and applies to many messages at once — require explicit user confirmation, and search-messages/list-messages first to confirm every id is correct before deleting. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
batch-flag-messagestool Use when: flagging multiple messages (1–100 ids) in one call, optionally with a color (red/orange/yellow/green/blue/purple/gray).
Use when: flagging multiple messages (1–100 ids) in one call, optionally with a color (red/orange/yellow/green/blue/purple/gray).
Returns: counts of how many were flagged and how many failed.
Do not use when: flagging just one (use flag-message) or removing flags (use batch-unflag-messages). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
Note: the color is applied on both routes — AppleScript sets the flag index, IMAP writes the equivalent $MailFlagBit0/1/2 keywords Mail.app reads — so a mixed batch of numeric and `imap:` ids all end up colored, and search-messages' flagColor filter finds the whole set again later regardless of mailbox.
batch-mark-as-readtool Use when: marking multiple messages (1–100 ids) as read in one call.
Use when: marking multiple messages (1–100 ids) as read in one call.
Returns: counts of how many were marked read and how many failed.
Do not use when: marking just one (use mark-as-read) or marking unread (use batch-mark-as-unread). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
batch-mark-as-unreadtool Use when: marking multiple messages (1–100 ids) as unread in one call.
Use when: marking multiple messages (1–100 ids) as unread in one call.
Returns: counts of how many were marked unread and how many failed.
Do not use when: marking just one (use mark-as-unread) or marking read (use batch-mark-as-read). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
batch-move-messagestool Use when: moving multiple messages (1–100 ids) into the same destination mailbox/folder in one call, e.g. bulk archiving.
Use when: moving multiple messages (1–100 ids) into the same destination mailbox/folder in one call, e.g. bulk archiving.
Returns: counts of how many were moved and how many failed, plus the distinct reasons for any failures.
Do not use when: moving just one (use move-message) or deleting (use batch-delete-messages). Use list-mailboxes to confirm the destination name exists.
Safety: moves many real messages at once — confirm the destination mailbox, and search-messages/list-messages first to confirm the ids. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from — not the destination) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
batch-unflag-messagestool Use when: removing flags from multiple messages (1–100 ids) in one call.
Use when: removing flags from multiple messages (1–100 ids) in one call.
Returns: counts of how many were unflagged and how many failed.
Do not use when: unflagging just one (use unflag-message) or adding flags (use batch-flag-messages). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
cbtool
No description.
create-drafttool Use when: composing an email the user should review in Mail.app before sending — the safe default for any new message (to/cc/bcc are arrays, optional attachmentFilesNetworkEnv varsoutside text
Use when: composing an email the user should review in Mail.app before sending — the safe default for any new message (to/cc/bcc are arrays, optional attachments). With inReplyTo/references the draft is threaded: it is composed by this server and filed over IMAP into the account's Drafts mailbox (Mail.app's AppleScript cannot set those headers), so an IMAP account is required.
Returns: a confirmation that the draft was created, with recipients and attachment count; for a threaded draft also its Drafts mailbox, account and Message-ID (transport: imap).
Do not use when: the user has already confirmed they want it sent now (use send-email), or is replying to an existing message (use reply-to-message with send=false — it derives recipients, threading and the quote and takes attachments).
Safety: creates a draft only and sends nothing. The user can review/send in Mail.app, or use send-saved-draft with a fresh stored preview and explicit approval when matching IMAP/SMTP is configured.
create-mailboxtool Use when: creating a new mailbox/folder in an account.NetworkEnv vars
Use when: creating a new mailbox/folder in an account.
Returns: a confirmation that the mailbox was created.
Do not use when: renaming an existing one (use rename-mailbox) or deleting one (use delete-mailbox). Use list-mailboxes to see what already exists.
Safety: creates a real folder in the mail account — confirm the name and target account first.
create-newsletter-smart-mailboxestool Use when: auto-discovering newsletter/bulk senders in your INBOX(es) and (optionally) creating a dedicated smart mailbox per sender (named "NL: <sender>"). DefaFilesEnv vars
Use when: auto-discovering newsletter/bulk senders in your INBOX(es) and (optionally) creating a dedicated smart mailbox per sender (named "NL: <sender>"). Defaults to a safe dry run that only proposes.
Returns: the proposed or created smart mailboxes with their match scores.
Do not use when: you already know the exact sender (use create-smart-mailbox) or want real folders (use create-mailbox).
Safety: with dryRun=false it edits Apple Mail's SyncedSmartMailboxes.plist (backed up, atomic, existing entries preserved) and can create many smart mailboxes at once — review a dryRun first. It scans up to ~400 recent messages per inbox via AppleScript, which can be slow on large mailboxes.
create-ruletool Use when: creating a new Mail rule with one or more conditions (field/operator/value) and at least one action (markRead, markFlagged, delete, or moveTo). Set maFilesNetworkEnv varsoutside text
Use when: creating a new Mail rule with one or more conditions (field/operator/value) and at least one action (markRead, markFlagged, delete, or moveTo). Set matchAll to require all conditions vs. any.
Returns: a confirmation naming the rule and its condition count.
Do not use when: toggling an existing rule (use enable-rule / disable-rule) or removing one (use delete-rule). Use list-rules to avoid duplicating an existing rule.
Safety: creates a rule that automatically acts on real mail (including delete/move actions) on an ongoing basis — confirm the conditions and actions with the user before calling.
create-smart-mailboxtool Use when: creating an Apple Mail smart mailbox (a criteria-based virtual view) that matches a sender, subject, or body substring — works on German-localized macFiles
Use when: creating an Apple Mail smart mailbox (a criteria-based virtual view) that matches a sender, subject, or body substring — works on German-localized macOS where AppleScript's smart-mailbox terms fail.
Returns: confirmation of creation, or a note that a smart mailbox with that name already existed.
Do not use when: creating a real folder (use create-mailbox).
Safety: edits Apple Mail's SyncedSmartMailboxes.plist directly. It backs the file up (.bak) and writes atomically, and never rewrites your existing smart mailboxes. It does not quit Mail — quit Mail first for reliable results, since a running Mail may not show the new smart mailbox until relaunched and can overwrite plist edits it did not make.
delete-mailboxtool Use when: deleting a mailbox/folder from an account.FilesNetworkEnv varsoutside text
Use when: deleting a mailbox/folder from an account.
Returns: a confirmation that the mailbox was deleted.
Do not use when: renaming it (use rename-mailbox) or deleting messages within it (use delete-message / batch-delete-messages).
Safety: destructive — deleting a mailbox removes the folder and any messages it contains. Require explicit user confirmation and use list-mailboxes first to confirm the exact name.
delete-messagetool Use when: deleting a single message by id (moves it to Trash).
Use when: deleting a single message by id (moves it to Trash).
Returns: a confirmation that the message was deleted.
Do not use when: deleting several at once (use batch-delete-messages) or just filing it away (use move-message).
Safety: destructive — require explicit user confirmation, and search-messages/list-messages first to confirm you have the right id before deleting.
delete-ruletool Use when: permanently removing a Mail rule by name.Env vars
Use when: permanently removing a Mail rule by name.
Returns: a confirmation that the rule was deleted.
Do not use when: you only want to pause it (use disable-rule) or create one (use create-rule).
Safety: destructive — the rule is removed permanently. Require explicit user confirmation and use list-rules first to confirm the exact name.
delete-smart-mailboxtool Use when: deleting an Apple Mail smart mailbox (virtual view) by name.
Use when: deleting an Apple Mail smart mailbox (virtual view) by name.
Returns: confirmation of deletion.
Do not use when: deleting a real folder (use delete-mailbox) or messages (use delete-message / batch-delete-messages).
Safety: destructive — removes the smart mailbox from Apple Mail's SyncedSmartMailboxes.plist. It backs the file up (.bak) and writes atomically, preserving every other smart mailbox, but the removal is not undoable in-app. Confirm the exact name with list-smart-mailboxes first, and quit Mail first for reliable results.
delete-templatetool Use when: permanently removing a saved email template by id.Filesoutside text
Use when: permanently removing a saved email template by id.
Returns: a confirmation that the template was deleted.
Do not use when: you only want to view it (use get-template) or update it (use save-template with the existing id).
Safety: destructive — removes the template from the on-disk store permanently. Require explicit user confirmation and use list-templates first to confirm the id.
disable-ruletool Use when: turning off an existing Mail rule by name (without deleting it).Env vars
Use when: turning off an existing Mail rule by name (without deleting it).
Returns: a confirmation that the rule was disabled.
Do not use when: turning a rule on (use enable-rule), creating one (use create-rule), or removing it permanently (use delete-rule). Use list-rules to confirm the exact rule name.
doctortool Use when: troubleshooting setup problems — diagnoses Mail.app automation permissions, account state, and the IMAP/SMTP backends with actionable remediation messFilesNetworkEnv varsoutside text
Use when: troubleshooting setup problems — diagnoses Mail.app automation permissions, account state, and the IMAP/SMTP backends with actionable remediation messages.
Returns: a detailed diagnostic report (formatted text plus structured checks).
Do not use when: you just want a quick up/down status (use health-check) or message counts (use get-mail-stats).
enable-ruletool Use when: turning on an existing Mail rule by name.Env vars
Use when: turning on an existing Mail rule by name.
Returns: a confirmation that the rule was enabled.
Do not use when: turning a rule off (use disable-rule), creating one (use create-rule), or deleting one (use delete-rule). Use list-rules to confirm the exact rule name.
fetch-attachmenttool Use when: retrieving an attachment's raw bytes inline as base64 (by message id and attachmentName), e.g. to process its contents without keeping a file.FilesNetworkEnv varsoutside text
Use when: retrieving an attachment's raw bytes inline as base64 (by message id and attachmentName), e.g. to process its contents without keeping a file.
Returns: up to 3 MiB of decoded attachment bytes, base64-encoded, with its size and (for IMAP) MIME type. Larger attachments are refused; use save-attachment instead.
Do not use when: you don't know the attachment name (use list-attachments first) or you just want it saved to disk (use save-attachment).
Safety: leaves no file behind, but the AppleScript path is not disk-free — Mail writes the attachment into a private temp directory, which is read back and then deleted. Needs no Full Disk Access either way: Mail performs that write under the Automation grant, and this server never reads the mail store itself.
flag-messagetool Use when: flagging a single message (by id), optionally with a color (red/orange/yellow/green/blue/purple/gray).
Use when: flagging a single message (by id), optionally with a color (red/orange/yellow/green/blue/purple/gray).
Returns: a confirmation that the message was flagged (and the color, when applied).
Do not use when: flagging several at once (use batch-flag-messages) or removing a flag (use unflag-message). Get the id from search-messages or list-messages first.
Note: the color is applied on both routes — AppleScript sets the flag index, IMAP writes the equivalent $MailFlagBit0/1/2 keywords Mail.app reads — and search-messages' flagColor filter finds colored messages again later, so a color works as a cross-mailbox label.
forward-messagetool Use when: forwarding an existing message (by id) to new recipients (to is an array), with an optional body to prepend and optional extra attachments (same rulesFilesNetworkEnv varsoutside text
Use when: forwarding an existing message (by id) to new recipients (to is an array), with an optional body to prepend and optional extra attachments (same rules as send-email). Set send=false to save as a draft.
Returns: a confirmation that the message was forwarded or saved as a draft, with the attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy).
Do not use when: replying to the sender/recipients (use reply-to-message) or composing a new message (use send-email / create-draft).
Safety: with the default send=true this SENDS real email immediately and cannot be unsent — require explicit user confirmation of the recipients and any prepended body, or pass send=false to let the user review.
get-account-settingstool Use when: you need the settings of one Mail account — full name, email addresses, enabled, server and port, whether deleted mail goes to the Trash, when the TraNetworkEnv vars
Use when: you need the settings of one Mail account — full name, email addresses, enabled, server and port, whether deleted mail goes to the Trash, when the Trash/Junk/Sent are emptied, which IMAP folders are kept on the server, and its outgoing (SMTP) server.
Returns: the account name and a settings object. The password is never read or returned.
Do not use when: you only need the account names (use list-accounts).
get-mail-statstool Use when: you want aggregate mailbox statistics — total and unread message counts, recently-received counts (last 24h/7d/30d), and (for the all-accounts path) aNetworkEnv vars
Use when: you want aggregate mailbox statistics — total and unread message counts, recently-received counts (last 24h/7d/30d), and (for the all-accounts path) a per-account breakdown.
Returns: totals, unread counts, recent-activity counts, and per-account figures.
Do not use when: you only need a single unread number (use get-unread-count) or want to list the messages themselves (use list-messages / search-messages).
get-messagetool Use when: reading the full body of one message whose id you already have (numeric or imap:…); set preferHtml to get the HTML body instead of plain text.
Use when: reading the full body of one message whose id you already have (numeric or imap:…); set preferHtml to get the HTML body instead of plain text.
Returns: the message subject, body (plain text by default, HTML when preferHtml is true), its stable RFC Message-ID (rfcMessageId) for dedup/threading, and two dates: dateSent (the author's Date: header — survives a migration/re-import) and dateReceived (arrival in the mailbox; this is the one a migration resets).
Tip: pass the mailbox+account you got the id from (e.g. from search-messages) to fetch it directly — required for reliable reads of large folders like "Sent Items", which otherwise time out.
Do not use when: you don't yet have an id (use search-messages or list-messages first), you want the whole conversation (use get-thread), or you need the raw headers / Received: trace (use get-message-headers).
get-message-headerstool Use when: you need a message's raw RFC 5322 headers — the author's Date: header (not the mailbox arrival time), Message-ID, In-Reply-To/References, the Receivedread-only (declared)
Use when: you need a message's raw RFC 5322 headers — the author's Date: header (not the mailbox arrival time), Message-ID, In-Reply-To/References, the Received: hop trace, or any custom X- header — for a message whose id you already have (numeric or imap:…). Cheap: never downloads the body or attachments.
Returns: the raw header block (text), every header as ordered {name, value} pairs with folding undone, and the decoded key fields: date (ISO 8601, from the Date: header), dateHeader (verbatim), dateReceived (mailbox arrival time — the value a migration or re-import resets, so compare it with date), messageId, subject, from, to, cc, replyTo, inReplyTo, references[], received[], backend (imap or applescript), and warnings[] when a malformed block was repaired.
Tip: pass the mailbox+account you got the id from so a numeric id is fetched directly instead of scanning every mailbox.
Do not use when: you want the body (use get-message), the conversation (use get-thread), or only the Message-ID (get-message already returns rfcMessageId).
get-message-rfc822tool Use when: you need a message's complete original RFC 822 bytes exactly as the IMAP server stores them — for archival, forensic review, evidence preservation, orFiles
Use when: you need a message's complete original RFC 822 bytes exactly as the IMAP server stores them — for archival, forensic review, evidence preservation, or a verifiable .eml — together with the IMAP identity that links back to the source (uid, uidValidity, internalDate, flags, RFC822.SIZE) and a SHA-256 of the acquired bytes. IMAP-only: needs an imap: id from list-messages/search-messages on an IMAP-configured account.
Returns: the acquisition record (account, mailbox, uid, uidValidity, internalDate, flags, size, bytes, sha256, messageId, readMethod, backend, warnings) plus either contentBase64 — the bytes, base64-encoded, carried in structuredContent only — or savedPath when savePath was given. No decoding, charset conversion, line-ending change or MIME re-serialization is applied.
Do not use when: you want readable content (use get-message), only the headers (use get-message-headers), or one attachment (use fetch-attachment / save-attachment); or when the id is numeric — Mail.app's AppleScript bridge exposes its own rendering, not the stored bytes, so there is no AppleScript path.
Safety: strictly read-only against the mailbox — EXAMINE + BODY.PEEK[], so \Seen is not set and no STORE/COPY/MOVE/APPEND/EXPUNGE is issued; no Mail.app, AppleScript or osascript involved. Inline results are capped at 6 MiB of raw bytes (maxBytes) to stay under the MCP stdio 10 MB message limit; larger messages need savePath, which creates exactly one new file (never overwrites, mode 0600) inside the configured allowed roots, up to 25 MiB.
get-sync-statustool Use when: checking whether Mail.app is running and actively syncing, e.g. to explain why new mail hasn't appeared yet.Env vars
Use when: checking whether Mail.app is running and actively syncing, e.g. to explain why new mail hasn't appeared yet.
Returns: whether Mail.app is running and whether sync activity was detected.
Do not use when: you need message counts (use get-mail-stats) or a full setup diagnosis (use doctor).
get-templatetool Use when: reading the full contents of one saved template by id — its name, subject, default to/cc, and body.
Use when: reading the full contents of one saved template by id — its name, subject, default to/cc, and body.
Returns: the template's name, subject, default recipients, and body text.
Do not use when: you don't have the id (use list-templates first) or want to apply the template into a draft (use use-template).
get-threadtool Use when: you have one message id and want the whole conversation it belongs to, oldest-first. With an imap: id it threads by References/Message-ID; otherwise iFilesNetworkEnv varsoutside text
Use when: you have one message id and want the whole conversation it belongs to, oldest-first. With an imap: id it threads by References/Message-ID; otherwise it groups by normalized subject.
Returns: the thread's normalized subject and its messages (id, date, subject, sender, read state, mailbox and account; each text line names its mailbox and account when the messages can come from more than one).
Do not use when: you only need the single message (use get-message) or are searching by arbitrary criteria (use search-messages).
get-unread-counttool Use when: you only need the number of unread messages — INBOX by default, or scoped to one mailbox and/or account — without listing the messages themselves.FilesNetworkEnv varsoutside text
Use when: you only need the number of unread messages — INBOX by default, or scoped to one mailbox and/or account — without listing the messages themselves.
Returns: the unread count for the requested scope (INBOX when no mailbox is given). If a source cannot be read the result carries `partial: true` + `failedAccounts`, and a total AppleScript failure returns an ERROR — a plain count is never a disguised transport failure.
Do not use when: you need the actual unread messages and their ids (use list-messages with unreadOnly, or search-messages with isRead=false) or broader totals across every mailbox (use get-mail-stats).
health-checktool Use when: doing a quick check that Mail.app is reachable and the server's basic checks pass.NetworkEnv vars
Use when: doing a quick check that Mail.app is reachable and the server's basic checks pass.
Returns: an overall healthy/unhealthy status with a pass/fail line per check.
Do not use when: you need detailed permission/account/IMAP/SMTP diagnostics with remediation steps (use doctor).
list-accountstool Use when: discovering the configured Mail accounts (e.g. iCloud, Gmail) so you can pass an exact account name to other tools.NetworkEnv vars
Use when: discovering the configured Mail accounts (e.g. iCloud, Gmail) so you can pass an exact account name to other tools.
Returns: the account names and a count. If the AppleScript transport fails (timeout / wedged Mail / missing Automation grant) this returns an ERROR rather than an empty list — an empty list always means Mail really has no accounts.
Do not use when: you want the folders within an account (use list-mailboxes) or messages (use list-messages / search-messages).
list-attachmentstool Use when: enumerating a message's attachments (by id) to discover their names, MIME types, and sizes — typically before saving or fetching one.FilesNetworkEnv varsoutside text
Use when: enumerating a message's attachments (by id) to discover their names, MIME types, and sizes — typically before saving or fetching one.
Returns: each attachment's name, MIME type, and decoded size in bytes (what fetch-attachment returns), plus a count; sizeApproximate: true marks the rare IMAP size that is an estimate.
Do not use when: you want the bytes (use fetch-attachment for inline base64, or save-attachment to write to disk). Get the message id from search-messages or list-messages first.
list-mailboxestool Use when: discovering the mailbox/folder paths (and unread/message counts) available in an account, e.g. before moving messages or searching a specific mailbox.NetworkEnv vars
Use when: discovering the mailbox/folder paths (and unread/message counts) available in an account, e.g. before moving messages or searching a specific mailbox.
Returns: each mailbox's canonical account-relative path in `name`, unread/message counts, and a total count. Use the full path for nested mailboxes (for example `Archive/Inbox`); a top-level `Inbox` remains `Inbox`. A source that could not be read is NAMED — the result carries `partial: true` + `failedAccounts` and the list is a floor, not the complete set — and a listing Mail refused outright (e.g. an account that does not exist) returns an ERROR naming the accounts that do exist, never an empty list.
Do not use when: you want the messages inside a mailbox (use list-messages or search-messages) or the list of accounts (use list-accounts).
Note: Mail's local "On My Mac" mailboxes are not part of any account, so they are reported under the synthetic account label "On My Mac" — an unscoped call includes them, and `account: "On My Mac"` lists only them. They will not appear in list-accounts, which reports real accounts only.
list-messagestool Use when: browsing a mailbox's recent messages (optionally filtered by sender or unread-only) with pagination via limit/offset, and you need their ids.FilesNetworkEnv varsoutside text
Use when: browsing a mailbox's recent messages (optionally filtered by sender or unread-only) with pagination via limit/offset, and you need their ids.
Returns: messages with id, date, subject, sender, mailbox and account (each text line names its mailbox and account when the results can come from more than one), and flagColor when flagged with an explicit color (plus partial-coverage diagnostics when some mailboxes were skipped).
Do not use when: you have specific search criteria like subject/date/flags/flag color (use search-messages, which also supports filtering by flagColor) or already have an id and want the body (use get-message).
Like search-messages, use this to obtain the ids that read/mark/delete/move and batch tools require.
list-rulestool Use when: discovering the Mail rules that exist and whether each is enabled or disabled, e.g. before enabling/disabling/deleting one.Env vars
Use when: discovering the Mail rules that exist and whether each is enabled or disabled, e.g. before enabling/disabling/deleting one.
Returns: each rule's name and enabled/disabled state.
Do not use when: you want to change a rule (use enable-rule / disable-rule / create-rule / delete-rule).
list-smart-mailboxestool Use when: listing Apple Mail smart mailboxes (criteria-based virtual views), including on German-localized macOS where AppleScript's smart-mailbox terms do not
Use when: listing Apple Mail smart mailboxes (criteria-based virtual views), including on German-localized macOS where AppleScript's smart-mailbox terms do not compile.
Returns: each smart mailbox's name and a short criteria summary.
Do not use when: listing real folders/mailboxes (use list-mailboxes).
list-templatestool Use when: discovering the saved email templates and their ids, e.g. before using or editing one.
Use when: discovering the saved email templates and their ids, e.g. before using or editing one.
Returns: each template's id, name, and subject.
Do not use when: you want a single template's full body (use get-template) or want to apply one (use use-template).
mark-as-readtool Use when: marking a single message (by id) as read.
Use when: marking a single message (by id) as read.
Returns: a confirmation that the message was marked read.
Do not use when: marking several at once (use batch-mark-as-read) or marking unread (use mark-as-unread). Get the id from search-messages or list-messages first.
mark-as-unreadtool Use when: marking a single message (by id) as unread.
Use when: marking a single message (by id) as unread.
Returns: a confirmation that the message was marked unread.
Do not use when: marking several at once (use batch-mark-as-unread) or marking read (use mark-as-read). Get the id from search-messages or list-messages first.
move-messagetool Use when: moving a single message (by id) into another mailbox/folder, e.g. archiving or filing.
Use when: moving a single message (by id) into another mailbox/folder, e.g. archiving or filing.
Returns: a confirmation naming the destination mailbox.
Do not use when: moving several at once (use batch-move-messages) or deleting (use delete-message). Use list-mailboxes to confirm the destination name exists.
Safety: moves a real message between folders — confirm the destination mailbox, and search-messages/list-messages first to confirm the id.
rename-mailboxtool Use when: renaming an existing mailbox/folder from oldName to newName within an account.FilesNetworkEnv varsoutside text
Use when: renaming an existing mailbox/folder from oldName to newName within an account.
Returns: a confirmation naming the old and new mailbox names.
Do not use when: creating a new folder (use create-mailbox) or deleting one (use delete-mailbox). Use list-mailboxes to confirm the current name.
Safety: renames a real folder in the mail account — confirm oldName matches exactly (case-sensitive) before calling.
reply-to-messagetool Use when: replying to an existing message by id, preserving its threading headers and quoting the original, optionally with attachments (same rules as send-emaiFilesNetworkEnv varsoutside text
Use when: replying to an existing message by id, preserving its threading headers and quoting the original, optionally with attachments (same rules as send-email). Set replyAll for all recipients; set send=false to save as a draft instead of sending.
Returns: a confirmation that the reply was sent or saved as a draft, with the attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy).
Do not use when: composing a brand-new message (use send-email / create-draft) or forwarding to new recipients (use forward-message).
Safety: with the default send=true this SENDS real email immediately and cannot be unsent — require explicit user confirmation of the recipients and body, or pass send=false to let the user review.
resolve-message-idtool Use when: you have `imap:` message id(s) and genuinely need the numeric Mail.app id(s) — e.g. for reply-to-message/forward-message, which are numeric-id only. NFilesEnv varsoutside text
Use when: you have `imap:` message id(s) and genuinely need the numeric Mail.app id(s) — e.g. for reply-to-message/forward-message, which are numeric-id only. NOTE: as of 2.10.0 you no longer need this to apply a flag COLOR — flag-message/batch-flag-messages write the color over IMAP directly via Mail.app's $MailFlagBit0/1/2 keywords, so a smart mailbox keyed on flag color matches an IMAP-flagged message. Each imap: id is resolved via its RFC822 Message-ID.
Returns: for each input id, its `numericId` (the AppleScript id) or null when it can't be resolved, plus the `messageId` used; and a `resolvedCount`.
Do not use when: your ids are already numeric (they pass straight through), or you don't need a color — flag/move/mark tools operate on `imap:` ids directly.
save-attachmenttool Use when: writing one of a message's attachments to disk, by message id and attachmentName, into the savePath directory (saved as savePath/attachmentName).FilesNetworkEnv varsoutside text
Use when: writing one of a message's attachments to disk, by message id and attachmentName, into the savePath directory (saved as savePath/attachmentName).
Returns: a confirmation of the saved file path.
Do not use when: you don't know the attachment name (use list-attachments first) or want the bytes inline rather than on disk (use fetch-attachment).
Safety: writes a new file to disk and never overwrites — savePath must be an existing directory under ~/Downloads, ~/Desktop, ~/Documents, iCloud Drive, CloudStorage, a temporary directory, or a root named in APPLE_MAIL_MCP_ATTACHMENT_SAVE_ROOTS. Hidden files and folders, credential stores and other ~/Library folders are refused, and attachmentName may not contain path separators or '..'.
save-templatetool Use when: creating a reusable email template (name, subject, body, optional default to/cc), or updating one by passing its existing id. Subject/body may containFilesoutside text
Use when: creating a reusable email template (name, subject, body, optional default to/cc), or updating one by passing its existing id. Subject/body may contain placeholders for later use.
Returns: the saved template's name and id (reuse the id with use-template / get-template / delete-template).
Do not use when: composing a one-off message (use create-draft / send-email) or filling in a template to send (use use-template).
Safety: writes the template to the on-disk templates store (APPLE_MAIL_MCP_TEMPLATES_FILE) and persists across restarts; passing an existing id overwrites that template.
search-contactstool Use when: looking up a person in Contacts by name, organization, nickname, or email to find their email address(es)/phone(s) before composing or sending mail. R
Use when: looking up a person in Contacts by name, organization, nickname, or email to find their email address(es)/phone(s) before composing or sending mail. Reads the macOS Contacts database directly (needs Full Disk Access; does NOT require Contacts.app to be running or an Automation / Apple-Events grant).
Returns: matching contacts with their names, email addresses, and phone numbers.
Do not use when: searching email messages (use search-messages) — this queries Contacts, not the mailbox.
search-messagestool Use when: finding messages by query/sender/subject/date/read/flag/flag-color filters and you need their ids for follow-up operations.FilesNetworkEnv varsoutside text
Use when: finding messages by query/sender/subject/date/read/flag/flag-color filters and you need their ids for follow-up operations.
Returns: matching messages with id, date, subject, sender, read state, mailbox and account (each text line names its mailbox and account when the results can come from more than one), and flagColor when flagged with an explicit color (plus partial-coverage diagnostics when some mailboxes were skipped). An IMAP search stops at its deadline (APPLE_MAIL_MCP_SEARCH_DEADLINE_MS, default 45s) or when the request is cancelled, returning the matches found so far with partial: true and timedOutMailboxes — narrow with mailbox/dateFrom rather than repeating it.
Do not use when: you want a plain mailbox listing without filters (use list-messages), already have an id and want the body (use get-message), or want a whole conversation (use get-thread).
Prefer this first to obtain the message ids that get-message/mark-as-read/delete-message/move-message and the batch tools require.
Tip: use flagColor to find messages you tagged earlier (e.g. all 'orange' across mailboxes) — colored flags work as cross-mailbox labels this way, via flag-message/batch-flag-messages to set them and this filter to find them again, without moving anything into a dedicated folder.
send-emailtool Use when: the user has explicitly confirmed they want to send a single email now to the given recipients (to/cc/bcc are arrays), optionally with attachments, a FilesNetworkEnv varsoutside text
Use when: the user has explicitly confirmed they want to send a single email now to the given recipients (to/cc/bcc are arrays), optionally with attachments, a chosen transport, and caller-built threading headers (inReplyTo/references, SMTP only).
Returns: a confirmation naming the recipients and attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy).
Do not use when: the user wants to review first (use create-draft), is replying to or forwarding an existing message (use reply-to-message / forward-message — they derive recipients, threading and the quote, and also take attachments), or wants per-recipient personalized copies (use send-serial-email).
Safety: this SENDS real email immediately and it cannot be unsent — require explicit user confirmation of the exact recipients, subject, and body before calling. Prefer create-draft when there is any doubt.
send-saved-drafttool Use when: previewing a current stored IMAP Drafts message, then submitting exactly its approved revision through a matching configured SMTP identity. dryRun def
Use when: previewing a current stored IMAP Drafts message, then submitting exactly its approved revision through a matching configured SMTP identity. dryRun defaults to true.
Returns: full sender/To/Cc/Bcc/Reply-To, plain/HTML body and attachment preview with UIDVALIDITY/UID/MIME SHA-256; or explicit submitted/partial/submission_unknown/not_submitted status, accepted/rejected recipients and separate Sent-copy/cleanup results.
Do not use when: the draft is non-IMAP, signed/encrypted, ambiguous, unpreviewable or lacks a matching IMAP/SMTP login. No AppleScript fallback.
Safety: dryRun=false SENDS real email. Show the complete current preview and obtain explicit approval before passing its approvedSha256 and approvedUidValidity. Never retry a partial/unknown send or switch transport. Only full acknowledged acceptance permits revision-checked MOVE to Trash; MOVE support and unambiguous Trash are required for cleanup. Unverified cleanup is not confirmed removal. Repeated attempted revisions are guarded for this server process only; after restart reconcile with the provider before any retry. This tool, including preview, is disabled in no_send/read_only modes.
send-serial-emailtool Use when: the user has confirmed a mail-merge — sending individually personalized copies to many recipients (max 100), with {{Key}} placeholders in subject/body
Use when: the user has confirmed a mail-merge — sending individually personalized copies to many recipients (max 100), with {{Key}} placeholders in subject/body replaced per-recipient from each recipient's variables. Recipients do not see each other.
Returns: a per-recipient sent/failed report with counts.
Do not use when: sending one message to a shared recipient list (use send-email) or saving for review (use create-draft).
Safety: this SENDS many real emails immediately and they cannot be unsent — require explicit user confirmation of the recipient list, the subject/body template, and the placeholder substitutions before calling.
set-account-settingstool Use when: the user asked to change a setting of a Mail account: turn it on or off (enabled), its full name, include it when getting new mail, move deleted messaFilesNetworkEnv varsoutside text
Use when: the user asked to change a setting of a Mail account: turn it on or off (enabled), its full name, include it when getting new mail, move deleted messages to the Trash, empty Trash/Junk/Sent on quit, or the IMAP flags (store drafts, junk, sent, deleted on the server; compact mailboxes when closing).
Returns: the settings read back, and any setting Mail refused.
Do not use when: the change involves a password, server, port, user name or the account's email addresses — those cannot be changed with this tool.
Safety: confirm with the user first. Turning an account off stops its mail arriving and sending; moveDeletedMessagesToTrash: false makes every later delete permanent; emptyTrashOnQuit/emptyJunkOnQuit/emptySentOnQuit: true purge those folders; storeSentOnServer/storeDeletedOnServer (and the other store…OnServer flags): false drop the server's copies.
unflag-messagetool Use when: removing the flag from a single message (by id).
Use when: removing the flag from a single message (by id).
Returns: a confirmation that the message was unflagged.
Do not use when: unflagging several at once (use batch-unflag-messages) or adding a flag (use flag-message). Get the id from search-messages or list-messages first.
update-saved-drafttool Use when: editing an existing stored draft's subject, body, recipients or attachments after reviewing its current revision. IMAP-only: use an imap: id from the
Use when: editing an existing stored draft's subject, body, recipients or attachments after reviewing its current revision. IMAP-only: use an imap: id from the configured account's SPECIAL-USE Drafts mailbox. dryRun defaults to true and can show proposed changes.
Returns: the current preview and UIDVALIDITY/UID/MIME SHA-256; after an update the new draftId and preview, with the old-revision cleanup result reported separately.
Do not use when: creating a new message (use create-draft), editing a non-draft or an AppleScript-only account, or sending mail. Signed/encrypted, ambiguous or unpreviewable MIME is refused.
Safety: changes a stored draft only; never calls SMTP or sends mail. Obtain approval for the changes and pass the current preview's approvedSha256 and approvedUidValidity with dryRun=false. APPEND is confirmed before targeted removal of the old UID. UIDPLUS is required to avoid global EXPUNGE. Unknown APPEND and cleanup failures must be inspected, never blindly retried.
use-templatetool Use when: composing a new draft from a saved template (by id), optionally overriding the recipients, subject, or body. Creates a draft in Mail.app for the user FilesNetworkEnv varsoutside text
Use when: composing a new draft from a saved template (by id), optionally overriding the recipients, subject, or body. Creates a draft in Mail.app for the user to review and send.
Returns: a confirmation that a draft was created from the template.
Do not use when: you want to inspect the template without composing (use get-template) or send immediately without a draft (use send-email).

Text the model reads (63)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

search-messages tool
Use when: finding messages by query/sender/subject/date/read/flag/flag-color filters and you need their ids for follow-up operations.
Returns: matching messages with id, date, subject, sender, read state, mailbox and account (each text line names its mailbox and account when the results can come from more than one), and flagColor when flagged with an explicit color (plus partial-coverage diagnostics when some mailboxes were skipped). An IMAP search stops at its deadline (APPLE_MAIL_MCP_SEARCH_DEADLINE_MS, default 45s) or when the request is cancelled, returning the matches found so far with partial: true and timedOutMailboxes — narrow with mailbox/dateFrom rather than repeating it.
Do not use when: you want a plain mailbox listing without filters (use list-messages), already have an id and want the body (use get-message), or want a whole conversation (use get-thread).
Prefer this first to obtain the message ids that get-message/mark-as-read/delete-message/move-message and the batch tools require.
Tip: use flagColor to find messages you tagged earlier (e.g. all 'orange' across mailboxes) — colored flags work as cross-mailbox labels this way, via flag-message/batch-flag-messages to set them and this filter to find them again, without moving anything into a dedicated folder.
list-messages tool
Use when: browsing a mailbox's recent messages (optionally filtered by sender or unread-only) with pagination via limit/offset, and you need their ids.
Returns: messages with id, date, subject, sender, mailbox and account (each text line names its mailbox and account when the results can come from more than one), and flagColor when flagged with an explicit color (plus partial-coverage diagnostics when some mailboxes were skipped).
Do not use when: you have specific search criteria like subject/date/flags/flag color (use search-messages, which also supports filtering by flagColor) or already have an id and want the body (use get-message).
Like search-messages, use this to obtain the ids that read/mark/delete/move and batch tools require.
flag-message tool
Use when: flagging a single message (by id), optionally with a color (red/orange/yellow/green/blue/purple/gray).
Returns: a confirmation that the message was flagged (and the color, when applied).
Do not use when: flagging several at once (use batch-flag-messages) or removing a flag (use unflag-message). Get the id from search-messages or list-messages first.
Note: the color is applied on both routes — AppleScript sets the flag index, IMAP writes the equivalent $MailFlagBit0/1/2 keywords Mail.app reads — and search-messages' flagColor filter finds colored messages again later, so a color works as a cross-mailbox label.
unflag-message tool
Use when: removing the flag from a single message (by id).
Returns: a confirmation that the message was unflagged.
Do not use when: unflagging several at once (use batch-unflag-messages) or adding a flag (use flag-message). Get the id from search-messages or list-messages first.
batch-flag-messages tool
Use when: flagging multiple messages (1–100 ids) in one call, optionally with a color (red/orange/yellow/green/blue/purple/gray).
Returns: counts of how many were flagged and how many failed.
Do not use when: flagging just one (use flag-message) or removing flags (use batch-unflag-messages). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
Note: the color is applied on both routes — AppleScript sets the flag index, IMAP writes the equivalent $MailFlagBit0/1/2 keywords Mail.app reads — so a mixed batch of numeric and `imap:` ids all end up colored, and search-messages' flagColor filter finds the whole set again later regardless of mailbox.
batch-unflag-messages tool
Use when: removing flags from multiple messages (1–100 ids) in one call.
Returns: counts of how many were unflagged and how many failed.
Do not use when: unflagging just one (use unflag-message) or adding flags (use batch-flag-messages). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
resolve-message-id tool
Use when: you have `imap:` message id(s) and genuinely need the numeric Mail.app id(s) — e.g. for reply-to-message/forward-message, which are numeric-id only. NOTE: as of 2.10.0 you no longer need this to apply a flag COLOR — flag-message/batch-flag-messages write the color over IMAP directly via Mail.app's $MailFlagBit0/1/2 keywords, so a smart mailbox keyed on flag color matches an IMAP-flagged message. Each imap: id is resolved via its RFC822 Message-ID.
Returns: for each input id, its `numericId` (the AppleScript id) or null when it can't be resolved, plus the `messageId` used; and a `resolvedCount`.
Do not use when: your ids are already numeric (they pass straight through), or you don't need a color — flag/move/mark tools operate on `imap:` ids directly.
cb tool
get-message tool
Use when: reading the full body of one message whose id you already have (numeric or imap:…); set preferHtml to get the HTML body instead of plain text.
Returns: the message subject, body (plain text by default, HTML when preferHtml is true), its stable RFC Message-ID (rfcMessageId) for dedup/threading, and two dates: dateSent (the author's Date: header — survives a migration/re-import) and dateReceived (arrival in the mailbox; this is the one a migration resets).
Tip: pass the mailbox+account you got the id from (e.g. from search-messages) to fetch it directly — required for reliable reads of large folders like "Sent Items", which otherwise time out.
Do not use when: you don't yet have an id (use search-messages or list-messages first), you want the whole conversation (use get-thread), or you need the raw headers / Received: trace (use get-message-headers).
get-message-headers tool
Use when: you need a message's raw RFC 5322 headers — the author's Date: header (not the mailbox arrival time), Message-ID, In-Reply-To/References, the Received: hop trace, or any custom X- header — for a message whose id you already have (numeric or imap:…). Cheap: never downloads the body or attachments.
Returns: the raw header block (text), every header as ordered {name, value} pairs with folding undone, and the decoded key fields: date (ISO 8601, from the Date: header), dateHeader (verbatim), dateReceived (mailbox arrival time — the value a migration or re-import resets, so compare it with date), messageId, subject, from, to, cc, replyTo, inReplyTo, references[], received[], backend (imap or applescript), and warnings[] when a malformed block was repaired.
Tip: pass the mailbox+account you got the id from so a numeric id is fetched directly instead of scanning every mailbox.
Do not use when: you want the body (use get-message), the conversation (use get-thread), or only the Message-ID (get-message already returns rfcMessageId).
get-message-rfc822 tool
Use when: you need a message's complete original RFC 822 bytes exactly as the IMAP server stores them — for archival, forensic review, evidence preservation, or a verifiable .eml — together with the IMAP identity that links back to the source (uid, uidValidity, internalDate, flags, RFC822.SIZE) and a SHA-256 of the acquired bytes. IMAP-only: needs an imap: id from list-messages/search-messages on an IMAP-configured account.
Returns: the acquisition record (account, mailbox, uid, uidValidity, internalDate, flags, size, bytes, sha256, messageId, readMethod, backend, warnings) plus either contentBase64 — the bytes, base64-encoded, carried in structuredContent only — or savedPath when savePath was given. No decoding, charset conversion, line-ending change or MIME re-serialization is applied.
Do not use when: you want readable content (use get-message), only the headers (use get-message-headers), or one attachment (use fetch-attachment / save-attachment); or when the id is numeric — Mail.app's AppleScript bridge exposes its own rendering, not the stored bytes, so there is no AppleScript path.
Safety: strictly read-only against the mailbox — EXAMINE + BODY.PEEK[], so \\Seen is not set and no STORE/COPY/MOVE/APPEND/EXPUNGE is issued; no Mail.app, AppleScript or osascript involved. Inline results are capped at 6 MiB of raw bytes (maxBytes) to stay under the MCP stdio 10 MB message limit; larger messages need savePath, which creates exactly one new file (never overwrites, mode 0600) inside the configured allowed roots, up to 25 MiB.
get-thread tool
Use when: you have one message id and want the whole conversation it belongs to, oldest-first. With an imap: id it threads by References/Message-ID; otherwise it groups by normalized subject.
Returns: the thread's normalized subject and its messages (id, date, subject, sender, read state, mailbox and account; each text line names its mailbox and account when the messages can come from more than one).
Do not use when: you only need the single message (use get-message) or are searching by arbitrary criteria (use search-messages).
send-email tool
Use when: the user has explicitly confirmed they want to send a single email now to the given recipients (to/cc/bcc are arrays), optionally with attachments, a chosen transport, and caller-built threading headers (inReplyTo/references, SMTP only).
Returns: a confirmation naming the recipients and attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy).
Do not use when: the user wants to review first (use create-draft), is replying to or forwarding an existing message (use reply-to-message / forward-message — they derive recipients, threading and the quote, and also take attachments), or wants per-recipient personalized copies (use send-serial-email).
Safety: this SENDS real email immediately and it cannot be unsent — require explicit user confirmation of the exact recipients, subject, and body before calling. Prefer create-draft when there is any doubt.
send-serial-email tool
Use when: the user has confirmed a mail-merge — sending individually personalized copies to many recipients (max 100), with {{Key}} placeholders in subject/body replaced per-recipient from each recipient's variables. Recipients do not see each other.
Returns: a per-recipient sent/failed report with counts.
Do not use when: sending one message to a shared recipient list (use send-email) or saving for review (use create-draft).
Safety: this SENDS many real emails immediately and they cannot be unsent — require explicit user confirmation of the recipient list, the subject/body template, and the placeholder substitutions before calling.
update-saved-draft tool
Use when: editing an existing stored draft's subject, body, recipients or attachments after reviewing its current revision. IMAP-only: use an imap: id from the configured account's SPECIAL-USE Drafts mailbox. dryRun defaults to true and can show proposed changes.
Returns: the current preview and UIDVALIDITY/UID/MIME SHA-256; after an update the new draftId and preview, with the old-revision cleanup result reported separately.
Do not use when: creating a new message (use create-draft), editing a non-draft or an AppleScript-only account, or sending mail. Signed/encrypted, ambiguous or unpreviewable MIME is refused.
Safety: changes a stored draft only; never calls SMTP or sends mail. Obtain approval for the changes and pass the current preview's approvedSha256 and approvedUidValidity with dryRun=false. APPEND is confirmed before targeted removal of the old UID. UIDPLUS is required to avoid global EXPUNGE. Unknown APPEND and cleanup failures must be inspected, never blindly retried.
send-saved-draft tool
Use when: previewing a current stored IMAP Drafts message, then submitting exactly its approved revision through a matching configured SMTP identity. dryRun defaults to true.
Returns: full sender/To/Cc/Bcc/Reply-To, plain/HTML body and attachment preview with UIDVALIDITY/UID/MIME SHA-256; or explicit submitted/partial/submission_unknown/not_submitted status, accepted/rejected recipients and separate Sent-copy/cleanup results.
Do not use when: the draft is non-IMAP, signed/encrypted, ambiguous, unpreviewable or lacks a matching IMAP/SMTP login. No AppleScript fallback.
Safety: dryRun=false SENDS real email. Show the complete current preview and obtain explicit approval before passing its approvedSha256 and approvedUidValidity. Never retry a partial/unknown send or switch transport. Only full acknowledged acceptance permits revision-checked MOVE to Trash; MOVE support and unambiguous Trash are required for cleanup. Unverified cleanup is not confirmed removal. Repeated attempted revisions are guarded for this server process only; after restart reconcile with the provider before any retry. This tool, including preview, is disabled in no_send/read_only modes.
create-draft tool
Use when: composing an email the user should review in Mail.app before sending — the safe default for any new message (to/cc/bcc are arrays, optional attachments). With inReplyTo/references the draft is threaded: it is composed by this server and filed over IMAP into the account's Drafts mailbox (Mail.app's AppleScript cannot set those headers), so an IMAP account is required.
Returns: a confirmation that the draft was created, with recipients and attachment count; for a threaded draft also its Drafts mailbox, account and Message-ID (transport: imap).
Do not use when: the user has already confirmed they want it sent now (use send-email), or is replying to an existing message (use reply-to-message with send=false — it derives recipients, threading and the quote and takes attachments).
Safety: creates a draft only and sends nothing. The user can review/send in Mail.app, or use send-saved-draft with a fresh stored preview and explicit approval when matching IMAP/SMTP is configured.
reply-to-message tool
Use when: replying to an existing message by id, preserving its threading headers and quoting the original, optionally with attachments (same rules as send-email). Set replyAll for all recipients; set send=false to save as a draft instead of sending.
Returns: a confirmation that the reply was sent or saved as a draft, with the attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy).
Do not use when: composing a brand-new message (use send-email / create-draft) or forwarding to new recipients (use forward-message).
Safety: with the default send=true this SENDS real email immediately and cannot be unsent — require explicit user confirmation of the recipients and body, or pass send=false to let the user review.
forward-message tool
Use when: forwarding an existing message (by id) to new recipients (to is an array), with an optional body to prepend and optional extra attachments (same rules as send-email). Set send=false to save as a draft.
Returns: a confirmation that the message was forwarded or saved as a draft, with the attachment count; over SMTP, also whether a Sent-folder copy was filed (sentCopy).
Do not use when: replying to the sender/recipients (use reply-to-message) or composing a new message (use send-email / create-draft).
Safety: with the default send=true this SENDS real email immediately and cannot be unsent — require explicit user confirmation of the recipients and any prepended body, or pass send=false to let the user review.
mark-as-read tool
Use when: marking a single message (by id) as read.
Returns: a confirmation that the message was marked read.
Do not use when: marking several at once (use batch-mark-as-read) or marking unread (use mark-as-unread). Get the id from search-messages or list-messages first.
mark-as-unread tool
Use when: marking a single message (by id) as unread.
Returns: a confirmation that the message was marked unread.
Do not use when: marking several at once (use batch-mark-as-unread) or marking read (use mark-as-read). Get the id from search-messages or list-messages first.
delete-message tool
Use when: deleting a single message by id (moves it to Trash).
Returns: a confirmation that the message was deleted.
Do not use when: deleting several at once (use batch-delete-messages) or just filing it away (use move-message).
Safety: destructive — require explicit user confirmation, and search-messages/list-messages first to confirm you have the right id before deleting.
move-message tool
Use when: moving a single message (by id) into another mailbox/folder, e.g. archiving or filing.
Returns: a confirmation naming the destination mailbox.
Do not use when: moving several at once (use batch-move-messages) or deleting (use delete-message). Use list-mailboxes to confirm the destination name exists.
Safety: moves a real message between folders — confirm the destination mailbox, and search-messages/list-messages first to confirm the id.
batch-delete-messages tool
Use when: deleting multiple messages in one call (1–100 ids; moves them to Trash).
Returns: counts of how many were deleted and how many failed, plus the distinct reasons for any failures.
Do not use when: deleting just one (use delete-message) or filing messages away (use batch-move-messages).
Safety: destructive and applies to many messages at once — require explicit user confirmation, and search-messages/list-messages first to confirm every id is correct before deleting. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
batch-move-messages tool
Use when: moving multiple messages (1–100 ids) into the same destination mailbox/folder in one call, e.g. bulk archiving.
Returns: counts of how many were moved and how many failed, plus the distinct reasons for any failures.
Do not use when: moving just one (use move-message) or deleting (use batch-delete-messages). Use list-mailboxes to confirm the destination name exists.
Safety: moves many real messages at once — confirm the destination mailbox, and search-messages/list-messages first to confirm the ids. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from — not the destination) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
batch-mark-as-read tool
Use when: marking multiple messages (1–100 ids) as read in one call.
Returns: counts of how many were marked read and how many failed.
Do not use when: marking just one (use mark-as-read) or marking unread (use batch-mark-as-unread). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
batch-mark-as-unread tool
Use when: marking multiple messages (1–100 ids) as unread in one call.
Returns: counts of how many were marked unread and how many failed.
Do not use when: marking just one (use mark-as-unread) or marking read (use batch-mark-as-read). Get the ids from search-messages or list-messages first. Pass sourceMailbox/sourceAccount (the mailbox you listed the ids from) so each numeric id is pinned to that mailbox; an id that matches in several mailboxes is refused, not guessed.
list-attachments tool
Use when: enumerating a message's attachments (by id) to discover their names, MIME types, and sizes — typically before saving or fetching one.
Returns: each attachment's name, MIME type, and decoded size in bytes (what fetch-attachment returns), plus a count; sizeApproximate: true marks the rare IMAP size that is an estimate.
Do not use when: you want the bytes (use fetch-attachment for inline base64, or save-attachment to write to disk). Get the message id from search-messages or list-messages first.
save-attachment tool
Use when: writing one of a message's attachments to disk, by message id and attachmentName, into the savePath directory (saved as savePath/attachmentName).
Returns: a confirmation of the saved file path.
Do not use when: you don't know the attachment name (use list-attachments first) or want the bytes inline rather than on disk (use fetch-attachment).
Safety: writes a new file to disk and never overwrites — savePath must be an existing directory under ~/Downloads, ~/Desktop, ~/Documents, iCloud Drive, CloudStorage, a temporary directory, or a root named in APPLE_MAIL_MCP_ATTACHMENT_SAVE_ROOTS. Hidden files and folders, credential stores and other ~/Library folders are refused, and attachmentName may not contain path separators or '..'.
fetch-attachment tool
Use when: retrieving an attachment's raw bytes inline as base64 (by message id and attachmentName), e.g. to process its contents without keeping a file.
Returns: up to 3 MiB of decoded attachment bytes, base64-encoded, with its size and (for IMAP) MIME type. Larger attachments are refused; use save-attachment instead.
Do not use when: you don't know the attachment name (use list-attachments first) or you just want it saved to disk (use save-attachment).
Safety: leaves no file behind, but the AppleScript path is not disk-free — Mail writes the attachment into a private temp directory, which is read back and then deleted. Needs no Full Disk Access either way: Mail performs that write under the Automation grant, and this server never reads the mail store itself.
list-mailboxes tool
Use when: discovering the mailbox/folder paths (and unread/message counts) available in an account, e.g. before moving messages or searching a specific mailbox.
Returns: each mailbox's canonical account-relative path in `name`, unread/message counts, and a total count. Use the full path for nested mailboxes (for example `Archive/Inbox`); a top-level `Inbox` remains `Inbox`. A source that could not be read is NAMED — the result carries `partial: true` + `failedAccounts` and the list is a floor, not the complete set — and a listing Mail refused outright (e.g. an account that does not exist) returns an ERROR naming the accounts that do exist, never an empty list.
Do not use when: you want the messages inside a mailbox (use list-messages or search-messages) or the list of accounts (use list-accounts).
Note: Mail's local "On My Mac" mailboxes are not part of any account, so they are reported under the synthetic account label "On My Mac" — an unscoped call includes them, and `account: "On My Mac"` lists only them. They will not appear in list-accounts, which reports real accounts only.
get-unread-count tool
Use when: you only need the number of unread messages — INBOX by default, or scoped to one mailbox and/or account — without listing the messages themselves.
Returns: the unread count for the requested scope (INBOX when no mailbox is given). If a source cannot be read the result carries `partial: true` + `failedAccounts`, and a total AppleScript failure returns an ERROR — a plain count is never a disguised transport failure.
Do not use when: you need the actual unread messages and their ids (use list-messages with unreadOnly, or search-messages with isRead=false) or broader totals across every mailbox (use get-mail-stats).
create-mailbox tool
Use when: creating a new mailbox/folder in an account.
Returns: a confirmation that the mailbox was created.
Do not use when: renaming an existing one (use rename-mailbox) or deleting one (use delete-mailbox). Use list-mailboxes to see what already exists.
Safety: creates a real folder in the mail account — confirm the name and target account first.
delete-mailbox tool
Use when: deleting a mailbox/folder from an account.
Returns: a confirmation that the mailbox was deleted.
Do not use when: renaming it (use rename-mailbox) or deleting messages within it (use delete-message / batch-delete-messages).
Safety: destructive — deleting a mailbox removes the folder and any messages it contains. Require explicit user confirmation and use list-mailboxes first to confirm the exact name.
rename-mailbox tool
Use when: renaming an existing mailbox/folder from oldName to newName within an account.
Returns: a confirmation naming the old and new mailbox names.
Do not use when: creating a new folder (use create-mailbox) or deleting one (use delete-mailbox). Use list-mailboxes to confirm the current name.
Safety: renames a real folder in the mail account — confirm oldName matches exactly (case-sensitive) before calling.
list-smart-mailboxes tool
Use when: listing Apple Mail smart mailboxes (criteria-based virtual views), including on German-localized macOS where AppleScript's smart-mailbox terms do not compile.
Returns: each smart mailbox's name and a short criteria summary.
Do not use when: listing real folders/mailboxes (use list-mailboxes).
create-smart-mailbox tool
Use when: creating an Apple Mail smart mailbox (a criteria-based virtual view) that matches a sender, subject, or body substring — works on German-localized macOS where AppleScript's smart-mailbox terms fail.
Returns: confirmation of creation, or a note that a smart mailbox with that name already existed.
Do not use when: creating a real folder (use create-mailbox).
Safety: edits Apple Mail's SyncedSmartMailboxes.plist directly. It backs the file up (.bak) and writes atomically, and never rewrites your existing smart mailboxes. It does not quit Mail — quit Mail first for reliable results, since a running Mail may not show the new smart mailbox until relaunched and can overwrite plist edits it did not make.
delete-smart-mailbox tool
Use when: deleting an Apple Mail smart mailbox (virtual view) by name.
Returns: confirmation of deletion.
Do not use when: deleting a real folder (use delete-mailbox) or messages (use delete-message / batch-delete-messages).
Safety: destructive — removes the smart mailbox from Apple Mail's SyncedSmartMailboxes.plist. It backs the file up (.bak) and writes atomically, preserving every other smart mailbox, but the removal is not undoable in-app. Confirm the exact name with list-smart-mailboxes first, and quit Mail first for reliable results.
create-newsletter-smart-mailboxes tool
Use when: auto-discovering newsletter/bulk senders in your INBOX(es) and (optionally) creating a dedicated smart mailbox per sender (named "NL: <sender>"). Defaults to a safe dry run that only proposes.
Returns: the proposed or created smart mailboxes with their match scores.
Do not use when: you already know the exact sender (use create-smart-mailbox) or want real folders (use create-mailbox).
Safety: with dryRun=false it edits Apple Mail's SyncedSmartMailboxes.plist (backed up, atomic, existing entries preserved) and can create many smart mailboxes at once — review a dryRun first. It scans up to ~400 recent messages per inbox via AppleScript, which can be slow on large mailboxes.
list-accounts tool
Use when: discovering the configured Mail accounts (e.g. iCloud, Gmail) so you can pass an exact account name to other tools.
Returns: the account names and a count. If the AppleScript transport fails (timeout / wedged Mail / missing Automation grant) this returns an ERROR rather than an empty list — an empty list always means Mail really has no accounts.
Do not use when: you want the folders within an account (use list-mailboxes) or messages (use list-messages / search-messages).
get-account-settings tool
Use when: you need the settings of one Mail account — full name, email addresses, enabled, server and port, whether deleted mail goes to the Trash, when the Trash/Junk/Sent are emptied, which IMAP folders are kept on the server, and its outgoing (SMTP) server.
Returns: the account name and a settings object. The password is never read or returned.
Do not use when: you only need the account names (use list-accounts).
set-account-settings tool
Use when: the user asked to change a setting of a Mail account: turn it on or off (enabled), its full name, include it when getting new mail, move deleted messages to the Trash, empty Trash/Junk/Sent on quit, or the IMAP flags (store drafts, junk, sent, deleted on the server; compact mailboxes when closing).
Returns: the settings read back, and any setting Mail refused.
Do not use when: the change involves a password, server, port, user name or the account's email addresses — those cannot be changed with this tool.
Safety: confirm with the user first. Turning an account off stops its mail arriving and sending; moveDeletedMessagesToTrash: false makes every later delete permanent; emptyTrashOnQuit/emptyJunkOnQuit/emptySentOnQuit: true purge those folders; storeSentOnServer/storeDeletedOnServer (and the other store…OnServer flags): false drop the server's copies.
list-rules tool
Use when: discovering the Mail rules that exist and whether each is enabled or disabled, e.g. before enabling/disabling/deleting one.
Returns: each rule's name and enabled/disabled state.
Do not use when: you want to change a rule (use enable-rule / disable-rule / create-rule / delete-rule).
enable-rule tool
Use when: turning on an existing Mail rule by name.
Returns: a confirmation that the rule was enabled.
Do not use when: turning a rule off (use disable-rule), creating one (use create-rule), or deleting one (use delete-rule). Use list-rules to confirm the exact rule name.
disable-rule tool
Use when: turning off an existing Mail rule by name (without deleting it).
Returns: a confirmation that the rule was disabled.
Do not use when: turning a rule on (use enable-rule), creating one (use create-rule), or removing it permanently (use delete-rule). Use list-rules to confirm the exact rule name.
create-rule tool
Use when: creating a new Mail rule with one or more conditions (field/operator/value) and at least one action (markRead, markFlagged, delete, or moveTo). Set matchAll to require all conditions vs. any.
Returns: a confirmation naming the rule and its condition count.
Do not use when: toggling an existing rule (use enable-rule / disable-rule) or removing one (use delete-rule). Use list-rules to avoid duplicating an existing rule.
Safety: creates a rule that automatically acts on real mail (including delete/move actions) on an ongoing basis — confirm the conditions and actions with the user before calling.
delete-rule tool
Use when: permanently removing a Mail rule by name.
Returns: a confirmation that the rule was deleted.
Do not use when: you only want to pause it (use disable-rule) or create one (use create-rule).
Safety: destructive — the rule is removed permanently. Require explicit user confirmation and use list-rules first to confirm the exact name.
search-contacts tool
Use when: looking up a person in Contacts by name, organization, nickname, or email to find their email address(es)/phone(s) before composing or sending mail. Reads the macOS Contacts database directly (needs Full Disk Access; does NOT require Contacts.app to be running or an Automation / Apple-Events grant).
Returns: matching contacts with their names, email addresses, and phone numbers.
Do not use when: searching email messages (use search-messages) — this queries Contacts, not the mailbox.
save-template tool
Use when: creating a reusable email template (name, subject, body, optional default to/cc), or updating one by passing its existing id. Subject/body may contain placeholders for later use.
Returns: the saved template's name and id (reuse the id with use-template / get-template / delete-template).
Do not use when: composing a one-off message (use create-draft / send-email) or filling in a template to send (use use-template).
Safety: writes the template to the on-disk templates store (APPLE_MAIL_MCP_TEMPLATES_FILE) and persists across restarts; passing an existing id overwrites that template.
list-templates tool
Use when: discovering the saved email templates and their ids, e.g. before using or editing one.
Returns: each template's id, name, and subject.
Do not use when: you want a single template's full body (use get-template) or want to apply one (use use-template).
get-template tool
Use when: reading the full contents of one saved template by id — its name, subject, default to/cc, and body.
Returns: the template's name, subject, default recipients, and body text.
Do not use when: you don't have the id (use list-templates first) or want to apply the template into a draft (use use-template).
delete-template tool
Use when: permanently removing a saved email template by id.
Returns: a confirmation that the template was deleted.
Do not use when: you only want to view it (use get-template) or update it (use save-template with the existing id).
Safety: destructive — removes the template from the on-disk store permanently. Require explicit user confirmation and use list-templates first to confirm the id.
use-template tool
Use when: composing a new draft from a saved template (by id), optionally overriding the recipients, subject, or body. Creates a draft in Mail.app for the user to review and send.
Returns: a confirmation that a draft was created from the template.
Do not use when: you want to inspect the template without composing (use get-template) or send immediately without a draft (use send-email).
health-check tool
Use when: doing a quick check that Mail.app is reachable and the server's basic checks pass.
Returns: an overall healthy/unhealthy status with a pass/fail line per check.
Do not use when: you need detailed permission/account/IMAP/SMTP diagnostics with remediation steps (use doctor).
doctor tool
Use when: troubleshooting setup problems — diagnoses Mail.app automation permissions, account state, and the IMAP/SMTP backends with actionable remediation messages.
Returns: a detailed diagnostic report (formatted text plus structured checks).
Do not use when: you just want a quick up/down status (use health-check) or message counts (use get-mail-stats).
get-mail-stats tool
Use when: you want aggregate mailbox statistics — total and unread message counts, recently-received counts (last 24h/7d/30d), and (for the all-accounts path) a per-account breakdown.
Returns: totals, unread counts, recent-activity counts, and per-account figures.
Do not use when: you only need a single unread number (use get-unread-count) or want to list the messages themselves (use list-messages / search-messages).
get-sync-status tool
Use when: checking whether Mail.app is running and actively syncing, e.g. to explain why new mail hasn't appeared yet.
Returns: whether Mail.app is running and whether sync activity was detected.
Do not use when: you need message counts (use get-mail-stats) or a full setup diagnosis (use doctor).
triage-inbox prompt
Review unread mail and propose actions (archive, reply, flag, delete).
compose-reply prompt
Draft a reply to a specific message in a chosen tone.
weekly-summary prompt
Summarize the week's mail activity into a short briefing.
accounts resource
All configured Mail accounts (name, email, enabled state).
templates resource
Saved, reusable email templates.
mailboxes resource
Mailboxes/folders for a given account.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure6.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 63 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 63 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 63 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 63 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 63 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 63 capabilities; 59 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    23 of 63 capabilities touch files; 36 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    25 of 63 capabilities call the network; 34 more call code the scanner could not follow, where it may happen
Where the code is: 63 handlers in 3 files at commit b187c1b6f081
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chainnot checked
  • Dependency manifests
    1 manifest: package.json
  • Lockfiles checked against OSV
    Nothing could be resolved to exact versions; 2 not resolved: package.json: dependency ranges declared here were not resolved against a lockfile and were not checked; pnpm-lock.yaml: lockfile format is not supported by this analyzer, dependencies were not checked
  • MCP SDK version
    @modelcontextprotocol/sdk ^1.29.0
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 63 capabilities; 59 more call code the scanner could not follow, where it may happen
  • Environment variables
    32 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read (7 only in code no tool reaches)
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
Transportstdio
Sign-innot checked needs the live server
MCP SDK@modelcontextprotocol/sdk ^1.29.0
Servers in the code5 (apple-mail, test, resource-test, t, schema-contract)

The project's own security

Security policyyes SECURITY.md
Private reportingthe policy does not name a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-13
Signed releasesnot checked yet

Install it

For the server's own npm package apple-mail-mcp. Pin a version ([email protected]) so an update cannot change the tools without you noticing.

Claude Desktop claude_desktop_config.json
{
  "mcpServers": {
    "apple-mail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "apple-mail-mcp"
      ]
    }
  }
}
Cursor ~/.cursor/mcp.json
{
  "mcpServers": {
    "apple-mail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "apple-mail-mcp"
      ]
    }
  }
}
VS Code .vscode/mcp.json
{
  "servers": {
    "apple-mail-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "apple-mail-mcp"
      ]
    }
  }
}
Claude Code terminal
claude mcp add apple-mail-mcp -- npx -y apple-mail-mcp

Where it is published

npm packageapple-mail-mcp
Downloads24 605 a month on npm
Listed in4 catalogs (github_search, glama, mcp_toplist, npm)
LicenseMIT
Created2026-01-06
Topicsapple apple-mail applescript claude codex email macos mcp model-context-protocol

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.