Skip to content
MCP server

Multi Gmail Account MCP

Local MCP server that searches many Gmail and IMAP mailboxes at once, drafts-only default

Runs locally

Multi Gmail Account MCP is an open-source MCP server for communication. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.3.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add multi-gmail-account-mcp -- npx -y multi-gmail-account-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "multi-gmail-account-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "multi-gmail-account-mcp"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add multi-gmail-account-mcp -- npx -y multi-gmail-account-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.multi-gmail-account-mcp]
command = "npx"
args = ["-y", "multi-gmail-account-mcp"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "multi-gmail-account-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "multi-gmail-account-mcp"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

    Or run: gemini mcp add -s user multi-gmail-account-mcp npx -- -y multi-gmail-account-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

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

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "multi-gmail-account-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "multi-gmail-account-mcp"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GMAIL_MCP_HOMEFolder for config, encrypted logins and the audit log (default ~/.gmail-mcp)

About Multi Gmail Account MCP

Most Gmail connectors handle a single account. This one takes any number of Gmail and IMAP mailboxes, each with an alias such as shop, work or personal, and searches them together. Results are merged, copies of the same message appear once, and each email is labelled with the account it came from. Non-Gmail hosts like cPanel or Fastmail work beside Gmail with the same search syntax.

Triage tools include needs_reply, which lists conversations waiting on you oldest first across all inboxes, and daily_digest for a morning briefing. Attachments such as PDFs, Word, Excel, PowerPoint, OpenDocument files, ZIP and images can be read without saving them, with OCR for images. Writing is limited to drafts by default: threaded replies, forwards with attachments and send-as addresses are prepared but never sent.

Three modes control risk: readonly, drafts (the default) and full, which adds sending, trash, unsubscribe, filters and calendar event creation. Logins are kept encrypted in the OS keychain and every action goes to an audit log. It needs your own Google OAuth client, and an optional Docker hosted mode exposes it to claude.ai as a custom connector. It lists 33 tools and is MIT licensed.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 2 tools changes data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

needs_replyName suggests: changes
List conversations waiting on you, oldest first.
daily_digest
Briefing of recent mail across accounts.

What it does

Unified search
Searches every connected mailbox and removes duplicate copies.
Reply tracking
needs_reply finds conversations waiting on you across accounts.
Attachment reading
Reads PDFs, Office files, ZIP and images without saving them.
Drafts-only default
Nothing is sent unless you switch to full mode.
Per-account limits
Individual accounts can be restricted to read-only.
Audit log
Records every action; logins are encrypted in the OS keychain.
Optional calendar
Shows events and free time across accounts and can create events.

Good for

  • Ask what is unread across work and personal inboxes
  • Find who is waiting for a reply
  • Read an invoice attachment from a shop mailbox
  • Draft a reply in another language and review it before sending
  • Preview a bulk archive of newsletters

Pricing

Open source

Free, MIT licensed

More servers for the same service

Multi Gmail Account MCP FAQ

Will Multi Gmail Account MCP send email on its own?

Not in the default drafts mode; sending needs full mode.

Does Multi Gmail Account MCP support non-Gmail accounts?

Yes, any IMAP mailbox can be added next to Gmail.

Can I use Multi Gmail Account MCP in claude.ai on the web?

Through the hosted mode, which runs in Docker and is added as a custom connector.

What do I need before connecting Gmail?

A Google Cloud OAuth client for a desktop app, saved as a JSON file.

Which licence is Multi Gmail Account MCP under?

MIT.

Is Multi Gmail Account MCP free?

Yes. Multi Gmail Account MCP is open source, so you can use and self-host it for free.

How do I add Multi Gmail Account MCP to Claude Code?

Run this command in your terminal: claude mcp add multi-gmail-account-mcp -- npx -y multi-gmail-account-mcp

What are the best alternatives to Multi Gmail Account MCP?

The closest alternatives to Multi Gmail Account MCP are TrendRadar, Ha MCP, Concord MCP, TryPost and Open Sunsama.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers