mcpbeat Sign in

Gmail MCP Server

local only

Gmail MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 442 installs a week from npm. Last commit 5 Nov 2026.

MCP server for the Gmail API: search, read and send email, manage drafts, labels and the trash.

Installs per day peak 164 · avg 21 · -75% w/w
a month agotoday
442
Installs / week
npm · mcp-google-gmail
0
Stars
0 open issues
5 Nov 2026
Last commit
5 releases in 90 days
MIT
License
TypeScript

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

Optional settings from the registry entry, left out of the block above: GOOGLE_GMAIL_CLIENT_ID (Google OAuth2 client id (refresh-token flow)), GOOGLE_GMAIL_CLIENT_SECRET (Google OAuth2 client secret (refresh-token flow). Treat it as a secret), GOOGLE_GMAIL_REFRESH_TOKEN (Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret), GOOGLE_GMAIL_ACCESS_TOKEN (Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing), GOOGLE_GMAIL_OAUTH_PORT (Fixed port for the loopback listener of the in-chat login (127.0.0.1 + PKCE). Set it when the client runs over SSH port forwarding; otherwise a free port is picked per login), GOOGLE_GMAIL_API_BASE (API root override), GOOGLE_GMAIL_TIMEOUT_MS (Per-request timeout in milliseconds), GOOGLE_GMAIL_MAX_RETRIES (Retries on transient errors (429 always; 5xx/network for reads)).

What the code does

We read the source, 3 d ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

A line of code looks encrypted src/telemetry.ts:221
  /(?<key>(?:login|password|secret|token|api[_-]?key|authorization)\s*[:=]\s*["']?|(?:bearer|basic)\s+)(?<val>[^,;]+)|[^\s,;]*(?:@|:\/\/|%3A|\p{L}\.\p{L})[^\s,;]*|(?<key2>\b(?:token|secret|password|api[_-]?key|access_token|refresh_token|client_secret)\s+)(?!(?:expired|invalid|is|…

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Alternatives to Gmail MCP

same job, measured the same way
MCP Serp
by acedatacloud

MCP server for Google search results via SERP API

4 409 installs/wk answering
Google Maps MCP Server
by cablate

18 Google Maps tools for AI agents — geocode, search, directions, weather, and more.

1 356 installs/wk local only
Olostep MCP Server
by olostep

Live web search, scraping and crawling API for AI. Get structured, LLM-ready data from any site.

1 018 installs/wk answering
MCP Gemini
by crunchtools

MCP server for Google Gemini AI - text, image, video, research, and more

874 installs/wk local only
search-rotation
by robin-bially

MCP server for web search and page extraction across the free tiers of several providers

367 installs/wk local only
Google Health MCP
by partymola

MCP server for the Google Health API, with a local SQLite cache and trend analysis.

352 installs/wk local only
DeepSeek Web Search
by matthewyin

MCP server for DeepSeek tools: scored web search, page-to-Markdown fetch, OCR, ASR and TTS

155 installs/wk local only
SourceWeave Web Search
by mrnaqa

Fully local MCP server and CLI for web research

146 installs/wk local only

Gmail MCP — questions

Answers built from our own checks of this server.

Why is there no uptime for Gmail MCP?
Gmail MCP 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-google-gmail was installed 442 times last week.
How do I connect Gmail MCP?
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-google-gmail straight from npm; nothing to host, nothing to sign up for.
How many people use Gmail MCP?
The npm package mcp-google-gmail was installed 442 times in the last week. Week over week that is -75%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Gmail MCP open source?
Yes — it is published under the MIT licence, written in TypeScript and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.