Multi-Inbox MCP
Integrates with Gmail inboxes via the Gmail API, allowing Claude to search, read messages and threads, create drafts, send email when enabled, and archive, mark, star, or trash messages across linked Gmail accounts.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Multi-Inbox MCP
One Claude connector for all your email inboxes. It links any number of Gmail and Outlook accounts. Then one "brief me on my email" covers every inbox: in Claude chat, on mobile, in morning briefings like Duet, and in Claude Code.
Claude's built-in email connectors see one account each. This one sees them all.
Set up your own copy → SETUP.md (about 45 minutes, no coding, free hosting on Cloudflare). The button above handles the Cloudflare part; you still create a Google sign-in app (step 3).
What Claude can do
Tool | What it does |
| Recent mail from every inbox in one call, grouped by inbox. Built for morning briefings. |
| Search one inbox, or all of them at once. |
| A full message or a whole conversation. |
| A new email or a reply, saved as a draft in the inbox you choose. |
| Sends right away. Off until you turn it on in the dashboard; Claude is told to confirm with you first. |
| Archive, mark read/unread, star, or trash messages, in bulk. |
| Which inboxes are linked. |
You can point Claude at one inbox by address, by nickname ("work"), or by provider ("gmail"), or say "all".
Related MCP server: IMAP MCP Server
How it works
Claude ──(OAuth 2.1 + MCP over HTTPS)──▶ Cloudflare Worker ──▶ Gmail API
│ ──▶ Microsoft Graph (Outlook)
└─ Workers KV: accounts, linked inboxes,
encrypted sign-in tokenssrc/index.ts: the entry point.@cloudflare/workers-oauth-providermakes the Worker an OAuth server for Claude: discovery, client metadata documents, dynamic registration, PKCE and tokens.src/web.ts: the connect flow Claude opens (consent → first inbox → add more → done), the dashboard, and the 30-minute links for adding an inbox from another browser.src/mcp.ts: the MCP tools. A fresh, stateless server is built per request for the signed-in user. Reads across inboxes run in parallel, and one broken inbox doesn't fail the whole call.src/providers/: the Gmail and Outlook adapters behind one interface, plus a fake provider for tests.src/store.ts: accounts and linked inboxes. Sign-in tokens are encrypted with AES-GCM. Outlook's rotating refresh tokens are saved on every refresh.
Privacy and security
Your copy, your data. Each person runs their own server; there's no central service.
Tokens never reach Claude. Inbox sign-in tokens are stored only encrypted. Claude gets its own token, which only works with this server.
Email isn't stored. Messages are fetched when Claude asks and passed straight through.
Hardened sign-in pages. The consent pages are tied to your browser and can't be embedded in other sites, following MCP's security guidance.
Drafts only by default. Dashboard forms are protected against other sites submitting them.
Least access. Gmail uses the
gmail.modifypermission, which can't permanently delete mail. Outlook usesMail.ReadWrite+Mail.Send.
Development
npm installcp .dev.vars.example .dev.varsFill in the secrets from npm run gen-secrets and set ENABLE_MOCK_PROVIDER=true. Then start the server:
npm run devIn a second terminal, run the tests:
npm run e2enpm testnpm run typechecknpm run e2e connects like Claude does, links fake inboxes in two "browsers", and calls every tool. npm test checks the Gmail and Outlook adapters against sample API responses.
Ideas / contributions welcome
IMAP inboxes (iCloud, Yahoo, Fastmail) via app passwords
Calendars from the same linked accounts
An "important senders" filter for briefings
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect any IMAP/SMTP mailbox to Claude & ChatGPT: search, read, sort, draft. Sends only with OK.
Connect any mailbox to Claude, ChatGPT & AI: read, send, reply, schedule & search emails.
Your mailboxes in ChatGPT and Claude: Gmail, iCloud, Fastmail, any IMAP. Passwords stay yours.
Bring Gmail, Outlook, iCloud Mail, Yahoo Mail, Fastmail and other IMAP mailboxes together. Search connected email, including semantic search; cached or indexed results may be incomplete or stale. Read messages and attachments, create drafts, send or reply when requested, and manage rules for new mail. Separate permissions control reading, attachments, drafts, sending and mailbox changes.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables Claude to interact with email accounts via IMAP and SMTP, providing tools for searching, reading, sending, and managing emails across multiple providers.40931 npm130MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to read, search, send, and manage emails across multiple IMAP/SMTP accounts via a single deployment.-
- AlicenseNot gradedqualityDmaintenanceConnects Claude to Microsoft 365 Outlook and Google Gmail APIs for email search, invoice detection, attachment handling, folder/label management, and draft creation. Uses Anthropic OAuth for secure authentication.31 npmISC
- AlicenseNot gradedqualityBmaintenanceEnables Claude and ChatGPT to read, search, and organize mail in a user's own email account, including folders, threads, attachments, drafts, and optional sending, with per-user permission levels and OAuth-secured remote connections.MIT