Gmail integration with OAuth authentication, message search, batch operations, and Sheets export
io.github.mcp-z/mcp-gmail
https://github.com/mcp-z/mcp-gmail#readme
STDIO
2 required env vars
Hosted endpoint — paste into any MCP client.
Configuration this server reads at startup.
Google OAuth client ID (required for OAuth authentication modes)
Google OAuth client ID (required for OAuth authentication modes)
Google OAuth client secret (optional for public clients)
Path to service account JSON key file (required for service-account auth mode)
Authentication mode
Disable browser auto-open, return auth URL instead (true/false)
OAuth redirect URI (optional, default: ephemeral loopback)
Resource store URI for CSV export files (file://)
HTTP server port (overrides --port)
Base URL for HTTP transport (used for OAuth/DCR endpoints and file links)
Logging level
Google OAuth client secret (optional for public clients)
Path to service account JSON key file (required for service-account auth mode)
Authentication mode
Disable browser auto-open, return auth URL instead (true/false)
OAuth redirect URI (optional, default: ephemeral loopback)
Dynamic Client Registration mode
External verification endpoint URL (required for external DCR mode)
DCR client storage URI (for self-hosted DCR mode)
Resource store URI for CSV export files (file://)
HTTP server port (overrides --port)
Base URL for HTTP transport (used for OAuth/DCR endpoints and file links)
Logging level
Where to find authoritative docs and source for Gmail.
Open MCP Agent Studio and connect this server to Claude, GPT, Gemini, DeepSeek and more — no install required.
Open Agent Studio