iCloud Mail + AI

The iCloud MCP server
for Claude, Cursor and ChatGPT

Give your AI agent a real iCloud inbox in minutes. Read, search, send, reply, schedule and organize mail with an Apple app-specific password, and use the same inbox in every MCP client, not just one.

Apple does not offer OAuth for iCloud Mail, so Claude cannot connect to it directly. mcpemails connects your iCloud inbox over IMAP using an Apple app-specific password, which lets Claude, Cursor or any MCP client read, search, send and organize that mail. Setup takes about two minutes and one inbox is free.

1 inbox free, forever App-specific password, no OAuth Email fetched live, never stored

How iCloud connects: an app-specific password

iCloud Mail connects over IMAP/SMTP using an Apple app-specific password. Generate one at account.apple.com under Sign-In and Security → App-Specific Passwords (two-factor authentication required), then paste it into mcpemails with your iCloud address.

The exact iCloud Mail IMAP and SMTP settings

Copy these into the connect form. mcpemails prefills them where it can, and retries the other standard transport if the first does not answer.

ProtocolServerPortSecurity
IMAP (incoming)imap.mail.me.com993TLS (implicit)
SMTP (outgoing)smtp.mail.me.com587STARTTLS

Verified 2026-08-31: imap.mail.me.com answered a TLS connection and identified itself as an IMAP server under that name. It advertises ATOKEN, ATOKEN2, PLAIN, XOAUTH2 authentication.

Sign in with: Apple documents the username as the name part of your iCloud address, johnappleseed rather than johnappleseed@icloud.com. If that is refused, use the complete address.

What your AI can do

An iCloud Mail inbox your agent can actually use

Seventeen action-based MCP tools: send, reply, forward, schedule, and organize. Your agent finishes the job inside iCloud Mail.

  1. 01Read

    Read & search mail

    List, read and search across folders to find that invoice, summarize a thread, or pull the latest from a sender.

  2. 02Send

    Send, reply & forward

    Compose and send real messages, reply in-thread, and forward, directly from your mailbox, not as a draft you finish by hand.

  3. 03Schedule

    Schedule for later

    Queue a message to go out at the right time, so your agent can draft now and send on schedule.

  4. 04Organize

    Move, copy, flag, archive, delete

    Keep the inbox tidy: file mail into folders, flag what matters, archive the rest, or delete on request.

Setup

Connect iCloud Mail in four steps

From sign-up to first AI email in a couple of minutes.

01

Create a free account

Sign up for mcpemails, no card required. The free plan connects one inbox, forever.

02

Generate an app-specific password

At account.apple.com, go to Sign-In and Security → App-Specific Passwords and create one (two-factor authentication must be on).

03

Paste it into mcpemails

Add your iCloud address and the app-specific password to connect the inbox securely.

04

Paste the MCP URL into your AI

Drop https://mcpemails.com/api/mcp into Claude, Cursor or ChatGPT, authorize, and your agent has the inbox.

Before you start

What actually goes wrong with iCloud Mail

Two-factor authentication is a prerequisite, not a preference

Apple issues app-specific passwords only to an Apple Account that is protected with two-factor authentication. If App-Specific Passwords is missing from Sign-In and Security at account.apple.com, that is why, and turning 2FA on is the first step rather than an optional hardening measure. There is no other route: Apple offers no OAuth for iCloud Mail and your ordinary Apple Account password will not authenticate a mail client under any configuration.

The username is usually not your full email address

Apple documents the incoming username as the name part of the iCloud address, for example johnappleseed rather than johnappleseed@icloud.com. That is the opposite of nearly every other provider on this site, and it catches people who copy their address in by habit. Older @me.com and @mac.com addresses, and iCloud+ custom domain addresses, all sign in as that same primary account name. If the short form is refused, Apple's own documentation names the full address as the fallback.

Outgoing mail is STARTTLS on 587, and nothing is offered until the upgrade

Apple's submission server is smtp.mail.me.com on port 587, which begins as a plain connection and upgrades with STARTTLS. Most providers listed on this site take implicit TLS on 465 instead, so a client that assumes 465 against iCloud simply hangs. There is a second trap in the same place: when we probed the server it advertised no authentication mechanisms at all before STARTTLS. A client that reads the mechanism list too early concludes that authentication is unsupported and gives up, when in fact it just needed to upgrade the connection first.

Apple's IMAP server advertises almost nothing, and that changes how mail moves

The capability list we read back from imap.mail.me.com is unusually spare. There is no MOVE, so moving a message is performed as a copy, a flag update and an expunge rather than one atomic command, and a connection that drops halfway can leave the message in both folders. There is no IDLE, so nothing can be pushed to you and new mail is discovered by looking. There is no UIDPLUS, so the identifier of a copied message is not handed back and has to be found by searching the destination. And there is no SPECIAL-USE, so Sent, Drafts, Trash and Junk are matched by name rather than by role: on a mailbox created in another language, name the folder explicitly and your agent will find it.

Known limits with iCloud Mail

  • iCloud does not support IDLE, so new mail is found when your agent looks rather than pushed the moment it arrives.
  • Because there is no MOVE extension, a move is not atomic. A dropped connection mid-operation can briefly leave a message in two folders.
  • Apple offers no OAuth for iCloud Mail. An app-specific password is the only way in, and revoking it in your Apple Account disconnects the inbox immediately.
FAQ

iCloud Mail and AI: common questions

Does Claude work with iCloud Mail?

Not on its own. Claude has no built-in iCloud connector and Apple publishes no OAuth interface for iCloud Mail. Connecting an MCP server such as mcpemails to the mailbox over IMAP, using an Apple app-specific password, gives Claude read, search, send, reply, schedule and organize access, and the same connection works from Cursor and ChatGPT.

What are the iCloud Mail IMAP and SMTP settings?

IMAP is imap.mail.me.com on port 993 with implicit TLS. SMTP is smtp.mail.me.com on port 587 with STARTTLS, not implicit TLS on 465. The password is an Apple app-specific password for both. Apple documents the incoming username as the name part of your address. Both hosts were confirmed from a live TLS connection on the date shown on this page.

Why is my Apple password rejected?

Because iCloud never accepts the Apple Account password from a mail client. You need an app-specific password created at account.apple.com under Sign-In and Security, and that section only appears once two-factor authentication is on. If the password is right and the login still fails, try the name part of your address as the username instead of the full address.

Does it work with @me.com, @mac.com or an iCloud+ custom domain?

Yes. All of them are the same iCloud mailbox reached through the same hosts with the same app-specific password. An iCloud+ custom domain address is an alias on your iCloud account rather than a separate mailbox, so it authenticates as your primary account name and its mail arrives in the same folders.

Is my iCloud mail stored on your servers?

No. Messages are fetched live from Apple over IMAP for each request and handed to your AI client. Credentials are encrypted at rest and message bodies are not retained. Revoking the app-specific password in your Apple Account ends the connection at Apple's end straight away.

Give your AI an iCloud inbox

Connect iCloud Mail in minutes. One inbox free forever, no card required.