DEV Community

Nav
Nav

Posted on

Open-source Gmail MCP server: multi-account support, read/write (works with Claude, Cursor, OpenClaw)

Most AI tools come with a Gmail integration that can only read from one account. No writing. No archiving. No unsubscribing. I built an open-source MCP server that changes that.

Gmail MCP

The Problem

Claude's built-in Gmail connector reads emails from one account. That's it. No archiving, no labeling, no unsubscribing. If you have multiple Gmail accounts, you need to set up separate connectors for each one.

The Solution

A single MCP server that connects to all your Gmail accounts and gives AI full read/write access:

  • 7 tools: list, read, archive, label, unsubscribe, batch process
  • Works with Claude, OpenClaw, Cursor, Windsurf, Cline, and any MCP client
  • Deploys in 5 minutes

Quick Start

  1. Deploy to Railway or self-host
  2. Add Google OAuth credentials
  3. Connect your Gmail accounts via the web setup page
  4. Point your AI client to the /mcp endpoint

Full setup guide: github.com/navbuildz/gmail-mcp-server

Example Prompts

  • "Show me unread emails from the last 2 days across all accounts"
  • "Unsubscribe from all newsletters in the last month"
  • "Archive everything from category:promotions"
  • "Label all emails from @company.com as 'Work'"

MIT licensed. PRs welcome.

Top comments (0)