This MCP server enables you to send emails directly through Resend's API from Cursor or Claude Desktop. This integration allows AI assistants to compose and send emails without requiring you to copy and paste content, streamlining your workflow for communications, local script outputs, or sharing processed data.
git clone https://github.com/resend/mcp-send-email.git
npm install
npm run build
Open Cursor Settings:
cmd
+shift
+p
on macOS or ctrl
+shift
+p
on Windows)Add the MCP server:
{
"mcpServers": {
"resend": {
"type": "command",
"command": "node ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js --key=YOUR_RESEND_API_KEY"
}
}
}
You can customize the server with these arguments:
--key
: Your Resend API key (required)--sender
: Your sender email address from a verified domain (optional)--reply-to
: Your reply-to email address (optional)Open Claude's Developer config file:
Add the MCP server with this configuration:
{
"mcpServers": {
"resend": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js"
],
"env": {
"RESEND_API_KEY": "YOUR_RESEND_API_KEY"
}
}
}
}
You can customize the server with these environment variables:
RESEND_API_KEY
: Your Resend API key (required)SENDER_EMAIL_ADDRESS
: Your sender email address from a verified domain (optional)REPLY_TO_EMAIL_ADDRESS
: Your reply-to email address (optional)email.md
) with your email contentcmd+l
resend
tool is available in Claude developer settingsresend
toolIf you don't provide a sender email address in the configuration, the MCP server will prompt you to provide one each time you use the tool.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "resend" '{"type":"command","command":"node ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js --key=YOUR_RESEND_API_KEY"}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"resend": {
"type": "command",
"command": "node ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js --key=YOUR_RESEND_API_KEY"
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"resend": {
"type": "command",
"command": "node ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js --key=YOUR_RESEND_API_KEY"
}
}
}
3. Restart Claude Desktop for the changes to take effect