I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-Server-SMTP
Un serveur de protocole de contexte de modèle pour les services de messagerie SMTP
1
Github Watches
6
Github Forks
1
Github Stars
SMTP Email MCP Server
A Model Context Protocol (MCP) server that provides email sending capabilities for Claude and other MCP-compatible AI assistants.
Features
- Multiple SMTP Configurations: Configure and manage multiple SMTP servers
- Email Templates: Create, update, and use reusable email templates
- Bulk Email Sending: Send emails to multiple recipients with batching and rate limiting
- HTML Support: Full HTML support for rich email content
- Logging: Comprehensive logging of all email activities
- Template Variables: Dynamic content using template variables
Installation
# Clone the repository
git clone https://github.com/samihalawa/mcp-server-smtp.git
cd mcp-server-smtp
# Install dependencies
npm install
# Build the server
npm run build
Usage
Starting the Server
npm start
Configuration
Add the server to your MCP configuration:
{
"servers": {
"smtp-email-server": {
"command": "/path/to/node",
"args": ["/path/to/mcp-server-smtp/build/index.js"],
"enabled": true,
"port": 3007,
"environment": {
"NODE_PATH": "/path/to/node_modules",
"PATH": "/usr/local/bin:/usr/bin:/bin"
}
}
}
}
Available Tools
send-email
Send an email to one or more recipients.
Parameters:
-
to
: Array of recipients with email and optional name -
subject
: Email subject -
body
: Email body (HTML supported) -
from
: (Optional) Sender email and name -
cc
: (Optional) CC recipients -
bcc
: (Optional) BCC recipients -
templateId
: (Optional) ID of a template to use -
templateData
: (Optional) Data to populate template variables -
smtpConfigId
: (Optional) ID of the SMTP configuration to use
send-bulk-emails
Send emails to multiple recipients in batches.
Parameters:
-
recipients
: Array of recipients with email and optional name -
subject
: Email subject -
body
: Email body (HTML supported) -
from
: (Optional) Sender email and name -
cc
: (Optional) CC recipients -
bcc
: (Optional) BCC recipients -
templateId
: (Optional) ID of a template to use -
templateData
: (Optional) Data to populate template variables -
batchSize
: (Optional) Number of emails to send in each batch -
delayBetweenBatches
: (Optional) Delay in milliseconds between batches -
smtpConfigId
: (Optional) ID of the SMTP configuration to use
get-smtp-configs
Get all configured SMTP servers.
Parameters: None
add-smtp-config
Add a new SMTP server configuration.
Parameters:
-
name
: Name for the configuration -
host
: SMTP server hostname -
port
: SMTP server port -
secure
: Whether to use SSL/TLS -
auth
: Authentication credentials (user and pass) -
isDefault
: (Optional) Whether this is the default configuration
update-smtp-config
Update an existing SMTP server configuration.
Parameters:
-
id
: ID of the configuration to update -
name
: Name for the configuration -
host
: SMTP server hostname -
port
: SMTP server port -
secure
: Whether to use SSL/TLS -
auth
: Authentication credentials (user and pass) -
isDefault
: (Optional) Whether this is the default configuration
delete-smtp-config
Delete an SMTP server configuration.
Parameters:
-
id
: ID of the configuration to delete
get-email-templates
Get all email templates.
Parameters: None
add-email-template
Add a new email template.
Parameters:
-
name
: Template name -
subject
: Email subject template -
body
: Email body template (HTML supported) -
isDefault
: (Optional) Whether this is the default template
update-email-template
Update an existing email template.
Parameters:
-
id
: ID of the template to update -
name
: Template name -
subject
: Email subject template -
body
: Email body template (HTML supported) -
isDefault
: (Optional) Whether this is the default template
delete-email-template
Delete an email template.
Parameters:
-
id
: ID of the template to delete
get-email-logs
Get logs of sent emails.
Parameters: None
Example Usage
-
Configure an SMTP server:
add-smtp-config( name: "Gmail", host: "smtp.gmail.com", port: 587, secure: false, auth: { user: "your-email@gmail.com", pass: "your-app-password" }, isDefault: true )
-
Create an email template:
add-email-template( name: "Welcome Email", subject: "Welcome to {{company}}!", body: "<h1>Hello {{name}},</h1><p>Welcome to {{company}}!</p>", isDefault: false )
-
Send an email using a template:
send-email( to: [{ email: "recipient@example.com", name: "John Doe" }], templateId: "welcome-email", templateData: { name: "John", company: "ACME Corp" } )
-
Send bulk emails:
send-bulk-emails( recipients: [ { email: "user1@example.com", name: "User 1" }, { email: "user2@example.com", name: "User 2" } ], subject: "Important Announcement", body: "<p>This is an important announcement.</p>", batchSize: 10, delayBetweenBatches: 1000 )
Requirements
- Node.js 14+
- Nodemailer for email sending
- Access to an SMTP server
License
MIT
相关推荐
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Reviews

user_rOfhEz8e
I've been using mcp-server-smtp for a while now, and it has significantly streamlined my email server management. The setup was straightforward, thanks to the clear instructions provided by samihalawa. Performance-wise, it’s reliable and efficient. Highly recommend checking it out at https://github.com/samihalawa/mcp-server-smtp!