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. 163 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 46 · avg 17 · -13% w/w
a month agotoday
163
Installs / week
npm · gmail-workspace-mcp-server
81
Stars
27 open issues
30 Aug 2026
Last commit
no 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": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.gmail]
command = "npx"
args = ["-y", "gmail-workspace-mcp-server"]
.cursor/mcp.json
{
  "mcpServers": {
    "gmail": {
      "command": "npx",
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "gmail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "gmail-workspace-mcp-server"
      ]
    }
  }
}

Optional settings from the registry entry, left out of the block above: 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)).

Alternatives to Gmail

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

Lean Gmail MCP server with auto authentication support

349 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
MCP Gee Sweet
by khuisman

MCP server for Google Workspace — Sheets, Drive, Docs (HTML or Markdown), Calendar, and Gmail.

15 970 installs/wk local only
Mailbox MCP
by jgalea

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

156 installs/wk local only
Google Workspace
by mindstone

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

256 installs/wk local only
Gws Connector
by orieg

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

local only
Fluxmail Cloud
by fluxmail

Hosted MCP server for your Gmail, Outlook and IMAP mail, with mailboxes and scopes set per agent.

answering
Email MCP
by marlinjai

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

531 installs/wk 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 163 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 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 163 times in the last week. Week over week that is -13%. 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, 81 stars on GitHub and 27 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.