0.0.4 • Published 7 months ago

@microagents/server-resend v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Resend Email MCP Server

This is an MCP server that allows AI systems to send emails using Resend's API. This package is based on the original Resend MCP Send Email project, adapted to work with the MicroAgents ecosystem.

Features

  • Send plain text and HTML emails
  • Support for CC and BCC recipients
  • Configurable reply-to addresses
  • Customizable sender email (requires verification)
  • Environment variable configuration for API key and default sender

Setup

  1. Get a Resend API key from Resend
  2. Set up your environment variables:
    export RESEND_API_KEY=your_api_key_here
    export SENDER_EMAIL_ADDRESS=your_verified_email@domain.com
    export REPLY_TO_EMAIL_ADDRESSES=reply1@domain.com,reply2@domain.com

Installation

npm install @microagents/server-resend

Usage

The server provides a single tool called send_email with the following parameters:

  • to (required): Recipient email address
  • subject (required): Email subject
  • text (required): Plain text content of the email
  • html (optional): HTML content of the email
  • cc (optional): Array of CC recipients
  • bcc (optional): Array of BCC recipients
  • reply_to (optional): Reply-to email address
  • from (optional): Sender email address (defaults to SENDER_EMAIL_ADDRESS)

Example

const result = await mcp.callTool("send_email", {
  to: "recipient@example.com",
  subject: "Hello from MCP",
  text: "This is a test email sent via the Resend MCP server.",
  html: "<p>This is a test email sent via the Resend MCP server.</p>",
  cc: ["cc@example.com"],
  reply_to: "reply@example.com"
});

Development

npm install
npm run build
npm start

Credits

This package is based on the original Resend MCP Send Email project by Resend. We've adapted it to work with the MicroAgents ecosystem while maintaining the core functionality.

License

MIT

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago