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. 144 installs a week from npm. Last commit 30 Aug 2026.

MCP server for Gmail with OAuth2 (personal) and service account (Workspace) support.

Installs per day peak 142 · avg 22 · -2% w/w
a month agotoday
144
Installs / week
npm · gmail-workspace-mcp-server
80
Stars
26 open issues
30 Aug 2026
Last commit
0 releases in 90 days
MIT
License
TypeScript

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 gmail -- npx -y gmail-workspace-mcp-server
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "gmail": {
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.gmail]
command = "npx"
args = ["-y", "gmail-workspace-mcp-server"]
.cursor/mcp.json
{
  "mcpServers": {
    "gmail": {
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "gmail": {
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ],
      "command": "npx"
    }
  }
}

This one needs environment variables set before it will start: GMAIL_OAUTH_CLIENT_ID (OAuth2 client ID from Google Cloud Console (for personal Gmail accounts).), GMAIL_OAUTH_CLIENT_SECRET (OAuth2 client secret from Google Cloud Console.), GMAIL_OAUTH_REFRESH_TOKEN (Refresh token from the OAuth2 setup script.), GMAIL_SERVICE_ACCOUNT_CLIENT_EMAIL (Service account email address (for Google Workspace).), GMAIL_SERVICE_ACCOUNT_PRIVATE_KEY (Service account private key in PEM format (for Google Workspace).), GMAIL_IMPERSONATE_EMAIL (Email address to impersonate (required for service account mode).), GMAIL_ENABLED_TOOLGROUPS (Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).). The author declared them in the registry entry; get the values from the project itself.

Alternatives to Gmail

same job, measured the same way
Gmail MCP Server
by artymclabin

Lean Gmail MCP server with auto authentication support

340 installs/wk local only
Outlook Mac MCP
by valter-araujo

MCP server for Outlook personal accounts (Hotmail/Outlook.com) via Microsoft Graph API

local only
Mailbox MCP
by jgalea

Multi-account email MCP server for Gmail, IMAP, and JMAP: search, send, drafts, labels.

84 installs/wk local only
Google Workspace
by mindstone

Google Workspace MCP server for Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, and more

147 installs/wk local only
Gws Connector
by orieg

Multi-account Google Workspace MCP — Gmail, Calendar, Drive, Sheets, Docs with smart routing.

local only
Email MCP
by marlinjai

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

236 installs/wk local only
Better Email MCP
by n24q02m

IMAP/SMTP MCP server for Email with composite tools. Multi-account, auto-discovery.

1 683 installs/wk local only
MCP fork of Google Workspace CLI
by shigechika

MCP fork of Google Workspace CLI (Gmail, Drive, Calendar, and more)

local only

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 gmail-workspace-mcp-server was installed 144 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 with the file path that client actually reads. It runs locally, so the command pulls gmail-workspace-mcp-server straight from npm; nothing to host, nothing to sign up for.
How many people use Gmail?
The npm package gmail-workspace-mcp-server was installed 144 times in the last week. Week over week that is -2%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Gmail open source?
Yes — it is published under the MIT licence, written in TypeScript, 80 stars on GitHub and 26 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.