MCP Email Service

MCP Email Service

Enables sending emails (including mass emailing), querying, updating, and canceling delayed emails via the Resend API.

Category
访问服务器

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)

以下参数中,ccbccto_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
    • 可选参数(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 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)

    • 必要参数(Required parameters):
      • 收件人列表(Recipient list): to_email_list
      • 主题(Subject): subject
      • 内容(Content): body
    • 可选参数(Optional parameters):
      • 延迟发送(Delayed sending): 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)

    • 必要参数(Required parameters):
      • 邮件ID(Email ID): email_id
  • 更新延迟发送的邮件(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 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)

    • 必要参数(Required parameters):
      • 邮件ID(Email ID): email_id

使用方法(Usage)

  1. 首先,将代码克隆到本地(First, clone the code to your local machine)
git clone https://github.com/Marary/mcp_server_email.git
  1. 进入代码目录(Enter the code directory)
cd mcp_server_email
  1. 安装依赖项(Install dependencies)
pip install -r requirements.txt
  1. 修改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的文档

  1. 使用服务(Use the service)

配置好以上所有内容后,就可以使用服务了(After configuring all the above content, you can use the service).

示例(Example)

  1. 请你发送给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.)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选