DEV Community

Cover image for Google Workspace MCP Is Generally Available: What Changed for Claude Code
xbill Subscriber for Google Developer Experts

Posted on

Google Workspace MCP Is Generally Available: What Changed for Claude Code

This article provides a step by step update of the Google Workspace remote MCP servers with Claude Code for general availability. It covers what Google added and changed on November 24, 2026, and walks the Claude Code setup through each change, from the OAuth client to a read-only test of all nine servers.

https://github.com/xbill9/workspace-mcp-claude

Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat and the new Tasks server are generally available. The servers now list 90 tools, 21 more than on launch day, and Claude Code keeps all nine signed in with a refresh token, so the hourly sign-in is gone.


Didn't You Already Do This?

Yes! The setup and its two sign-in limits were covered in October, during the Developer Preview:

MCP Configuration for Google Workspace with Claude Code

Debugging Claude Code and Google MCP Quirks

This one covers general availability: the new server, the new tools and scopes, the new requirements on the OAuth client, and a fix for the hourly sign-in that works with the current Claude Code.


What Went GA on November 24?

Google's release notes for November 24, 2026 carry one entry per server. Each reads the same way:

The Gmail Model Context Protocol (MCP) server is now generally available. It might take up to 10 days to become available for your account.

The same entry appears for Drive, Docs, Sheets, Slides, Calendar, Chat and Tasks. People has no general-availability entry and stays in the Developer Preview. Chat's entry adds that "Select tools, including membership and notification settings tools, remain in the Google Workspace Developer Preview Program."


What Changed?

Area Developer Preview General availability
Servers eight nine, with Tasks
OAuth client any Web application client marked Use this client for an AI-powered agent
User approvals — MCP form elicitation on /mcp/v1
Hosts without elicitation — a separate /mcp/v1self endpoint
Quota — Standard Tier, 5,000 requests per day, per project, per product

All of it comes from Google's release notes and configuration guide. The tool lists grew after launch day too; they are covered below.


The Dates That Matter

Date What happens
2026-11-24 General availability. Servers support user approvals through MCP form elicitation on /mcp/v1.
2027-02-01 The Workspace AI Tools Addendum takes effect. AI agents calling REST APIs directly are limited to Standard Tier quotas.
2027-04-01 The Scaled Tier bills MCP requests from the first request.

From the release notes: "MCP is required when AI agents or similar access tools obtain data from Google Workspace APIs, and starting February 1, 2027, AI agents calling REST APIs directly are limited to Standard Tier quotas regardless of tier."


At This Point You Should Have…

  • A Google Cloud project with the Workspace APIs and their MCP services enabled
  • An OAuth consent screen and a Web application OAuth client with http://localhost:8765/callback as a redirect URI
  • Claude Code installed, and the repository cloned
git clone https://github.com/xbill9/workspace-mcp-claude
cd workspace-mcp-claude
claude --version
Enter fullscreen mode Exit fullscreen mode
2.1.332 (Claude Code)
Enter fullscreen mode Exit fullscreen mode

Step 1 — Mark the OAuth Client as an AI Agent

Google's guide adds one checkbox to the OAuth client: "Verify that Use this client for an AI-powered agent is selected."

Open Google Auth Platform → Clients, open the Web application client, tick the box and save. When the client also serves non-agent features, Google's guide says to create a separate OAuth client for the agent.


Step 2 — Enable Tasks

Tasks is a new API and a new MCP service. init.sh enables both, along with the eight from before:

./init.sh
Enter fullscreen mode Exit fullscreen mode

The server URL is https://tasksmcp.googleapis.com/mcp/v1, with the scopes tasks.readonly and tasks.


Step 3 — Publish the Offline Sign-In Metadata

Claude Code builds the Google sign-in URL from the authorization server's metadata and adds its own parameters to authorization_endpoint. Pointing a server's oauth.authServerMetadataUrl at a copy of Google's metadata whose endpoint already carries access_type=offline&prompt=consent adds the two parameters Google needs before it issues a refresh token.

oauth_metadata.sh fetches Google's metadata, adds the parameters, publishes the copy as a public Cloud Storage object and records its URL:

GOOGLE_CLOUD_PROJECT=<project> ./oauth_metadata.sh
Enter fullscreen mode Exit fullscreen mode
authorization_endpoint: https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent
Copying file:///tmp/tmp.CHhIkxisZE/google-offline.json to gs://<project>-oauth-metadata/google-offline.json
Published https://storage.googleapis.com/<project>-oauth-metadata/google-offline.json
Saved to ~/oauth_metadata_url.txt. Next: ./claude_setup.sh, then sign each server in once.
Enter fullscreen mode Exit fullscreen mode

The file is Google's public OpenID configuration with one field changed, so it holds nothing secret.


Step 4 — Register the Servers With Every Scope

claude_setup.sh registers each server with claude mcp add-json --client-secret, pins its scopes, and sets authServerMetadataUrl from ~/oauth_metadata_url.txt. Server names on the command line re-register only those servers:

