Coderefercoderefer
CoursesWebinarsBlogAbout
Coderefercoderefer

Discover. Learn. Automate. Grow.

Learn

  • Courses
  • Webinars
  • Blog
  • Search

Company

  • About
  • Contact
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
© 2026 Coderefer. All rights reserved.
HomeBlogGoogle Workspace MCP Servers: Connect Gmail MCP to Claude Code Before Feb 2027
ai-toolsNovember 27, 20267 min read

Google Workspace MCP Servers: Connect Gmail MCP to Claude Code Before Feb 2027

Google's Gmail and Drive MCP servers went GA on Nov 24, 2026. Here's how to wire Gmail MCP into Claude Code before the Feb 1, 2027 REST API throttling deadline.

V

Vamsi Tallapudi

Manager, Architect Technology at Cognizant

Google Workspace MCP Servers: Connect Gmail MCP to Claude Code Before Feb 2027

Google's Gmail, Drive, Calendar, Docs, Sheets, Slides, Chat, and Tasks MCP servers went generally available on November 24, 2026, along with a companion CLI called gwscli. Starting February 1, 2027, any AI agent that keeps calling the old Workspace REST APIs directly gets capped at free Standard Tier quotas, no matter what plan you're paying for. If you're running Claude Code against Gmail or Drive right now, you've got about nine weeks to move. Here's how to actually do it, and where the setup falls short of what you'd expect.

What changed on November 24

Google published a new Workspace AI Tools Addendum to its Google APIs Terms of Service. The short version: any tool "that is or is driven by an AI agent, harness, or model" has to reach Workspace data through Google's own MCP servers or gwscli, not the REST endpoints developers have used for the past decade. Chandu Thota, who runs engineering for Workspace, framed it plainly on X: REST APIs were built for human-paced apps, and agents need a path with policy checks and human-in-the-loop controls built in.

Eight hosted MCP servers shipped at GA: Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat, and Tasks. Keep is supposedly next. Each one is a remote server Google runs, not something you self-host, and each inherits the signed-in user's existing permissions plus whatever DLP rules and admin audit logging a Workspace admin already has configured. That part is genuinely useful if you're deploying agents inside a company that already locks down Workspace access.

Why February 1, 2027 is the deadline that matters

Google isn't shutting off the REST APIs. It's doing something smarter (and more annoying): after February 1, agents that call the REST APIs directly get held to Standard Tier quotas regardless of which billing tier your Cloud project is on. Pay for Scaled Tier all you want — if your agent is still hitting gmail.googleapis.com instead of gmailmcp.googleapis.com, Google treats it like a free-tier app.

Then on April 1, 2027, actual billing enforcement kicks in for the MCP path too. Standard Tier gives you 5,000 free requests a day per project, per product. Past that, Scaled Tier charges by billing unit — composite calls like search_threads cost 10 units, at $0.50 per 1,000 units. Do the math and a single search call runs half a cent. Cheap at low volume, but it adds up fast if you've got an agent polling your inbox every few minutes.

How to connect the Gmail MCP server to Claude Code

Assuming you want the official Google-hosted server rather than a third-party npm package, here's the setup:

  1. Create or pick a Google Cloud project and enable two APIs: the Gmail API and the Gmail MCP API (gmailmcp.googleapis.com).
  2. Configure the OAuth consent screen and add these scopes: gmail.readonly, gmail.compose, gmail.modify, and gmail.settings.basic if you want filter management.
  3. Create an OAuth 2.0 client ID under Google Auth Platform > Clients. This is the step everyone misses: you have to tick "Use this client for an AI-powered agent." Skip it and the MCP endpoint will reject your requests even with valid scopes.
  4. Register the server with Claude Code:
    claude mcp add --transport http gmail https://gmailmcp.googleapis.com/mcp/v1
    
  5. Authenticate. Run /mcp inside Claude Code, select the gmail server, and sign in through the browser window that opens. If Claude Code's dynamic client registration doesn't line up with your OAuth client's redirect URI, you'll need to re-add the server with --client-id, --client-secret, and a matching --callback-port pointed at http://localhost:<port>/callback.

Google's own docs list https://claude.ai/api/mcp/auth_callback as the redirect URI for "Claude," but that's the callback for Claude's hosted web connector, not the Claude Code CLI running on your machine. I'd plan for the localhost flow and treat the claude.ai redirect as a fallback if the CLI flow gives you trouble.

The catch nobody puts in the headline

