MCP Mail Manager
Allows adding AOL email accounts and managing mail via IMAP/SMTP, including listing, searching, thread retrieval, and sending messages.
Allows adding Gmail accounts with app-password or OAuth2 authentication and managing email via IMAP/SMTP, including listing, searching, reading threads, and sending messages.
Allows adding iCloud email accounts with app-specific passwords and managing mail via IMAP/SMTP, including listing, searching, thread retrieval, and sending messages.
Supports ProtonMail accounts through ProtonMail Bridge, enabling IMAP/SMTP email management such as listing, searching, and sending messages.
Supports Zoho email accounts via IMAP/SMTP for account setup, email listing/search, thread retrieval, and sending messages.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Mail Manager
A comprehensive Model Context Protocol (MCP) server for email management. Supports all major email providers with secure credential encryption and multi-account management.
π Features
π§ Universal Email Support - Gmail, Outlook, Yahoo, iCloud, ProtonMail, and any IMAP/SMTP server
π Secure Authentication - Password and OAuth2 support with encrypted credential storage
π₯ Multi-Account Management - Manage multiple email accounts simultaneously
π Advanced Search - Search emails by sender, date, content, attachments
π¨ Send & Receive - Full email composition and thread management
π End-to-End Encryption - Local AES-256-GCM encryption for stored credentials
π Provider Auto-Detection - Automatic configuration for major email providers
β‘ High Performance - Efficient IMAP/SMTP connections with connection pooling
Related MCP server: IMAP MCP Server
π¦ Quick Start
Install and Run
# Install globally
npm install -g @artik0din/mcp-mail-manager
# Or run directly with npx
npx @artik0din/mcp-mail-managerBasic Setup (Password Authentication)
Most email providers support password or app-password authentication:
# Add a Gmail account (use App Password, not regular password)
add_email_account email="user@gmail.com" password="YOUR_APP_PASSWORD_HERE" name="Personal Gmail"
# Add any other provider (auto-detected)
add_email_account email="user@yahoo.com" password="YOUR_PASSWORD_HERE" name="Yahoo Mail"Advanced Setup (OAuth2)
For advanced Gmail/Outlook integration, set up OAuth2:
export GMAIL_CLIENT_ID="your_oauth_client_id"
export GMAIL_CLIENT_SECRET="YOUR_OAUTH_CLIENT_SECRET"π οΈ MCP Client Setup
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mail-manager": {
"command": "npx",
"args": ["@artik0din/mcp-mail-manager"],
"env": {
"MCP_MASTER_KEY": "your_encryption_key"
}
}
}
}Other MCP Clients
The server communicates via stdio and follows the MCP protocol. Configure according to your client's requirements.
π Available Tools
π Account Management
Tool | Description | Parameters |
| Add new email account |
|
| List configured accounts | None |
| Remove an account |
|
π§ Email Operations
Tool | Description | Parameters |
| List emails from inbox |
|
| Search emails with filters |
|
| Get full email conversation |
|
| Send or draft email |
|
π Supported Email Providers
Major Providers (Auto-Configured)
Provider | Domains | Auth Methods | Notes |
Gmail | gmail.com, googlemail.com | Password (App Password), OAuth2 | Requires 2FA + App Password |
Outlook | outlook.com, hotmail.com, live.com | Password, OAuth2 | Microsoft 365 supported |
Yahoo | yahoo.com, ymail.com | Password | App Password recommended |
iCloud | icloud.com, me.com, mac.com | Password | App Password required |
ProtonMail | protonmail.com, proton.me | Password | Requires ProtonMail Bridge |
Fastmail | fastmail.com, fastmail.fm | Password | App Password supported |
Zoho | zoho.com | Password | Business accounts supported |
AOL | aol.com | Password | App Password recommended |
Custom IMAP/SMTP
Any email provider with IMAP/SMTP access:
add_email_account email="user@example.com" password="YOUR_PASSWORD_HERE" provider="custom" imap_host="mail.example.com" smtp_host="mail.example.com"π‘ Usage Examples
Account Setup
# Gmail with App Password
add_email_account email="user@gmail.com" password="XXXX_XXXX_XXXX_XXXX" name="Work Gmail"
# Custom business email
add_email_account email="user@yourcompany.com" password="YOUR_PASSWORD_HERE" provider="custom" imap_host="mail.company.com" smtp_host="mail.company.com"
# List all accounts
list_email_accountsEmail Management
# List recent emails
list_emails account_id="you-gmail-com"
# List only unread emails
list_emails account_id="you-gmail-com" unread_only=true
# Search for emails from a specific sender
search_emails account_id="you-gmail-com" from="boss@company.com"
# Search by keyword and date range
search_emails account_id="you-gmail-com" query="project alpha" since="2024-01-01" limit=50Sending Emails
# Simple email
send_email account_id="you-gmail-com" to=["colleague@company.com"] subject="Project Update" body="Here's the latest status..."
# Email with CC and HTML
send_email account_id="you-gmail-com" to=["client@company.com"] cc=["manager@company.com"] subject="Proposal" body="Please see attached proposal." html="<p>Please see <strong>attached</strong> proposal.</p>"
# Reply to an email (preserves threading)
send_email account_id="you-gmail-com" to=["original@sender.com"] subject="Re: Original Subject" body="Thanks for your email!" reply_to_message_id="<original-message-id>"π Security & Privacy
Local Credential Storage: All credentials encrypted and stored locally in
~/.mcp-mail-manager/AES-256-GCM Encryption: Military-grade encryption for sensitive data
No Cloud Dependencies: All data stays on your machine
App Password Support: Secure authentication for 2FA-enabled accounts
Minimal Permissions: Only requests necessary IMAP/SMTP access
Setting Up App Passwords
Gmail: Enable 2FA β Google Account β Security β App passwords
Yahoo: Account Info β Account security β Generate app password
iCloud: Sign-In and Security β App-Specific Passwords
ποΈ Development
# Clone and setup
git clone https://github.com/artik0din/mcp-mail-manager.git
cd mcp-mail-manager
npm install
# Development mode
npm run dev
# Build for production
npm run buildπ License
MIT Β© 2026 Kevin Valfin
π€ Contributing
Contributions welcome! Please read the contributing guidelines and submit PRs to the main branch.
π Issues
Found a bug? Please file an issue on GitHub with:
Node.js version
Email provider
Error messages/logs
Steps to reproduce
π Links
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflowβ¦
Search Gmail and Outlook, save drafts, manage email rules, and view email stats.
Email infrastructure for AI agents β send, receive, search, and reply to email over MCP.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables email management via IMAP/SMTP, supporting list emails, read emails, send emails, and save drafts.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to work with multiple email accounts over IMAP and SMTP: search, read, send, reply, forward, move, mark, and bulk-delete messages, plus list folders and check unread counts. Credentials are stored with AES-256 encryption and connections are pooled, with auto-configured settings for Gmail, Outlook, Yahoo, and other providers.1,009 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to manage email over IMAP and SMTP: searching, reading, sending, replying, forwarding, organizing and bulk-deleting messages across multiple accounts with AES-256-encrypted credentials. It also supports folder listing, unread counts, and connection pooling for Gmail, Outlook, Yahoo, iCloud and other providers.1,009 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to securely manage multiple email accounts via IMAP and SMTP, including searching, reading, sending, replying, forwarding, organizing folders, marking, and bulk deleting messages.1,009 npmMIT