SMTP MCP Server
SMTP-E-Mail-MCP-Server
Ein Model Context Protocol (MCP)-Server, der E-Mail-Versandfunktionen für Claude und andere MCP-kompatible KI-Assistenten bereitstellt.
Merkmale
Mehrere SMTP-Konfigurationen : Konfigurieren und verwalten Sie mehrere SMTP-Server
E-Mail-Vorlagen : Erstellen, aktualisieren und verwenden Sie wiederverwendbare E-Mail-Vorlagen
Massenversand von E-Mails : Senden Sie E-Mails mit Stapelverarbeitung und Ratenbegrenzung an mehrere Empfänger
HTML-Unterstützung : Vollständige HTML-Unterstützung für umfangreiche E-Mail-Inhalte
Protokollierung : Umfassende Protokollierung aller E-Mail-Aktivitäten
Vorlagenvariablen : Dynamischer Inhalt mithilfe von Vorlagenvariablen
Related MCP server: Email MCP Server
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 buildVerwendung
Starten des Servers
npm startKonfiguration
Fügen Sie den Server zu Ihrer MCP-Konfiguration hinzu:
{
"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"
}
}
}
}Verfügbare Tools
E-Mail senden
Senden Sie eine E-Mail an einen oder mehrere Empfänger.
Parameter:
to: Array von Empfängern mit E-Mail und optionalem Namensubject: E-Mail-Betreffbody: E-Mail-Text (HTML wird unterstützt)from: (Optional) E-Mail und Name des Absenderscc: (Optional) CC-Empfängerbcc: (Optional) BCC-EmpfängertemplateId: (Optional) ID einer zu verwendenden VorlagetemplateData: (Optional) Daten zum Auffüllen der VorlagenvariablensmtpConfigId: (Optional) ID der zu verwendenden SMTP-Konfiguration
Massen-E-Mails senden
Senden Sie E-Mails stapelweise an mehrere Empfänger.
Parameter:
recipients: Array von Empfängern mit E-Mail und optionalem Namensubject: E-Mail-Betreffbody: E-Mail-Text (HTML wird unterstützt)from: (Optional) E-Mail und Name des Absenderscc: (Optional) CC-Empfängerbcc: (Optional) BCC-EmpfängertemplateId: (Optional) ID einer zu verwendenden VorlagetemplateData: (Optional) Daten zum Auffüllen der VorlagenvariablenbatchSize: (Optional) Anzahl der in jedem Batch zu sendenden E-MailsdelayBetweenBatches: (Optional) Verzögerung in Millisekunden zwischen BatchessmtpConfigId: (Optional) ID der zu verwendenden SMTP-Konfiguration
SMTP-Konfigurationen abrufen
Rufen Sie alle konfigurierten SMTP-Server ab.
Parameter: Keine
SMTP-Konfiguration hinzufügen
Fügen Sie eine neue SMTP-Serverkonfiguration hinzu.
Parameter:
name: Name für die Konfigurationhost: Hostname des SMTP-Serversport: SMTP-Server-Portsecure: Ob SSL/TLS verwendet werden sollauth: Authentifizierungsdaten (Benutzer und Passwort)isDefault: (Optional) Ob dies die Standardkonfiguration ist
Update-SMTP-Konfiguration
Aktualisieren Sie eine vorhandene SMTP-Serverkonfiguration.
Parameter:
id: ID der zu aktualisierenden Konfigurationname: Name für die Konfigurationhost: Hostname des SMTP-Serversport: SMTP-Server-Portsecure: Ob SSL/TLS verwendet werden sollauth: Authentifizierungsdaten (Benutzer und Passwort)isDefault: (Optional) Ob dies die Standardkonfiguration ist
SMTP-Konfiguration löschen
Löschen Sie eine SMTP-Serverkonfiguration.
Parameter:
id: ID der zu löschenden Konfiguration
E-Mail-Vorlagen abrufen
Holen Sie sich alle E-Mail-Vorlagen.
Parameter: Keine
E-Mail-Vorlage hinzufügen
Fügen Sie eine neue E-Mail-Vorlage hinzu.
Parameter:
name: Vorlagennamesubject: E-Mail-Betreffvorlagebody: E-Mail-Textvorlage (HTML wird unterstützt)isDefault: (Optional) Ob dies die Standardvorlage ist
E-Mail-Vorlage aktualisieren
Aktualisieren Sie eine vorhandene E-Mail-Vorlage.
Parameter:
id: ID der zu aktualisierenden Vorlagename: Vorlagennamesubject: E-Mail-Betreffvorlagebody: E-Mail-Textvorlage (HTML wird unterstützt)isDefault: (Optional) Ob dies die Standardvorlage ist
E-Mail-Vorlage löschen
Löschen Sie eine E-Mail-Vorlage.
Parameter:
id: ID der zu löschenden Vorlage
E-Mail-Protokolle abrufen
Erhalten Sie Protokolle gesendeter E-Mails.
Parameter: Keine
Beispielverwendung
Konfigurieren Sie einen 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 )Erstellen Sie eine E-Mail-Vorlage:
add-email-template( name: "Welcome Email", subject: "Welcome to {{company}}!", body: "<h1>Hello {{name}},</h1><p>Welcome to {{company}}!</p>", isDefault: false )Senden Sie eine E-Mail mithilfe einer Vorlage:
send-email( to: [{ email: "recipient@example.com", name: "John Doe" }], templateId: "welcome-email", templateData: { name: "John", company: "ACME Corp" } )Massen-E-Mails senden:
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 )
Anforderungen
Node.js 14+
Nodemailer zum Versenden von E-Mails
Zugriff auf einen SMTP-Server
Lizenz
MIT
Available Tools
6 toolsaccounts_listA
List every configured email account and show which account is the default. Use this before other tools when multiple SMTP/IMAP accounts are configured.
Inputs: no named parameters.
email_respondA
Reply to or forward an existing email. Use this to continue email conversations, respond to messages, or forward information to others.
Inputs: body (required), email_id (required), to, body_type, +5 more.
email_sendA
Send a new email with HTML support and file attachments. Use this to send messages, project updates, or any new email conversation.
Inputs: to (required), body (required), subject (required), cc, +5 more.
emails_findA
Search for emails in your inbox with flexible filters. Optionally get full email content and attachments. Use this to find specific emails, check for unread messages, or browse your inbox.
Inputs: limit, query, filters, account_name, +2 more.
emails_modifyA
Change email states like read/unread, flagged, or move between folders. Use this to organize your inbox, mark emails as read, archive messages, or flag important emails.
Inputs: email_ids (required), flag, unflag, mark_read, +3 more.
folders_listA
List all available email folders/labels in your account. Use this to see your folder structure and organize emails.
Inputs: account_name, include_counts.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct operation: account listing, folder listing, searching, modifying, sending, and responding. There is no overlap; even email_send and email_respond are clearly separated by new vs. reply/forward.
Most tools follow a consistent resource_action pattern (e.g., accounts_list, emails_find). However, there is minor inconsistency in singular vs. plural usage (accounts_list vs. email_send) and action placement, but it remains readable.
With 6 tools, the server is well-scoped for email operations. Each tool earns its place, covering account context, folder navigation, search, state changes, and message creation without redundancy.
The toolset covers the core email workflow: discover accounts and folders, find messages, modify their state, send new emails, and reply/forward. No essential operation is missing; even email deletion can be handled via moving to trash.
Maintenance
Related MCP Connectors
Send transactional emails for AI agents via SMTP. Templates included.
Send, track, and manage transactional and bulk email delivery
Send transactional email over a verified domain — templates, attachments, custom headers.
Send email, manage domains, templates, webhooks and broadcasts from your AI agent.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables sending emails via SMTP with support for HTML content, attachments, bulk sending, and template-based emails. Features session management and full MCP Streamable HTTP transport compliance.-
- AlicenseNot gradedqualityDmaintenanceEnables sending emails through SMTP using nodemailer, allowing AI assistants to send plain text and HTML emails with configurable SMTP credentials.2ISC
- AlicenseNot gradedqualityDmaintenanceEnables sending and receiving emails through SMTP, IMAP, and POP3 protocols with support for attachments, HTML content, and email validation.MIT
- FlicenseAqualityDmaintenanceEnables sending emails through SMTP with support for multiple recipients, attachments, CC/BCC, and both plain text and HTML formats. Includes preset configurations for common email providers like Gmail, QQ, Outlook, and 163.5-