resend-integration-skills by gocallum/nextjs16-agent-skills
npx skills add https://github.com/gocallum/nextjs16-agent-skills --skill resend-integration-skillsengines: { "node": ">=20" })广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 克隆 Resend MCP 服务器仓库
git clone https://github.com/resend/mcp-send-email.git
cd mcp-send-email
# 安装依赖项(npm 或 pnpm 均支持)
npm install
# 或者如果你更喜欢 pnpm:
# pnpm install
# 构建项目(TypeScript 编译 + 可执行权限设置)
npm run build
构建过程:
build/index.js 创建 MCP 服务器可执行文件要从自定义域名发送邮件:
--sender 标志更新 MCP 配置(参见配置部分)根据您的 GitHub Copilot 套餐选择设置:
对于 GitHub Copilot Coding Agent(仓库级设置):
这是团队协作的推荐方法。仓库管理员在仓库级别配置 MCP 服务器。
{
"mcpServers": {
"resend": {
"type": "local",
"command": "node",
"args": ["/absolute/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "COPILOT_MCP_RESEND_API_KEY"
},
"tools": ["*"]
}
}
}
4. 设置 Copilot 环境:
* 前往 Settings → Environments
* 创建一个名为 `copilot` 的新环境
* 添加密钥:`COPILOT_MCP_RESEND_API_KEY`,值为您的 API 密钥
5. 点击保存,Copilot 将验证配置
对于 VS Code 本地开发(开发者设置):
如果您在本地开发或偏好 VS Code 配置:
.vscode/mcp.json:{
"servers": {
"resend": {
"type": "command",
"command": "node",
"args": ["/absolute/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "re_xxxxxxxxxxxxxx"
}
}
}
}
2. 获取 build/index.js 的绝对路径:
* 在 VS Code 中右键点击 build/index.js → 复制路径
对于 Cursor Agent 模式:
打开 Cursor 设置(Cmd+Shift+P → "Cursor Settings")并添加到 MCP 配置:
{
"mcpServers": {
"resend": {
"type": "command",
"command": "node /absolute/path/to/mcp-send-email/build/index.js --key=re_xxxxxxxxxxxxxx"
}
}
}
对于 Claude Desktop:
{
"mcpServers": {
"resend": {
"command": "node",
"args": ["/absolute/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "re_xxxxxxxxxxxxxx",
"SENDER_EMAIL_ADDRESS": "onboarding@resend.dev",
"REPLY_TO_EMAIL_ADDRESS": "reply@example.com"
}
}
}
}
官方 Resend 仓库包含一个使用 email.md 文件的测试模式:
在项目中创建 email.md:
to: your-email@example.com subject: Test from Resend MCP content: This is a test email.
Hello! This is a test email sent via Resend MCP.
# You can also test CC and BCC:
# cc: colleague@example.com
# bcc: manager@example.com
2. 在 Cursor 中(启用 Agent 模式):
* 打开 `email.md` 文件
* 选择所有文本(`Cmd+A` / `Ctrl+A`)
* 按下 `Cmd+L` / `Ctrl+L`(或使用上下文菜单)
* 告诉 Cursor:"send this as an email" 或 "send this email using resend MCP"
* 确保您处于 Agent 模式(在聊天下拉菜单中切换)
3. 在 Claude Desktop 中:
* 在聊天中粘贴 email.md 的内容
* 让 Claude 发送它:"Send this email using the resend tool"
4. 在 GitHub Copilot 中:
* 打开 email.md 文件
* 在聊天中引用它:"@email.md send this email using resend"
如果配置正确,邮件将立即发送,您会收到确认。
有两种主要方式为 GitHub Copilot 配置 Resend MCP:
1. GitHub Copilot Coding Agent(仓库级)
tools 数组来指定 Copilot 可以使用哪些工具COPILOT_MCP_)2. VS Code 本地开发
.vscode/mcp.json 中配置(本地开发者设置)Resend MCP 服务器是一个本地 Node.js 应用程序,它将 Resend 的邮件功能作为工具暴露给 LLMs。它实现了模型上下文协议,允许 AI 代理:
近期新增功能(截至 2026 年初):
有三种方式运行 Resend MCP 服务器:
对于 GitHub Copilot Coding Agent(基于仓库的设置):
必需的 tools 数组:必须指定 Copilot 可以使用 Resend MCP 服务器中的哪些工具
"tools": ["send_email", "schedule_email", ...] 来允许特定工具"tools": ["*"] 来启用所有工具无需批准:一旦配置,Copilot 将自主使用这些工具而无需询问
安全考虑:Copilot 将通过配置的工具自动访问 Resend API,因此只启用您需要的工具
环境变量处理:API 密钥必须存储为带有 COPILOT_MCP_ 前缀的 GitHub Actions 密钥
"COPILOT_MCP_RESEND_API_KEY"(不带值)Resend MCP 服务器需要:
默认情况下,Resend 允许使用测试域 onboarding@resend.dev 向您自己的账户邮箱发送邮件。要向其他地址发送邮件:
onboarding@resend.dev 发件人(无需验证)SENDER_EMAIL_ADDRESS)注意:如果您不提供 SENDER_EMAIL_ADDRESS,MCP 服务器每次发送邮件时都会提示您。
在启用 GitHub Copilot Agent 模式的 VS Code Insider 中:
@workspace I need to send a notification email to john@example.com about the project completion. Use the resend MCP tool to send "Project ABC is now live" as the email body.
Send an HTML email to team@example.com with subject "Monthly Report" and body formatted as an HTML table showing Q1 metrics. Use Resend MCP to send it.
Send an email from onboarding@mycompany.com to customer@example.com CC'ing manager@company.com about account activation. Use Resend MCP.
Schedule an email to be sent tomorrow at 9 AM using Resend MCP, reminding the team about the standup meeting.
Read the CSV file users.csv, extract the top 10 active users with their emails, and send each a personalized thank you email using Resend MCP. Include their usage statistics in the email.
向您 Resend 账户中的受众群体发送邮件:
Send a broadcast email to my 'premium_users' audience with subject 'New Feature Release' using Resend MCP
查询和处理受众:
List all my audiences in Resend using the MCP tool
重要:为 GitHub Copilot Coding Agent 配置 Resend MCP 时:
工具白名单 - 只启用 Copilot 需要的特定工具:
"tools": ["send_email", "schedule_email"]
而不是使用 "*" 启用所有工具
密钥管理 - 切勿将 API 密钥提交到版本控制
COPILOT_MCP_ 开头限制 API 密钥范围 - 如果可用,考虑使用受限的 Resend API 密钥
审查 Copilot 的操作 - 检查 Copilot 创建的拉取请求,以验证邮件是否会被适当发送
环境隔离 - 使用 copilot 环境来管理哪些仓库/工作流可以访问您的邮件发送能力
开发时使用 .env.local:
RESEND_API_KEY=re_test_xxx
SENDER_EMAIL_ADDRESS=dev@example.com
2. 按环境分离配置:
* 开发环境:测试 API 密钥,限制收件人
* 生产环境:完整 API 密钥,允许所有收件人
3. 在 README.md 中记录所需的环境变量:
## 环境变量
- RESEND_API_KEY: Resend API 密钥(必需)
- SENDER_EMAIL_ADDRESS: 已验证的发件人邮箱(可选)
- REPLY_TO_EMAIL_ADDRESS: 回复邮箱(可选)
解决方案:检查并更新 Node.js 版本
node --version # 应为 v20.0.0 或更高
brew install node@20(如果使用 Homebrew)nvm-windowsnvm install 20 或使用包管理器node --version 应显示 v20.x.x 或更高版本解决方案:Node.js 未安装或不在 PATH 中
node --version解决方案:未提供 API 密钥或密钥无效
re_ 开头解决方案:认证或域名验证问题
解决方案:依赖项或 TypeScript 编译错误
# 清理并重新安装依赖项
rm -rf node_modules package-lock.json
npm install
npm run build
常见构建错误:
chmod +x - 尝试从不同目录运行node_modules 并重新全新安装解决方案:配置或服务器启动问题
GitHub Copilot:
.vscode/mcp.json 在项目根目录(非嵌套)build/index.js 的绝对路径是否正确Cursor:
Claude Desktop:
claude_desktop_config.json 语法build/index.js 文件是否存在解决方案:代理模型或模式问题
解决方案:发件人邮箱未验证
用于共享团队环境或基于云的设置:
{
"servers": {
"resend": {
"type": "http",
"url": "https://your-mcp-server.example.com/mcp"
}
}
}
您的 HTTP 服务器应将请求转发到 Resend API。
为每个环境使用不同的 .mcp.json 文件:
# 开发环境
cp .mcp.dev.json .vscode/mcp.json
# 生产环境
cp .mcp.prod.json .vscode/mcp.json
您可以同时配置两者:
Claude Desktop 配置:
{
"mcpServers": {
"resend": {
"command": "node",
"args": ["/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "re_xxxxx"
}
}
}
}
VS Code .vscode/mcp.json:
{
"servers": {
"resend": {
"type": "command",
"command": "node /path/to/mcp-send-email/build/index.js",
"env": {
"RESEND_API_KEY": "re_xxxxx"
}
}
}
}
两者都将使用相同的本地 MCP 服务器实例。
设置阶段:使用生产 API 密钥部署 MCP 服务器
自动化阶段:在 Claude Desktop 或 Copilot 中配置
集成阶段:通过 AI 代理在应用逻辑中使用
When order is confirmed, send confirmation email with order details using Resend MCP
监控阶段:检查 Resend 仪表板获取发送状态
每周安装数
185
仓库
GitHub 星标数
18
首次出现
2026 年 1 月 20 日
安全审计
安装在
gemini-cli144
opencode142
codex141
github-copilot132
cursor126
claude-code108
engines: { "node": ">=20" })# Clone the Resend MCP server repository
git clone https://github.com/resend/mcp-send-email.git
cd mcp-send-email
# Install dependencies (npm or pnpm both supported)
npm install
# or if you prefer pnpm:
# pnpm install
# Build the project (TypeScript compilation + executable permissions)
npm run build
The build process:
build/index.jsTo send emails from a custom domain:
--sender flag (see Configuration section)Choose your setup based on your GitHub Copilot tier:
For GitHub Copilot Coding Agent (Repository-level setup):
This is the recommended approach for team collaboration. Repository admins configure MCP servers at the repository level.
{
"mcpServers": {
"resend": {
"type": "local",
"command": "node",
"args": ["/absolute/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "COPILOT_MCP_RESEND_API_KEY"
},
"tools": ["*"]
}
}
}
4. Set up the Copilot environment:
* Go to Settings → Environments
* Create new environment called `copilot`
* Add secret: `COPILOT_MCP_RESEND_API_KEY` with your API key value
5. Click Save and Copilot will validate the configuration
For VS Code Local Development (Developer setup):
If you're developing locally or prefer VS Code configuration:
.vscode/mcp.json in your project root:{
"servers": {
"resend": {
"type": "command",
"command": "node",
"args": ["/absolute/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "re_xxxxxxxxxxxxxx"
}
}
}
}
2. Get the absolute path to build/index.js:
* Right-click build/index.js in VS Code → Copy Path
For Cursor Agent Mode:
Open Cursor Settings (Cmd+Shift+P → "Cursor Settings") and add to MCP config:
{
"mcpServers": {
"resend": {
"type": "command",
"command": "node /absolute/path/to/mcp-send-email/build/index.js --key=re_xxxxxxxxxxxxxx"
}
}
}
For Claude Desktop:
{
"mcpServers": {
"resend": {
"command": "node",
"args": ["/absolute/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "re_xxxxxxxxxxxxxx",
"SENDER_EMAIL_ADDRESS": "onboarding@resend.dev",
"REPLY_TO_EMAIL_ADDRESS": "reply@example.com"
}
}
}
}
The official Resend repository includes a test pattern using an email.md file:
Createemail.md in your project:
to: your-email@example.com subject: Test from Resend MCP content: This is a test email.
Hello! This is a test email sent via Resend MCP.
# You can also test CC and BCC:
# cc: colleague@example.com
# bcc: manager@example.com
2. In Cursor (with Agent mode):
* Open the `email.md` file
* Select all text (`Cmd+A` / `Ctrl+A`)
* Press `Cmd+L` / `Ctrl+L` (or use the context menu)
* Tell Cursor: "send this as an email" or "send this email using resend MCP"
* Make sure you're in Agent mode (toggle in chat dropdown)
3. In Claude Desktop:
* Paste the email.md content in the chat
* Ask Claude to send it: "Send this email using the resend tool"
4. In GitHub Copilot:
* Open email.md file
* Reference it in the chat: "@email.md send this email using resend"
If configured correctly, the email will be sent immediately and you'll receive confirmation.
There are two main ways to configure Resend MCP with GitHub Copilot:
1. GitHub Copilot Coding Agent (Repository-level)
tools array specifying which tools Copilot can useCOPILOT_MCP_)2. VS Code Local Development
.vscode/mcp.json (local developer setup)The Resend MCP Server is a local Node.js application that exposes Resend's email functionality as tools for LLMs. It implements the Model Context Protocol, allowing AI agents to:
Recent additions (as of early 2026):
There are three ways to run the Resend MCP server:
For GitHub Copilot Coding Agent (repository-based setup):
Requiredtools array: Must specify which tools from the Resend MCP server Copilot can use
"tools": ["send_email", "schedule_email", ...] to allowlist specific tools"tools": ["*"] to enable all toolsNo approval required : Once configured, Copilot will use these tools autonomously without asking
Security consideration : Copilot will have automated access to the Resend API via the configured tools, so only enable the tools you need
Environment variable handling : API keys must be stored as GitHub Actions secrets with COPILOT_MCP_ prefix
"COPILOT_MCP_RESEND_API_KEY" (without the value)Resend MCP server requires:
By default, Resend allows sending to your own account email using the test domain onboarding@resend.dev. To send to other addresses:
onboarding@resend.dev sender (no verification needed)SENDER_EMAIL_ADDRESS)Note: If you don't provide a SENDER_EMAIL_ADDRESS, the MCP server will prompt you each time you send an email.
In VS Code Insider with GitHub Copilot Agent mode:
@workspace I need to send a notification email to john@example.com about the project completion. Use the resend MCP tool to send "Project ABC is now live" as the email body.
Send an HTML email to team@example.com with subject "Monthly Report" and body formatted as an HTML table showing Q1 metrics. Use Resend MCP to send it.
Send an email from onboarding@mycompany.com to customer@example.com CC'ing manager@company.com about account activation. Use Resend MCP.
Schedule an email to be sent tomorrow at 9 AM using Resend MCP, reminding the team about the standup meeting.
Read the CSV file users.csv, extract the top 10 active users with their emails, and send each a personalized thank you email using Resend MCP. Include their usage statistics in the email.
Send emails to audience segments in your Resend account:
Send a broadcast email to my 'premium_users' audience with subject 'New Feature Release' using Resend MCP
Query and work with audiences:
List all my audiences in Resend using the MCP tool
Important : When configuring Resend MCP for GitHub Copilot Coding Agent:
Tool allowlisting - Only enable the specific tools Copilot needs:
"tools": ["send_email", "schedule_email"]
Instead of enabling all tools with "*"
Secret management - Never commit API keys to version control
COPILOT_MCP_Scope your API key - Consider using a restricted Resend API key if available
Review Copilot's actions - Check pull requests created by Copilot to verify emails would be sent appropriately
Environment isolation - Use the copilot environment to manage which repositories/workflows have access to your email sending capability
Use.env.local for development:
RESEND_API_KEY=re_test_xxx
SENDER_EMAIL_ADDRESS=dev@example.com
2. Separate configs per environment :
* Development: Test API key, limited recipients
* Production: Full API key, all recipients allowed
3. Document required env vars in README.md:
## Environment Variables
- RESEND_API_KEY: Resend API key (required)
- SENDER_EMAIL_ADDRESS: Verified sender email (optional)
- REPLY_TO_EMAIL_ADDRESS: Reply-to email (optional)
Solution : Check and update Node.js version
node --version # Should be v20.0.0 or higher
brew install node@20 (if using Homebrew)nvm-windowsnvm install 20 or use package managernode --version should show v20.x.x or laterSolution : Node.js is not installed or not in PATH
node --versionSolution : API key not provided or invalid
re_Solution : Authentication or domain verification issue
Solution : Dependency or TypeScript compilation error
# Clear and reinstall dependencies
rm -rf node_modules package-lock.json
npm install
npm run build
Common build errors:
chmod +x - try running from a different directorynode_modules and reinstall freshSolution : Configuration or server startup issue
GitHub Copilot:
.vscode/mcp.json is in project root (not nested)build/index.js is correctCursor:
Claude Desktop:
claude_desktop_config.json syntaxbuild/index.js file existsSolution : Agent model or mode issue
Solution : Sender email not verified
For shared team environments or cloud-based setups:
{
"servers": {
"resend": {
"type": "http",
"url": "https://your-mcp-server.example.com/mcp"
}
}
}
Your HTTP server should forward requests to Resend API.
Use different .mcp.json files per environment:
# Development
cp .mcp.dev.json .vscode/mcp.json
# Production
cp .mcp.prod.json .vscode/mcp.json
You can configure both simultaneously:
Claude Desktop config:
{
"mcpServers": {
"resend": {
"command": "node",
"args": ["/path/to/mcp-send-email/build/index.js"],
"env": {
"RESEND_API_KEY": "re_xxxxx"
}
}
}
}
VS Code.vscode/mcp.json:
{
"servers": {
"resend": {
"type": "command",
"command": "node /path/to/mcp-send-email/build/index.js",
"env": {
"RESEND_API_KEY": "re_xxxxx"
}
}
}
}
Both will use the same local MCP server instance.
Setup Phase : Deploy MCP server with production API key
Automation Phase : Configure in Claude Desktop or Copilot
Integration Phase : Use in application logic via AI agent
When order is confirmed, send confirmation email with order details using Resend MCP
Monitoring Phase : Check Resend dashboard for delivery status
Weekly Installs
185
Repository
GitHub Stars
18
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
gemini-cli144
opencode142
codex141
github-copilot132
cursor126
claude-code108
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
150,000 周安装