Multi Gmail Account MCP

Official registry Search and web

Many Gmail and IMAP accounts at once: unified search, triage, attachments, Calendar. Drafts-only.

What can you do with Multi Gmail Account MCP?

  • Multi-account by design:
  • Triage:
  • Attachments: read PDFs (page ranges, scanned pages), DOCX, XLSX, PPTX, ODT/ODS, RTF, CSV/HTML, .eml and ZIP without saving them, and let Claude look at images (OCR included, Greek too).
  • Writing (as drafts):
  • Tidying:
  • Calendar (optional): events across all accounts, free time across every calendar, and creating events.
  • IMAP: any mailbox (Hetzner, cPanel, Fastmail…) sits next to Gmail, with the same search syntax.
  • Safety:

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package multi-gmail-account-mcp
Claude Code
claude mcp add multi-gmail-account-mcp -e 'GMAIL_MCP_HOME=<GMAIL_MCP_HOME>' -- npx -y multi-gmail-account-mcp@0.3.0 --mode
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "multi-gmail-account-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "multi-gmail-account-mcp@0.3.0",
                "--mode"
            ],
            "env": {
                "GMAIL_MCP_HOME": "<GMAIL_MCP_HOME>"
            }
        }
    }
}

Environment variables

  • GMAIL_MCP_HOME Folder for config, encrypted logins and the audit log (default ~/.gmail-mcp)

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. Multi Gmail Account MCP
  2. Why this one
  3. Features
  4. Screenshots
  5. Quick start
  6. Modes
  7. Documentation
  8. Credits

Multi Gmail Account MCP

Use all your mailboxes from Claude at once. This MCP server connects any number of Gmail and IMAP accounts, so you can ask "what's unread everywhere?", "who am I supposed to get back to?" or "read the invoice the supplier sent to the shop inbox". Claude searches every mailbox together and tells you which account each email came from.

Why this one

This serverClaude's built-in GmailTypical Gmail MCPs
AccountsUnlimited Gmail + IMAP1Usually 1, or one per call
Search all inboxes in one goYes, merged and de-duplicatedNoRarely
"Who's waiting for my reply?" across accountsYesNoNo
Read PDFs, Word, Excel and images in attachmentsYesPartlyRarely
Never sends unless you allow itDefault (drafts mode)Asks per sendUsually sends freely
Logins encrypted, audit log of every actionYesn/aRarely
Works in claude.ai web & mobileHosted modeYesRarely

Features

  • Multi-account by design:
    • Name mailboxes with aliases (shop, work, personal).
    • Search, summarize and triage all of them at once, or pick one.
    • Copies of the same email in two accounts are shown once.
  • Triage:
    • needs_reply finds conversations waiting on you, oldest first.
    • daily_digest and the /morning-digest prompt give you a briefing.
    • /reply-queue drafts answers one by one.
  • Attachments: read PDFs (page ranges, scanned pages), DOCX, XLSX, PPTX, ODT/ODS, RTF, CSV/HTML, .eml and ZIP without saving them, and let Claude look at images (OCR included, Greek too).
  • Writing (as drafts):
    • threaded replies and reply-all
    • forwards with the original attachments
    • Gmail Send mail as addresses and signatures
    • local file attachments
  • Tidying:
    • newsletter report and unsubscribe
    • bulk archive / mark read / label / trash, always with a preview
    • labels and filters
  • Calendar (optional): events across all accounts, free time across every calendar, and creating events.
  • IMAP: any mailbox (Hetzner, cPanel, Fastmail…) sits next to Gmail, with the same search syntax.
  • Safety:
    • three modes (readonly, drafts = never sends, full) plus per-account limits
    • encrypted logins (OS keychain)
    • an audit log
    • refuses sign-ins from the wrong account
    • retries for reads only
  • Hosted mode: run it on a small server with Docker and add it to claude.ai as a custom connector (OAuth 2.1, password-protected).

