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.
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.
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.
claude mcp add gmail -- npx -y gmail-workspace-mcp-server
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": [
"-y",
"gmail-workspace-mcp-server"
]
}
}
}
[mcp_servers.gmail]
command = "npx"
args = ["-y", "gmail-workspace-mcp-server"]
{
"mcpServers": {
"gmail": {
"command": "npx",
"args": [
"-y",
"gmail-workspace-mcp-server"
]
}
}
}
{
"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)).
Lean Gmail MCP server with auto authentication support
MCP server for Outlook personal accounts (Hotmail/Outlook.com) via Microsoft Graph API
MCP server for Google Workspace — Sheets, Drive, Docs (HTML or Markdown), Calendar, and Gmail.
Multi-account email MCP server for Gmail, IMAP, and JMAP: search, send, drafts, labels.
Google Workspace MCP server for Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, and more
Multi-account Google Workspace MCP — Gmail, Calendar, Drive, Sheets, Docs with smart routing.
Hosted MCP server for your Gmail, Outlook and IMAP mail, with mailboxes and scopes set per agent.
Unified email MCP server for Gmail, Outlook, iCloud, and IMAP with batch operations
Answers built from our own checks of this server.