This server enables users to send emails through various email providers, including Gmail, Outlook, Yahoo, Sina, Sohu, 126, 163, and QQ Mail. It also supports attaching files from specified directories, making it easy to upload attachments along with the email content.
Documentation
MCP Email Server
Features
Send emails with multiple recipients
Support for email attachments
Search for files in directories based on pattern matching
Secure email transmission using SMTP
Available Tools
send_email
search_attachments
Installation# Using pip
Install the required dependencies:
pip install pydantic python-dotenv
Email Configuration
An email.json file with SMTP server configurations:
For Gmail and other services, you may need to use an app-specific password
The server supports a limited set of attachment file types for security reasons
Supported File Types
Documents: doc, docx, xls, xlsx, ppt, pptx, pdf
Archives: zip, rar, 7z, tar, gz
Text files: txt, log, csv, json, xml
Images: jpg, jpeg, png, gif, bmp
Other: md
Example Usage# Sending an Email
{
"receiver": ["[email protected]"],
"subject": "Test Email from MCP Server",
"body": "This is a test email sent via the MCP Email Server.",
"attachments": ["document.pdf", "image.jpg"]
}
Searching for Attachments
{
"pattern": "report"
}
Contributing
We encourage contributions to help expand and improve the MCP Email Server. Whether you want to add new tools, enhance existing functionality, or improve documentation, your input is valuable.