33 tools in total. See the tool reference.

Screenshots

Needs reply: everyone waiting on you, in every inbox, oldest first.Attachments: ask about what's inside PDFs, Office files and images.
Drafts only by default: nothing is sent or deleted unless you switch to full mode.Gmail and IMAP side by side, each with its own name.

Quick start

npm install -g multi-gmail-account-mcp
  1. Google OAuth client (once): create a Google Cloud project, enable the Gmail API, set the app to External and In production, create a Desktop app client, and save its JSON as ~/.gmail-mcp/oauth-keys.json. Step-by-step guide.
  2. Connect accounts:
     gmail-mcp-multi auth shop shop@gmail.com
     gmail-mcp-multi auth work me@company.com --calendar
     gmail-mcp-multi add-imap company me@mydomain.com --host mail.example.com   # optional IMAP mailbox
     gmail-mcp-multi default shop
     gmail-mcp-multi doctor
  3. Add to Claude Desktop (Settings → Developer → Edit Config), then restart Claude:

     {
       "mcpServers": {
         "gmail-multi": { "command": "npx", "args": ["-y", "multi-gmail-account-mcp", "--mode", "drafts"] }
       }
     }

    Claude Code: claude mcp add gmail-multi -- npx -y multi-gmail-account-mcp --mode drafts

  4. Ask Claude:
    • Morning briefing. (or /morning-digest)
    • Who am I supposed to get back to?
    • Find the DHL invoices from October in all accounts and read the totals.
    • Draft a reply to Maria in Greek saying the order ships Thursday.

Modes

ModeClaude can
readonlysearch, read, summarize, read attachments
drafts (default)the above, plus drafts, forwards as drafts, labels, read/unread, archive, and bulk archive with preview. Nothing is ever sent.
fullthe above, plus send, trash, unsubscribe, filters, and create calendar events

Choose with --mode. Limit single accounts with gmail-mcp-multi limit <alias> readonly. Details: Security.

Documentation

SetupInstall, Google Cloud, connecting accounts, Claude Desktop/Code
Everyday useWhat to ask Claude, by task
AccountsAliases, defaults, multi-account behaviour, per-account limits
IMAP accountsNon-Gmail mailboxes (Hetzner, cPanel…)
AttachmentsWhat can be read and the limits
CalendarTurning it on, free-time search, events
Hosted modeclaude.ai web & mobile via Docker + Caddy
Security & privacyModes, encryption, audit log, prompt injection, local files
ConfigurationCLI commands, environment variables, files
TroubleshootingCommon errors and fixes
Tool referenceEvery tool and parameter (generated)
DevelopmentArchitecture, tests, releasing

Credits

Forked from dmorrill/gmail-mcp-multi by Elle Morrill. This fork merged the upstream community pull requests:

  • Dave Moudy: secure credential files, install docs (#15)
  • Vadim Zaliva: per-account OAuth clients, standalone auth, read-only switch (#13)
  • Bobby Marko: attachments, RFC 2047 subjects, labels and filters (#9, #10, #11)
  • attachment download (#14)

Maintained by Antonis Papamichail (psdgator). Contributions welcome. See CONTRIBUTING.md.

MIT licensed. Privacy: PRIVACY.md.

Frequently asked questions

What is Multi Gmail Account MCP?

Many Gmail and IMAP accounts at once: unified search, triage, attachments, Calendar. Drafts-only.

How do I install Multi Gmail Account MCP?

It runs on your machine. In Claude Code: claude mcp add multi-gmail-account-mcp -e 'GMAIL_MCP_HOME=<GMAIL_MCP_HOME>' -- npx -y multi-gmail-account-mcp@0.3.0 --mode. For other clients, paste the JSON configuration from this page into their MCP settings.

Does Multi Gmail Account MCP need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is Multi Gmail Account MCP open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains Multi Gmail Account MCP?

It is published by psdgator. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.