MCP ExplorerExplorer

Resend Mcp

@pontusabon 9 months ago
5 MIT
FreeCommunity
AI Systems
Resend MCP is a TypeScript server for sending emails via the Resend service.

Overview

What is Resend Mcp

Resend-MCP is a Model Context Protocol (MCP) server implementation designed for the Resend email service, allowing users to send emails through a standardized interface.

Use cases

Use cases for Resend-MCP include sending transactional emails, notifications, newsletters, and any other email communications that can benefit from a standardized API.

How to use

To use Resend-MCP, clone the repository, install the dependencies using ‘npm install’, and configure your Resend API key in a ‘.env’ file. You can run the server in development mode with ‘bun run dev’ and in production mode with ‘bun run start’.

Key features

Key features of Resend-MCP include the ability to send emails using Resend through a standardized MCP interface and support for TypeScript.

Where to use

Resend-MCP can be used in applications that require email sending capabilities, particularly in web applications and services that utilize the Resend email service.

Content

Resend MCP Server

A Model Context Protocol (MCP) server implementation for the Resend email
service.

Features

  • Send emails using Resend through a standardized MCP interface
  • TypeScript support

Prerequisites

  • A Resend API key (get one at resend.com)
  • Node.js 18 or later

Installation

  1. Clone the repository
  2. Install dependencies:
npm install

Configuration

Create a .env file in the root directory with your Resend API key:

RESEND_API_KEY=your_api_key_here
PORT=3000  # Optional, defaults to 3000

Development Status

The server implementation is currently blocked by TypeScript type issues with
the MCP SDK. The following issues need to be resolved:

  1. The Server class from @modelcontextprotocol/sdk is not properly exposing
    its request handling methods in the TypeScript types.
  2. The exact method name for handling requests needs to be determined (tried:
    handleRequest, handle, receiveMessage, receive, processRequest).

Next Steps

  1. Check the MCP SDK documentation or source code for the correct method name
  2. Update the TypeScript types in the SDK if they are incorrect
  3. Consider using JavaScript temporarily until the types are fixed

Usage

Development

bun run dev

Production

bun run start

Build

bun run build

API

The server exposes the following MCP function:

send-email

Sends an email using Resend.

Parameters:

  • from (required): Sender email address
  • to (required): Recipient email address
  • subject (required): Email subject
  • html (optional): Email content in HTML format
  • text (optional): Email content in plain text format

Example request:

{
  "method": "send-email",
  "params": {
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Hello from MCP",
    "html": "<h1>Hello</h1><p>This is a test email.</p>"
  }
}

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers