turbosmtp-mcp-server
A simple Node.js MCP (Model Context Protocol) server for sending emails using TurboSMTP, designed for easy integration and testing. This server exposes an MCP-compatible API endpoint to allow other services to send emails via TurboSMTP.
Features
- Send emails via TurboSMTP with a simple MCP API
- Easy configuration and setup
- Includes a test script for quick validation
Requirements
- Node.js (v14 or higher recommended)
- A valid TurboSMTP account and credentials
Installation
git clone https://github.com/debba/turbosmtp-mcp-server.git
cd turbosmtp-mcp-server
npm install
Configuration
Set your TurboSMTP credentials in the appropriate configuration section of the code (see email-service.js
). You may want to use environment variables or a configuration file for production use.
Usage
Start the MCP server
node mcp-turbosmtp-server.js
The server will start and expose an MCP API endpoint for sending emails.
Send a test email
You can use the provided test script:
node test-email.js
Edit test-email.js
to set the recipient and message details.
Project Structure
mcp-turbosmtp-server.js
— Main MCP server fileemail-service.js
— Email sending logic using TurboSMTPtest-email.js
— Script to send a test emailpackage.json
— Project dependencies and scripts
License
MIT