MCP Email Service
Enables sending emails (including mass emailing), querying, updating, and canceling delayed emails via the Resend API.
README
MCP邮件服务
该仓库是基于MCP协议和resend开发的发送邮件的服务,可以使用该服务进行发送邮件,包括群发,并且可以通过邮件id查询邮件,更新延迟发送的邮件,以及取消延迟发送的邮件(This repository is a mail-sending service developed based on the MCP protocol and Resend. It can be used to send emails, including mass emails. Additionally, it allows querying emails by ID, updating delayed emails, and canceling delayed emails.)
可以做什么(What can it do)
以下参数中,cc、bcc和to_eamil_list为list类型,其他参数为string类型(Among the following parameters, cc, bcc, and to_email_list are of list type, while other parameters are of string type)
-
发送邮件(Send emails) - 发送单封邮件(Send single email)
- 必要参数(Required parameters):
- 收件人(Recipient):
to_email - 主题(Subject):
subject - 内容(Content):
body
- 收件人(Recipient):
- 可选参数(Optional parameters):
- 抄送(CC):
cc - 密送(BCC):
bcc - 延迟发送(Delayed sending):
scheduled_at,格式为YYYY-MM-DDTHH:MM:SS.ssssssZ,例如2025-10-01T12:00:00.000000Z,表示在2023年10月1日12点发送邮件(Format isYYYY-MM-DDTHH:MM:SS.ssssssZ, for example,2025-10-01T12:00:00.000000Z, which means sending the email at 12 o'clock on October 1, 2025)
- 抄送(CC):
- 必要参数(Required parameters):
-
群发邮件(Mass email sending) - 发送多封邮件(Send multiple emails)
- 必要参数(Required parameters):
- 收件人列表(Recipient list):
to_email_list - 主题(Subject):
subject - 内容(Content):
body
- 收件人列表(Recipient list):
- 可选参数(Optional parameters):
- 延迟发送(Delayed sending):
scheduled_at,格式为YYYY-MM-DDTHH:MM:SS.ssssssZ,例如2025-10-01T12:00:00.000000Z,表示在2023年10月1日12点发送邮件(Format isYYYY-MM-DDTHH:MM:SS.ssssssZ, for example,2025-10-01T12:00:00.000000Z, which means sending the email at 12 o'clock on October 1, 2025)
- 延迟发送(Delayed sending):
- 必要参数(Required parameters):
-
查询邮件(Email query) - 查询邮件详细信息(Query email details)
- 必要参数(Required parameters):
- 邮件ID(Email ID):
email_id
- 邮件ID(Email ID):
- 必要参数(Required parameters):
-
更新延迟发送的邮件(Update delayed emails) - 更新延迟发送的邮件(Update delayed emails)
- 必要参数(Required parameters):
- 邮件ID(Email ID):
email_id - 延迟发送时间(Delayed sending time):
scheduled_at,格式为YYYY-MM-DDTHH:MM:SS.ssssssZ,例如2025-10-01T12:00:00.000000Z,表示在2023年10月1日12点发送邮件(Format isYYYY-MM-DDTHH:MM:SS.ssssssZ, for example,2025-10-01T12:00:00.000000Z, which means sending the email at 12 o'clock on October 1, 2025)
- 邮件ID(Email ID):
- 必要参数(Required parameters):
-
取消延迟发送的邮件(Cancel delayed emails) - 取消延迟发送的邮件(Cancel delayed emails)
- 必要参数(Required parameters):
- 邮件ID(Email ID):
email_id
- 邮件ID(Email ID):
- 必要参数(Required parameters):
使用方法(Usage)
- 首先,将代码克隆到本地(First, clone the code to your local machine)
git clone https://github.com/Marary/mcp_server_email.git
- 进入代码目录(Enter the code directory)
cd mcp_server_email
- 安装依赖项(Install dependencies)
pip install -r requirements.txt
- 修改MCP客户端的配置文件,我以cline为例,修改cline_mcp_settings.json文件,添加以下内容(Modify the MCP client configuration file. I will take cline as an example. Modify the cline_mcp_settings.json file and add the following content):
{
"mcpServers": {
"sendEmail": {
"disabled": false,
"timeout": 60,
"command": "python",
"args": [
"YOUR_FILE_PATH\\main.py",
"--api-key",
"YOUR_API_KEY",
"--domain",
"YOUR_DOMAIN",
],
"transportType": "stdio"
}
}
}
上面的YOUR_FILE_PATH替换为你克隆的代码的路径(Replace YOUR_FILE_PATH with the path of the cloned code), YOUR_API_KEY替换为你在resend上申请的api_key(Replace YOUR_API_KEY with the api_key you applied for on resend), YOUR_DOMAIN替换为你在resend上申请的域名(Replace YOUR_DOMAIN with the domain name you applied for on resend).
resend的api_key和域名设置方法请参考resend的文档。
- 使用服务(Use the service)
配置好以上所有内容后,就可以使用服务了(After configuring all the above content, you can use the service).
示例(Example)
- 请你发送给email@example.com一封主题为请假的邮件,内容为某某某今天发烧了,不能正常工作,想要请假一天,望批准,并且帮我修饰一下辞藻,同时抄送给email2@example.com。(Please send an email to email@example.com with the subject "Leave Request". The content should state that someone is feverish today and unable to work normally, requesting a one-day leave, and hoping for approval. Also, please embellish the wording a bit and send a copy to email2@example.com.)
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.