mcpbeat Sign in

Gmail MCP Server

local only

Gmail runs on your own machine — the client starts it, so there is no endpoint to ping. 3 018 installs a week from npm.

Gmail integration with OAuth authentication, message search, batch operations, and Sheets export

Installs per day peak 1 124 · avg 367 · +3% w/w
a month agotoday
3 018
Installs / week
npm · @mcp-z/mcp-gmail
—
Stars
on GitHub
—
Last commit
17 releases in 90 days
—
License
language unknown

Nothing serious here today

Today is the operative word: we check Gmail every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add mcp-gmail -e 'GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID>' -- npx -y @mcp-z/mcp-gmail
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-gmail": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-z/mcp-gmail"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.mcp-gmail]
command = "npx"
args = ["-y", "@mcp-z/mcp-gmail"]
env = { GOOGLE_CLIENT_ID = "<GOOGLE_CLIENT_ID>" }
.cursor/mcp.json
{
  "mcpServers": {
    "mcp-gmail": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp-z/mcp-gmail"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "mcp-gmail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mcp-z/mcp-gmail"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "<GOOGLE_CLIENT_ID>"
      }
    }
  }
}

Put your own value in place of <GOOGLE_CLIENT_ID> (Google OAuth client ID (required for OAuth authentication modes)). The author’s registry entry marks it as required.

Optional settings from the registry entry, left out of the block above: GOOGLE_CLIENT_SECRET (Google OAuth client secret (optional for public clients)), GOOGLE_SERVICE_ACCOUNT_KEY_FILE (Path to service account JSON key file (required for service-account auth mode)), AUTH_MODE (Authentication mode), HEADLESS (Disable browser auto-open, return auth URL instead (true/false)), REDIRECT_URI (OAuth redirect URI (optional, default: ephemeral loopback)), DCR_MODE (Dynamic Client Registration mode), DCR_VERIFY_URL (External verification endpoint URL (required for external DCR mode)), DCR_STORE_URI (DCR client storage URI (for self-hosted DCR mode)), RESOURCE_STORE_URI (Resource store URI for CSV export files (file://)), PORT (HTTP server port (overrides --port)), BASE_URL (Base URL for HTTP transport (used for OAuth/DCR endpoints and file links)), LOG_LEVEL (Logging level).

Alternatives to Gmail

same job, measured the same way
O
Outlook
by mcp-z

Outlook integration with OAuth, message search, batch operations, and calendar management

231 installs/wk local only
Gmail MCP Server
by artymclabin

Lean Gmail MCP server with auto authentication support

973 installs/wk local only
Email MCP
by marlinjai

Unified email MCP server for Gmail, Outlook, iCloud, and IMAP with batch operations

478 installs/wk local only
MachineMail
by machinemail

Email inboxes for AI agents. Send, receive, and read email with a trust report on every message.

answering
GhostPaw Telegram
by ghostpawjs

Telegram message mirror, search, sending, and moderation tools.

638 installs/wk local only
NordicMCP — Google Mail
by nordicmcp

Hosted Gmail MCP server: read, search, and manage messages. Google OAuth2 handled by NordicMCP.

answering
emperor-mail
by yarenty

Email over IMAP and SMTP: search and read messages and attachments; draft and send when switched on

local only
Attrove
by attrove

Catch conversations going quiet — watch outcomes and search Gmail, Slack, and meetings. One MCP.

80 installs/wk answering

Gmail — questions

Answers built from our own checks of this server.

Why is there no uptime for Gmail?
Gmail runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @mcp-z/mcp-gmail was installed 3 018 times last week.
How do I connect Gmail?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls @mcp-z/mcp-gmail straight from npm; nothing to host, nothing to sign up for.
How many people use Gmail?
The npm package @mcp-z/mcp-gmail was installed 3 018 times in the last week. Week over week that is +3%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.