A unified MCP email service supporting multi-account management.
- 163 Mail (mail.163.com / mail.126.com)
- QQ Mail (mail.qq.com)
- Gmail (mail.google.com)
- Outlook/Hotmail
- Custom IMAP servers
npx -y @smithery/cli install mcp-email-service --client claude
After installation, you'll need to configure your email accounts:
cd ~/.config/smithery/servers/mcp-email-service
python setup.py
Requires Python 3.11+ and UV.
git clone https://github.com/leeguooooo/email-mcp-service.git
cd mcp-email-service
uv sync
uv run python setup.py
Provider | Configuration Steps |
---|---|
163 Mail | Login to mail.163.com → Settings → Enable IMAP → Get authorization code (use code, not password) |
QQ Mail | Settings → Account → Enable IMAP → Generate authorization code |
Gmail | Enable 2FA → Generate app password |
Outlook | Use email password directly |
If you installed manually, add to your MCP client (e.g., Claude Desktop) config:
{
"mcpServers": {
"mcp-email-service": {
"command": "/your/path/mcp-email-service/run.sh",
"args": []
}
}
}
list_emails # View unread emails
list_emails with unread_only=false # View all emails
list_emails with limit=100 # View more emails
search_emails with query="meeting" # Search emails containing "meeting"
search_emails with query="john" search_in="from" # Search by sender
search_emails with date_from="2024-01-01" # Search by date
get_email_detail with email_id="123" # View email details
mark_emails with email_ids=["123"] mark_as="read" # Mark as read
delete_emails with email_ids=["123"] # Delete email
flag_email with email_id="123" set_flag=true # Add star
send_email with to=["[email protected]"] subject="Subject" body="Content"
reply_email with email_id="123" body="Reply content"
list_emails
- List emailsget_email_detail
- View email detailssearch_emails
- Search emailsmark_emails
- Mark as read/unreaddelete_emails
- Delete emailsflag_email
- Star/unstar emailssend_email
- Send new emailreply_email
- Reply to emailforward_email
- Forward emailmove_emails_to_folder
- Move emailslist_folders
- View foldersget_email_attachments
- Get attachmentscheck_connection
- Test connections
- Login Failed: 163/QQ Mail use authorization codes, Gmail uses app passwords
- Can't Find Emails: Default shows unread only, use
unread_only=false
- Connection Timeout: Check network and firewall settings
MIT License