Section 1
What is the Google Workspace CLI?
Think of it like a remote control for your Google account. Instead of clicking around in Gmail or Drive, you just type a command and it happens. Instantly.
The official name is gws (short for Google Workspace). It was released in early March 2026, it's completely free, and it's open source under the Apache 2.0 license.
What makes it different from every other automation tool is how it talks to Claude Code. It has a built-in MCP server, meaning you can connect it to Claude and your AI can read your emails, create calendar events, move files in Drive, and generate full reports without you touching a single UI.
Before this, doing that kind of automation required Zapier (paid), custom API code (technical), or third-party connectors (slow and expensive). Now it's one command.
Section 2
Install It (2 Minutes)
You'll need Node.js installed first. If you've set up Claude Code before, you already have it. Run this in your terminal:
Step 1: Install gws
$ npm install -g @googleworkspace/cli Step 2: Set up authentication
This walks you through connecting your Google account. It opens a browser window and asks you to authorize. Takes about 60 seconds.
$ gws auth setup Step 3: Log in
$ gws auth login Done. That's the whole install. You're now connected to every Google Workspace service from your terminal. Let me show you what that actually means.
Section 3
Connect It to Claude Code
This is where it gets interesting. The gws CLI has a built-in MCP server. That means you can plug it directly into Claude Code and your AI gets access to your Google Workspace. No extra setup, no third-party tools.
Start the MCP server
One commandRun this to expose Drive, Gmail, and Calendar to Claude Code:
$ gws mcp -s drive,gmail,calendar Add any Workspace service you need:
-
drive: files, folders, uploads -
gmail: read, send, triage inbox -
calendar: events, meeting links -
docs,sheets,slides: create and edit documents
Once the MCP server is running, open Claude Code and it will automatically detect the connection. You can now tell Claude to do things like "check my inbox for anything urgent" or "create a calendar event for tomorrow at 3pm" and it will actually do it.
Section 4
5 Best Use Cases
These are the ones that made me stop and say "wait, that actually just worked." Each one is something that used to take 10-30 minutes of manual clicking.
Inbox triage in seconds
Tell Claude: "Check my last 20 emails, tell me what's urgent, and draft replies for anything that needs a response." It reads your Gmail, summarizes everything, and hands you ready-to-send drafts.
$ gws gmail +triage Turn a folder of notes into a full report
Drop 10 meeting notes in a Drive folder. Tell Claude to read them and create a Google Doc summary, a Sheets tracker, and a Slides deck with key takeaways. That used to take an afternoon. Now it takes about 30 seconds.
Auto-create Meet links for any event
Any time you need a meeting, tell Claude to create a Calendar event with a Meet link and send invites to your participants. No more clicking through Calendar, then Meet, then email. One instruction, done.
Weekly review automation
Every Monday morning: tell Claude to pull all emails and calendar events from the past week, create a summary Doc in Drive, and prep your calendar for the week ahead. Your entire weekly review runs itself.
Client deliverable packaging
Take a project folder in Drive, have Claude compile everything into a clean Slides presentation, add a Docs summary, and share both with a client email list. Deliverable packaging that used to take 2 hours now takes 2 minutes.
Section 5
The Old Way vs. Right Now
Before
- Zapier or Make.com, $50-200/mo, limited steps
- Google Apps Script (requires JavaScript knowledge)
- Third-party connectors: slow, add latency, another login
- Custom API code (you need a developer)
- Manual clicking, your time, every single time
Now
- Free. Apache 2.0, open source
- One install command, zero config files
- First-party from Google, no third-party risk
- Built-in MCP server for Claude Code
- Covers every Workspace service in one tool
The fact that this is free and open source is the part that matters most. Google built this under the googleworkspace org on GitHub. It's not an unofficial hack. It's Google saying: here's the official way to automate Workspace with AI.
Quick Reference
Commands You'll Actually Use
Install
npm install -g @googleworkspace/cli Auth
gws auth setup gws auth login Connect to Claude Code (MCP)
gws mcp -s drive,gmail,calendar Gmail
gws gmail +triage gws gmail +send --to user@example.com --subject "Hello" --body "Hi there!" Drive
gws drive files list --params '{"pageSize": 10, "orderBy": "modifiedTime desc"}' gws drive +upload ./report.pdf Calendar
gws calendar events list --params '{"calendarId": "primary"}' Zero to Automated
Get the full AI operating system
Guides are a great start. But inside Zero to Automated, you get a done-for-you AI system deployed within 48 hours, plus everything you need to keep building:
- Claude Code 101 — 8 lessons, zero to automating real work by Sunday
- Ready-to-install Claude Skills — a growing library with 2+ new skills every week
- Done-for-you workflows — copy, paste, run. New ones every week.
- Weekly live builds — watch real projects get built, ask questions, follow along
- Small group coaching — direct access to both founders
$50/mo. Price locked for life at whatever you join at.