AutomataGet Started

iCloud MCP server, read-only and scoped by folder

Let Claude, Cursor, Grok Bot, and Meta Muse search and read iCloud Mail over IMAP, only in the folders you choose. It signs in with an Apple app-specific password and cannot send mail.

100% Free· Open source

Token scope

Enforced server-side

iCloud folders

imap.mail.me.com · app-specific password · folder allowlist

  • Clients

    iCloud folder

    Read
  • Receipts

    iCloud folder

    Read
  • INBOX

    iCloud inbox

    Blocked
  • Family

    iCloud folder

    Blocked

Enabled tools

  • list-emails
  • search-emails
  • read-email
  • get-email-attachment
  • create-email-draft

Out-of-scope folder refused

Family · not in this token's folders

The basics

What is an iCloud MCP server?

An iCloud MCP server connects your iCloud Mail mailbox to AI assistants through the Model Context Protocol. It gives tools like Claude and Cursor a small set of actions, such as listing folders, searching and reading email, and fetching attachments, so they can work with your mail instead of you copying it into the chat.

People also search for an Apple Mail MCP, meaning an MCP for the mail they already read in Apple Mail. Apple Mail is the app on your Mac, iPhone, and iPad, not the mailbox. Community Apple Mail MCP servers script that app on a Mac through AppleScript or JXA, so they run only on macOS. Automata connects to the iCloud mailbox itself over IMAP; it does not talk to the Mail app, and it does not need a Mac or the app to be running.

Automata is a free, open-source MCP server that reads iCloud Mail with an Apple app-specific password. Every tool call is checked against the token first, so the AI only sees the folders you approve, and it has no way to send mail.

Official plugin

Automata vs ChatGPT's official iCloud Mail plugin

In October 2026, OpenAI added official iCloud Mail and iCloud Calendar plugins to ChatGPT. Like Automata, they sign in with an Apple app-specific password. Claude has no official iCloud connector, so in Claude, Cursor, and other MCP clients an MCP server is the way in.

Choose the official plugin when

  • You use ChatGPT and only need iCloud Mail there. It is the simpler start.
  • You also want iCloud Calendar in ChatGPT, which is a separate official plugin.
  • You would rather not sign up for, or run, another service.

Choose Automata when

  • You use Claude, Cursor, Grok Bot, Meta Muse, or your own agent, and want one iCloud endpoint for all of them.
  • You want the AI limited to a few folders, such as Clients or Receipts, not the whole mailbox.
  • You want it read-only: no sending, and drafts only if you switch them on.
  • You want to self-host, so the app-specific password stays on your own server.
  • You want one MCP server that also connects WhatsApp, Telegram, and PostgreSQL.

Compare

ChatGPT's iCloud Mail plugin vs Automata vs DIY

DIY comes in two kinds: an open-source IMAP MCP server that you configure and run yourself, or a community Apple Mail MCP that scripts the Mail app on your Mac. The ChatGPT column says only what OpenAI's help pages say.

ChatGPT's official iCloud Mail plugin, Automata, a self-run IMAP MCP server, and an Apple Mail MCP on a Mac compared
CapabilityChatGPT iCloud Mail pluginAutomataDIY: IMAP MCP serverDIY: Apple Mail MCP on a Mac
AI clientsChatGPT on the web, desktop app, and iOSClaude, Cursor, Grok Bot, Meta Muse, ChatGPT, and any MCP client over Streamable HTTPDepends on the server; a local (stdio) server works only with clients on the same machineMCP clients on the same Mac, such as Claude Desktop or Claude Code
Sign-inApple app-specific password; an address ending in @icloud.com, @me.com, or @mac.comApple app-specific password, stored on your Automata serverApple app-specific password in the server's config, on whichever machine runs itNone of its own: it drives the accounts already in Mail, once you allow macOS Automation access
Folder scopeNot described in OpenAI's help pagesOnly the folders on the token; any other folder is refused by nameDepends on the serverDepends on the server
Sending mailNot described in OpenAI's help pagesNever: no SMTP credentials. An optional draft tool saves unsent drafts, off by defaultDepends on the server; popular ones include SMTP send toolsDepends on the server; several can send through Mail
Calendar and contactsA separate official iCloud Calendar plugin; both plugins include read-only contact lookupMail only. No Calendar, Contacts, Notes, Reminders, or iCloud DriveIMAP reaches mail onlyDepends on the server
Where it runsInside ChatGPTYour own server, or the hosted versionWherever you run itYour Mac only (macOS), with Mail set up
WhatsApp, Telegram, and Postgres on the same serverNoYes, with the same token and permission modelNo; email onlyNo; Apple Mail only
License and costPart of ChatGPT, on all plansMIT licensed. Hosted is free for one connection; Pro is $19/month after a 7-day trialVaries by projectVaries by project

ChatGPT details are from OpenAI's connected apps and app accounts help pages, checked in November 2026. The DIY columns summarize the READMEs of popular open-source servers; check the one you pick.

Before you start

