# gws-connector [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/orieg/gws-connector  
**GitHub Stars:** 2  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/gws-connector

## Description
Multi-account Google Workspace MCP — Gmail, Calendar, Drive, Sheets, Docs with smart routing.

## Tools
Capabilities this server exposes over MCP:

- **gws.accounts.list** — List all connected accounts
- **gws.accounts.add** — Connect a new account (waits up to ~60s; returns `pendingId` if slower)
- **gws.accounts.reauth** — Re-authorize an account (waits up to ~60s; returns `pendingId` if slower)
- **gws.accounts.complete** — Finalize a pending OAuth flow (only needed if add/reauth returned `pendingId`)
- **gws.accounts.remove** — Disconnect an account
- **gws.accounts.set_default** — Change the default account
- **gws.mail.search** — Search messages (Gmail query syntax)
- **gws.mail.read_message** — Read a specific message
- **gws.mail.read_thread** — Read an entire thread
- **gws.mail.create_draft** — Create an email draft
- **gws.mail.send_draft** — Send an existing draft
- **gws.mail.forward** — Build a forward draft of a message (does not send)
- **gws.mail.get_attachment** — Fetch a message attachment's bytes (base64)
- **gws.mail.list_labels** — List Gmail labels
- **gws.mail.create_label** — Create a new label
- **gws.mail.modify_message** — Add/remove labels on a message
- **gws.mail.get_profile** — Get account profile info
- **gws.cal.list_events** — List calendar events
- **gws.cal.get_event** — Get event details
- **gws.cal.create_event** — Create a calendar event
- **gws.cal.update_event** — Update/reschedule an event (patch semantics)
- **gws.cal.delete_event** — Delete/cancel an event
- **gws.cal.free_busy** — Query free/busy across calendars
- **gws.cal.list_calendars** — List available calendars
- **gws.drive.search** — Search files in Drive
- **gws.drive.read_file** — Read file content/metadata
- **gws.drive.list_folder** — List folder contents
- **gws.sheets.read_range** — Read a single A1 range from a spreadsheet
- **gws.sheets.write_range** — Write cell values to a range
- **gws.sheets.append** — Append rows after a table (additive, never overwrites)
- **gws.sheets.clear** — Clear values in a range (formatting left intact)
- **gws.sheets.create** — Create a new spreadsheet
- **gws.sheets.list_tabs** — List tabs (sheets) in a spreadsheet
- **gws.sheets.duplicate_tab** — Duplicate a tab (with formatting) inside a spreadsheet
- **gws.sheets.add_tab** — Add a new empty tab to a spreadsheet
- **gws.docs.read** — Read a document as plain text
- **gws.docs.insert_text** — Insert literal text at a location
- **gws.docs.replace_text** — Replace all occurrences of a literal substring
- **gws.docs.create** — Create a new document
- **gws.contacts.search** — Search your own contacts by name/email/phone (returns name, emails, phones)
- **gws.contacts.directory_search** — Search the Workspace org directory (returns name, emails); Workspace accounts only
- **gws.tasks.list_tasklists** — List the account's task lists
- **gws.tasks.list** — List tasks in a list (add `showCompleted` for done tasks)
- **gws.tasks.create** — Create a task (`due` is RFC3339; only the date is stored)
- **gws.tasks.complete** — Mark a task completed (reversible)
- **gws.tasks.delete** — Permanently delete a task
- **gws.slides.get** — Read a presentation (slide count + per-slide text)
- **gws.slides.create** — Create a new presentation
- **gws.slides.batch_update** — Apply raw Slides API requests to a presentation

## 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/orieg/gws-connector), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
gemini extensions install https://github.com/orieg/gws-connector
```

2. Install:

```sh
git clone https://github.com/orieg/gws-connector && cd gws-connector && make build
```

3. Install:

```sh
git clone https://github.com/orieg/gws-connector
```

4. Install:

```sh
make build
```

5. Add to Claude Code:

```sh
claude --plugin-dir ./
```

6. Start the server:

```sh
docker run -i --rm ghcr.io/orieg/gws-connector:latest
```

## Documentation

## What gws-connector MCP server does

The gws-connector MCP server exposes Google Workspace operations through MCP and keeps multiple Google accounts available in one server instance. Accounts can be selected by label, email address, or domain, which helps distinguish personal, work, and client identities without manually changing the active account.

The available tools cover account administration, Gmail, Google Calendar, Google Drive, and Google Sheets. Gmail tools search messages using Gmail query syntax, read messages or threads, create and send drafts, forward messages into drafts, retrieve attachments, manage labels, modify message labels, and read profile information. Calendar tools list, inspect, create, update, delete, and check availability for events and calendars. Drive tools search files, read file content or metadata, and list folder contents. Sheets tools read and write A1 ranges or append rows without overwriting existing data.

## How it works

Each connected account uses OAuth authorization. The account-management tools can add, reauthorize, complete, remove, list, and select a default account. Add and reauthorization calls wait for the browser-based flow for about 60 seconds; if it takes longer, they return a pending identifier that must be passed to the completion tool.

Routing can use an account label, email, or domain. Different organizations may use different Google Cloud OAuth credentials, rather than sharing one credential set across all accounts. The gws-connector MCP server runs as a standard MCP server over stdio, so clients invoke its tools through their normal MCP configuration.

## Setup and configuration

Claude Code users can install the repository plugin through the Claude Code marketplace, then run the configuration command to create a Google Cloud project, enable APIs, and connect an initial account. Additional accounts can be connected with the account-add command. Gemini CLI users can install the extension from the GitHub repository and then call the account-add tool with a label, client ID, and client secret.

For other clients, download a release binary or build the project with its Makefile. Configure the client to run the binary over stdio, then connect accounts through MCP. The optional `--use-dot-names` flag selects names such as `gws.mail.search`; without it, the tools use underscore-style names such as `gws_mail_search`.

The optional environment variables are `GWS_GOOGLE_CLIENT_ID`, `GWS_GOOGLE_CLIENT_SECRET`, and `GWS_STATE_DIR`. OAuth client secrets and tokens are stored in the operating system keychain, with a file fallback on Linux systems without GNOME Keyring.

## Tools and capabilities

- Manage connected accounts and the default account.
- Search, read, draft, send, forward, and label Gmail messages.
- Retrieve Gmail attachments as base64-encoded bytes.
- List, create, update, delete, and inspect calendar events.
- Query free/busy information across calendars.
- Search and inspect Drive files and folders.
- Read and write spreadsheet ranges and append rows.
- Route operations across accounts by label, email, or domain.

## Limitations and notes

Account operations that open an OAuth flow may return a pending identifier when authorization does not finish within roughly 60 seconds. Existing accounts need reauthorization when newly added Google API scopes are introduced, such as those for Sheets, Docs, Tasks, Contacts, or Slides. The corresponding APIs and scopes must also be enabled in the Google Cloud project before reauthorization.

The gws-connector MCP server requires Google Cloud OAuth configuration and user consent. The listed spreadsheet append operation is additive and does not overwrite existing rows. The server is intended for MCP-compatible clients; client configuration differs by application, although the underlying stdio interface is standard.

_Full upstream README: https://allmcps.com/mcp/gws-connector/readme_

