Gmail
by github.com/mcp-z · v2.5.3 · updated Nov 21, 2026
Gmail integration with OAuth authentication, message search, batch operations, and Sheets export
Run it locally
Install the package and point your AI client at it.
npm
npx -y @mcp-z/[email protected]Environment variables
GOOGLE_CLIENT_IDrequiredGoogle OAuth client ID (required for OAuth authentication modes)
GOOGLE_CLIENT_SECRETsecretGoogle OAuth client secret (optional for public clients)
GOOGLE_SERVICE_ACCOUNT_KEY_FILEPath to service account JSON key file (required for service-account auth mode)
AUTH_MODEAuthentication mode
HEADLESSDisable browser auto-open, return auth URL instead (true/false)
REDIRECT_URIOAuth redirect URI (optional, default: ephemeral loopback)
RESOURCE_STORE_URIResource store URI for CSV export files (file://). Default: .mcp-z/mcp-gmail/files beside the nearest .mcp.json, else ~/.mcp-z/mcp-gmail/files
PORTHTTP server port (overrides --port)
BASE_URLBase URL for HTTP transport (used for OAuth/DCR endpoints and file links)
LOG_LEVELLogging level
npm
npx -y @mcp-z/[email protected]Environment variables
GOOGLE_CLIENT_IDrequiredGoogle OAuth client ID (required for OAuth authentication modes)
GOOGLE_CLIENT_SECRETsecretGoogle OAuth client secret (optional for public clients)
GOOGLE_SERVICE_ACCOUNT_KEY_FILEPath to service account JSON key file (required for service-account auth mode)
AUTH_MODEAuthentication mode
HEADLESSDisable browser auto-open, return auth URL instead (true/false)
REDIRECT_URIOAuth redirect URI (optional, default: ephemeral loopback)
DCR_STORE_URIDCR client storage URI (for self-hosted DCR mode)
RESOURCE_STORE_URIResource store URI for CSV export files (file://). Default: .mcp-z/mcp-gmail/files beside the nearest .mcp.json, else ~/.mcp-z/mcp-gmail/files
PORTHTTP server port (overrides --port)
BASE_URLBase URL for HTTP transport (used for OAuth/DCR endpoints and file links)
LOG_LEVELLogging level
More from github.com/mcp-z
Google Sheets
github.com/mcp-z
Google Sheets integration with OAuth, spreadsheet management, batch operations, and formatting
Outlook
github.com/mcp-z
Outlook integration with OAuth, message search, batch operations, and calendar management
Google Drive
github.com/mcp-z
Google Drive integration with file operations, folder navigation, search, and sharing
PDF Generator
github.com/mcp-z
MCP server for creative PDF generation with full emoji, Unicode, and offline support
More MCP servers
MCP Bulário ANVISA
github.com/mcpassure
Consulta o Bulário Eletrônico da ANVISA: bulas, registros, tarjas e apresentações.
MCP CNES
github.com/mcpassure
Consulta o CNES (estabelecimentos de saúde): profissionais, leitos, equipamentos, serviços.
MCP TUSS / Rol ANS
github.com/mcpassure
Consulta tabelas TUSS da ANS: procedimentos, medicamentos, diárias e taxas via SQLite local.
Mcp Time
github.com/mcpcentral-io
Time MCP server via HTTP
MCP Customs
github.com/mcpcustoms
Inspect an MCP server for common security risks before you install it. Offline, zero telemetry.
MCPExplorer
github.com/mcpexplorer
Search, vet & assemble MCP servers from your agent: verified tools, risk labels, and trust scores.