#google#workspace#agentes#mcp

    Google Workspace CLI: Connect Your AI Agent to Gmail, Drive and Sheets

    Google Workspace CLI, Google's official tool to connect AI agents to Gmail, Drive and Sheets: steps, the math, limits and what changes on February 1.

    Google Workspace CLI is Google's official terminal tool, called gwscli, for connecting AI agents to Gmail, Drive, Docs, Sheets and more. On November 24, 2026 Google announced general availability of it and of the Workspace MCP servers. It comes with permissions, confirmations and audit logging, and a deadline: from February 1, 2027, AI agents must go through MCP, not the direct API.

    What changed with Google Workspace CLI and MCP

    Almost everyone describes it as one more connector, but it isn't. There are eight MCP servers in general availability: Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat and Tasks. Before, connecting an agent to your email meant building your own integration with the regular API. Now Google provides the official path, and it also decides who controls the door.

    Mail app icon on a phone screen

    How it works inside

    MCP is an open standard for an agent to use tools. Google hosts one server per product and your agent talks to it over the internet with your Google sign-in. Google Workspace CLI is the other door, for agents that live in the terminal, like Claude Code or Codex: it has 68 commands, 23 of them just for Gmail.

    The key piece is a checkbox on the access client: use this client for an AI agent. Without it, the server answers with a generic invalid-token error. With it, Google knows the one coming in is an agent and can ask you to confirm before sensitive actions.

    How to connect it with Google Workspace CLI, step by step

    1. Install gwscli with a single line in the terminal; on Windows, a PowerShell line.
    2. In Google Cloud, create a project and turn on two services per product: the API and its MCP server.
    3. Create a desktop client with the agent checkbox ticked and run gwscli auth setup.
    4. Sign in asking for read-only, with the bundle readonly option.
    5. Install the packaged skills with gwscli skills install, in your agent's skills folder, and restart the agent.

    Then you tell it, for example, what's on my calendar today, and the agent runs the command for you. This is where it gets stuck the first time: if a service or the checkbox is missing, you get a permissions error that doesn't say which. You know it worked when auth status shows your session. The token lasts an hour, but the CLI renews it on its own.

    The math: almost 1,200 times fewer tokens

    In its demo video, Google takes 101 raw calendar events: unfiltered, that's 167,000 tokens. With gwscli and a filter, the agent gets a 140-token summary. Divided, that's almost 1,200 times fewer; Google shows it as minus 99.9%. It's the same question with the same data, with and without a filter, but it's a demo Google chose, with one calendar and one question.

    Laptop with a cup of coffee and a camera on a wooden table

    Three use cases (our own analysis, not Google's)

    • Three-person consultancy: every morning the agent finds unread threads, summarizes them by client, checks the calendar and leaves draft replies in Gmail. You review and send them. It's no accident: there's a create-draft command, but none to send.
    • Accounting firm: the agent searches Drive for the month's invoices, reads their content and writes the totals into a Sheets spreadsheet. The CLI can create, copy and upload file versions, but has no command to delete them, and every write lands in the audit log.
    • IT admin offering agent governance: in the admin console, under Security, API controls, they decide which external agents come in, write confirmation rules for sensitive actions and review the log of what they did.

    Who it's not for

    Anyone who uses AI only inside the chat with apps already connected; anyone who doesn't want to open a Google Cloud project or create credentials, because the setup is developer-grade; and anyone who wants fixed scripts, because the CLI can change its commands without backward compatibility.

    The objection: is Google closing the door to charge?

    It's right in part. From February 1, 2027 agents must use MCP, and from April 1, 2027 the Scaled tier charges for what goes over the daily free allowance. But there's a no-cost Standard tier with published quotas, and Google says more than 99% of active developers are there. If your project is only used inside your organization, the admin marks it as internal and keeps higher limits included in the subscription. The objection wins if your project is external, exceeds the Standard tier and reads data raw.

    What they're not telling you

    The 99% figure is published by Google about its own developers, without saying how many projects there are or how it counted. The announcement also doesn't give the quotas in numbers or the Scaled tier's rates: they live on another page. And the minus 99.9% in the demo measures tokens, not quality: a 140-token summary answers what the filter asks; if you ask something else, the agent reads everything again.

    What breaks and who can use it

    • The error you'll see first is invalid token, almost always from the agent checkbox.
    • With a web client it asks you to sign in every hour, unless you request offline access.
    • Saved approvals expire after 90 days.
    • In Chat, actions show up under the agent's name, regardless of what the admin's policy says.
    • The announcement says it's for all Workspace customers and developers, but the admin controls and the usage dashboard reach domains in two weeks.
    • To connect it to Claude, Google's guide requires a Pro, Max, Team or Enterprise plan.

    How to apply it in your business?

    Go into the admin console, Security, API controls; if it doesn't show up, wait those two weeks. Always start in read-only, with bundle readonly: reading breaks nothing, writing does. Check whether your project falls in the Standard tier or needs to be marked internal before April 1. If you already have an agent that calls the API directly, move it to MCP before February 1. Telemetry ships on; if you don't want it, turn it off with gwscli logging off. And don't hardcode commands in your scripts. To see how to save your team's rules in Workspace, read the breakdown of Skills in Google Workspace.

    Google Workspace CLI FAQ

    What is Google Workspace CLI?

    Google's official CLI, gwscli, which connects terminal AI agents to Workspace products. Together with the MCP servers, it's in general availability since November 24, 2026.

    Can it send email for me?

    The Gmail command list has create draft, but none to send. Chat does send messages, with a configured Chat app.

    How much does it cost?

    The Standard tier is no-cost. The Scaled tier charges from April 1, 2027 for what goes over the free allowance; the announcement gives no rates.

    What happens on February 1, 2027?

    AI agents have to go through MCP and not the direct API.

    Conclusion

    Google Workspace CLI makes it easy to connect an agent to your email; the hard part is deciding what you let it do. Start in read-only and check your tier before April 1. Tell me the first thing you'd let an agent read in your Workspace, and what never.

    Sources: Google Workspace Updates, "Simplifying agent access" (Nov 24, 2026), and Google's developer guides for the Workspace CLI and MCP servers.