Multi Gmail Account MCP

السجل الرسمي البحث والويب

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

ماذا يمكنك أن تفعل مع 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:

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

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 (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>"
            }
        }
    }
}

متغيرات البيئة

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

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  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.

الأسئلة الشائعة

ما هو Multi Gmail Account MCP؟

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

كيف أثبّت 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 من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Multi Gmail Account MCP إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل Multi Gmail Account MCP مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Multi Gmail Account MCP؟

ينشره psdgator. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.