Skip to main content
Glama
abconsultdev

IMAP MCP

by abconsultdev

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAIL_EMAILNoEmail address for the primary account. Required when using environment variable configuration.
MAIL2_EMAILNoEmail address for a second account (optional).
MAIL_PASSWORDNoPassword for the primary account. Required when using environment variable configuration.
MAIL2_PASSWORDNoPassword for the second account (optional).
MAIL_IMAP_HOSTNoOverride the automatically detected IMAP server host.
MAIL_IMAP_PORTNoIMAP port, default is 993.
MAIL_SMTP_HOSTNoOverride the automatically detected SMTP server host.
MAIL_SMTP_PORTNoSMTP port, default is 465.
IMAP_MCP_CONFIGNoPath to a config.json file containing account settings (alternative to environment variables).
MAIL2_IMAP_HOSTNoOverride IMAP server host for the second account.
MAIL2_IMAP_PORTNoIMAP port for the second account, default 993.
MAIL2_SMTP_HOSTNoOverride SMTP server host for the second account.
MAIL2_SMTP_PORTNoSMTP port for the second account, default 465.
MAIL_ALLOW_SENDNoSet to 'true' to enable sending emails. Default is 'false' (read-only).
MAIL2_ALLOW_SENDNoSet to 'true' to enable sending for the second account.
MAIL_DISPLAY_NAMENoSender name used in the From header.
MAIL_DOWNLOAD_DIRNoDirectory where attachments are saved, default is ~/Downloads.
MAIL2_DISPLAY_NAMENoSender name for the second account.
MAIL_AUTODETECT_ONLINENoSet to 'false' to disable MX and online server auto-detection.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
mail_list_accountsA

Listet die konfigurierten Mail-Accounts mit Servern und Sende-Berechtigung auf. Passwörter werden nie ausgegeben.

mail_test_connectionA

Prüft IMAP-Login und SMTP-Login eines Accounts und meldet beide Ergebnisse einzeln.

mail_detect_providerA

Ermittelt zu einer beliebigen E-Mail-Adresse die passenden IMAP- und SMTP-Einstellungen, ohne sich anzumelden. Nützlich, wenn jemand seinen Anbieter nicht kennt oder die automatische Erkennung danebenlag. Es wird kein Passwort benötigt und keine Verbindung zum Postfach aufgebaut.

mail_list_mailboxesA

Listet alle IMAP-Ordner eines Accounts inkl. Sonderrollen (Gesendet, Entwürfe, Papierkorb, Spam).

mail_searchA

Durchsucht einen IMAP-Ordner und gibt Kopfdaten (UID, Datum, Absender, Betreff, Flags) der neuesten Treffer zurück. Ohne Filter kommen die neuesten Nachrichten des Ordners. Die UIDs aus dem Ergebnis sind die Eingabe für mail_read.

mail_readA

Liest eine Nachricht per UID vollständig: Kopfzeilen, Text und Liste der Anhänge. HTML-Mails werden auf Text reduziert, sofern kein Textteil vorhanden ist.

mail_get_rawB

Gibt die vollständige RFC822-Quelle einer Nachricht zurück - nützlich zur Analyse von Kopfzeilen, SPF/DKIM oder Weiterleitungen.

mail_save_attachmentA

Speichert einen Anhang einer Nachricht auf der Festplatte. Zielordner ist standardmäßig der downloadDir aus der Konfiguration.

mail_set_flagsA

Setzt oder entfernt IMAP-Flags. Gängige Werte: "\Seen" (gelesen), "\Flagged" (markiert), "\Answered" (beantwortet).

mail_moveA

Verschiebt Nachrichten in einen anderen IMAP-Ordner des gleichen Accounts.

mail_move_to_trashA

Verschiebt Nachrichten in den Papierkorb. Löscht nie endgültig - zum endgültigen Entfernen den Papierkorb im Mailprogramm leeren.

mail_sendA

Versendet eine E-Mail über SMTP und legt sie im Gesendet-Ordner ab. Der Versand ist endgültig und nicht widerrufbar - vor dem Aufruf immer Empfänger, Betreff und Text vom Nutzer bestätigen lassen.

mail_create_draftA

Erstellt eine E-Mail und legt sie als Entwurf im IMAP-Postfach ab, ohne sie zu versenden. Der sichere Weg, wenn der Nutzer die Mail vorher im eigenen Mailprogramm prüfen will.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 13 tools

Disambiguation5/5

Every tool targets a distinct action-resource pair: account operations, mailbox listing, message retrieval, state changes, and message composition are clearly separated. Even mail_move and mail_move_to_trash are cleanly distinguished by trash-specific semantics.

Naming Consistency5/5

All tools follow a uniform mail_<verb>_<object> pattern with clear, consistent verbs like list, test, detect, move, search, read, get, save, set, send, and create. There is no mixing of casing or verb styles.

Tool Count5/5

13 tools is a well-scoped size for an email/IMAP assistant, covering account inspection, search/read, message mutations, and sending without becoming unwieldy. Each tool has a clear role and earns its place.

Completeness4/5

The set supports end-to-end email workflows: detect/test accounts, list mailboxes, search and read messages, retrieve raw sources and attachments, move/trash, set flags, and send or draft. Minor gaps like permanent deletion/expunge and mailbox creation are absent, but these appear intentional or config-external and can be worked around.

Maintenance

ActivityMaintained
ResponsivenessNo issues