mcp-icloud-mail
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-icloud-mail summarize my unread iCloud Mail from today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-icloud-mail
iCloud メールを Claude などの AI から読むだけの MCP サーバーです。IMAP とアプリ用パスワードで接続します。
A read-only MCP server for iCloud Mail over IMAP, using an app-specific password.
できること
ツール | 内容 |
| フォルダの一覧と、件数・未読数 |
| フォルダの新しいメールの一覧(件名・差出人・日時) |
| 差出人・宛先・件名・本文・期間・未読で検索 |
| 1通の本文(テキスト)と添付ファイル名を読む |
送信・削除・移動・既読にする操作はありません。フォルダは読み取り専用で開くので、読んでも未読のままです。
添付ファイルの中身は取り出しません(ファイル名・種類・サイズだけ)。
Related MCP server: iCloud MCP
準備
Apple アカウントで 2 ファクタ認証をオンにする。
account.apple.com にサインインし、「サインインとセキュリティ」→「App 用パスワード」でパスワードを作る(
xxxx-xxxx-xxxx-xxxxの形)。Node.js 20 以上を入れる。
インストール
このパッケージは npm に未公開のため、GitHub から clone してビルドします。
git clone https://github.com/spa77k/mcp-icloud-mail.git
cd mcp-icloud-mail
npm ci
npm run buildビルドすると dist/index.js ができます。設定ではこのファイルを絶対パスで指定します。
設定
以下の /path/to/mcp-icloud-mail は clone したディレクトリの絶対パス(pwd で確認できます)に置き換えてください。環境変数はプレースホルダのままにせず、自分の値に置き換えます。
Claude Code
claude mcp add icloud-mail -e ICLOUD_EMAIL=you@icloud.com -e ICLOUD_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx -- node /path/to/mcp-icloud-mail/dist/index.jsClaude Desktop など(JSON で設定するクライアント)
{
"mcpServers": {
"icloud-mail": {
"command": "node",
"args": ["/path/to/mcp-icloud-mail/dist/index.js"],
"env": {
"ICLOUD_EMAIL": "you@icloud.com",
"ICLOUD_APP_PASSWORD": "xxxx-xxxx-xxxx-xxxx"
}
}
}
}環境変数 | 内容 |
| iCloud メールアドレス( |
| 準備で作った App 用パスワード |
使い方の例
「今日届いた未読メールを要約して」
「Amazon からの先月のメールを探して」
「受信箱の最新10件を一覧にして」
注意
App 用パスワードは iCloud メール・連絡先・カレンダーなどにアクセスできます。設定ファイルを人に見せたり、リポジトリに入れたりしないでください。漏れたら account.apple.com でそのパスワードを取り消してください。
メール本文はそのまま AI に渡ります。知らない人からのメールに「〇〇を実行して」などの指示が書かれていても、AI がそれに従わないよう、ほかのツール(送信やファイル操作など)と組み合わせるときは操作の確認をオンにしておいてください。
Apple アカウントのパスワードを変えると、App 用パスワードはすべて無効になります。作り直して設定し直してください。
開発
npm ci
npm run build
ICLOUD_EMAIL=you@icloud.com ICLOUD_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx npx @modelcontextprotocol/inspector node dist/index.jsLicense
MIT
Available Tools
4 toolsget_messageARead-only
Read one message by UID: headers, plain-text body and attachment list. Does not mark it as read.
Inputs: uid (required), mailbox, maxChars.
list_mailboxesARead-only
List all iCloud Mail mailboxes (folders) with message and unread counts.
Inputs: no named parameters.
list_messagesARead-only
List the most recent messages in a mailbox (newest first). Returns headers only.
Inputs: limit, mailbox.
search_messagesARead-only
Search messages in a mailbox. All conditions are combined with AND. Returns headers only, newest first.
Inputs: to, from, text, limit, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct resource and action: list_mailboxes enumerates folders, list_messages lists a mailbox's headers, search_messages queries within a mailbox, and get_message fetches a single message by UID. Boundaries between list_messages and search_messages are clear since one is unfiltered listing and the other is a conditional search.
All four tools follow a strict verb_noun snake_case pattern: list_mailboxes, list_messages, search_messages, get_message. The verb choice is also semantically precise (list vs. search vs. get).
Four tools is a lean but coherent set for a read-only mail client, covering folder listing, message listing, search, and retrieval. It sits slightly under the ideal scope, but nothing is redundant or missing for the read path.
The surface is read-only: there is no send/compose, delete, move, or flag (mark read/unread) operation, which are core mail lifecycle actions. Reading is well covered (mailboxes, list, search, fetch by UID), but agents cannot act on messages beyond inspection.
Related MCP Connectors
Connect Gmail, iCloud Mail, Outlook, Yahoo Mail, Fastmail and other IMAP inboxes to ChatGPT, Claude and compatible AI assistants. Find emails by meaning across languages with semantic search. Ask AI to find customer conversations, summarize deadlines and draft follow-ups. Give a sales rep access to a shared outreach inbox or bring email into a compatible CRM. Share an iCloud custom-domain inbox with teammates without their own Apple ID or iCloud+ plan. Search results may be incomplete or stale; separate permissions control mail actions.
Let your agent into iCloud Mail, calendar and contacts. It gets actions, never your password.
Your mailboxes in ChatGPT and Claude: Gmail, iCloud, Fastmail, any IMAP. Passwords stay yours.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with read-only access to iCloud mail and calendar via IMAP and CalDAV, with opt-in write support for sending mail, managing events, and contacts.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables an AI assistant to read and search iCloud mail, draft messages (never sent), manage calendar events with a preview/commit gate, and look up contacts via IMAP, CalDAV, and CardDAV.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to securely access IMAP mailboxes with read-focused tools for searching, reading, listing messages, and creating drafts, while deliberately preventing sending or deleting emails.MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to search, read, flag, move, draft, and send email on an iCloud account over IMAP and SMTP, including attachments and threaded replies. Message content is treated as data, and sending can be gated or omitted for safer automation.MIT