yahyamohmuedpro99
MCP Serveryahyamohmuedpro99public

mailer mcp

一个用于发送电子邮件的 Model Context Protocol (MCP) 服务器,支持任意 SMTP 提供商。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
JavaScript
Language
MIT License
License

About This Server

一个用于发送电子邮件的 Model Context Protocol (MCP) 服务器,支持任意 SMTP 提供商。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

Mailer MCP

A Model Context Protocol (MCP) server for sending emails. This server is designed to be completely SMTP provider agnostic, allowing you to use any SMTP relay service of your choice (Gmail, SendGrid, Mailgun, SMTP2Go, etc.) by simply configuring the appropriate environment variables. The server provides tools for sending emails through SMTP using environment variables for configuration.

Features

  • Send emails to specified recipients
  • Test email functionality
  • Environment variable configuration
  • Proper error handling and logging
  • TypeScript implementation for type safety

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/mailer-mcp.git
cd mailer-mcp
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

The server requires the following environment variables to be set in the MCP configuration:

VariableDescriptionExample
SMTP_HOSTSMTP server hostnamesmtp.example.com
SMTP_PORTSMTP server port587
SMTP_USERSMTP usernameuser@example.com
SMTP_PASSWORDSMTP passwordpassword123
EMAIL_FROMSender email addresssender@example.com

Optional environment variables:

VariableDescriptionDefault
SMTP_SECUREUse secure connection (TLS)false
SMTP_REJECT_UNAUTHORIZEDReject unauthorized TLS certificatestrue
SMTP_TIMEOUTConnection timeout in milliseconds10000

MCP Configuration

Add the following to your Cline MCP settings configuration file:

"email-server": {
  "autoApprove": [],
  "disabled": false,
  "timeout": 60,
  "command": "node",
  "args": [
    "path/to/mailer-mcp/dist/index.js"
  ],
  "env": {
    "SMTP_HOST": "smtp.example.com",
    "SMTP_PORT": "587",
    "SMTP_USER": "user@example.com",
    "SMTP_PASSWORD": "password123",
    "EMAIL_FROM": "sender@example.com"
  },
  "transportType": "stdio"
}

Available Tools

send_email

Sends an email to a specified recipient.

Parameters:

  • recipient (string, required): Email address of the recipient
  • body (string, required): Email body content

Example:

{
  "recipient": "recipient@example.com",
  "body": "Hello, this is a test email from the MCP server."
}

test_email

Sends a test email to verify the configuration.

Parameters: None

Development

  1. Start the TypeScript compiler in watch mode:
npm run dev
  1. Make your changes to the source files in the src directory.

  2. The TypeScript compiler will automatically recompile the files when changes are detected.

License

MIT

Quick Start

1

Clone the repository

git clone https://github.com/yahyamohmuedpro99/mailer-mcp
2

Install dependencies

cd mailer-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Owneryahyamohmuedpro99
Repomailer-mcp
LanguageJavaScript
LicenseMIT License
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation