Step-by-Step Tutorial

What This Does

Connects your Gmail account to Claude Code via an MCP server so Claude can read, search, and manage your emails directly from the command line.

The Prompt

Help me set up Gmail MCP for Claude Code. I already created a Google Cloud project and I'm on the credentials page.

What Claude Does

  1. Finds your earlier research notes about Gmail API integration
  2. Walks you through enabling Gmail API in Google Cloud Console
  3. Guides OAuth consent screen setup
  4. Helps you download and configure OAuth credentials
  5. Installs and configures the GongRzhe Gmail AutoAuth MCP server
  6. Adds the MCP server to your Claude Code config
  7. Troubleshoots the “Access blocked” error by having you add yourself as a test user
  8. Confirms successful auth after restart