Name | Updated at | |
---|---|---|
以下参数中,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)
to_email
subject
body
cc
bcc
scheduled_at
,格式为YYYY-MM-DDTHH:MM:SS.ssssssZ
,例如2025-10-01T12:00:00.000000Z
,表示在2023年10月1日12点发送邮件(Format is YYYY-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)群发邮件(Mass email sending) - 发送多封邮件(Send multiple emails)
to_email_list
subject
body
scheduled_at
,格式为YYYY-MM-DDTHH:MM:SS.ssssssZ
,例如2025-10-01T12:00:00.000000Z
,表示在2023年10月1日12点发送邮件(Format is YYYY-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)查询邮件(Email query) - 查询邮件详细信息(Query email details)
email_id
更新延迟发送的邮件(Update delayed emails) - 更新延迟发送的邮件(Update delayed emails)
email_id
scheduled_at
,格式为YYYY-MM-DDTHH:MM:SS.ssssssZ
,例如2025-10-01T12:00:00.000000Z
,表示在2023年10月1日12点发送邮件(Format is YYYY-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)取消延迟发送的邮件(Cancel delayed emails) - 取消延迟发送的邮件(Cancel delayed emails)
email_id
git clone https://github.com/Marary/mcp_server_email.git
cd mcp_server_email
pip install -r requirements.txt
{
"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的文档。
配置好以上所有内容后,就可以使用服务了(After configuring all the above content, you can use the service).