Skip to content
Gemini CLI

Mails.ai — Agent Email for Gemini CLI

io.github.rolloutsai/mails-agent-email

A real inbox for AI agents: send, receive and thread email, behind a prompt-injection firewall.

client:Gemini CLI transport:stdio runtime:npm

Install Mails.ai — Agent Email 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": {
    "mails-agent-email": {
      "command": "npx",
      "args": [
        "-y",
        "@mailsai/mcp-server"
      ],
      "env": {
        "MAILS_API_KEY": "<MAILS_API_KEY>",
        "MAILS_BASE_URL": "<MAILS_BASE_URL>"
      }
    }
  }
}

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

Mails.ai — Agent Email in other clients