gmail-mcp-multi

gmail-mcp-multi

A Gmail MCP server with native multi-account support, enabling management of multiple Gmail accounts from a single server instance.

Category
Visit Server

README

gmail-mcp-multi

A Gmail MCP server with native multi-account support. Manage multiple Gmail accounts from a single server instance.

Unlike other Gmail MCPs that require running separate server instances per account, this one lets you specify which account to use on each tool call—making it easy to manage personal and work inboxes from Claude Code, Cursor, or any MCP client.

Features

  • Multi-account support - Single server instance, unlimited Gmail accounts
  • Account aliases - Use friendly names like "work" or "personal" instead of email addresses
  • Full Gmail API - Search, read, send, label, and manage emails
  • Batch operations - Bulk modify or delete emails efficiently
  • Auto token refresh - Handles OAuth token refresh automatically

Installation

npm install -g gmail-mcp-multi

Or run directly with npx:

npx gmail-mcp-multi

Quick Start

1. Set up Google Cloud OAuth

You'll need OAuth credentials from Google Cloud Console:

  1. Go to Google Cloud Console
  2. Create a new project (or use existing)
  3. Enable the Gmail API
  4. Create OAuth 2.0 credentials (Desktop app type)
  5. Download the credentials JSON

2. Configure the MCP

Create ~/.gmail-mcp/oauth-keys.json with your OAuth credentials.

3. Add to your MCP client

Claude Code (~/.claude/settings.json):

{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": ["gmail-mcp-multi"]
    }
  }
}

4. Authenticate accounts

Once the MCP is running, use the authenticate tool:

authenticate({ alias: "work", email: "you@company.com" })
authenticate({ alias: "personal", email: "you@gmail.com" })

5. Use it!

search_emails({ account: "work", query: "in:inbox is:unread" })
search_emails({ account: "personal", query: "from:mom" })

Tools

All tools that interact with Gmail require an account parameter (alias or email).

Account Management

Tool Description
list_accounts List all configured accounts and auth status
authenticate Add or re-authenticate an account

Email Operations

Tool Description
search_emails Search emails using Gmail query syntax
read_email Get full content of an email by ID
send_email Send a new email
draft_email Create a draft
modify_email Add/remove labels, mark read/unread
delete_email Trash or permanently delete
batch_modify_emails Bulk label operations
batch_delete_emails Bulk delete

Label Management

Tool Description
list_labels Get all labels for an account
create_label Create a new label
delete_label Delete a label

Configuration

Credentials are stored in ~/.gmail-mcp/:

~/.gmail-mcp/
├── config.json           # Account aliases and settings
├── oauth-keys.json       # Your Google OAuth app credentials
└── accounts/
    ├── work/
    │   └── credentials.json
    └── personal/
        └── credentials.json

Development

git clone https://github.com/dmorrill/gmail-mcp-multi.git
cd gmail-mcp-multi
npm install
npm run build
npm run dev

Contributing

Contributions welcome! Please see CONTRIBUTING.md for guidelines.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured