About MCP Resend Email
MCP Resend Email is an MCP server for sending email through the Resend API, intended for support, marketing, and notification tasks. It handles text, HTML, and attachment emails, as well as predefined message templates.
Key features
- 01Send plain-text email
- 02Send HTML email
- 03Send email with attachments
- 04Use support, marketing, and welcome templates
Use cases
- 01Send customer support ticket replies
- 02Send marketing emails with action links
- 03Send welcome emails to new users
MCP support
The MCP server exposes Resend API email-sending tools to clients and can be configured for stdio or SSE transport.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
6Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| bcc | string | No | BCC email addresses, comma-separated for multiple recipients |
| cc | string | No | CC email addresses, comma-separated for multiple recipients |
| from | string | Yes | Sender email address |
| replyTo | string | No | Reply-to email address |
| subject | string | Yes | Email subject |
| text | string | Yes | Plain text content of the email |
| to | string | Yes | Recipient email address, comma-separated for multiple recipients |
Details
From the project READMEMCP Resend Email
这是一个基于Resend API的MCP Server,提供便捷的邮件发送功能。可用于客服回复、营销邮件、通知邮件等场景。
功能特点
- 发送纯文本邮件
- 发送HTML格式邮件
- 发送带附件的邮件
- 使用预定义模板发送客服回复邮件
- 使用预定义模板发送营销邮件
- 使用预定义模板发送欢迎邮件
使用方法
在各种 MCP Client 中使用
Windsurf 配置
在 Windsurf 配置文件中添加:
{
"mcpServers": {
"mcp-resend-email": {
"command": "npx",
"args": ["mcp-resend-email", "--api-key=你的API密钥"]
}
}
}
Cursor 配置
在项目目录下的 .cursor/mcp.json 或全局的 ~/.cursor/mcp.json 中添加:
{
"mcpServers": {
"mcp-resend-email": {
"command": "npx",
"args": ["mcp-resend-email", "--api-key=你的API密钥"],
"env": {
"NODE_ENV": "production"
}
}
}
}
Claude 配置
在 Claude 的 MCP 配置中添加:
{
"servers": [
{
"name": "mcp-resend-email",
"command": "npx mcp-resend-email --api-key=你的API密钥"
}
]
}
这样可以自动拉取最新版,无需本地安装。
配置Windsurf连接到MCP服务器
stdio 模式
在 Windsurf 配置中添加:
{
"mcpServers": {
"mcp-resend-email": {
"command": "npx",
"args": ["mcp-resend-email", "--api-key=你的API密钥"]
}
}
}
SSE 模式
在 Windsurf 配置中添加:
{
"mcpServers": {
"mcp-resend-email": {
"transport": "sse",
"url": "http://localhost:3001/sse"
}
}
}
可用工具
1. 发送纯文本邮件
send_email
参数:
from: 发件人邮箱地址to: 收件人邮箱地址,多个收件人可用逗号分隔cc: (可选) 抄送邮箱地址bcc: (可选) 密送邮箱地址replyTo: (可选) 回复邮箱地址subject: 邮件主题text: 邮件纯文本内容
2. 发送HTML邮件
send_html_email
参数:
from: 发件人邮箱地址to: 收件人邮箱地址cc: (可选) 抄送邮箱地址bcc: (可选) 密送邮箱地址replyTo: (可选) 回复邮箱地址subject: 邮件主题html: HTML格式的邮件内容
3. 发送带附件的邮件
send_with_attachment
参数:
from: 发件人邮箱地址to: 收件人邮箱地址subject: 邮件主题text: (可选) 邮件纯文本内容html: (可选) HTML格式的邮件内容attachments: 附件列表,每个附件包含:filename: 文件名content: 文件内容(Base64编码)contentType: 文件MIME类型
4. 发送客服回复邮件
send_customer_service_email
参数:
from: 发件人邮箱地址to: 收件人邮箱地址subject: 邮件主题customerName: 客户姓名ticketId: 工单编号responseText: 回复内容agentName: 客服人员姓名
5. 发送营销邮件
send_marketing_email
参数:
from: 发件人邮箱地址to: 收件人邮箱地址subject: 邮件主题recipientName: (可选) 收件人姓名campaignTitle: 营销活动标题campaignContent: 营销活动内容ctaUrl: 行动号召链接ctaText: 行动号召文本unsubscribeUrl: 退订链接
6. 发送欢迎邮件
send_welcome_email
参数:
from: 发件人邮箱地址to: 收件人邮箱地址subject: 邮件主题firstName: 收件人名字product: 产品名称welcomeMessage: 欢迎消息callToActionUrl: 行动号召链接callToActionText: 行动号召文本
常见问题
问:如何升级到最新版本?
答:只需再次使用 npx 运行即可。npx 会自动获取最新版本。
问:如何获取 Resend API Key?
答:您可以通过在 Resend 官网 注册账号来获取 Resend API Key。注册后,在您的控制面板中导航到 API Keys 部分创建新的 API 密钥。更多信息,请访问 Resend 文档。
许可证
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.