Google now gives AI agents two official ways into Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat and Tasks: hosted Workspace MCP servers for cloud and web agents, and the Workspace CLI (gwscli) for agents that run in a terminal. Both went generally available on November 24, 2026. The deadline matters more than the launch. Google says AI agents must use the MCP servers or the CLI instead of calling Workspace REST APIs directly, and technical enforcement begins February 1, 2027.
This guide walks through the setup Google documents, the scopes to grant, the admin settings that decide what an agent can do without asking, and the mistakes that cause most failed connections.
The short version:
- Pick your path: MCP servers for Claude.ai, Antigravity and other MCP hosts;
gwsclifor Claude Code, Codex and other terminal agents. - Mark the OAuth client as an agent: every user-delegated client needs “Use this client for an AI-powered agent” selected, or requests fail.
- Start read-only: grant write scopes one service at a time.
- Admins: review the four user review categories under Agents > Settings before staff connect anything.
- If you built an agent on REST APIs: move it before February 1, 2027.
What changes on February 1, 2027
Google’s November 24 announcement on the Workspace Updates blog sets three dates:
- Now, over about two weeks: the MCP servers, the CLI, the Admin console agent controls, human-in-the-loop (HITL) rules, agent audit logs, a Workspace API usage dashboard and Scaled tier selection roll out to Rapid Release and Scheduled Release domains.
- February 1, 2027: technical enforcement of the MCP or CLI requirement for “AI agents or similar access tools.”
- April 1, 2027: Scaled tier billing starts for the Gmail, Calendar and Drive APIs, the CLI and the MCP servers. Projects that already have higher limits drop to Standard tier limits unless they switch to Scaled or an admin marks them as internal.
Who needs to act? If your product or internal tool lets a language model decide which Workspace calls to make, plan the move. A traditional integration that makes fixed, deterministic API calls is not what the requirement targets. Google tells developers to use a separate OAuth client for traditional, non-agent features.
Cost is not the reason to panic. Google says over 99% of active developers operate within the Standard tier, which has no cost and published rate limits. The new usage dashboard shows each project’s usage against those limits, and Google says that if every project is under them, you do not need to take any action on quotas.
MCP servers or the CLI: which one you need
Both reach the same services and follow the same admin policies. The difference is where your agent runs.
- Workspace MCP servers are Google-hosted remote servers, one per product, reached over Streamable HTTP. Use them with an MCP host such as Claude.ai, Claude Desktop or Google Antigravity. Each product has its own URL, for example
https://gmailmcp.googleapis.com/mcp/v1andhttps://drivemcp.googleapis.com/mcp/v1. - The Workspace CLI is a single binary for Linux, macOS and Windows that terminal agents call like any other command. It discovers commands at runtime, returns structured JSON, and ships with packaged agent skills that teach an agent how to use it.
Google’s case for both over raw REST is token use: MCP tools return summaries from inside Workspace instead of raw data, and terminal agents can chain CLI commands. If tool output is eating your context budget, our explainer on what long context really costs shows why that matters.
Before you start
- A Google Cloud project. If your admin blocks project creation, ask for an existing one.
- An MCP host or a terminal agent. Claude.ai and Claude Desktop need a Claude Pro, Max, Team or Enterprise plan to add these servers, per Google’s guide.
- A decision on who signs in. One person connecting their own account can use Google’s personal mode. A team needs a standard OAuth consent screen.
Set up the Workspace MCP servers (step by step)
Step 1: Create the project and OAuth client
For your own account only, open Personal mode onboarding in the Google Cloud console from the configuration guide. It creates an OAuth client that works only for your Google Account, enables the core Workspace APIs and MCP services, and skips app verification and the consent screen. Pick Web application for Claude or Antigravity, add the redirect URI, confirm that Use this client for an AI-powered agent is selected, accept the User Data Policy, and copy the client ID and secret.
The redirect URIs Google lists are:
- Claude:
https://claude.ai/api/mcp/auth_callback - Antigravity:
https://antigravity.google/oauth-callback
Step 2: For teams, enable only the services you need
Multi-user setups skip personal mode and enable services by hand. Each product needs its MCP service and its regular API. This example enables Gmail, Drive and Calendar only:
gcloud services enable gmailmcp.googleapis.com \
drivemcp.googleapis.com \
calendarmcp.googleapis.com \
--project=PROJECT_ID
gcloud services enable gmail.googleapis.com \
drive.googleapis.com \
calendar-json.googleapis.com \
--project=PROJECT_ID
Replace PROJECT_ID with your project ID. The other GA services follow the same pattern (docsmcp, sheetsmcp, slidesmcp, chatmcp, tasksmcp). Tasks needs no separate product API. The People API serves MCP directly on people.googleapis.com.
Step 3: Configure the consent screen and scopes
In Google Auth Platform > Branding, create the app. Under Audience, choose Internal if you can, so only people in your organization can sign in. If you must choose External, add test users. Then open Data Access > Add or Remove Scopes and paste only the scopes for servers you enabled.
Google’s guide lists these for Gmail, Drive and Calendar:
# Gmail
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/gmail.compose
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/gmail.settings.basic (only for create_filter)
# Drive
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.file
# Calendar
https://www.googleapis.com/auth/calendar.calendarlist.readonly
https://www.googleapis.com/auth/calendar.events.freebusy
https://www.googleapis.com/auth/calendar.events.readonly
https://www.googleapis.com/auth/calendar.events
Leave out gmail.settings.basic unless the agent truly needs to create filters. If a pilot only summarizes mail, test it with the read-only scopes first.
Step 4: Create the agent OAuth client
Go to Google Auth Platform > Clients > Create Client, choose Web application, add your host’s redirect URI, select Use this client for an AI-powered agent, and create it. If an existing client also serves non-agent features, Google says to create a separate client for the agent instead of reusing it.
Step 5: Add the servers to your AI app
In Claude.ai or Claude Desktop: go to Settings > Connectors (or Admin settings > Connectors), click Add custom connector, enter a name such as Gmail and the server URL, then put the OAuth client ID and secret under Advanced settings. Repeat for each product.
In Antigravity: add servers to ~/.gemini/config/mcp_config.json. This is Google’s format, trimmed to two servers:
{
"mcpServers": {
"gmail": {
"serverUrl": "https://gmailmcp.googleapis.com/mcp/v1",
"oauth": {
"clientId": "OAUTH_CLIENT_ID",
"clientSecret": "OAUTH_CLIENT_SECRET"
}
},
"drive": {
"serverUrl": "https://drivemcp.googleapis.com/mcp/v1",
"oauth": {
"clientId": "OAUTH_CLIENT_ID",
"clientSecret": "OAUTH_CLIENT_SECRET"
}
}
}
}
Then authenticate each server, from Customizations > Installed MCP Servers in the app, or with /mcp in the Antigravity CLI.
Other hosts: use Streamable HTTP, OAuth 2.0 and one URL per product. With a Web application client, request offline access (access_type=offline or the offline_access scope), or you will be asked to sign in again about every hour.
Step 6: Pick the right endpoint for approvals
Sensitive actions, such as sending email, changing shared calendar events, sharing or trashing files, or reading shared data, trigger an approval request through MCP form elicitation. Use /mcp/v1 if your host supports form elicitation. If it does not, use the fallback /mcp/v1self (for example https://gmailmcp.googleapis.com/mcp/v1self), which exposes only tools that work without elicitation under default policy. On /mcp/v1, Google suggests setting the host’s own confirmation prompts to Always allow for these servers so users are not asked twice. Google’s prompt still appears for the actions that need it.
Step 7: Test with harmless prompts
Google’s test prompts are a good template. Start with reads and a draft, not a send:
- “When is my next meeting with Ariel?” (calendar.list_events)
- “Summarize the file Marketing Plan.” (drive.search_files, then drive.read_file_content)
- “Draft an email to ariel@example.com saying that I approve the marketing plan.” (gmail.create_draft, which you then review in Gmail)
If those work, the connection is configured correctly.
Set up the Workspace CLI for terminal agents
Google tells you to run credential setup and sign-in in your own terminal, not through the agent, because both wait for interactive input.
- Install and check it. On Linux or macOS:
curl -fsSL https://dl.google.com/workspace-cli/install.sh | bash gwscli versionThe script installs to
~/.local/bin. Windows uses a PowerShell script from the same download site. - Create credentials. Use the personal mode link in the CLI guide for a single user. For a team project, enable the services, then create a Desktop app OAuth client with the agent box selected and download the JSON file.
- Register the client:
gwscli auth setup --oauth_client_file=/path/to/client_secret.json - Sign in with the least access that works. Start read-only, then add single commands as needed:
gwscli auth login --bundle=readonly gwscli auth login "gmail create_draft" gwscli auth statusSign-in is incremental, so each login adds scopes to what you already granted.
- Install the agent skills. For Claude Code, point the installer at its skills folder, then start a new session so the agent loads them:
gwscli skills install --dir ~/.claude/skillsUse
~/.agents/skillsfor agents that read the shared skills folder. - Keep it current. The CLI does not auto-update. After updating the binary, refresh the skills with
--overwrite. Rungwscli auth logoutto revoke tokens when a project ends.
Two more notes from the docs. Commands are discovered at runtime and can change without backward compatibility, so do not hard-code command signatures in static scripts. And if you pass a token with --oauth_token, avoid typing the literal token on the command line, since it can show up in shell history or agent transcripts.
Admin controls to set before staff connect agents
Workspace admins have three places to look.
- Which agents may connect. In the Admin console, go to Security > Access and data control > API controls > Manage App Access. Agents sign in with OAuth client IDs, so you trust, limit or block them like any other app.
- When agents must ask first. Go to Agents > Settings > User review for external agents (Security administrator privilege required). There are four categories, each set to Allow, Require user approval or Block:
- External collaboration (for example, emailing outside the company): Require user approval by default
- Internal collaboration: Require user approval by default
- External data access (reading files or messages owned or shared by outsiders): Require user approval by default
- Internal data access: Allow by default
Private actions that affect only the signed-in user, such as creating a draft, run without a prompt. Moving items to the trash always needs confirmation, and external agents cannot permanently delete items. Users can save an “Always allow” choice for up to 90 days unless you uncheck that option. Changes can take up to 24 hours.
- Attribution, DLP and logs. Choose whether actions are attributed to the agent or the user. Existing DLP rules still apply when an agent sends or shares on a user’s behalf. Audit logs record agent actions with By an agent, Agent ID and User approved attributes.
These settings carry the same idea as our guide to safe AI agent workflows: tight permissions, a human checkpoint on risky actions, and a log you can read later.
A small-business example
Here is an illustrative setup. Megan Carter runs a nine-person property management firm in Raleigh, North Carolina, on Google Workspace. She wants Claude to summarize tenant email each morning, draft replies and add showings to the shared calendar.
- Week 1: she creates one Google Cloud project, an Internal consent screen and one agent OAuth client. She enables Gmail, Drive and Calendar only, and connects them as custom connectors in her team’s Claude workspace.
- Scopes: Gmail read-only and compose, Calendar events, Drive read-only. No filter scope and no Chat.
- Admin settings: External collaboration stays on Require user approval, with “Always allow” unchecked, so nothing goes to a tenant or vendor without a click. Internal data access stays on Allow so the agent can read the shared leasing calendar.
- House rule: any reply that mentions a dollar amount, such as a $1,850 security deposit refund, stays a draft for Megan to send.
Her firm stays well inside the Standard tier, so this costs nothing beyond the plans she already pays for. If you are planning which jobs to automate first, our AI workflow guide for small businesses has five starting points.
Common mistakes
- Forgetting the agent box. A client without “Use this client for an AI-powered agent” returns a generic
invalid tokenerror, a known issue Google says will get clearer messages later. - Granting everything on day one.
gwscli auth loginwith no arguments authorizes all services. Google’s own note says to start read-only. - Hourly sign-in loops. Web clients default to online access. Request offline access, or use
prompt=consentif an earlier sign-in never returned a refresh token. - Chat writes failing. Sending Chat messages needs a configured Chat app in the project and a Workspace account. Read-only search does not.
- Using the Apps Script default client. You cannot mark it as an agent. Create your own agent client and use the OAuth2 for Apps Script library.
- Expecting unattended service accounts to skip prompts. Service accounts with domain-wide delegation still trigger user review on MCP tools when approval is required. Unattended jobs must use actions set to Allow or the standard APIs.
- Feeding untrusted email to a powerful agent. Google warns that emails and documents from unknown senders can carry hidden instructions. Its guide says you must screen prompts and responses, with Model Armor or your own documented solution. Our guide to using AI at work without leaking company data covers the people side.
Quick answers
Do I have to pay for the Workspace MCP servers?
Not separately. Requests count toward your Cloud project’s Workspace usage tier. The Standard tier has no cost. Scaled tier billing for usage above the free allowances starts April 1, 2027, only for projects that select it.
Does my existing Gmail or Drive integration break on February 1, 2027?
The requirement applies to AI agents and similar access tools. A non-agent integration is not the target, but Google wants it on a separate OAuth client from any agent features.
Which services are covered?
Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat, Tasks and the People API are generally available. Google says Keep is coming soon. Classroom and Universal Search are in the Developer Preview Program.
Can an agent send email without asking?
Only if your admin settings allow it. By default, emailing people outside your organization requires user approval.
Can I revoke an agent’s access?
Admins can block its client ID in API controls. CLI users can run gwscli auth logout. Users cannot yet view or revoke saved tool approvals themselves, and those approvals expire after 90 days.
Sources
- Google Workspace Updates: MCP servers, CLI, standardized usage tiers and admin policies (Nov 24, 2026)
- Google for Developers: Configure the Google Workspace MCP servers
- Google for Developers: Use the Google Workspace command-line interface (CLI)
- Google for Developers: Configure security for Google Workspace MCP servers
- Google Workspace Admin Help: Control which apps access Google Workspace data (Manage AI agent access & user review)


