From gocallum-nextjs16-agent-skills
Integrate Resend email service via MCP protocol for AI agents to send emails with Claude Desktop, GitHub Copilot, and Cursor. Set up transactional and marketing emails, configure sender verification, and use AI to automate email workflows.
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin gocallum-nextjs16-agent-skillsThis skill uses the workspace's default tool permissions.
- **Resend Official**: https://resend.com
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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": ["*"]
}
}
}
Set up the Copilot environment:
copilotCOPILOT_MCP_RESEND_API_KEY with your API key valueClick 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"
}
}
}
}
build/index.js:
build/index.js in VS Code → Copy PathFor 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:
Create email.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
In Cursor (with Agent mode):
email.md fileCmd+A / Ctrl+A)Cmd+L / Ctrl+L (or use the context menu)In Claude Desktop:
In GitHub Copilot:
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):
Required tools 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:
# .env.local (not committed)
RESEND_API_KEY=re_test_xxx
SENDER_EMAIL_ADDRESS=dev@example.com
Separate configs per environment:
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.
When order is confirmed, send confirmation email with order details using Resend MCP