Connect your email accounts to AI with Model Context Protocol
A secure, personal bridge that equips ChatGPT, Claude, and Cursor with read-only search, unread-safe message extraction, and owner-authorized sending across Gmail, Apple iCloud, and IMAP accounts.
User Prompt to AI Agent
“Find any invoices received from Stripe this month.”
{
"account_id": "acc_icloud_01",
"query": "from:stripe invoice",
"mailbox": "INBOX",
"limit": 3
}{
"messages": [
{
"id": "msg_9f82d1",
"subject": "Your Stripe invoice for October 2026",
"from": "invoicing@stripe.com",
"date": "2026-10-18T14:32:00Z",
"has_attachments": true,
"snippet": "Payment received. Invoice #INV-2026-10 is attached."
}
],
"total": 1
}Works across your personal and work mailboxes
Consolidate your different mail accounts into a single unified Model Context Protocol interface.
Google Gmail
OAuth 2.0 PKCEConnect seamlessly via Google OAuth. Read messages with minimal scopes, or grant incremental send access when needed.
- Testing Mode 7-day token refresh
- Incremental send permission
- Zero password exposure
Apple iCloud Mail
App-Specific PasswordIntegrate your iCloud and @me.com mailboxes using dedicated Apple ID app passwords over secure SSL/TLS.
- IMAP: imap.mail.me.com:993
- SMTP: smtp.mail.me.com:587
- Preserves push notification flags
Yandex Mail
App-Specific PasswordConnect personal or domain Yandex inboxes securely with 2FA app passwords over encrypted protocols.
- IMAP: imap.yandex.com:993
- SMTP: smtp.yandex.com:465
- Full Russian & Cyrillic charset support
Custom IMAP / SMTP
Standard TLS / SSLConnect Fastmail, self-hosted Postfix/Dovecot, or enterprise email servers complying with RFC standards.
- Enforced TLS certificate checks
- Private loopback blocking
- Configurable mailbox presets
Clean architectural boundaries
OmniMail MCP isolates your credentials, preserves mailbox state, and mediates every interaction between AI agents and your mailboxes.
- ChatGPT (Custom Actions / MCP)
- Claude Desktop & Claude Code
- Cursor & Windsurf IDEs
- Custom Autonomous MCP Agents
- AES-256-GCM token storage
- 10-minute ephemeral encrypted cache
- Owner-only Google sign-in & RLS
- Strict request-origin verification
- Google Gmail (OAuth 2.0 PKCE)
- Apple iCloud (App Password + TLS)
- Yandex Mail (App Password + SSL)
- Custom IMAP / SMTP Servers
The 7 standardized MCP email tools
OmniMail MCP exposes a cohesive, battle-tested tool surface designed specifically for LLM function calling and client sandboxes.
Enumerate all connected mail accounts, their provider types (Gmail, iCloud, Yandex, IMAP), and allowed capabilities.
{}List folders and mailboxes for a specific account, including total message counts and system tags.
{
"connectionId": "acc_icloud_01"
}Search mailboxes by text query, sender, date range, or folder with bounded result limits.
{
"connectionId": "acc_icloud_01",
"query": "from:stripe invoice",
"label": "INBOX"
}Fetch a message's text body, headers, and attachment manifests without altering unread status.
{
"connectionId": "acc_icloud_01",
"messageId": "msg_9f82d1"
}Download a specific attachment's exact binary bytes and MIME type by ID.
{
"connectionId": "acc_icloud_01",
"messageId": "msg_9f82d1",
"attachmentId": "att_04a8b2"
}Stage outgoing attachment files into encrypted temporary storage prior to dispatching an email.
{
"connectionId": "acc_icloud_01",
"inlineFiles": [
{
"name": "invoice.pdf",
"content_base64": "JVBERi0xLj..."
}
]
}Deliver an email to designated recipients with optional attachments and custom sender identity.
{
"connectionId": "acc_icloud_01",
"message": {
"to": [
"finance@company.internal"
],
"subject": "Re: October SaaS Invoices",
"text": "Invoice settled."
}
}Privacy and security by design
Engineered with strict protocol invariants so you can safely grant language models access to your real communication workflows.
Preserving unread status
Unlike typical email clients that silently set the \Seen flag on access, OmniMail MCP opens mailboxes in EXAMINE read-only mode and uses BODY.PEEK. AI can analyze your emails without clearing your unread notifications.
AES-256-GCM authenticated encryption
Refresh tokens and app-specific passwords are sealed at rest with AES-256-GCM. Decryption keys are runtime-bound and sealed tokens are cryptographically locked to your user identity.
10-minute ephemeral lifecycle
Emails, bodies, and attachments are never persisted into your database. Temporary caches and staged attachments exist solely to prevent upstream rate-limits and expire within 10 minutes.
Dual-lock send authorization
Sending is disabled by default. An outgoing email requires both the account connection toggle and the MCP client permission to be explicitly switched on by the owner.
Plug into the AI clients you already use
Connect ChatGPT, Claude, and developer IDEs via standard Model Context Protocol configuration.
ChatGPT Plus / Pro
Remote MCP / OAuthAdd OmniMail MCP as an authorized MCP tool in your ChatGPT workspace with one-click OAuth consent.
{
"name": "OmniMail MCP",
"url": "https://<your-domain>/mcp",
"auth": "OAuth 2.0 (PKCE)"
}Claude Desktop & Code
JSON ConfigAdd OmniMail to your claude_desktop_config.json file for seamless desktop workflow automation.
{
"mcpServers": {
"omnimail": {
"url": "https://<your-domain>/mcp"
}
}
}Cursor & Windsurf
IDE ExtensionsReference error reports, customer emails, and notification logs directly from your code editor.
{
"mcpServers": {
"mail": {
"url": "https://<your-domain>/mcp"
}
}
}Ready to connect your email to AI?
Set up your accounts, configure client permissions, and start interacting with your inbox securely through Model Context Protocol.