MCP directory
IM

IMAP Mail

by github.com/buzzer · v0.2.1 · updated Nov 13, 2026

Read and search IMAP mailboxes and create drafts. Sending and deleting are not possible.

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/buzzer/imap-mcp:0.2.1

Environment variables

  • IMAP_HOSTrequired

    IMAP server host name (IMAPS), e.g. imap.example.com

  • MAIL_USERrequired

    IMAP login, usually the mail address

  • MAIL_PASSWORDrequiredsecret

    IMAP password; an app-specific password where the provider requires one

  • IMAP_PORT

    IMAPS port

  • MAIL_ADDRESS

    Own sender address, if it differs from the login

  • MAIL_FROM_NAME

    Display name used as sender of drafts

  • MAIL_ALIASES

    Additional allowed sender addresses, comma-separated; *@example.com allows a whole domain

  • DRAFTS_FOLDER

    Drafts folder, if it is not detected automatically

  • MARK_READ_ON_READ

    read_message marks every message it returns as read

  • DRAFT_UNREAD

    Store new drafts as unread, so they stand out in the mailbox

  • BCC_SELF

    Add the sender address as Bcc to every draft

More MCP servers