What the iCloud connection needs, and what it won't do

  • App-specific password with two-factor authentication

    Apple issues app-specific passwords only when your Apple Account has two-factor authentication. Changing your Apple Account password revokes all of them, and the sync fails until you add a new one. Automata does not support the Apple Account authorization that some third-party apps use instead.

  • IMAP only, and no sending

    Automata reads iCloud Mail over IMAP at imap.mail.me.com, port 993, with TLS. It has no SMTP credentials, so it cannot send, delete, move, or mark mail; the optional draft tool only saves an unsent draft.

  • Mail only

    No iCloud Calendar, Contacts, Notes, Reminders, or iCloud Drive. Automata reaches only what the iCloud mail server serves over IMAP.

  • No Microsoft 365 or Outlook.com

    If another account in Apple Mail is Microsoft 365 or Outlook.com, it cannot be connected: Microsoft requires OAuth for IMAP, which this connection does not support.

Sync behavior, storage, and every limit are in the email (IMAP) docs.

Run it your way

Free, open source, and yours to inspect.

The control layer protecting your messages and data should not be a black box. Read the code, verify the checks, and deploy Automata wherever your security model requires.

Recommended

Railway

One-click deploy

Skip local setup entirely. Provision the full stack, including Postgres, Redis, and volumes, on Railway in a few minutes.

  • No local Docker required
  • Managed Postgres, Redis, and volumes
  • Add or remove connectors anytime
Deploy on Railway

Self-hosted

Free, forever

Run the Nuxt control plane and Postgres on your machine, VPS, or homelab. Add the WhatsApp or Telegram services only when you need those connectors.

  • MIT licensed source
  • Unlimited scoped connections
  • Credentials stay on your infrastructure
Open the repository

Hosted

Free tier available

Use the same connector and permission model without operating the services yourself. Free for one connection; Pro is $19/month after a 7-day trial.

  • Managed setup and updates
  • The same granular scopes
  • Direct access to the Automata team
Sign up for hosted

Comparing Automata with other tools? Read Automata vs Neon, Automata vs Supabase, Muse vs Grok Bot, Best WhatsApp MCPs, Best Postgres MCPs, or see all comparisons.

Reference

iCloud MCP tools

Every tool is limited to the folders on the token. Disabled tools are never registered, so the AI cannot even try them.

  • get-mailbox-statusread

    Reports which mailbox is connected, whether the sync works, and which folders are still backfilling.

  • list-mail-foldersread

    Lists only the folders in scope, INBOX first, with synced and unread counts.

  • list-emailsread

    Pages through headers, newest first, from one folder or every synced folder in scope.

  • search-emailsread

    Matches sender, recipient, and subject against synced headers, and body text through iCloud's own IMAP search.

  • read-emailread

    Returns the headers, the body as plain text, and the attachment list. It does not mark the email read.

  • get-email-attachmentread

    Fetches one attachment whole: images as images, text files as text, PDFs and other files as embedded files.

  • create-email-draftwrite

    Saves an unsent plain-text draft in your Drafts folder, if the token includes this tool. It cannot send.

Full parameters are in the MCP tools reference.

Setup

Connect iCloud to your AI client in three steps

  1. 1

    Create an Apple app-specific password

    Turn on two-factor authentication for your Apple Account. Then sign in at account.apple.com, open Sign-In and Security → App-Specific Passwords, and generate one for Automata. You can remove it there later without changing your Apple Account password.

  2. 2

    Add the mailbox and choose folders

    Sign up for hosted Automata or self-host it, choose Email (IMAP) with the iCloud preset, enter your username, and paste the app-specific password. Then create a connector token and pick its folders. New email tokens start read-only.

  3. 3

    Add the MCP URL to your client

    Paste the endpoint into Claude, Cursor, or any MCP client. Start with get-mailbox-status to confirm it works.

Claude Code
claude mcp add --transport http icloud \
  https://mcp.getautomata.app/mcp/<connection-id> \
  --header "Authorization: Bearer <connector-token>"

Username: Apple says iCloud's IMAP username is usually the name part of your address (johnappleseed, not johnappleseed@icloud.com), and to try the full address if that fails. The optional draft tool needs the full address as the username, so use it if you want drafts and iCloud accepts it. Automata checks the login before saving, so a wrong username fails straight away.

In Claude.ai or Claude Desktop, open Settings → Customize → Connectors → Add → Add custom connector, paste the connection's own /mcp/<connection-id> URL from the token dialog, and add the token as an Authorization: Bearer request header. If your client can't set headers, use /mcp/<connector-token> instead. See all clients.

Clients

Set up an iCloud MCP server in Claude, Cursor, or other MCP clients

