loading…
Search for a command to run...
loading…
A Gmail MCP server with native multi-account support, enabling management of multiple Gmail accounts from a single server instance.
A Gmail MCP server with native multi-account support, enabling management of multiple Gmail accounts from a single server instance.
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.
npm install -g gmail-mcp-multi
Or run directly with npx:
npx gmail-mcp-multi
You'll need OAuth credentials from Google Cloud Console:
Create ~/.gmail-mcp/oauth-keys.json with your OAuth credentials.
Claude Code (~/.claude/settings.json):
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": ["gmail-mcp-multi"]
}
}
}
Once the MCP is running, use the authenticate tool:
authenticate({ alias: "work", email: "[email protected]" })
authenticate({ alias: "personal", email: "[email protected]" })
search_emails({ account: "work", query: "in:inbox is:unread" })
search_emails({ account: "personal", query: "from:mom" })
All tools that interact with Gmail require an account parameter (alias or email).
| Tool | Description |
|---|---|
list_accounts |
List all configured accounts and auth status |
authenticate |
Add or re-authenticate an account |
| 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 |
| Tool | Description |
|---|---|
list_labels |
Get all labels for an account |
create_label |
Create a new label |
delete_label |
Delete a label |
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
git clone https://github.com/dmorrill/gmail-mcp-multi.git
cd gmail-mcp-multi
npm install
npm run build
npm run dev
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
MIT
Run in your terminal:
claude mcp add gmail-mcp-multi -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.