Skip to content
Gemini CLI

imap mcp for Gemini CLI

io.github.langmail/imap-mcp

IMAP email as MCP tools: create draft messages in the Drafts folder of any IMAP mailbox.

client:Gemini CLI transport:stdio runtime:npm

Install imap mcp in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

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

{
  "mcpServers": {
    "imap-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "imap-mcp"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "IMAP_PORT": "<IMAP_PORT>",
        "IMAP_USERNAME": "<IMAP_USERNAME>",
        "IMAP_PASSWORD": "<IMAP_PASSWORD>",
        "IMAP_USE_SSL": "<IMAP_USE_SSL>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

imap mcp in other clients