mcpField
E
Email Server

Email Server

Local
github.com/yahyamohmuedpro99Communication1Updated 82w ago

About Email Server

Mailer MCP is an MCP server for sending email through SMTP, intended for workflows that need email actions from an MCP client. SMTP settings come from environment variables, allowing different SMTP relay services to be configured.

Key features

  1. 01Send email to a recipient
  2. 02Send a test email
  3. 03Configure SMTP with environment variables
  4. 04Error handling and logging

Use cases

  1. 01Send notification email from an MCP client
  2. 02Verify SMTP configuration

MCP support

The server exposes send_email and test_email tools to MCP clients for sending messages and checking email configuration.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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 username[email protected]
SMTP_PASSWORDSMTP passwordpassword123
EMAIL_FROMSender email address[email protected]

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": "[email protected]",
    "SMTP_PASSWORD": "password123",
    "EMAIL_FROM": "[email protected]"
  },
  "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": "[email protected]",
  "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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.