# MCP fork of Google Workspace CLI [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/shigechika/gws-mcp  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-fork-of-google-workspace-cli

## Description
MCP fork of Google Workspace CLI (Gmail, Drive, Calendar, and more)

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/shigechika/gws-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install -g @googleworkspace/cli
```

2. Sign in:

```sh
gws auth setup     # walks you through Google Cloud project config
```

3. Sign in:

```sh
gws auth login     # subsequent OAuth login
```

4. Sign in:

```sh
gws auth setup       # one-time: creates a Cloud project, enables APIs, logs you in
```

5. Sign in:

```sh
gws auth login       # subsequent scope selection and login
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/mcp-fork-of-google-workspace-cli/readme_

