Skip to main content
Glama
apple-mail-mcp

apple-mail-mcp

by TrevorIkky

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Read Apple Mail on macOS.

Start with list_accounts, then list_messages for headers, then read_messages (or read_by_position) for the few bodies you actually need - never fetch bodies in bulk. On a large mailbox prefer imap_search when it is configured.

The only write available is create_draft, which saves a draft for the person to review. Nothing here sends mail.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_accountsA

List the mail accounts configured in Mail.app.

list_mailboxesA

List the mailboxes (folders) of one account.

Names differ between accounts - INBOX on some, Inbox on others - so check here before guessing.

list_messagesA

List message headers, newest first, without fetching bodies.

scan bounds how many of the newest messages are examined; limit caps how many matches come back. Filters are case-insensitive substrings. Positions in this result feed read_by_position.

read_messagesA

Read full bodies for specific message ids from list_messages.

Locates them by scanning the newest scan messages, so raise scan for older mail. If this times out, use read_by_position instead.

read_by_positionB

Read full bodies by position in the mailbox, where 1 is the newest.

list_messages returns messages in this order. Prefer this on mailboxes with long quoted threads - Sent, typically - where locating a message by id is slow enough to time out.

search_messagesA

Find messages whose sender or subject contains query, case-insensitively.

search_body: true also searches bodies and returns an excerpt, which is much slower - keep scan small. For real search on a large mailbox, use imap_search.

create_draftB

Save a new message as a draft in Mail.app. It is never sent.

account picks the sending address (an account name from list_accounts). The person reviews and sends the draft themselves.

imap_mailboxesA

List IMAP folders for a configured account.

account is a key under "accounts" in ~/.config/apple-mail-mcp/config.json, not necessarily the name Mail.app shows.

imap_searchA

Server-side search - fast even on mailboxes too large for AppleScript.

since takes the IMAP date form, e.g. "01-Oct-2026". Returns headers plus the UIDs to pass to imap_fetch. Read-only: nothing is marked read.

imap_fetchC

Fetch full message bodies by UID, as returned by imap_search.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 10 tools

Disambiguation3/5

There are two parallel surfaces, AppleScript and IMAP, causing overlapping pairs such as list_mailboxes/imap_mailboxes, list_messages/search_messages/imap_search, and read_messages/read_by_position/imap_fetch. The descriptions give useful guidance and fallback advice, but the boundaries are not as crisp as ideal.

Naming Consistency4/5

Most tools use lower_snake_case action-oriented names like list_accounts, read_messages, search_messages, and create_draft. The imap_ prefixed family is still readable and groupable, though imap_mailboxes is noun-like rather than following the same verb_noun pattern.

Tool Count5/5

Ten tools is well within a reasonable range for an email integration. The AppleScript and IMAP paths each add tools for distinct operational needs rather than padding the surface unnecessarily.

Completeness3/5

The set covers account/mailbox discovery, listing/searching/reading messages, and draft creation, but omits sending, moving/deleting/marking messages, attachment operations, and draft editing. The draft-only design may be intentional safety, but it leaves notable gaps in the mail lifecycle.