MCP fork of Google Workspace CLI logo

MCP fork of Google Workspace CLI

Connects AI agents to Google Workspace APIs through a dynamically generated CLI surface for Drive, Gmail, Calendar, and more.

Install MCP fork of Google Workspace CLI

Run the project’s own setup commands, in order.

Setup steps from the project

MCP fork of Google Workspace CLI installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm install -g @googleworkspace/cli
    
  2. 2. Sign in
    gws auth setup     # walks you through Google Cloud project config
    
  3. 3. Sign in
    gws auth login     # subsequent OAuth login
    
  4. 4. Sign in
    gws auth setup       # one-time: creates a Cloud project, enables APIs, logs you in
    
  5. 5. Sign in
    gws auth login       # subsequent scope selection and login
    

Overview

MCP fork of Google Workspace CLI MCP server connects agent workflows with Google Workspace APIs through the gws command surface. It generates commands from Google's Discovery Service at runtime, returning structured JSON for services including Drive, Gmail, Calendar, Sheets, and Chat. Reach for it when an agent needs to inspect or modify Workspace data without hand-written REST requests. Authentication supports interactive OAuth, credential files, access tokens, and service accounts.

Use cases

  • List recent files in Google Drive
  • Create spreadsheets through the Sheets API
  • Query Gmail, Calendar, or other Workspace APIs
  • Preview Chat or Workspace API requests before execution

Key features

  • Runtime command generation from Google Discovery Service
  • Structured JSON responses
  • Drive, Gmail, Calendar, Sheets, and Chat access
  • Dry-run request previews
  • Automatic pagination and NDJSON streaming
  • OAuth, token, credential-file, and service-account authentication

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 77d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9/17/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.

How MCP fork of Google Workspace CLI works

What MCP fork of Google Workspace CLI does

MCP fork of Google Workspace CLI provides an agent-facing path to Google Workspace operations through the gws command-line interface. The supported surface includes Drive, Gmail, Calendar, Sheets, Chat, and other Google Workspace APIs exposed through Google's Discovery Service. The repository describes the project as a fork of Google Workspace CLI; it is not an officially supported Google product.

Responses are structured as JSON, which suits agents that need to inspect results or pass them to another step. The CLI also supports request previews with --dry-run, automatic pagination, per-resource help, and schema inspection with commands such as gws schema drive.files.list.

How it works

MCP fork of Google Workspace CLI does not rely on a fixed command catalog. At runtime, gws reads Google's Discovery Service and builds commands from the available API descriptions. This allows the command surface to reflect newly available API methods without requiring a manually maintained list in the CLI.

Typical operations use a service, resource, and method structure. For example, Drive files can be listed with gws drive files list, while Sheets spreadsheet creation uses gws sheets spreadsheets create. Request parameters are supplied as JSON through --params, and request bodies through --json. Paginated output can be streamed as newline-delimited JSON with --page-all.

The repository also includes more than 100 agent skill files covering supported APIs, higher-level workflows, and recipes for Gmail, Drive, Docs, Calendar, and Sheets. These skills can be installed with the npx skills add command from the upstream Google Workspace CLI repository.

Setup and configuration

MCP fork of Google Workspace CLI requires a Google account with Workspace access and a Google Cloud project for OAuth credentials. The upstream CLI supports Node.js 18 or later for npm installation, prebuilt binaries, source installation with Cargo, Nix, and Homebrew.

For an interactive desktop setup, gws auth setup configures the project and gws auth login completes OAuth. Manual OAuth setup uses a desktop client JSON file stored at ~/.config/gws/client_secret.json. The account must be added as a test user when the OAuth application is in testing mode.

Headless environments can use credentials exported with gws auth export --unmasked, a service-account JSON file, or an access token. Authentication precedence is access token, credentials file, encrypted credentials from login, then plaintext credentials at ~/.config/gws/credentials.json.

Tools and capabilities

  • Query and mutate Google Workspace resources through generated CLI methods.
  • Work with Drive, Gmail, Calendar, Sheets, Chat, and other discovered APIs.
  • Preview requests before execution with --dry-run.
  • Inspect request and response schemas for individual methods.
  • Retrieve all pages and stream results as NDJSON.
  • Use structured JSON output for agent processing.

Limitations and notes

The project is under active development and may introduce breaking changes before version 1.0. OAuth applications in testing mode have scope limits; the recommended scope preset may exceed the approximately 25-scope limit, so individual services may need to be selected. The material does not identify specific MCP client integrations or provide a separate MCP transport configuration.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP fork of Google Workspace CLI

MCP fork of Google Workspace CLI is an MCP server that connects agents to Google Workspace APIs, including Drive, Gmail, Calendar, Sheets, and Chat. Its main tools are dynamically generated gws commands for listing, creating, inspecting, and modifying resources, with structured JSON output and schema discovery.

Install the underlying CLI from a prebuilt GitHub Release or with npm using `npm install -g @googleworkspace/cli`. The documented alternatives are Cargo, Nix, and Homebrew.

Use `gws auth setup` followed by `gws auth login` for interactive OAuth. Headless environments can set `GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE` to a credentials or service-account JSON file, or set `GOOGLE_WORKSPACE_CLI_TOKEN` to an access token.

It documents the gws CLI, Google authentication methods, structured JSON output, and agent skills, but gives no client-specific setup instructions.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP fork of Google Workspace CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-fork-of-google-workspace-cli?style=directory)](https://allmcps.com/mcp/mcp-fork-of-google-workspace-cli)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-fork-of-google-workspace-cli"><img src="https://allmcps.com/api/badge/mcp-fork-of-google-workspace-cli?style=directory" alt="MCP fork of Google Workspace CLI on AllMCPs" /></a>