Skip to content
OmniMail
OmniMail MCP Reference

Setup guide

Follow these steps to connect your email to an AI assistant.

Onboarding sequence

3 steps
Complete these steps to connect your email.
  1. Step 1 of 3

    Sign in to your account

    Use your authorized Google account to access your workspace.

    Sign in with Google and accept the policies to activate your account. Connecting Gmail is a separate step.

  2. Step 2 of 3

    Connect an email provider

    Add the accounts you want to use.

    Connect Gmail with Google OAuth, or configure iCloud, Yandex, or custom IMAP/SMTP using dedicated app-specific passwords. Reading never modifies mailbox flags.

  3. Step 3 of 3

    Connect an AI assistant

    Use your connected accounts through authorized tools.

    Follow the AI Clients guide for ChatGPT, Claude, Cursor, Windsurf, or another compatible client. Authorized clients automatically access all connected accounts.

Email provider setup

Gmail, iCloud, Yandex & more
What you need to connect each kind of mailbox.

Gmail

Sign in with Google

If Google access expires or is revoked, choose Reconnect and approve access again.

Google Mail API & IMAPOAuth 2.0 PKCE

Apple iCloud

App-Specific Password

Standard Apple ID passwords are not accepted. Generate an app-specific password at appleid.apple.com under Sign-In and Security. IMAP uses imap.mail.me.com on port 993 SSL.

imap.mail.me.comSSL/TLS 993 · 587

Yandex Mail

Mail App Password

If two-factor authentication is active on your Yandex ID, generate an App Password for Mail in Yandex ID security settings. IMAP uses imap.yandex.com on port 993 SSL.

imap.yandex.comSSL/TLS 993 · 465

Custom IMAP / SMTP

Standard Credentials

Requires IMAP over SSL (port 993) and SMTP over STARTTLS (port 587) or SSL (port 465). Plaintext unencrypted connections are rejected by policy.

Custom hostSSL/TLS · STARTTLS

How your email is protected

Guarantees
How OmniMail handles reading, storage, and sending.

Unread status stays unchanged

RFC 3501 BODY.PEEK

Searching and reading through OmniMail does not mark messages as read.

Encrypted temporary storage

AES-256-GCM + AAD

Search results, message bodies and staged attachments are stored encrypted in the database. Each entry becomes inaccessible after 10 minutes. Cleanup runs during later requests and connection changes; expiry does not guarantee immediate deletion from storage or backups.

Control sending per mailbox

Sending is optional

Sending is off by default. Once enabled for a mailbox, authorized AI clients can send from it if the provider allows. OmniMail instructs clients to send only when you ask; there is no separate OmniMail confirmation.

Model Context Protocol tool reference

10 MCP Tools
Tools available to authorized clients such as ChatGPT, Claude, Cursor, and Windsurf.
list_accountsRead-only

List connected email accounts and whether sending is enabled.

Category: Accounts
list_mailboxesRead-only

List folders or labels for a chosen mailbox.

Category: Folders
search_messagesRead-only

Search by sender, subject, or text. Search options vary by provider.

Category: Messages
get_messageRead-only

Read available message text, headers, and attachment details.

Category: Messages
get_reply_contextRead-only

Preview reply recipients and message details without sending.

Category: Messages
get_threadRead-only

List message metadata in a Gmail conversation. IMAP returns only the source message and marks the history incomplete.

Category: Messages
get_attachmentAttachments

Retrieve an attachment from a message.

Category: Files
stage_attachmentsAttachments

Prepare attachments in encrypted temporary storage for sending.

Category: Sending
send_messageSend-enabled

Compose and send an email with optional staged attachments across authorized providers.

Category: Sending
reply_allSend-enabled

Send a reply to the visible recipients when you ask, if sending is enabled and the provider permits it.

Category: Sending