How to connect to the Gmail MCP with Claude Code (5 steps)
Blog post from Merge
Merge offers a streamlined solution for developers to connect Gmail to Claude Code, an AI coding tool, by using the Merge Agent Handler, which acts as an intermediary between Claude Code and Gmail's API. This integration involves setting up a Tool Pack and Registered User within Merge to generate a unique MCP URL, allowing Claude Code to access Gmail without requiring local environment configurations. The process includes OAuth authentication and centralized management of credentials, token refreshes, and access scopes, enhancing team collaboration by providing visibility and control over what each agent accesses. By integrating Gmail, developers can leverage the rich context found in emails, such as bug reports and deployment alerts, directly within their coding environment, thus reducing the need for context-switching and improving workflow efficiency.