Gws Connector logo

Gws Connector

Connects multiple Google accounts to MCP clients for Gmail, Calendar, Drive, Sheets, and Docs operations.

Install Gws Connector

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

Setup steps from the project

gws-connector 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
    gemini extensions install https://github.com/orieg/gws-connector
    
  2. 2. Install
    git clone https://github.com/orieg/gws-connector && cd gws-connector && make build
    
  3. 3. Install
    git clone https://github.com/orieg/gws-connector
    
  4. 4. Install
    make build
    
  5. 5. Add to Claude Code
    claude --plugin-dir ./
    
  6. 6. Start the server
    docker run -i --rm ghcr.io/orieg/gws-connector:latest
    

Overview

The gws-connector MCP server connects MCP-compatible clients to multiple Google Workspace accounts, including Gmail, Calendar, Drive, Sheets, and Docs. It routes requests by account label, email address, or domain, while each account can use separate Google Cloud OAuth credentials. MCP tools support account management, email, calendar, Drive, and spreadsheet operations. Reach for it when an agent needs to work across personal, work, or multiple client accounts from one server.

Use cases

  • Route Gmail requests across personal and work accounts
  • Search and update calendar events for a selected organization
  • Read Drive files and spreadsheet ranges through an AI client
  • Create email drafts and send approved messages
  • Append agent-generated rows to Google Sheets

Key features

  • Multi-account Google OAuth
  • Routing by label, email, or domain
  • Gmail search and draft workflows
  • Calendar event and availability management
  • Drive file and folder access
  • Google Sheets range writes and row appends

Tools49

What Gws Connector lets your agent do. Expand a tool for its parameters.

Self-reported~680 tokens of context

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.

13/13 checks healthy over the last 72d

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Tools exposed49Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Gws Connector works

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.

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 Gws Connector

gws-connector is an MCP server that connects MCP-compatible clients to multiple Google Workspace accounts. Its main tools manage accounts and work with Gmail, Google Calendar, Google Drive, and Google Sheets, including message search, calendar events, Drive files, spreadsheet ranges, OAuth authorization, and account routing by label, email, or domain.

Install it through the Claude Code plugin or Gemini CLI extension, or download a release binary and configure your MCP client to run it over stdio. You can also clone the repository and build it with `make build`. Google Cloud OAuth setup and account authorization are still required.

Yes, gws-connector works with Cursor through its MCP server configuration. Cursor can detect a project `.cursor/mcp.json` file or add the server through Settings → MCP Servers. Configure the downloaded or built binary, then connect a Google account through the account tools.

It keeps multiple connected accounts in one server instance and routes requests by label, email address, or domain. You can list, add, reauthorize, remove, and select a default account. Each account may use OAuth credentials from a different Google Cloud project.

It supports `GWS_GOOGLE_CLIENT_ID`, `GWS_GOOGLE_CLIENT_SECRET`, and `GWS_STATE_DIR`, but all are optional. Account credentials and tokens are stored in the operating system keychain, with a file fallback on Linux systems without GNOME Keyring.

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 PreviewGws Connector AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gws-connector?style=directory)](https://allmcps.com/mcp/gws-connector)
HTML Embed
<a href="https://allmcps.com/mcp/gws-connector"><img src="https://allmcps.com/api/badge/gws-connector?style=directory" alt="Gws Connector on AllMCPs" /></a>