Skip to content
Claude Code

Gmail for Claude Code

io.github.mcp-z/mcp-gmail

Gmail integration with OAuth authentication, message search, batch operations, and Sheets export

client:Claude Code transport:stdio runtime:npm

Install Gmail in Claude Code

run in your project directory

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

claude mcp add mcp-gmail -e GOOGLE_CLIENT_ID=<GOOGLE_CLIENT_ID> -e GOOGLE_CLIENT_SECRET=<GOOGLE_CLIENT_SECRET> -e GOOGLE_SERVICE_ACCOUNT_KEY_FILE=<GOOGLE_SERVICE_ACCOUNT_KEY_FILE> -e AUTH_MODE=<AUTH_MODE> -e HEADLESS=<HEADLESS> -e REDIRECT_URI=<REDIRECT_URI> -e RESOURCE_STORE_URI=<RESOURCE_STORE_URI> -e PORT=<PORT> -e BASE_URL=<BASE_URL> -e LOG_LEVEL=<LOG_LEVEL> -- npx -y @mcp-z/mcp-gmail

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

Gmail in other clients