Email MCP for Gmail, iCloud and microsoft

by marlinjai

Not rated
GitHub

About

Organize, flag, read, delete, and clean email with AI.

Details

Author
marlinjai
Categories
Productivity, Automation, Other

Setup

Install Email MCP for Gmail, iCloud and microsoft in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/marlinjai/email-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Email MCP for Gmail, iCloud and microsoft

Organize, flag, read, delete, and clean email with AI.

A unified MCP server for email access across Gmail, Outlook, iCloud, and generic IMAP providers.

- Multi-provider support-- Gmail (REST API), Outlook (Microsoft Graph), iCloud (IMAP), and generic IMAP/SMTP
- OAuth2 authentication-- Browser-based OAuth flows for Gmail and Outlook, with automatic token refresh
- Full email client-- Search, read, send, reply, forward, organize, and manage drafts
- Batch operations-- Delete, move, or mark hundreds of emails in a single call
- Lightweight search-- Compact search results by default (~20KB vs ~1.4MB) with optional full body retrieval
- Encrypted credential storage-- AES-256-GCM encryption at rest with machine-derived keys
- Provider-native APIs-- Uses Gmail API and Microsoft Graph where available for richer features, falls back to IMAP for universal compatibility

Or run directly with npx (no install needed):
- Run the interactive setup wizard to add your email accounts:

The wizard will walk you through provider selection and authentication. After each account, it asks if you'd like to add another — so you can set up Gmail, Outlook, and iCloud all in one go.
- Add the server to your MCP configuration (.mcp.json):

{ "mcpServers": { "email": { "command": "npx", "args": ["@marlinjai/email-mcp"] } } }

- Start using email tools in Claude Code — search your inbox, send emails, organize messages, and more.

No configuration needed — the setup wizard handles everything using built-in OAuth credentials (PKCE):

npx @marlinjai/email-mcp setup # Select "Gmail" when prompted # A browser window opens for Google authorization # Grant the requested permissions and return to the terminal

Note:If you prefer to use your own OAuth app, create a Desktop OAuth 2.0 Client in theGoogle Cloud Consolewith the Gmail API enabled.

No configuration needed — the setup wizard handles everything using built-in OAuth credentials (PKCE):

Note:If you prefer to use your own OAuth app, register one in theAzure PortalwithMail.ReadWrite,Mail.Send, andoffline_accesspermissions.

npx @marlinjai/email-mcp setup # Select "iCloud" when prompted # Enter your iCloud email address # Enter the app-specific password you generated

Run the setup wizard with your IMAP/SMTP server details:

npx @marlinjai/email-mcp setup # Select "Other IMAP" when prompted # Enter your IMAP host, port, and credentials # Optionally enter SMTP host and port for sending

All batch tools accept asourceFolderparameter for IMAP/iCloud and include a sequential fallback for maximum compatibility.

Add the following to your.mcp.jsonfile (project-level or global~/.claude/.mcp.json):

{ "mcpServers": { "email": { "command": "npx", "args": ["@marlinjai/email-mcp"] } } }

Once configured, you can ask Claude to interact with your email:

- "Check my inbox for unread messages"
- "Search for emails fromalice@example.comin the last week"
- "Reply to the latest email from Bob and thank him"
- "Move all newsletters to the Archive folder"
- "Delete all spam emails" (uses batch operations for speed)
- "Draft a follow-up email to the team about the meeting"

# Install dependencies pnpm install # Build the project pnpm build # Run in development mode (watch for changes) pnpm dev # Run tests pnpm test # Run tests in watch mode pnpm test:watch # Run integration tests (requires real email accounts) pnpm test:integration

If this project is useful to you, consider supporting its development:

Most email MCP servers only read from IMAP. mail-mcp does everything: 30 tools for reading, searching, sending, replying, forwarding, and bulk operations across IMAP, SMTP, Microsoft Graph API, and Exchange Web Services. Multi-account, native OAuth2, built in Rust. Works with Gmail, Microsoft 365, Hotmail/Outlook.com, Zoho, and any standard IMAP/SMTP server.

A collection of MCP servers to automate virtual secretary tasks within the Microsoft Outlook suite, managing tools like Mail and Categories.

Gmail MCP server (33 tools) with optional recipient allowlist and local audit log

Manage and summarize notes within Gmail using the Gmail API.

An MCP server for interacting with Gmail and Google Calendar, enabling context-aware email and event management.

A secure, no-code MCP server that connects any email inbox to AI assistants for intelligent reading, drafting, and automation.

Interact with Microsoft Outlook for calendar management, email operations, and search functionality.

Access your Microsoft 365 mail, calendar, and files using the Microsoft Graph API.

Access and manage your local Microsoft Outlook calendar on Windows.

Open-source MCP server for job application management — 73 tools, 18 workflows, 18 job portals, React dashboard, email integration, calendar, multi-profile. Runs locally, free, privacy-first.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.