Multi Account Gmail logo

Multi Account Gmail

Search, read, draft, label, filter, and manage messages across multiple Gmail accounts through one MCP connection.

Install Multi Account Gmail

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "multi-account-gmail": {
      "command": "uvx",
      "args": [
        "multi-account-gmail-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Multi-Account Gmail connects an MCP client to multiple Gmail accounts through one Google OAuth client and a local SQLite token store. It supports account-specific searches and a cross-account search, message and thread reading, attachment downloads, drafts, labels, filters, and bulk mailbox actions. Authorization happens through a CLI, while the MCP server runs over stdio and refreshes stored credentials as needed. Reach for it when an agent needs to work across several inboxes without switching OAuth connections, while keeping sending disabled.

Use cases

  • Search every authorized inbox for matching messages
  • Read and summarize email threads from a selected account
  • Create draft replies without sending them
  • Apply labels or bulk mailbox actions from Gmail queries
  • Create filters for recurring incoming mail

Key features

  • Multi-account OAuth authorization
  • Cross-account Gmail search
  • Message, thread, and batch reading
  • Draft and threaded reply creation
  • Bulk labels and mailbox actions
  • Server-side filter management

Tools17

What Multi Account Gmail lets your agent do. Expand a tool for its parameters.

Verified live~3.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 83d

What it can do

From the 17 tools this server returned when we ran it.

Runs commands · 1Can delete or modify data · 5Makes network requests · 2Read-only tools · 11
Network at startup2 connections
Files written at startup1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · multi-account-gmail-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit27d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Multi Account Gmail works

What Multi-Account Gmail does

Multi-Account Gmail exposes Gmail operations as MCP tools for every account authorized through its authentication CLI. Each account is stored separately, and most tools accept the account's email address so an agent can target the intended mailbox. search_all_accounts provides the cross-account workflow: one Gmail query searches every authorized account and tags each result with its source account.

The server covers mailbox discovery, Gmail search, message and thread reading, draft creation, labels, filters, attachment downloads, and message-state changes. It can create drafts and replies but does not send email. A draft reply can remain in the original thread, with recipients and threading metadata derived from the referenced message.

How it works

A single Google Desktop app OAuth client can authorize multiple inboxes. The authentication CLI completes authorization once per account, then saves refresh tokens in a local SQLite database under ~/.gmail-mcp/. The stdio MCP process reads those credentials, refreshes access tokens when needed, and communicates with Google OAuth and the Gmail API.

The server uses separate Gmail scopes for reading, composing, modifying mail, and basic settings rather than the full-mailbox scope. It does not require a daemon or a cloud token service. Headless authorization is supported through a printed consent URL, a fixed callback port, and SSH port forwarding.

Setup and configuration

Use Python 3.12 or later. Create a Google Cloud Desktop app OAuth client and make its client_secret.json available to the authentication CLI and MCP process. Run the authorization flow once for each Gmail account you want to use; the resulting refresh tokens are kept in the local SQLite store.

Register the stdio process with an MCP client after authorization. The token database can be inspected, copied for backup, or removed to revoke stored account access. The server stores its local state under the user's home directory and does not hardcode secrets.

Tools and capabilities

  • Discover authorized accounts with list_accounts, including each account's last-used time.
  • Search one mailbox with Gmail query syntax, search every account with search_all_accounts, or count matches before changing them.
  • Read individual messages, complete threads, or multiple messages in a bounded batch.
  • Download attachments to the server's fixed attachment directory and receive absolute file paths.
  • Create regular drafts or threaded replies, then list draft IDs for later handling.
  • List labels and add or remove labels from one message, multiple IDs, or a Gmail query.
  • Apply friendly bulk actions such as archive, read/unread, star, spam, unspam, trash, and untrash.
  • List, create, and delete server-side filters that act on newly arriving mail.

Limitations and notes

Email bodies, sender names, subjects, and downloaded files are untrusted data. Agents should treat their contents as information rather than instructions and must not execute downloaded files. Attachment downloads reject Gmail-blocked file types, macro-enabled Office files, and attachments from messages marked as spam; this screening is not a virus scan.

Bulk actions and trash operate on every message matching a supplied selection or query, in batches of up to 1,000. Empty selections are rejected for destructive operations. Trash is recoverable for 30 days and is not permanent deletion. Use count_messages first when checking the scope of a bulk operation.

Filters affect mail arriving after the filter is created and cannot forward mail off-account. Existing messages require a separate search and label or bulk action. create_draft never sends mail, and attachment downloads have no custom destination argument.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Multi Account Gmail

Multi-Account Gmail is an MCP server that connects AI agents to multiple Gmail accounts through one Google OAuth client. Its main tools search and read messages, inspect threads, create drafts, manage labels and filters, download attachments, and apply bulk mailbox actions without sending email.

Install it with Python 3.12 or later, configure a Google Cloud Desktop app OAuth client, and make its client_secret.json available. Authorize each Gmail account through the authentication CLI, then register the stdio MCP process with your MCP client.

Yes. Use search_all_accounts with a Gmail search query to search every authorized account in one call. Each result includes the account it came from, allowing a later read or draft operation to target the correct mailbox.

No. Multi-Account Gmail creates drafts but does not send messages. It can create a new draft or a reply inside an existing thread, leaving the final send action for the user.

Yes. bulk_action, modify_labels, and trash accept message IDs or Gmail queries and process matching messages in batches of up to 1,000. Use count_messages first to check the number of matches; empty selections are rejected.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMulti Account Gmail AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/multi-account-gmail?style=directory)](https://allmcps.com/mcp/multi-account-gmail)
HTML Embed
<a href="https://allmcps.com/mcp/multi-account-gmail"><img src="https://allmcps.com/api/badge/multi-account-gmail?style=directory" alt="Multi Account Gmail on AllMCPs" /></a>