Skip to content
Gemini CLI

mcp server imap for Gemini CLI

io.github.aiwerk/mcp-server-imap

Email tools for any IMAP/SMTP provider: list, read, search, send, and manage messages.

client:Gemini CLI transport:stdio runtime:npm

Install mcp server imap 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": {
    "mcp-server-imap": {
      "command": "npx",
      "args": [
        "-y",
        "@aiwerk/mcp-server-imap"
      ],
      "env": {
        "IMAP_HOST": "<IMAP_HOST>",
        "IMAP_USER": "<IMAP_USER>",
        "IMAP_PASS": "<IMAP_PASS>",
        "SMTP_HOST": "<SMTP_HOST>",
        "SMTP_USER": "<SMTP_USER>",
        "SMTP_PASS": "<SMTP_PASS>"
      }
    }
  }
}

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

mcp server imap in other clients