jxa-mail-mcp

v0.4.0
jxa-mail-mcp Checked 2 days ago Published 10 months ago

Fast MCP server for Apple Mail with FTS5 search index

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_accounts

List all configured email accounts in Apple Mail. Returns: List of account dictionaries with 'name' and 'id' fields. Example: >>> list_accounts() [{"name": "Work", "id": "abc123"}, {"name": "Personal", "id": "def456"}]

list_mailboxes

List all mailboxes for an email account.

ParameterTypeDescription
accountAccount name. Uses JXA_MAIL_DEFAULT_ACCOUNT env var or first account if not specified.

get_emails

Get emails from a mailbox with optional filtering. Retrieves emails with standard properties: id, subject, sender, date_received, read status, and flagged status.

ParameterTypeDescription
accountAccount name. Uses JXA_MAIL_DEFAULT_ACCOUNT env var or first account if not specified.
filterstringFilter type: - "all": All emails (default) - "unread": Only unread emails - "flagged": Only flagged emails - "today": Emails received today - "this_week": Emails received in the last 7 days
limitintegerMaximum number of emails to return (default: 50)
mailboxMailbox name. Uses JXA_MAIL_DEFAULT_MAILBOX env var or "Inbox" if not specified.

get_email

Get a single email with full content. Retrieves complete email details including the full body text. Use this after finding an email via search to read its content.

ParameterTypeDescription
message_id *integerThe email's unique ID (from search results)
accountAccount name (optional, helps find message faster)
mailboxMailbox name (optional, helps find message faster)