Every client follows the same pattern: an Apple app-specific password on the connection, a connector token limited to the folders you choose, and the MCP URL over Streamable HTTP. Whichever client is asking, it can read only those folders, and it cannot send.

  • Claude

    Claude has no official iCloud connector. Add Automata as a custom connector with the connection's /mcp/<connection-id> URL and the token as an Authorization: Bearer header. In Claude Code, it is the one command shown above.

    Claude IMAP connector for iCloud Mail and Yahoo
  • ChatGPT

    ChatGPT has an official iCloud Mail plugin, and if you only need iCloud Mail in ChatGPT, start there. Add Automata under Plugins as a custom MCP server, on plans that support them, if you want folder scope, self-hosting, or the same server as your other connections. ChatGPT cannot send an Authorization header, so use the /mcp/<connector-token> URL.

    Add a custom MCP server to ChatGPT
  • Cursor and other MCP clients

    Cursor supports remote MCP servers with custom headers, so add the connection's URL to mcp.json with the token in the Authorization header. Grok Bot, Meta Muse, and your own agents connect the same way.

    MCP clients docs
  • Gmail, Yahoo, Fastmail, Zoho, and Proton

    The same Email (IMAP) connection has presets for Gmail, Fastmail, Zoho, and Yahoo, and works with any mailbox that offers IMAP and a password login. Proton Mail works through a hydroxide bridge beside a self-hosted install. Gmail has its own page.

    Gmail MCP server

Use cases

What you can ask once iCloud Mail is connected

  • “Find the invoice from the landlord in Receipts and tell me the total.”
  • “Summarize every unread email in Clients since Monday and what each person needs.”
  • “Read the PDF attached to the latest email from the school and list the key dates.”
  • “Draft a reply to the plumber confirming Thursday morning. Save it; don’t send it.”

FAQ

iCloud MCP and Apple Mail MCP questions

What is an iCloud MCP server?

An iCloud MCP server exposes your iCloud Mail mailbox to AI assistants through the Model Context Protocol, so tools like Claude or Cursor can list, search, and read your email instead of you copying it into the chat. Automata is one: it signs in over IMAP with an Apple app-specific password and limits each token to the folders you choose.

What is an Apple Mail MCP?

Apple Mail is the mail app on your Mac, iPhone, and iPad, not the mailbox. Community Apple Mail MCP servers script the Mail app on a Mac through AppleScript or JXA, so they run only on macOS and need Mail set up there. Automata takes the other route: it connects to the iCloud mailbox itself over IMAP, does not talk to the Mail app, and does not need a Mac or the app to be running. If the account in Apple Mail is Gmail, Yahoo, or another provider, connect that mailbox instead.

Does Claude have an official iCloud connector?

No. As of November 2026, Claude's connector directory has no iCloud or Apple Mail connector. To use iCloud Mail in Claude, add an MCP server such as Automata as a custom connector. Set up iCloud Mail in Claude.

Does ChatGPT already have an iCloud Mail plugin?

Yes. OpenAI announced official iCloud Mail and iCloud Calendar plugins on 27 October 2026, rolling out to all ChatGPT plans on the web, desktop app, and iOS. They are separate plugins, both sign in with an Apple app-specific password, and Mail needs an address ending in @icloud.com, @me.com, or @mac.com. If you only need iCloud Mail in ChatGPT, start there. Disconnecting it in ChatGPT does not revoke the password at Apple, so remove that at account.apple.com.

How do I create an Apple app-specific password?

Your Apple Account needs two-factor authentication. Sign in at account.apple.com, open Sign-In and Security, choose App-Specific Passwords, and generate one. Remove it on the same page to revoke access. Changing your Apple Account password revokes every app-specific password, so you would then add a new one in Automata with Change credentials. Apple also lets some third-party apps sign in with Apple Account authorization instead; Automata does not support that and needs an app-specific password.

What IMAP username and server settings do I use?

Choose the iCloud preset, which fills in imap.mail.me.com, port 993, and TLS. Apple says the IMAP username is usually the name part of your address (johnappleseed, not johnappleseed@icloud.com), and to try the full address if that does not work. The optional draft tool needs a full email address as the username, because a draft's sender is the login, so use the full address if you want drafts and iCloud accepts it. Apple also lists SMTP settings for sending, but Automata does not send mail and never uses them.

Can the AI send email from iCloud?

No. The connection has no SMTP credentials, so it cannot send, and it cannot delete, move, or mark mail either. An optional tool saves an unsent plain-text draft in your Drafts folder for you to review and send yourself. A new email token starts with it switched off.

Does this connect to iCloud Calendar, Contacts, Notes, Reminders, or Drive?

No. Automata connects only to iCloud Mail, over IMAP. It cannot reach iCloud Calendar, Contacts, Notes, Reminders, or iCloud Drive. ChatGPT has a separate official iCloud Calendar plugin; that is OpenAI’s, not part of Automata.

Will the AI mark my emails as read?

No. Automata opens folders read-only and fetches bodies without setting the read flag, so reading through the AI does not change what you see in Apple Mail or iCloud.com.

Does Automata store my email?

It keeps a small header index (sender, recipients, subject, date, read and flagged state, and attachment names), about 1 KB per email, and deletes it with the connection. Bodies and attachments stay in iCloud and are fetched only when a tool asks for them.

Is the Automata iCloud MCP free?

Yes. Automata is MIT licensed and free to self-host. The hosted version at mcp.getautomata.app is free for one connection; Pro is $19/month after a 7-day trial.

Give your AI the folders it needs, not your whole iCloud mailbox.

Connect iCloud Mail over IMAP in minutes. The same token model also covers Gmail, WhatsApp, Telegram, and PostgreSQL.