# multi-gmail-mcp [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/gx-55/multi-gmail-mcp  
**GitHub Stars:** 19  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/multi-gmail-mcp

## Description
Manage multiple Gmail accounts in Claude Desktop — search, send, reply, draft, and organize.

## Tools
Capabilities this server exposes over MCP:

- **list_accounts** — List all authenticated Gmail accounts
- **initiate_auth** — Start OAuth flow — returns a URL to open in browser
- **complete_auth** — Finalize auth after completing Google sign-in
- **remove_account** — Remove an account and its stored credentials
- **search_emails** — Search with Gmail syntax (`is:unread`, `from:`, `after:`, etc.)
- **get_email** — Fetch full email content by message ID
- **send_email** — Send an email (supports To, CC, BCC)
- **reply_to_email** — Reply in thread, preserving References headers
- **create_draft** — Save an email as a draft
- **list_labels** — List all Gmail labels for an account
- **add_label** — Add one or more labels to a message
- **remove_label** — Remove one or more labels from a message
- **archive_email** — Remove from Inbox
- **mark_as_read** — Remove the UNREAD label
- **mark_as_unread** — Add the UNREAD label

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/gx-55/multi-gmail-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g multi-gmail-mcp
```

2. Configure:

```sh
1. Go to [console.cloud.google.com](https://console.cloud.google.com) → create a project
```

3. Configure:

```sh
2. Enable the **Gmail API** (APIs & Services → Library)
```

4. Configure:

```sh
3. Configure the **OAuth consent screen** — External, add your Gmail addresses as test users
```

5. Configure:

```sh
5. Create a **Desktop app** OAuth credential → download the JSON
```

6. Sign in:

```sh
gmail-mcp-cli add personal@gmail.com
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/multi-gmail-mcp/readme_

