Google Workspace API key, OAuth and MCP

Connect Gmail, Calendar, Drive, Docs and Sheets to your tools and your AI. No key for private data: OAuth to act on behalf of a user, a service account for automated processing. An MCP server in preview already lets you connect it to an AI; test it before relying on it.

Communication and collaboration · Collaboration suite

Google Workspace

Connect Gmail, Calendar, Drive, Docs and Sheets to your tools and your AI.

  • Google API
  • No personal key
  • OAuth
  • MCP server in preview

No key for private data: OAuth to act on behalf of a user, a service account for automated processing.

The steps are in the tab .

Worth knowing. Domain-wide delegation gives access to every employee’s mailbox: keep it for a documented need, with minimal scopes.

Your questions about Google Workspace.

Where do you create a Google Workspace API key?

No key for private data: OAuth to act on behalf of a user, a service account for automated processing.

How do you check that Google Workspace access works?

Google Workspace has no test call documented here: check the connection in the AI itself by asking it what it can see of your account before giving it a task.

Do you need OAuth with Google Workspace?

Yes, for an application that other accounts install. Google Cloud console: create a project and enable the APIs you need (Gmail, Calendar, Drive, Docs, Sheets). Consent screen: internal if the app only serves your domain. Credentials: OAuth client ID, or service account. Domain-wide service account: an administrator authorises it in the Admin console, Security, API controls, Domain-wide delegation, with specific scopes.

Does Google Workspace have an official MCP server?

MCP server in preview. Google Workspace MCP server in developer preview since 1 May 2026. Claude and ChatGPT already have built-in Gmail, Google Calendar and Google Drive connectors. The “MCP server” tab explains how to add it in Claude, ChatGPT or Le Chat.

What precautions should you take with Google Workspace access?

Domain-wide delegation gives access to every employee’s mailbox: keep it for a documented need, with minimal scopes.