smtp-mcp
v1.0.0
Published
MCP Server for sending emails via SMTP
Downloads
104
Readme
SMTP MCP Server
Ein MCP-Server zum Versenden von E-Mails über SMTP.
Installation
npm install
npm run buildKonfiguration
Der Server wird über Umgebungsvariablen konfiguriert:
| Variable | Beschreibung | Standard |
|----------|--------------|----------|
| SMTP_HOST | SMTP-Server Hostname | localhost |
| SMTP_PORT | SMTP-Server Port | 587 |
| SMTP_SECURE | TLS verwenden (true/false) | false |
| SMTP_USER | SMTP Benutzername | - |
| SMTP_PASS | SMTP Passwort | - |
| SMTP_FROM | Absender E-Mail-Adresse | - |
Verwendung mit Claude Desktop
Füge folgendes zu deiner claude_desktop_config.json hinzu:
{
"mcpServers": {
"smtp": {
"command": "npx",
"args": ["-y", "smtp-mcp"],
"env": {
"SMTP_HOST": "smtp.example.com",
"SMTP_PORT": "587",
"SMTP_SECURE": "false",
"SMTP_USER": "dein-username",
"SMTP_PASS": "dein-passwort",
"SMTP_FROM": "[email protected]"
}
}
}
}Lokale Entwicklung
Für lokale Entwicklung:
{
"mcpServers": {
"smtp": {
"command": "node",
"args": ["/pfad/zu/smtp-mcp/dist/index.js"],
"env": {
"SMTP_HOST": "smtp.example.com",
"SMTP_PORT": "587",
"SMTP_SECURE": "false",
"SMTP_USER": "dein-username",
"SMTP_PASS": "dein-passwort",
"SMTP_FROM": "[email protected]"
}
}
}
}Verfügbare Tools
send_email
Sendet eine E-Mail über den konfigurierten SMTP-Server.
Parameter:
| Parameter | Typ | Erforderlich | Beschreibung |
|-----------|-----|--------------|--------------|
| to | string | Ja | Empfänger (kommagetrennt für mehrere) |
| subject | string | Ja | Betreff |
| body | string | Ja | E-Mail-Text (Plain Text) |
| html | string | Nein | E-Mail-Text (HTML) |
| cc | string | Nein | CC-Empfänger (kommagetrennt) |
| bcc | string | Nein | BCC-Empfänger (kommagetrennt) |
| replyTo | string | Nein | Reply-To-Adresse |
Beispiel:
Sende eine E-Mail an [email protected] mit dem Betreff "Hallo" und dem Text "Dies ist eine Testnachricht."Lizenz
MIT
