Aquila logoAquilaGuides
All guides

How to connect iCloud emails to ChatGPT

Use Aquila to expose iCloud Mail to ChatGPT-compatible agent workflows through a secure MCP endpoint.
6 min readUpdated 2026-06-28iCloud MailChatGPT

Before you start

  • An Aquila account
  • An iCloud email address
  • An Apple app-specific password
  • An agent environment that accepts remote MCP server configuration
01

Connect your iCloud Mail mailbox in Aquila

Choose iCloud Mail in the provider grid. Aquila uses Apple's built-in IMAP and SMTP settings.

  • Open the dashboard and choose Add inbox.
  • Select the provider card when it is available, or use Other IMAP for custom settings.
  • Enter an inbox name, email address, and mailbox password or app password.
Screenshot slot: Add inbox dialogAquila interface capture

Use this slot for a screenshot of the Aquila provider picker or custom IMAP form.

Use this slot for a screenshot of the Aquila provider picker or custom IMAP form.
02

Test and save the mailbox

Aquila tests the incoming IMAP connection and, when SMTP is enabled, the outgoing SMTP connection before saving credentials.

  • Use an Apple app-specific password. Normal iCloud account passwords should not be entered.
  • A successful test confirms that the agent can reach the mailbox through Aquila.
  • Mailbox credentials are encrypted at rest and decrypted only for request-time access.
Screenshot slot: Connection testAquila interface capture

Use this slot for the Aquila Test connection step after the check animation succeeds.

Use this slot for the Aquila Test connection step after the check animation succeeds.
03

Create an API key for ChatGPT

Create a dedicated API key for each agent or workspace so access can be audited, scoped, and revoked independently.

  • Name the key after the agent or environment that will use it.
  • Select only the mailboxes this key should expose.
  • Optionally set an expiration date for temporary projects or contractor access.
Screenshot slot: API key dialogAquila interface capture

Use this slot for the Aquila API key configuration dialog with mailbox access selected.

Use this slot for the Aquila API key configuration dialog with mailbox access selected.
04

Add Aquila as an MCP server in ChatGPT

Use the Aquila MCP endpoint and the API key you created. The endpoint is http://localhost:8080/mcp.

  • Use an Authorization bearer token header with the API key.
  • Keep the API key secret. Aquila only shows it once after creation.
  • After connecting, ask the agent to list connected email addresses to verify access.
Screenshot slot: Agent MCP settingsAquila interface capture

Use this slot for the ChatGPT MCP server configuration screen.

Use this slot for the ChatGPT MCP server configuration screen.

Reusable MCP configuration block

Use this block in every guide and replace the API key placeholder with the one-time key copied from Aquila.

{
  "mcpServers": {
    "aquila-email": {
      "url": "http://localhost:8080/mcp",
      "headers": {
        "Authorization": "Bearer <your aqla_ API key>"
      }
    }
  }
}

FAQ

Does Aquila store my emails for ChatGPT?

No. Emails are streamed during agent requests and are not persisted by default on Aquila infrastructure.

Can I revoke ChatGPT access later?

Yes. Revoke or edit the API key from the Aquila dashboard.