MCP Email Service
A service for managing multiple email accounts from various providers like 163, Gmail, QQ, and Outlook.
MCP Email Service
A unified MCP email service supporting multi-account management.
Supported Email Providers
- 163 Mail (mail.163.com / mail.126.com)
- QQ Mail (mail.qq.com)
- Gmail (mail.google.com)
- Outlook/Hotmail
- Custom IMAP servers
Quick Start
Option 1: Install via Smithery (Recommended)
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
Option 2: Manual Installation
Requires Python 3.11+ and UV.
git clone https://github.com/leeguooooo/email-mcp-service.git
cd mcp-email-service
uv sync
2. Configure Email Accounts
uv run python setup.py
Email Configuration Guide
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 |
3. Add to MCP Client (Manual Installation Only)
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": []
}
}
}
Main Features
View Emails
list_emails # View unread emails
list_emails with unread_only=false # View all emails
list_emails with limit=100 # View more emails
Search 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
Email Operations
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 Emails
send_email with to=["user@example.com"] subject="Subject" body="Content"
reply_email with email_id="123" body="Reply content"
Available Commands
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
Troubleshooting
- 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
License
MIT License
Related Servers
WhatsApp Web
An MCP server for interacting with WhatsApp Web, allowing you to send and receive messages.
Integration App
Interact with any other SaaS applications on behalf of your customers.
WhatsApp
Search, read, and send personal WhatsApp messages, contacts, and media files.
WeCom Bot MCP Server
An MCP server for sending messages to WeCom (WeChat Work) bots.
Google Meet MCP Server
An MCP server for interacting with Google Meet through the Google Calendar API.
Nostr MCP Server
An MCP server that provides Nostr capabilities to LLMs, enabling interaction with the decentralized social network protocol.
LinkedIn
A server for interacting with LinkedIn, including authentication and posting capabilities.
BGG MCP
BGG MCP enables AI tools to interact with the BoardGameGeek API.
Microsoft Teams MCP
Interact with Microsoft Teams to read, create, and reply to messages, and mention members.
VRChat MCP OSC
A bridge between AI assistants and VRChat using MCP and OSC, enabling AI-driven avatar control and interactions in virtual reality.