SuperAPI AI Directory

gws-connector

Multi-account Google Workspace: connect several Gmail, Calendar, Drive, Sheets and Docs accounts with routing by label, email or domain.

Open website

About this tool

Purpose: gws-connector is a multi-account Google Workspace MCP server for AI coding assistants. Most assistants support only a single Google account, and switching between personal and work accounts requires manual action; this tool allows connecting multiple Gmail and Workspace accounts at once, and routing requests by label (such as work), email, or domain, using the default account when none is specified.

Main capabilities: supports an unlimited number of Gmail/Workspace accounts; intelligent routing by label, email, and domain; independent OAuth per account, with different organizations able to use their own GCP credentials; credentials and tokens are stored in the operating system keychain (falling back to files on Linux without GNOME Keyring). 49 tools in total: Mail 11, Calendar 7, Drive 3, Sheets 8, Docs 4, Contacts 2, Tasks 5, Slides 3, Account Management 6. Supports adding, removing, setting default, and listing accounts.

Usage: can be used as a Claude Code plugin, a Gemini CLI extension, a .mcpb package for Claude Desktop, or built as a binary from source; the server speaks MCP over stdio, is compatible with any MCP client, and has been published to the official MCP Registry (io.github.orieg/gws-connector). First use requires completing a one-time Google Cloud setup: create a project, enable the Gmail/Calendar/Drive/Sheets/Docs/People/Tasks/Slides APIs, configure the OAuth consent screen and add 11 scopes, add test users, create a desktop app OAuth client and download the JSON. After that, use the interactive wizard to connect accounts, and each account can use credentials from a different GCP project. All gws.* tools accept an optional account parameter. Write operations (drafts, events, spreadsheet/document edits) preview first and wait for confirmation.

Use cases: cross-account inbox summaries, drafting replies by thread, converting emails into calendar events, cross-account schedule summaries, searching and summarizing Drive documents, appending rows to spreadsheets, bulk labeling, and more.

Limitations: you must complete the Google Cloud configuration yourself and add test users, otherwise OAuth will return 403; newly added Tasks, Contacts,Slides, Sheets, and Docs tools require reauthorization and enabling the corresponding APIs and scopes; directory_search is available only for Workspace accounts, and personal Gmail has no organizational directory; the container image is suitable for headless stdio integration, while interactive OAuth requires host access. The license is MIT.