Mail.app

io.github.p-l-taPublished by GitHub account p-l-tav1.3.5Updated Oct 24, 2026

Search, read, send, and manage email via macOS Mail.app across all configured accounts.

Overview

AI-generated overview

Local MCP server that lets an assistant search, read, send and manage email through macOS Mail.app across all configured accounts.

What you can do
  • Search and read mail: filter messages via Mail's Envelope Index, read full bodies, list accounts, mailboxes, recent messages and senders.
  • Compose and reply: send new email from a configured account or reply to an existing message.
  • Organize messages: set read and flagged status, move messages between mailboxes, trash them, bulk mark as read, or empty a mailbox.
  • Manage mailboxes and subscriptions: create folders and extract unsubscribe links from a message.
When to use it
Useful when you work on a Mac with Mail.app set up and want an assistant to triage, search, summarize or draft and send mail across your accounts without copying messages elsewhere.
Requirements
macOS with Mail.app and at least one configured account; Node.js 20+; a stdio MCP host such as Claude Desktop. The host app needs Full Disk Access and Automation permission for Mail, which the server process inherits.
Before you install
The server can send, reply, move, trash and permanently empty mailboxes, so destructive or outgoing actions are possible. It reads Mail's local database and drives Mail.app via AppleScript, and message content is passed to the MCP host as tool responses. Granting Full Disk Access and Automation is broad; limit which tools the host may call.

Installation

In SourceWeft

  1. Open Mail.app in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

mail-mcp

MCP server that gives Claude (and other MCP hosts) full access to Mail.app on macOS — search, read, send, reply, flag, move, and more — across every account configured in Mail.app (iCloud, Exchange, IMAP, etc.).

Prerequisites

  • macOS (Mail.app required)
  • Node.js 20+
  • An MCP host: Claude Desktop, Amazon Quick, or any stdio MCP client

Installation

Claude Desktop — one-click install (recommended)

  1. Download mail-mcp.mcpb from the latest release
  2. Double-click the .mcpb file — Claude Desktop installs it automatically
  3. Grant the required macOS permissions (see below)

Manual / Amazon Quick / other hosts

bash
npx @p-l-ta/mail-mcp

Or install globally:

bash
npm install -g @p-l-ta/mail-mcpmail-mcp

Point your MCP host at the mail-mcp binary (stdio transport). Example config:

json
{  "mcpServers": {    "mail-app": {      "command": "npx",      "args": ["@p-l-ta/mail-mcp"]    }  }}

Required macOS permissions

Grant these to the application that runs the MCP host (Claude Desktop, Amazon Quick, etc.):

PermissionWhere to grant
Full Disk AccessSystem Settings → Privacy & Security → Full Disk Access
Automation → MailSystem Settings → Privacy & Security → Automation

The MCP server process inherits permissions from the host application that launches it.

Tools

ToolDescription
search_emailsSearch messages via the Envelope Index database with rich filters
read_emailRead the full body of a message by its RFC message-id
list_accounts_and_mailboxesList all configured accounts and mailboxes with unread counts
list_recentList recent messages in a specific mailbox
list_sendersGrouped summary of senders with message and unread counts
send_emailSend a new email from one of the configured accounts
reply_to_emailReply to an existing message by RFC message-id
set_message_flagsSet read and/or flagged status on a message
move_emailMove a message to a different mailbox
trash_emailMove a message to Deleted Messages
create_mailboxCreate a new mailbox/folder in an account
bulk_mark_readMark all messages in a mailbox and/or from a sender as read
get_unsubscribe_linkExtract unsubscribe URLs from a message's headers and body
empty_mailboxDelete every message in a mailbox at once (Junk, Trash, etc.)

How it works

  • Search & read — queries Mail's own Envelope Index SQLite database directly for fast, structured results across all accounts
  • Actions (send, reply, flag, move, trash) — driven by AppleScript automation against Mail.app, so they work even for accounts where messages aren't stored as local files

Development

bash
npm installnpm run dev          # tsx watch — live reloadnpm test             # vitest unit testsnpm run build        # compile TypeScript → dist/npm run mcpb         # build Claude Desktop extension → build/mail-mcp.mcpb

Interactive MCP testing:

bash
npm run buildnpx @modelcontextprotocol/inspector node dist/server.js

Privacy Policy

mail-mcp is a local MCP server that runs entirely on your Mac. It has no backend, no telemetry, and makes no network requests of its own.

What it accesses:

  • Mail.app's Envelope Index database (~/Library/Mail/) — read-only, used for search queries
  • Mail.app via AppleScript — to read message bodies, send mail, flag, move, and trash messages

What it does NOT do:

  • Collect, store, or transmit any data outside your Mac
  • Connect to any external server or API
  • Log message content anywhere

All email data stays on your device and is only passed to the MCP host (Claude Desktop or another client) as part of normal tool responses. You control exactly which tools Claude can invoke.

License

MIT

Source: README.md at commit 6357363

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.3.5LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts