MCP HubMCP Hub
resend

mcp-send-email

by: resend

Send emails directly from Cursor with this email sending MCP server

303created 24/02/2025
Visit
email
Cursor

📌Overview

Purpose: This framework aims to simplify the process of sending emails by integrating with Resend's API, allowing users to send emails generated by Cursor or Claude Desktop without manual copying and pasting.

Overview: This email-sending MCP server utilizes Resend's services to enable users to send both plain text and HTML emails seamlessly, enhancing productivity by integrating directly with popular tools like Cursor and Claude Desktop.

Key Features:

  • Send Plain Text and HTML Emails: Allows users to send formatted emails easily, catering to different content requirements.

  • Schedule Emails for Future Delivery: Users can set up emails to be sent at a preferred time, ensuring timely communication.

  • Add CC and BCC Recipients: This feature helps in managing extended email communication without disclosing recipient addresses to each other.

  • Configure Reply-to Addresses: Customization of reply-to settings enhances usability by directing responses to the desired email.

  • Customizable Sender Email (Requires Verification): Users can send emails from their verified email addresses, providing a professional touch to communications.


Email sending MCP 💌

This is a simple MCP server that sends emails using Resend's API. It allows Cursor or Claude Desktop to compose emails and send them directly without copying and pasting email content.

Built with:

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 verification)

Demo

https://github.com/user-attachments/assets/8c05cbf0-1664-4b3b-afb1-663b46af3464

Setup for Cursor

  1. Authorize Resend to send emails from your domain or email. Follow the steps here to set up and get a Resend API key.
  2. Clone this project locally. Edit index.ts and replace me@yoko.dev with your own sender email.
  3. Run npm install, then npm run build in the project directory. You should now see /build/index.js generated — this is the MCP server script.

Go to Cursor Settings -> MCP -> Add new MCP server

  • Name: choose your own name
  • Type: command
  • Command:
    node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key=YOUR_RESEND_API_KEY --sender=OPTIONAL_SENDER_EMAIL_ADDRESS --reply-to=OPTIONAL_REPLY_TO_EMAIL_ADDRESS_ONE --reply-to=OPTIONAL_REPLY_TO_EMAIL_ADDRESS_TWO
    

You can get a Resend API key here: https://resend.com/

To test sending emails:

  • Open email.md and replace the to: email address
  • Select all content in the email markdown file and hit cmd+l
  • Tell Cursor to "send this as an email" in the chat
  • Ensure Cursor chat is in Agent mode by selecting "Agent" in the lower-left dropdown

Setup for Claude Desktop

Follow the same setup as Cursor, then add the following MCP config:

{
  "mcpServers": {
    "resend": {
      "command": "node",
      "args": ["ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js"],
      "env": {
        "RESEND_API_KEY": "[YOUR_API_KEY]",
        "SENDER_EMAIL_ADDRESS": "[OPTIONAL_SENDER_EMAIL_ADDRESS]",
        "REPLY_TO_EMAIL_ADDRESSES": "[OPTIONAL_REPLY_TO_EMAIL_ADDRESSES_COMMA_DELIMITED]"
      }
    }
  }
}

Development

npm install
npm run build