Skip to content
Grok

IMAP Mail for Grok

io.github.buzzer/imap-mcp

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

client:Grok transport:stdio runtime:oci

Install IMAP Mail in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "imap-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/buzzer/imap-mcp:0.2.1"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "MAIL_USER": "<MAIL_USER>",
        "MAIL_PASSWORD": "<MAIL_PASSWORD>",
        "IMAP_PORT": "<IMAP_PORT>",
        "MAIL_ADDRESS": "<MAIL_ADDRESS>",
        "MAIL_FROM_NAME": "<MAIL_FROM_NAME>",
        "MAIL_ALIASES": "<MAIL_ALIASES>",
        "DRAFTS_FOLDER": "<DRAFTS_FOLDER>",
        "MARK_READ_ON_READ": "<MARK_READ_ON_READ>",
        "DRAFT_UNREAD": "<DRAFT_UNREAD>",
        "BCC_SELF": "<BCC_SELF>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

IMAP Mail in other clients