This file provides guidance for AI agents (Claude, etc.) when using this MCP server.
This MCP server enables AI assistants to interact with Apple Mail on macOS via AppleScript. All operations are local - no data leaves the user's machine.
⚠️ Work in Progress - Many tools are stubbed and not yet functional.
query for general text search across subject, sender, contentfrom to filter by sender email addresssubject for subject line matchingmailbox and account to narrow search scopeto must be an array of email addresses, even for single recipientbody is plain text by defaultaccount to send from a specific accountidsearch-messages or list-messagesid and destination mailbox nameaccount if mailbox is in a specific accountmailbox for specific folder countlist-accounts to see available accountsaccount parameter to target specific account| Error | Likely Cause |
|---|---|
| "Mail.app not responding" | Mail.app frozen or not running |
| "Message not found" | Message ID is invalid or message was deleted |
| "Permission denied" | macOS automation permission needed |
| "Account not found" | Account name doesn't match exactly |
1. list-accounts → get available accounts
2. search-messages from="boss@company.com" → find emails from boss
3. get-message id="..." → read the full content
1. get-message id="..." → read original
2. send-email to=["sender@..."] subject="Re: ..." body="..."
1. search-messages isRead=false → find unread
2. For each: get-message, then move-message to appropriate folder