mcpField
M
Multi Gmail Account MCP

Multi Gmail Account MCP

Local
github.com/psdgatorCommunication0Updated 3d ago

About Multi Gmail Account MCP

Multi Gmail Account MCP is an MCP server for managing multiple Gmail and IMAP mailboxes from an MCP client. It combines cross-account search and triage with attachment reading, while defaulting to drafts-only mode so messages are not sent.

Key features

  1. 01Search and triage across accounts
  2. 02Deduplicated cross-mailbox results
  3. 03Read documents and images in attachments
  4. 04Draft replies, forwards, and messages
  5. 05Optional calendar search and events
  6. 06Access controls and audit log

Use cases

  1. 01Find unread mail across work and personal inboxes
  2. 02Identify conversations awaiting a reply
  3. 03Review invoices in PDF or Office attachments
  4. 04Prepare replies without sending them

MCP support

Exposes email, attachment, triage, and optional calendar tools to MCP clients. Supports readonly, drafts, and full modes; drafts mode is the default.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"psdgator-multi-gmail-account": {
"command": "npx",
"args": [
"-y",
"multi-gmail-account-mcp"
],
"env": {
"GMAIL_MCP_HOME": "<GMAIL_MCP_HOME>"
}
}
}
}
Run commandnpx -y multi-gmail-account-mcp
Environment variables to set
GMAIL_MCP_HOMEFolder for config, encrypted logins and the audit log (default ~/.gmail-mcp)

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmmulti-gmail-account-mcp0.3.0

Tools

23

Saved tool list · updated 3d ago

This tool takes no parameters.

Details

From the project README
Multi Gmail Account MCP logo

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.

npm CI License: MIT

Claude answering "What's unread everywhere?" with emails from three accounts, each tagged shop, agency or personal

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

Who am I supposed to get back to: conversations waiting for a reply across accountsReading the total, VAT and due date from a PDF invoice attachment
Needs reply: everyone waiting on you, in every inbox, oldest first.Attachments: ask about what's inside PDFs, Office files and images.
Drafts mode: replies are saved as drafts, nothing is sentEvery inbox, one conversation
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 [email protected]
    gmail-mcp-multi auth work [email protected] --calendar
    gmail-mcp-multi add-imap company [email protected] --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.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.