list_mailboxes
Folder hierarchy with message counts
How to use it
list_mailboxes is exposed by the Apple Mail MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the list_mailboxes tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Apple Mail MCP
claude mcp add apple-mail -- uvx mcp-apple-mailOther tools in Apple Mail MCP (23)
Send new emails (plain text or HTML body)
Create new mailboxes (supports nested paths)
Build a rich HTML .eml draft, open it in Mail, and optionally save it to Drafts
Export single emails or mailboxes to TXT/HTML
Forward with optional message, CC/BCC
Find sent emails that haven't received a reply
Conversation thread view
Dashboard with unread counts, folders, and recent emails
Unread counts per mailbox or per-account summary
Identify emails that likely need your response
Email analytics (volume, top senders, read ratios)
Analyse most frequent senders by count or domain
Interactive UI dashboard (requires mcp-ui-server)
List all configured Mail accounts
List attachments with names and sizes
List emails with account/read-status filtering and optional content preview
Create, list, send, and delete drafts
Soft delete, permanent delete, empty trash (with dry-run)
Move/archive emails with filters (subject, sender, date, read status, dry-run)
Reply or reply-all with optional HTML body
Save attachments to disk
Unified search — subject, sender, body text, dates, attachments, flag status/color, cross-account
Mark read/unread, flag/unflag (optional flag color) — by filters or message IDs