About Apple Mail MCP
Apple Mail MCP is an MCP server published by imdinu in the Developer Tools category: apple Mail MCP server with full-coverage FTS5 body search. Reliable on large mailboxes where AppleScript-based servers timeout. Conduid read 8 tools from its source: get_attachment, get_email, get_email_attachment, get_email_links, get_emails, list_accounts and 2 more. It is published to PyPI as apple-mail-mcp and runs with uvx.
The repository has 77 stars and 35 forks, is licensed GPL-3.0, and its last commit was on 1 Dec 2026. The latest release is v0.5.0 (14 Sep 2026). It follows v0.4.3 (30 Jul 2026), and the 5 most recent releases go back to v0.4.0 (28 May 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, macos, fts5, jxa, email and apple-mail.
Install
uvx apple-mail-mcppip install apple-mail-mcpgit clone https://github.com/imdinu/apple-mail-mcpTools (8)
get_attachmentDEPRECATED: Use get_email_attachment() or get_email_links().| Parameter | Type | Description |
|---|---|---|
| account | string | Account name (optional) |
| filename | string | Attachment filename to extract. If omitted, returns links instead. |
| mailbox | string | Mailbox name (optional) |
| message_id * | integer | The email's unique ID |
get_emailGet a single email with full content.| Parameter | Type | Description |
|---|---|---|
| account | string | Optional hint (speeds up lookup, not required) |
| mailbox | string | Optional hint (speeds up lookup, not required) |
| message_id * | integer | The email's unique ID (from search results) |
get_email_attachmentExtract a file attachment from an email and save to disk.| Parameter | Type | Description |
|---|---|---|
| account | string | Account name (optional, speeds up lookup) |
| filename * | string | Attachment filename to extract |
| mailbox | string | Mailbox name (optional, speeds up lookup) |
| message_id * | integer | The email's unique ID |
get_email_linksExtract hyperlinks from an email's HTML content.| Parameter | Type | Description |
|---|---|---|
| account | string | Account name (optional, speeds up lookup) |
| mailbox | string | Mailbox name (optional, speeds up lookup) |
| message_id * | integer | The email's unique ID |
get_emailsGet emails from a specific mailbox with optional filtering.| Parameter | Type | Description |
|---|---|---|
| account | string | Account name. Uses APPLE_MAIL_DEFAULT_ACCOUNT env var or first account if not specified. |
| filter | any | Filter type: - "all": All emails (default) - "unread": Only unread emails - "flagged": Only flagged emails - "today": Emails received today - "last_7_days": Emails received in the last 7 days - "this_week": Alias for last_7_days |
| limit | integer | Maximum number of emails to return (default: 50) |
| mailbox | string | Mailbox name. Uses APPLE_MAIL_DEFAULT_MAILBOX env var or "Inbox" if not specified. |
list_accountsList all configured email accounts in Apple Mail.list_mailboxesList all mailboxes for an email account.| Parameter | Type | Description |
|---|---|---|
| account | string | Account name. Uses APPLE_MAIL_DEFAULT_ACCOUNT env var or first account if not specified. |
searchSearch emails across all accounts and mailboxes.| Parameter | Type | Description |
|---|---|---|
| account | string | Filter to specific account name (optional). |
| after | string | Include only emails on/after this date (YYYY-MM-DD). |
| before | string | Exclude emails on/after this date (YYYY-MM-DD). |
| exclude_mailboxes | array | Mailboxes to exclude (default: ["Drafts"]). A name excludes every mailbox it matches — full path, folder name, and everything below either. |
| highlight | boolean | Wrap matched terms in **markers** in subject and content_snippet (default: False). |
| limit | integer | Maximum results (default: 20) |
| mailbox | string | Filter to specific mailbox (optional). A full path ("Archive/2025"), a parent holding no mail itself ("[Gmail]" searches its subfolders), or a bare folder name ("2025") if only one mailbox has it. Case-insensitive. |
| offset | integer | Skip first N results for pagination (default: 0) |
| query * | string | Search keywords (2-3 specific terms work best). Do NOT use long natural-language phrases. |
| scope | any | Where to search: - "all": Subject + sender + body (default, recommended) - "subject": Subject line only - "sender": Sender name/email only - "body": Body text only - "attachments": Attachment filenames |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 651 words.
- ✓License declaredThe repository declares the GPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 19 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/apple_mail_mcp/server.py:1677
- Starts other programs
- 2 callssrc/apple_mail_mcp/executor.py:109, src/apple_mail_mcp/executor.py:187
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 3 callssrc/apple_mail_mcp/cli.py:679, src/apple_mail_mcp/server.py:186, src/apple_mail_mcp/server.py:1287
- Lockfile
- uv.lock
Pattern matches on the source text of 19 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 651 words, fetched a month ago. The original in the repository is authoritative.
Read full README