MailMCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MailMCP show me unread emails from today"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MailMCP
MCP-Server für den Zugriff auf ein E-Mail-Postfach via IMAP/SMTP. Geschrieben in Node.js / TypeScript. Läuft als stdio-Prozess direkt auf dem Host.
Features
Alle Ordner des Postfachs auflisten
E-Mails in einem beliebigen Ordner auflisten (neuste zuerst)
Vollständigen Inhalt einer E-Mail lesen (Text, HTML, Anhänge)
E-Mails nach Betreff, Absender oder Body durchsuchen
E-Mail in anderen Ordner verschieben
E-Mails senden (inkl. CC, BCC, HTML, Anhänge als Base64)
Lokale Datei direkt als E-Mail-Anhang versenden
Konfigurierbarer INBOX-Ordner
Related MCP server: mcp-imap
Verfügbare Tools
Tool | Beschreibung |
| Alle IMAP-Ordner auflisten |
| E-Mails in einem Ordner auflisten (mit Filter: ungelesen) |
| Vollständige E-Mail per UID lesen |
| E-Mails nach Stichwort durchsuchen |
| E-Mail in anderen Ordner verschieben |
| E-Mail senden (To, Subject, Text, optional CC/BCC/HTML/Anhänge als Base64) |
| Lokale Datei vom Host-Dateisystem als Anhang versenden |
| Aktuelle Serverkonfiguration anzeigen |
Setup
1. Abhängigkeiten installieren & bauen
npm install
npm run build2. Konfiguration
cp .env.example .envWerte in .env anpassen:
Variable | Beschreibung | Standard |
| IMAP-Server | – |
| IMAP-Port |
|
| IMAP SSL |
|
| E-Mail-Adresse | – |
| Passwort | – |
| Standard-Posteingang |
|
| Max. E-Mails pro Abfrage |
|
| SMTP-Server | – |
| SMTP-Port |
|
| SMTP SSL (true = Port 465) |
|
| Absendername | – |
Die .env-Datei wird automatisch geladen — es sind keine Umgebungsvariablen im MCP-Client nötig.
MCP-Integration (mcporter / Claude / VS Code)
{
"mcpServers": {
"mailmcp": {
"command": "node /pfad/zu/mailmcp/dist/server.js"
}
}
}Dateistruktur
mailmcp/
├── src/
│ ├── server.ts # MCP Server & Tool-Definitionen
│ ├── imap-client.ts # IMAP-Verbindung & E-Mail-Parsing
│ ├── smtp-client.ts # SMTP-Versand via nodemailer
│ └── config.ts # Konfiguration via .env
├── package.json
├── tsconfig.json
├── .env # Credentials (nicht einchecken!)
├── .env.example
└── .gitignoreAvailable Tools
8 toolsget_emailA
Liest den vollständigen Inhalt einer E-Mail anhand ihrer UID. Gibt Betreff, Absender, Empfänger, Datum, Text-Body, HTML-Body und Dateianhänge zurück.
Inputs: uid (required), folder.
get_inbox_configA
Zeigt die aktuelle Serverkonfiguration an (Host, User, INBOX-Ordner). Passwort wird nicht zurückgegeben.
Inputs: no named parameters.
list_emailsA
Listet E-Mails in einem Ordner auf (neuste zuerst). Gibt UID, Betreff, Absender, Datum, Lesestatus und Anhänge zurück. Standardmäßig wird der konfigurierte INBOX-Ordner verwendet.
Inputs: limit, folder, only_unread.
list_foldersA
Listet alle verfügbaren E-Mail-Ordner auf dem IMAP-Server auf.
Inputs: no named parameters.
move_emailB
Verschiebt eine E-Mail anhand ihrer UID in einen anderen Ordner.
Inputs: uid (required), target_folder (required), source_folder.
search_emailsC
Durchsucht einen Ordner nach E-Mails anhand eines Suchbegriffs.
Inputs: query (required), limit, folder, search_in.
send_emailC
Sendet eine E-Mail via SMTP.
Inputs: to (required), text (required), subject (required), cc, +4 more.
send_local_fileA
Liest eine lokale Datei vom Server-Dateisystem und verschickt sie als E-Mail-Anhang via SMTP. Betreff und Text-Body sind optional und werden aus dem Dateinamen abgeleitet, wenn nicht angegeben.
Inputs: to (required), file_path (required), cc, bcc, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool addresses a distinct email operation: listing folders, listing messages, reading a single message, searching, sending, moving, sending a local file, and viewing config. The only mild overlap is send_email and send_local_file, but they are clearly differentiated by attachment source and defaults.
All tools follow a consistent lowercase verb_noun pattern: list_folders, list_emails, get_email, search_emails, send_email, move_email, send_local_file, and get_inbox_config. The naming style is uniform and predictable.
Eight tools is well-scoped for an email MCP server. The set covers core email operations without unnecessary redundancy or bloat.
The core email workflow is covered: listing folders and emails, reading, searching, sending, moving, and handling local file attachments. Obvious gaps like deleting emails, marking read/unread, or creating folders are missing, but agents can still accomplish most common tasks.
Maintenance
Related MCP Connectors
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Email for AI agents: read, search and send from your Gmail, Outlook, Yahoo, iCloud or IMAP inbox.
Email: search, read, fetch attachments; attach files when the MCP client supports inputs.
Email inboxes and calendars for AI agents: send, receive, search, draft and schedule.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to read, search, compose, and send emails by connecting to any IMAP/SMTP provider. It supports comprehensive mailbox management, including draft handling and message deletion, directly through natural language.10206 npm11MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with email accounts via IMAP and SMTP, supporting mailbox listing, email search, retrieval, sending, and management.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to send, read, and manage emails via SMTP and IMAP, with support for attachments, threads, and mailbox organization.1627 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language email operations (send, search, read, manage) via IMAP/SMTP, with support for attachments, multiple mailboxes, and secure configuration.MIT