Skip to main content
Glama
imap-mail-mcp

imap-mail-mcp

by dalmasont

imap-mail-mcp

Remote MCP server on Cloudflare Workers that gives Claude access to IMAP mailboxes: list and search messages (headers only), read a message, mark read/unread, move to another folder, and delete (move to the account's Trash). Flagged (starred) messages are never moved or deleted. Nothing is ever deleted permanently.

Configuration (wrangler.jsonc)

  • IMAP_HOST, IMAP_PORT, IMAP_TLS: server (Hostinger: imap.hostinger.com, 993, true).

  • IMAP_ACCOUNTS: comma-separated addresses.

Related MCP server: gmail-mcp-server

Secrets (Cloudflare dashboard → Worker → Settings → Variables and Secrets)

  • AUTH_PASSWORD: password for the consent page when connecting Claude (16+ characters).

  • One per account: PASS_ + the address in capitals with every non-letter/digit replaced by _.

Connect

Add https://<worker>.workers.dev/mcp as a custom connector in Claude and approve with AUTH_PASSWORD.

Based on retogo/icloud-calendar-mcp (MIT) for the OAuth/consent layer; IMAP via cf-imap (MIT).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      Enables Claude to interact with email accounts via IMAP and SMTP, providing tools for searching, reading, sending, and managing emails across multiple providers.
      40
      1,044 npm
      127
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to read and manage your Gmail account, including listing, searching, sending, drafting, replying to, archiving, labeling, and trashing emails via the Gmail API.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to access and manage Spacemail mailboxes over IMAP and SMTP, including listing folders, searching and reading messages, marking read/unread, moving to Trash, saving drafts, and sending email when explicitly enabled per account.
      116 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude to access an IMAP mailbox to read, search, organize, and manage messages, create drafts, and optionally send email via SMTP across providers.
      1,044 npm
      MIT