Enables sending emails via SMTP using Gmail's email service, with support for plain text and HTML email bodies.
Email MCP Server
This project provides a Model Context Protocol (MCP) server for sending emails via a single tool, send_email.
Features
Exposes a single MCP tool:
send_email(send an email via SMTP)Uses
nodemailerfor SMTP email delivery
Environment Variables
Set the following environment variables before running the server:
SMTP_HOST(required): SMTP server hostnameSMTP_PORT(optional, default: 587): SMTP server portSMTP_SECURE(optional, default: false): Set totruefor port 465, otherwisefalseSMTP_USER(required): SMTP usernameSMTP_PASS(required): SMTP passwordSMTP_FROM(optional): Sender email address (defaults toSMTP_USER)
Installation
Running the Server
The server will start and listen for MCP requests on stdio.
Integration with Claude Desktop
To integrate this server with Claude Desktop, add the following to your claude_desktop_config.json:
Replace <your_email> and <your_app_password> with your actual SMTP credentials.
Tool: send_email
Arguments
to(string, required): Recipient email addresssubject(string, required): Subject of the emailtext(string, required): Plain text body of the emailhtml(string, optional): HTML body of the email
Example Call
This server cannot be installed