Multi Gmail MCP logo

Multi Gmail MCP

Manage multiple Gmail accounts through Claude Desktop with search, email, OAuth, labels, drafts, and inbox actions.

Install Multi Gmail MCP

Run the project’s own setup commands, in order.

Setup steps from the project

multi-gmail-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g multi-gmail-mcp
    
  2. 2. Configure
    1. Go to [console.cloud.google.com](https://console.cloud.google.com) → create a project
    
  3. 3. Configure
    2. Enable the **Gmail API** (APIs & Services → Library)
    
  4. 4. Configure
    3. Configure the **OAuth consent screen** — External, add your Gmail addresses as test users
    
  5. 5. Configure
    5. Create a **Desktop app** OAuth credential → download the JSON
    
  6. 6. Sign in
    gmail-mcp-cli add personal@gmail.com
    

Overview

The multi-gmail-mcp MCP server connects Claude Desktop to multiple Gmail accounts through Gmail’s API. It supports OAuth account management, Gmail-syntax searches, full-message retrieval, sending, threaded replies, drafts, labels, archiving, and read-state changes. Credentials are stored locally in SQLite and OAuth tokens refresh automatically. Reach for it when an agent needs to work across personal, work, or project inboxes from one MCP configuration.

Use cases

  • Search unread messages across work and personal Gmail accounts
  • Send email from a selected Gmail account
  • Reply to messages while preserving thread headers
  • Create drafts for later review
  • Organize messages with labels and archive actions

Key features

  • Multi-account Gmail authentication
  • Gmail syntax email search
  • Email sending, replies, and drafts
  • Label and archive management
  • Read and unread state controls
  • Local OAuth token storage with refresh

Tools15

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

Self-reported~184 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.

13/13 checks healthy over the last 78d

Adoption & maintenance

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

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

How Multi Gmail MCP works

What multi-gmail-mcp MCP server does

The multi-gmail-mcp MCP server lets an MCP client work with several authenticated Gmail accounts. It exposes account management, email reading and writing, and common mailbox organization actions through MCP tools. Accounts can be added or removed independently, making it possible to distinguish between personal, work, and side-project mailboxes.

Email searches use Gmail’s query syntax, including operators such as is:unread, from:, and after:. The server can retrieve complete messages, send new mail with To, CC, and BCC recipients, reply within an existing thread, or save a message as a draft. It also supports Gmail labels, archiving, and changing the read or unread state of messages.

How it works

The server runs over stdio, so it does not open a network port. Claude Desktop starts the gmail-mcp command and communicates with it locally. Gmail access uses OAuth through a Google Cloud project with the Gmail API enabled and the required scopes configured.

OAuth credentials can be read from ~/.gmail-mcp-oauth.json, or the client ID and client secret can be supplied through environment variables. After an account completes Google sign-in, its credentials are stored in ~/.gmail-mcp-tokens.db. Stored tokens are refreshed automatically when possible.

The separate gmail-mcp-cli command can add, list, and remove authenticated accounts outside the MCP conversation. The MCP tools also provide account listing, browser-based authorization initiation, authorization completion, and credential removal.

Setup and configuration

Install Node.js 22.5.0 or newer, create a Google Cloud project, enable the Gmail API, configure the OAuth consent screen, and create a Desktop app OAuth credential. The project setup requires the gmail.readonly, gmail.send, gmail.modify, and gmail.labels scopes. Save the downloaded OAuth file at ~/.gmail-mcp-oauth.json, or configure GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in the Claude Desktop server entry.

Install the package globally with npm install -g multi-gmail-mcp. Add accounts with commands such as gmail-mcp-cli add personal@gmail.com, then register gmail-mcp under mcpServers in Claude Desktop. Restart Claude Desktop after changing its configuration and confirm that the tools appear in the client.

Tools and capabilities

Available operations include:

  • List authenticated accounts and manage their OAuth authorization.
  • Search messages using Gmail search expressions and fetch full email content by message ID.
  • Send mail with To, CC, and BCC fields.
  • Reply in a thread while preserving References headers.
  • Create drafts for later review or sending.
  • List, add, and remove Gmail labels.
  • Archive messages and add or remove the UNREAD label.

Limitations and notes

The multi-gmail-mcp MCP server is designed for Claude Desktop in the provided setup instructions and uses stdio only. It requires a Google Cloud project, Gmail API access, OAuth configuration, and a separately authenticated account before that account can be used. If a refresh token cannot be used, the account must be removed and authenticated again.

OAuth files and the token database live in the user’s home directory. They should be protected as credentials, even though the project’s ignore rules exclude them from source control.

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 Gmail MCP

multi-gmail-mcp is an MCP server that connects AI clients to multiple Gmail accounts through Gmail’s API. Its main tools manage OAuth accounts, search and read messages, send email, reply in threads, create drafts, and organize messages with labels, archiving, and read-state changes.

Install it with `npm install -g multi-gmail-mcp` after installing Node.js 22.5.0 or newer. Configure Google OAuth credentials, authenticate accounts with `gmail-mcp-cli add`, and register the `gmail-mcp` command in Claude Desktop.

Add each account with `gmail-mcp-cli add email@example.com` and complete Google sign-in in the browser. Use `gmail-mcp-cli list` to view authenticated accounts; credentials are stored locally and tokens refresh automatically.

It does not document Cursor configuration or compatibility.

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 Gmail MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/multi-gmail-mcp?style=directory)](https://allmcps.com/mcp/multi-gmail-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/multi-gmail-mcp"><img src="https://allmcps.com/api/badge/multi-gmail-mcp?style=directory" alt="Multi Gmail MCP on AllMCPs" /></a>