Here's the thing that blew up on Hacker News: the public Gmail MCP server can search, read threads, manage labels, and create drafts, but it can't send, reply to, or forward anything. Those tools exist in the schema — send_message, reply, forward, update_draft are all documented — they're just gated behind Google "partner access" that ordinary developers don't have. Only big platforms get that flag flipped, and Anthropic is one of them, which is why Claude's own built-in Google Workspace connector (the one under Settings > Connectors in Claude.ai and Claude Desktop) can send mail with human approval while your own OAuth client against the raw Gmail MCP server cannot.

That's an important distinction for anyone reading "connect Gmail to Claude." Claude's native connector and the Gmail MCP server you wire up yourself through Claude Code are two different integrations with two different permission levels, even though they both say "Gmail" and both say "MCP."

The HN thread split roughly where you'd expect. Some people think this is reasonable anti-spam protection, since a Gmail account firing off agent-composed emails at scale is exactly the kind of thing that gets flagged and banned (one commenter said it took four months and a GDPR request to get an account back after triggering automated email flags). Others think it's Google using "safety" language to protect its own Gemini agents from competition. I land somewhere in the middle: the DLP and audit logging genuinely matter for enterprise deployments, but locking send capability to a short list of approved vendors while mandating migration for everyone else is a convenient way to make your own ecosystem the only fully-functional one.

Gmail MCP vs gwscli: which one should you actually use

Both satisfy the February mandate. They're not the same tool.

Gmail MCP servergwscli
InterfaceMCP endpoint your client callsCommand-line binary
Best forClaude Code, Codex, any MCP-native clientAgents running in a terminal, VM, or sandboxed container
SetupGoogle Cloud OAuth client + MCP registrationSingle binary, "1-click Personal mode" with no billing card needed
Send emailNo (without partner access)Same restriction applies
Context costFull tool schema loads into context (~538 KB across all 8 servers)Discovers commands at runtime, lighter footprint

If you're already living in Claude Code's MCP ecosystem, stick with the hosted MCP server — adding one more claude mcp add line is less friction than standing up a separate CLI. If you're scripting something that runs unattended outside an MCP client, gwscli is the better fit, and Google ships it with pre-packaged agent skills that teach the model how to call it safely.

Is this a win for developers or just for Google

Honestly, both, in different proportions depending on who you are. If you're an enterprise admin who's been nervous about agents running loose against Workspace, the DLP checks, audit logs, and human-in-the-loop confirmations are a real improvement over raw API keys with broad scopes. If you're an independent developer trying to build something like an autonomous inbox-management agent, you're stuck with read-and-draft until Google decides you're big enough to warrant partner access — and Google hasn't published criteria for that.

My advice: migrate the read-side workflows now, since that part is free, works today, and protects you from the Standard Tier throttling in February. For anything that needs to actually send mail, don't architect a product around the public Gmail MCP server yet. Use Claude's native connector if that fits your workflow, keep a REST-based fallback for your own account if you're the only user, or wait and see whether Google opens up partner access before April 2027, when the billing enforcement actually bites.

Watch

Google's own walkthrough covers the MCP servers and gwscli side by side:

Connect AI Agents to Google Workspace: Official MCP Servers & CLI

Chandu Thota's announcement and Philipp Schmid's breakdown of the Personal mode setup are worth reading in full:

ai-tools mcp gmail claude-code 2026

Comments

    Get AI tricks that save you hours every week

    New AI tools, automation workflows, and course drops — straight to your inbox. Join 2,400+ builders.

    Read Next

    How to Install Claude Code on Windows in 2026: Native PowerShell vs WSL
    ai-tools

    How to Install Claude Code on Windows in 2026: Native PowerShell vs WSL

    Claude Code now installs natively on Windows via PowerShell, no WSL or Node.js needed. Here's the native vs WSL install, step by step, with real fixes for PATH and Defender errors.

    November 27, 20268 min read
    1Password Was Breached Through an Employee's GitHub Account: What Was Taken
    ai-tools

    1Password Was Breached Through an Employee's GitHub Account: What Was Taken

    1Password confirmed a breach after an employee's GitHub account was compromised. Here's exactly what data was taken, what wasn't, and what to actually do now.

    November 27, 20269 min read
    How to Use fast-anything with Claude Code to Port Only the Slow 5% to Rust
    ai-tools

    How to Use fast-anything with Claude Code to Port Only the Slow 5% to Rust

    fast-anything profiles your Python or Node app, has Claude Code port the slowest function to Rust, and verifies it against 500 real calls before swapping it in.

    November 26, 20267 min read
    View all posts →