Resend Email MCP server

Integrates with the Resend API to enable sending plain text emails with scheduling options and configurable reply-to addresses through command-line or environment variable configuration.
Back to servers
Provider
Resend
Release date
Mar 07, 2025
Language
TypeScript
Stats
364 stars

This MCP server allows you to send emails directly from Cursor or Claude Desktop using Resend's API. Instead of copying and pasting email content, you can have your AI assistant compose and send emails in one seamless workflow. This is useful for sending yourself results from local scripts, AI conversations, or processed data.

Installation

Prerequisites

You'll need to:

  1. Clone the repository locally
  2. Create a Resend account and API key

Step-by-Step Setup

  1. Clone the repository:
git clone https://github.com/resend/mcp-send-email.git
  1. Build the project:
npm install
npm run build
  1. Create a Resend account and API key:

Configuration

Setting Up in Cursor

  1. Open Cursor's Command Palette:

    • macOS: Press cmd+shift+p
    • Windows: Press ctrl+shift+p
    • Select "Cursor Settings"
  2. Add the MCP server:

    • Select "MCP" from the left sidebar
    • Click "Add new global MCP server"
    • Add the following configuration:
{
  "mcpServers": {
    "resend": {
      "type": "command",
      "command": "node ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js --key=YOUR_RESEND_API_KEY"
    }
  }
}
  1. Configuration options:
    • --key: Your Resend API key (required)
    • --sender: Your sender email address from a verified domain (optional)
    • --reply-to: Your reply-to email address (optional)

Setting Up in Claude Desktop

  1. Open Claude Desktop settings and navigate to the "Developer" tab
  2. Click "Edit Config"
  3. Add the following configuration:
{
  "mcpServers": {
    "resend": {
      "command": "node",
      "args": [
        "ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js"
      ],
      "env": {
        "RESEND_API_KEY": "YOUR_RESEND_API_KEY"
      }
    }
  }
}
  1. 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)

Usage

Using with Cursor

  1. Make sure Cursor is in "Agent" mode (select "Agent" in the lower left dropdown)
  2. Open an email file or compose an email in the editor
  3. Select the email content
  4. Press cmd+l to open the chat
  5. Tell Cursor to "send this as an email"

Using with Claude Desktop

  1. Close and reopen Claude Desktop after configuration
  2. Verify the resend tool is available in Claude developer settings
  3. Chat with Claude and ask it to send an email using the resend tool

Features

  • Send plain text and HTML emails
  • Schedule emails for future delivery
  • Add CC and BCC recipients
  • Configure reply-to addresses
  • Customizable sender email (requires domain verification)

If you don't provide a sender email address in the configuration, the MCP server will prompt you to provide one each time you call the tool.

How to add this MCP server to Cursor

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.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later