电子邮件发送 MCP 💌
这是一个简单的 MCP 服务器,它使用 Resend 的 API 发送电子邮件。为什么?因为现在您可以让 Cursor 或 Claude Desktop 为您撰写电子邮件并立即发送,而无需复制和粘贴电子邮件内容。
例如,您可以使用它来运行本地脚本、与 Claude 聊天或处理数据并将结果发送给您自己或您的团队。
内置:
特征
- 发送纯文本和 HTML 电子邮件
- 安排将来发送的电子邮件
- 添加抄送和密送收件人
- 配置回复地址
- 可定制的发件人电子邮件(需要验证)
演示
https://github.com/user-attachments/assets/8c05cbf0-1664-4b3b-afb1-663b46af3464
设置
目前,您必须在本地构建项目才能使用此 MCP 服务器。然后在Cursor或Claude Desktop中添加该服务器,即可在任何 Cursor 或 Claude Desktop 聊天中使用它。
- 在本地克隆此项目。
- 构建项目
- 设置重新发送
创建一个免费的 Resend 帐户并创建一个 API 密钥。要发送到其他地址,您还需要验证自己的域名。
[!NOTE] 有关如何使用“重新发送”发送电子邮件的更多信息,请参阅文档。
光标
- 打开光标设置。
打开命令面板(macOS 上为cmd
+ shift
+ p
或 Windows 上为ctrl
+ shift
+ p
)并选择“光标设置”。
- 添加 MCP 服务器
从左侧边栏中选择“MCP”,然后点击“添加新的全局 MCP 服务器”。
添加以下配置:
您可以通过右键单击 Cursor 中的/build/index.js
文件并选择Copy Path
来获取构建脚本的绝对路径。
可能的论点
--key
:您的重新发送 API 密钥(必需)--sender
:来自已验证域的发件人电子邮件地址(可选)--reply-to
:您的回复电子邮件地址(可选)
[!NOTE] 如果您不提供发件人电子邮件地址,MCP 服务器将在您每次调用该工具时要求您提供一个。
- 测试发送
现在您可以通过访问email.md
来测试发送电子邮件。
- 将收件人:电子邮件地址替换为您自己的
- 选择
email.md
中的所有文本,然后按cmd+l
- 在聊天中告诉光标“以电子邮件形式发送”(通过在左下方下拉菜单中选择“代理”确保光标处于代理模式)。
克劳德桌面
- 打开 Claude 的开发者配置文件
打开 Claude Desktop 设置并导航到“开发者”选项卡。单击Edit Config
。
- 添加 MCP 服务器
添加以下配置:
您可以通过右键单击 IDE 中的/build/index.js
文件并选择Copy Path
来获取构建脚本的绝对路径。
可能的环境变量
RESEND_API_KEY
:您的重新发送 API 密钥(必需)SENDER_EMAIL_ADDRESS
:来自已验证域的发件人电子邮件地址(可选)REPLY_TO_EMAIL_ADDRESS
:您的回复电子邮件地址(可选)
[!NOTE] 如果您不提供发件人电子邮件地址,MCP 服务器将在您每次调用该工具时要求您提供一个。
- 测试发送
关闭并重新打开 Claude Desktop。验证 Claude 开发者设置中是否提供了resend
工具。
与 Claude 聊天并告诉它使用resend
工具向您发送电子邮件。
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
一个简单的 MCP 服务器,使用户能够使用 Resend 的 API 发送电子邮件,并与 Cursor 和 Claude Desktop 等工具集成,实现无缝的电子邮件撰写和传递。
Related Resources
Related MCP Servers
- -securityAlicense-qualityIntegrates with Gmail to enable sending, reading, drafting, and managing emails via the Model Context Protocol (MCP), allowing users to interact with email tasks through automated client prompts.Last updated -PythonGPL 3.0
- -securityAlicense-qualityMCP server that integrates with Gmail to enable sending, reading, and managing emails through tools like send-email, trash-email, get-unread-emails, and read-email.Last updated -17PythonGPL 3.0
- -securityFlicense-qualityAn MCP server that allows Claude Desktop or Cursor to send emails directly using Resend's API, eliminating the need to copy-paste email content.Last updated -6TypeScript
- -securityAlicense-qualityAn MCP server that enables sending emails directly through AWS SES without copy-pasting, supporting plain text and HTML emails with features like CC, BCC, and reply-to functionality.Last updated -TypeScriptMIT License