./claude_setup.sh gmail drive docs sheets slides calendar chat
Enter fullscreen mode Exit fullscreen mode
Refresh tokens: on (authServerMetadataUrl https://storage.googleapis.com/<project>-oauth-metadata/google-offline.json)
Added http MCP server gmail to user config
Added http MCP server drive to user config
Added http MCP server docs to user config
Added http MCP server sheets to user config
Added http MCP server slides to user config
Added http MCP server calendar to user config
Added http MCP server chat to user config
Enter fullscreen mode Exit fullscreen mode

Re-registering a server deletes its stored token and leaves the other servers signed in. With no names, the script registers all nine plus the Workspace developer documentation server.


Step 5 — Check the Sign-In URL

Claude Code 2.1.332's sign-in URL for a server registered without the metadata copy:

response_type = code
client_id = <client id>
code_challenge_method = S256
redirect_uri = http://localhost:3118/callback
scope = https://www.googleapis.com/auth/directory.readonly https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/contacts.readonly
resource = https://people.googleapis.com/mcp
Enter fullscreen mode Exit fullscreen mode

And for a server registered with it:

access_type = ['offline']
prompt = ['consent']
response_type = ['code']
client_id = ['<client id>']
code_challenge_method = ['S256']
redirect_uri = ['http://localhost:8765/callback']
scope = ['https://www.googleapis.com/auth/gmail.readonly https://www.googleapis.com/auth/gmail.compose https://www.googleapis.com/auth/gmail.modify']
Enter fullscreen mode Exit fullscreen mode

The first one also shows a random callback port, 3118, because that registration had no callbackPort. claude_setup.sh pins 8765, which is the redirect URI the OAuth client lists.


Step 6 — Sign In Once

Sign each re-registered server in with /mcp in Claude Code, or from the shell:

claude mcp login gmail
Enter fullscreen mode Exit fullscreen mode

Google shows the full permissions page each time, because the metadata copy asks for prompt=consent. Each sign-in stores a refresh token beside the access token.


Step 7 — Check the Tokens

mcp_status.sh --verify asks Google about every stored token:

./mcp_status.sh --verify
Enter fullscreen mode Exit fullscreen mode
server    registered  token    min left  refresh
gmail     yes         valid          56  yes
drive     yes         valid          56  yes
docs      yes         valid          56  yes
sheets    yes         valid          56  yes
slides    yes         valid          56  yes
calendar  yes         valid          56  yes
chat      yes         valid          56  yes
people    yes         valid          60  yes
tasks     yes         valid          60  yes

9 of 9 servers hold a token Google accepts.
Enter fullscreen mode Exit fullscreen mode

Every row has a refresh token. During the Developer Preview, every row read no.


Step 8 — Force a Renewal

Setting a token's stored expiry one minute into the past makes Claude Code renew it on the next call. Tokens are shown as the first 10 hex digits of their SHA-256:

expire gmail access 5beafb9b0e refresh 59735787ec left_min -1
expire drive access f892980ae6 refresh e49e4f148f left_min -1
gmail     PASS               1    0  list_labels
drive     PASS               4    0  list_recent_files, search_files

2 of 2 servers passed.
show gmail access 72d0413e03 refresh 59735787ec left_min 59
show drive access 92ff1ba36b refresh e49e4f148f left_min 59
Enter fullscreen mode Exit fullscreen mode

Both servers got a new access token on the same refresh token, with no browser. mcp_status.sh --verify straight afterwards showed the seven servers that were not renewed still valid, so a renewal on one server leaves the others signed in.


Step 9 — Test Every Server

mcp_test.sh runs one headless Claude Code session that makes a read-only call per server and grades each from the tool result:

./mcp_test.sh
Enter fullscreen mode Exit fullscreen mode
server    result            ok  err  tools
gmail     PASS               1    0  list_labels
drive     PASS               4    0  list_recent_files, search_files
docs      PASS               1    0  read_doc
sheets    PASS               1    0  get_spreadsheet
slides    PASS               1    0  read_presentation
calendar  PASS               1    0  list_calendars
chat      PASS               1    0  search_conversations
people    PASS               1    0  get_user_profile
tasks     PASS               1    0  list_task_lists

9 of 9 servers passed.
Enter fullscreen mode Exit fullscreen mode

What Tools Were Added?

mcp_probe.sh reads each server's tool list without credentials:

server    2026-07-28  legacy init  tools
gmail     yes         2025-11-25   30
drive     yes         2025-11-25   15
docs      yes         2025-11-25   2
sheets    yes         2025-11-25   9
slides    yes         2025-11-25   4
calendar  yes         2025-11-25   9
chat      yes         2025-11-25   9
people    no          2025-11-25   3
tasks     yes         2025-11-25   9

8 of 9 servers advertise 2026-07-28; 90 tools in total.
Enter fullscreen mode Exit fullscreen mode

Against the lists read on 2026-11-24, four servers gained tools and none lost any:

Server Tools Added
Gmail 23 → 30 send_message, reply, forward, update_draft, create_filter, list_filters, update_label
Drive 9 → 15 update_file, trash_file, request_access, list_shared_drives, get_shared_drive_metadata, list_file_revisions
Sheets 6 → 9 append_values, batch_clear_values, copy_sheet_to_another_spreadsheet
Chat 4 → 9 list_memberships, mark_as_read, mark_as_unread, get_notification_settings, update_notification_settings

Docs, Slides, Calendar, People and Tasks are unchanged. Chat's five new tools are the membership and notification-settings tools that stay in the Developer Preview.


Which Scopes Changed?

Google's guide added four scopes since the Developer Preview: Gmail gmail.modify and gmail.settings.basic, Calendar calendar.events, and Chat chat.users.spacesettings. The guide marks gmail.settings.basic as "required only when calling create_filter".

Each server also lists scopes of its own in its protected-resource metadata (scopes_supported), and that list is longer than the guide's:

Server Guide Advertised Pinned Granted
Gmail 4 20 20 20 / 20
Drive 2 3 3 3 / 3
Docs 4 4 5 5 / 5
Sheets 4 4 5 5 / 5
Slides 4 5 5 5 / 5
Calendar 4 12 12 12 / 12
Chat 6 10 10 10 / 10
People 3 3 3 3 / 3
Tasks 2 2 2 2 / 2

claude_setup.sh pins the guide's scopes plus every advertised one, 56 distinct. Granted is Google's token-info answer for the stored access token. Gmail's advertised list includes full mailbox access, https://mail.google.com/, and gmail.messages.delete.


Confirmation Prompts for High-Impact Calls

Each GA server, in the release notes' words, "supports user approvals through MCP form elicitation on /mcp/v1 and offers the /mcp/v1self endpoint for MCP hosts that don't support form elicitation."

Claude Code's MCP client adds elicitation: {form: {}, url: {}} to the capabilities it sends, so the setup keeps /mcp/v1. The calls in mcp_test.sh are read-only, and a confirmation prompt was not exercised for this article.


Known Issue: Signing a Working Server In Again Still Revokes Every Server

Starting a new sign-in for a server whose token still works makes Claude Code revoke that token, and Google revokes the whole grant for the OAuth client, which all nine servers share.

With refresh tokens, a server needs a new sign-in only after its scopes change. Re-register it first with ./claude_setup.sh <server>: that deletes the stored token, so the new sign-in has nothing to revoke.


🔎 Tip: The Metadata Copy Must Stay Reachable

Claude Code fetches the metadata copy at every renewal as well as at sign-in. With the copy unreachable, a Gmail call hung until it was stopped at 150 seconds and the token was not renewed. Keep the Cloud Storage object in place for as long as the servers point at it.


🔎 Tip: Change Scopes One Server at a Time

./claude_setup.sh <server> ... re-registers only the named servers. Before the scope change in this article, Gmail, Drive, Docs, Sheets, Slides, Calendar and Chat were re-registered and signed in, while People and Tasks kept the tokens they had.


🔎 Tip: An Open Session Needs a Reconnect

A server registered while a Claude Code session is running does not appear in that session. Open /mcp, select the server and reconnect; new sessions load it on their own.


Compare and Contrast

Developer Preview setup GA setup
Servers 8 9, with Tasks 🥇
Sign-in lifetime about an hour renews with a refresh token 🥇
Sign-ins after setup all eight, every hour none until scopes change 🥇
Scopes pinned the guide's set the guide's set plus every advertised scope
Changing one server's scopes re-register all, sign all in ./claude_setup.sh <server>, sign that one in 🥇
OAuth client Web application Web application, marked as an AI-powered agent

So, Which One?

For a single user who works in Claude Code every day, the GA setup with the metadata copy: nine servers, one sign-in each, and no hourly prompt.

On scopes, pin the guide's set for least privilege, and pin every advertised scope when you want every tool to work without an insufficient_scope error. The Gmail set then includes https://mail.google.com/ and gmail.messages.delete.


Summary

The goal of this article was to bring the Claude Code setup for the Google Workspace MCP servers up to general availability. The key to the solution was a copy of Google's OAuth metadata that asks for offline access, which gives every server a refresh token. The results were:

  • 🟢 9 of 9 servers pass a read-only test, including the new Tasks server.
  • 🟢 90 tools, up from 69 on launch day: Gmail gained send, reply, forward and filters; Drive gained update, trash and shared drives; Sheets and Chat gained three and five.
  • 🟢 Every sign-in holds a refresh token, and a forced expiry renewed with no browser while the other servers stayed valid.
  • 🟢 56 scopes pinned and all granted, the guide's set plus everything each server advertises.
  • ⚠️ The metadata copy must stay reachable, because Claude Code fetches it at every renewal.
  • ⚠️ People stays in the Developer Preview, as do Chat's membership and notification-settings tools.
  • ❌ Signing a working server in again still revokes every server's token; re-register the server first.

Scope: one Google Workspace account, one Google Cloud project with an Internal consent screen and one Web application OAuth client shared by all nine servers, Claude Code 2.1.332 on Linux, checked on 2026-11-29. Tool lists come from the servers' tools/list, granted scopes from Google's token-info endpoint, and release dates from Google's release notes and configuration guide as fetched that day. A form-elicitation prompt was not exercised.

The strategy for using MCP with Google Workspace from Claude Code was validated with an incremental step by step approach.


References

Top comments (0)