Cover image
Try Now
2025-04-05

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

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:

Variable Description Example
SMTP_HOST SMTP server hostname smtp.example.com
SMTP_PORT SMTP server port 587
SMTP_USER SMTP username user@example.com
SMTP_PASSWORD SMTP password password123
EMAIL_FROM Sender email address sender@example.com

Optional environment variables:

Variable Description Default
SMTP_SECURE Use secure connection (TLS) false
SMTP_REJECT_UNAUTHORIZED Reject unauthorized TLS certificates true
SMTP_TIMEOUT Connection timeout in milliseconds 10000

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

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • apappascs
  • Descubra la colección más completa y actualizada de servidores MCP en el mercado. Este repositorio sirve como un centro centralizado, que ofrece un extenso catálogo de servidores MCP de código abierto y propietarios, completos con características, enlaces de documentación y colaboradores.

  • ShrimpingIt
  • Manipulación basada en Micrypthon I2C del expansor GPIO de la serie MCP, derivada de AdaFruit_MCP230xx

  • jae-jae
  • Servidor MCP para obtener contenido de la página web con el navegador sin cabeza de dramaturgo.

  • ravitemer
  • Un poderoso complemento Neovim para administrar servidores MCP (protocolo de contexto del modelo)

  • patruff
  • Puente entre los servidores Ollama y MCP, lo que permite a LLM locales utilizar herramientas de protocolo de contexto del modelo

  • pontusab
  • La comunidad de cursor y windsurf, encontrar reglas y MCP

  • JackKuo666
  • 🔍 Habilitar asistentes de IA para buscar y acceder a la información del paquete PYPI a través de una interfaz MCP simple.

  • av
  • Ejecute sin esfuerzo LLM Backends, API, frontends y servicios con un solo comando.

    Reviews

    4 (1)
    Avatar
    user_9N0T5kAk
    2025-04-17

    Mailer-MCP is an exceptional tool for managing email campaigns efficiently. Created by yahyamohmuedpro99, this open-source project available on GitHub helps streamline the process with its intuitive design and robust features. Highly recommend it for anyone looking to enhance their email marketing efforts!