npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@skanda-yutori/mcp-send-email

v1.0.0

Published

MCP server for sending emails via Resend API

Readme

MCP Send Email Server

A Model Context Protocol (MCP) server for sending emails using the Resend API. This package can be used as an MCP server or as a standalone CLI tool.

Installation

As an npx package (recommended)

npx @your-username/mcp-send-email --key YOUR_RESEND_API_KEY

As a global package

npm install -g @your-username/mcp-send-email
mcp-send-email --key YOUR_RESEND_API_KEY

As a local dependency

npm install @your-username/mcp-send-email

Prerequisites

  1. Resend API Key: Get your API key from Resend
  2. Node.js: Version 18 or higher

Configuration

Environment Variables

You can configure the server using environment variables:

  • RESEND_API_KEY: Your Resend API key (required)
  • SENDER_EMAIL_ADDRESS: Default sender email address (optional)
  • REPLY_TO_EMAIL_ADDRESSES: Comma-separated list of reply-to email addresses (optional)

Command Line Arguments

  • --key: Resend API key
  • --sender: Default sender email address
  • --reply-to: Reply-to email address(es)

Usage

As an MCP Server

The server runs on stdio and can be integrated with MCP clients:

npx @your-username/mcp-send-email --key YOUR_API_KEY

MCP Configuration

Add this to your MCP client configuration:

{
  "mcpServers": {
    "email": {
      "command": "npx",
      "args": ["@your-username/mcp-send-email", "--key", "YOUR_API_KEY"]
    }
  }
}

Available Tools

The server provides a send-email tool with the following parameters:

  • to (required): Recipient email address
  • subject (required): Email subject line
  • text (required): Plain text email content
  • html (optional): HTML email content
  • from (optional): Sender email address (if not configured globally)
  • replyTo (optional): Reply-to email addresses
  • cc (optional): CC email addresses
  • bcc (optional): BCC email addresses
  • scheduledAt (optional): Schedule email using natural language (e.g., "tomorrow at 10am")

Examples

Basic Email

// Using the MCP tool
await sendEmail({
  to: "[email protected]",
  subject: "Hello from MCP",
  text: "This is a test email sent via MCP server."
});

HTML Email with Scheduling

await sendEmail({
  to: "[email protected]",
  subject: "HTML Email",
  text: "Plain text fallback",
  html: "<h1>Hello!</h1><p>This is an HTML email.</p>",
  scheduledAt: "tomorrow at 9am PST"
});

Development

Building from Source

git clone https://github.com/your-username/mcp-send-email.git
cd mcp-send-email
npm install
npm run build

Running in Development

npm install
npm run build
node build/index.js --key YOUR_API_KEY

Publishing Updates

  1. Update the version in package.json
  2. Update CHANGELOG.md
  3. Build the project: npm run build
  4. Publish to npm: npm publish

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

Email sending MCP 💌

smithery badge

This is a simple MCP server that sends emails using Resend's API. Why? Now you can let Cursor or Claude Desktop compose emails for you and send it right away without having to copy and paste the email content.

As an example, you could use this to run local scripts, chat with Claude, or process data and send the results to yourself or your team.

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

Currently, you must build the project locally to use this MCP server. Then add the server in Cursor or Claude Desktop to use it in any Cursor or Claude Desktop chat.

  1. Clone this project locally.
git clone https://github.com/resend/mcp-send-email.git
  1. Build the project
npm install
npm run build
  1. Setup Resend

Create a free Resend account and Create an API Key. To send to other addresses, you'll also need to verify your own domain.

[!NOTE] For more info on how to send emails with Resend, see the docs.

Cursor

  1. Open Cursor Settings.

Open the command palette (cmd+shift+p on macOS or ctrl+shift+p on Windows) and choose "Cursor Settings".

  1. Add the MCP server

Select "MCP" from the left sidebar and click "Add new global MCP server".

Add the following config:

{
  "mcpServers": {
    "resend": {
      "type": "command",
      "command": "node ABSOLUTE_PATH_TO_MCP_SEND_EMAIL_PROJECT/build/index.js --key=YOUR_RESEND_API_KEY"
    }
  }
}

You can get the absolute path to your build script by right-clicking on the /build/index.js file in Cursor and selecting Copy Path.

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

[!NOTE] If you don't provide a sender email address, the MCP server will ask you to provide one each time you call the tool.

  1. Test the sending

Now you can test out sending emails by going to email.md.

  • Replace the to: email address with your own
  • Select all text in email.md, and press cmd+l
  • Tell cursor to "send this as an email" in the chat (make sure cursor is in Agent mode by selecting "Agent" on lower left side dropdown).

Claude Desktop

  1. Open Claude's Developer config file

Open Claude Desktop settings and navigate to the "Developer" tab. Click Edit Config.

  1. Add the MCP server

Add the following config:

{
  "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 get the absolute path to your build script by right-clicking on the /build/index.js file in your IDE and selecting Copy Path.

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

[!NOTE] If you don't provide a sender email address, the MCP server will ask you to provide one each time you call the tool.

  1. Test the sending

Close and reopen Claude Desktop. Verify that the resend tool is available in the Claude developer settings.

Claude Desktop developer settings with Resend MCP server showing

Chat with Claude and tell it to send you an email using the resend tool.