0.0.4 • Published 7 months ago
@microagents/server-resend v0.0.4
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
- Get a Resend API key from Resend
- 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 addresssubject
(required): Email subjecttext
(required): Plain text content of the emailhtml
(optional): HTML content of the emailcc
(optional): Array of CC recipientsbcc
(optional): Array of BCC recipientsreply_to
(optional): Reply-to email addressfrom
(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