Multi-account MCP for Gmail, Calendar, Drive, Docs, and Sheets — 61 tools, token

io.github.adelaidasofia由 GitHub 帳號 adelaidasofia 發布v0.1.0更新於 Oct 24, 2026

Multi-account MCP for Gmail, Calendar, Drive, Docs, and Sheets — 61 tools, token-efficient, macOS…

概覽

AI 產生的概覽

支援多帳號的 Google Workspace MCP 伺服器,涵蓋 Gmail、日曆、Drive、Docs 與 Sheets,回應精簡且節省 token。

可以做什麼
  • 新增、列出與移除已授權的 Google 帳號,各工具以帳號電子郵件區分
  • 搜尋、讀取、寄送、撰寫草稿、回覆、加標籤、封存與移至垃圾桶的 Gmail 郵件,並可儲存附件
  • 列出日曆與活動,建立、更新、刪除、回覆邀請,查詢空閒時段,加入 Meet 連結
  • 搜尋、讀取、上傳、移動、重新命名、共用、移至垃圾桶的 Drive 檔案,管理權限與留言
  • 建立、讀取、編輯、匯出 Docs 文件,並處理追蹤修訂建議
  • 建立試算表與工作表,讀寫範圍、附加、清除,管理命名範圍、條件格式與資料驗證
適用情境
適合讓助理在同一個工作階段中跨多個 Google 信箱及其日曆、檔案與文件作業,也適合希望搜尋結果精簡、只在需要時才讀取郵件內文與檔案內容的情境。
執行需求
以 stdio 本機程序執行(MCPB 套件或安裝腳本),需要 Python 3.10 或更新版本。需要自建 Google OAuth 用戶端:GOOGLE_OAUTH_CLIENT_ID 與 GOOGLE_OAUTH_CLIENT_SECRET,並完成一次性的 Google Cloud 專案設定。每個信箱都須透過瀏覽器 OAuth 授權。僅支援桌面端。
安裝前請注意
OAuth 用戶端密鑰屬於憑證;更新權杖存放在作業系統的憑證存放區。工具可寄送郵件、共用 Drive 檔案、變更權限、刪除日曆活動與改寫文件,寫入會作用於真實帳號。移除帳號不會在 Google 端撤銷授權。外掛預設會向第三方網站送出匿名安裝訊號,可用 MYCELIUM_NO_PING 關閉。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Multi-account MCP for Gmail, Calendar, Drive, Docs, and Sheets — 61 tools, token,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

google-workspace-mcp

[License] [GitHub stars] [Last commit] [Open issues] [PyPI version] [PyPI downloads] [Built by Mycelium AI]

Multi-account, token-efficient MCP for Gmail + Calendar + Drive + Docs + Sheets. Built because the official Claude connector supports one account and returns full message/file bodies by default.

Set it up by talking to Claude

Paste this repository's link into Claude Code and say you want to connect your email. Claude Code does the terminal steps, and anything that needs a web browser goes to Claude in Chrome. GUIDED-SETUP.md is the step-by-step version of that path, including the exact browser steps.

Why this exists

  • Multi-account: OAuth multiple mailboxes (work + personal + co-founder). Every tool takes an account email; aliases are handled via Send-As identities.
  • Token-efficient: Search/list returns compact shapes ({id, from, subject, snippet, ...} for mail, {id, name, mime, modified, size, ...} for Drive). Bodies and file content are opt-in.
  • Keyring-backed: Refresh tokens live in the OS credential store — Keychain on macOS, Credential Manager on Windows, Secret Service on Linux — not in plaintext files. No tokens in the vault, no tokens in any repo.
  • macOS, Windows and Linux: one installer per platform, same connector.

Tools (v2, 63 tools)

Account management (3)

  • gws_account_add — browser OAuth flow, adds a new authorized mailbox
  • gws_account_list — list authorized accounts + default
  • gws_account_remove — remove local credential (doesn't revoke Google-side)

Gmail (12)

  • gmail_search — search with Gmail operators. Compact response.
  • gmail_read — read one message or full thread. Bodies opt-in.
  • gmail_send — send mail, optional from_alias for Send-As identities
  • gmail_draft — create a draft
  • gmail_reply — reply (preserves thread + headers), optional reply_all
  • gmail_labels_list — list all labels
  • gmail_label_apply — batch add/remove labels
  • gmail_archive — batch archive (remove INBOX)
  • gmail_trash — batch move to trash
  • gmail_sendas_list — list Send-As identities on this mailbox
  • gmail_attachments_list — list a message's attachments (filename, mime type, size)
  • gmail_attachment_save — download one attachment to a local file, path returned for direct reading

Calendar (7)

  • cal_list_calendars — list all calendars
  • cal_list_events — list upcoming events (compact by default, verbose=True for full)
  • cal_create_event — create event, optional Google Meet link
  • cal_update_event — partial-update fields
  • cal_delete_event — delete
  • cal_freebusy — check busy windows for scheduling
  • cal_respond — accept/decline/tentative

Drive (18)

  • drive_search — free-text or raw Drive q-syntax. Metadata-only response.
  • drive_read_file — metadata by default; include_content=True for body
  • drive_list_folder — direct children of a folder ('root' for My Drive)
  • drive_create_folder — create a folder under an optional parent
  • drive_upload — upload a local file, optional convert_to_google
  • drive_move — change parent folder
  • drive_rename — rename a file or folder
  • drive_share — grant reader/commenter/writer/etc. access by email
  • drive_trash — soft delete (recoverable)
  • drive_untrash — restore from Trash
  • drive_permission_list — list everyone with access to a file
  • drive_permission_update — change a grantee's role
  • drive_permission_delete — revoke a permission
  • drive_shared_drives_list — list shared drives this account accesses
  • drive_comments_list — list comments on any Drive file (Doc/Sheet/Slide/upload)
  • drive_comment_add — add a comment, optional anchor
  • drive_comment_reply — reply to a comment
  • drive_comment_resolve — mark a comment resolved

Docs (9)

  • docs_create — new Doc, optional initial body and parent folder
  • docs_read — flat text by default; structured=True for full Docs API tree
  • docs_append — append text to end of body
  • docs_insert_at — insert text at a specific index
  • docs_replace_text — find-and-replace, returns count replaced
  • docs_export — export to markdown / pdf / docx / rtf / plain
  • docs_suggestions_list — list pending tracked-change suggestions
  • docs_suggestions_accept_all — accept all suggestions (rewrites Doc)
  • docs_suggestions_reject_all — reject all suggestions (rewrites Doc)

Sheets (14)

  • sheets_create — new workbook, optional parent folder
  • sheets_list_sheets — list tabs with row/col dimensions
  • sheets_add_sheet — add a new tab to an existing workbook
  • sheets_read_range — read A1 range. FORMULA / UNFORMATTED_VALUE options.
  • sheets_write_range — overwrite a range. USER_ENTERED parses formulas.
  • sheets_append — append rows below existing data
  • sheets_clear_range — clear values (formatting preserved)
  • sheets_batch_read — multi-range read in one API call
  • sheets_batch_write — multi-range write in one API call
  • sheets_named_ranges_list — list named ranges in a workbook
  • sheets_named_range_add — create a named range
  • sheets_named_range_delete — delete a named range
  • sheets_conditional_format_add — add a conditional formatting rule
  • sheets_data_validation_add — set dropdown / number / email / URL validation

Install

Fastest path — one script, no manual wiring.

macOS and Linux:

bash
git clone https://github.com/adelaidasofia/google-workspace-mcp.gitbash google-workspace-mcp/install.sh

Windows (PowerShell):

powershell
git clone https://github.com/adelaidasofia/google-workspace-mcp.gitpowershell -ExecutionPolicy Bypass -File .\google-workspace-mcp\install.ps1

The installer creates an isolated venv, installs dependencies, takes your Google OAuth client (either interactively or via GWS_CLIENT_ID / GWS_CLIENT_SECRET in the environment), and registers the server with Claude Code. Safe to re-run. You still need a Google OAuth client first — see SETUP.md for the ~45 min one-time GCP setup. Then run gws_account_add from Claude Code to authorize your first mailbox.

Both need Python 3.10 or newer and will find one you already have.

  • macOS / Linux try python3 first, then python3.14 down to python3.10, so a Homebrew Python still counts when python3 resolves to macOS's older system one.
  • Windows tries py -3 (the Python launcher) first, then python, python3 and the versioned names. Every candidate has to run and report its own version before it counts, which is what keeps the Microsoft Store placeholder in %LOCALAPPDATA%\Microsoft\WindowsApps from being picked: it is a real python.exe on PATH that only opens the Store.

If yours lives somewhere no search would guess (pyenv, conda, a private prefix), name it:

bash
GWS_PYTHON=/full/path/to/python3 bash google-workspace-mcp/install.sh
powershell
$env:GWS_PYTHON = 'C:\full\path\to\python.exe'powershell -ExecutionPolicy Bypass -File .\google-workspace-mcp\install.ps1
Windows notes

-ExecutionPolicy Bypass is in the command on purpose. Windows blocks downloaded scripts by default; this applies the exception to this one run without changing the machine's policy.

Run it from PowerShell, not Git Bash. install.sh detects Git Bash / MSYS and stops there with a pointer to install.ps1, rather than registering a POSIX venv path that a native Claude Code cannot launch. WSL is real Linux and keeps using install.sh.

Time zone. The connector reads the machine's IANA zone so that "3pm" in a cal_* call means 3pm where you are. Windows names its zones its own way (SA Western Standard Time), so this goes through tzlocal, which the installer pulls in. Set GWS_TIME_ZONE=America/Bogota to override.

Plugin marketplace install

Open Claude Code, paste:

/plugin marketplace add adelaidasofia/google-workspace-mcp/plugin install google-workspace-mcp@google-workspace-mcp

You still need to complete the one-time GCP setup in SETUP.md (~45 min for v1, ~5 min incremental for v2 Drive/Docs/Sheets) so the server has a client_secret.json to OAuth against. Run gws_account_add from Claude Code to authorize your first mailbox.

On Windows, run install.ps1 afterwards. The plugin's .mcp.json launches the server with python3, and a plugin manifest has no way to say "except on Windows, use this instead". On Windows python3 is either absent or the Microsoft Store placeholder, so the connector is registered and never starts. install.ps1 re-registers it against an absolute interpreter path, which is unambiguous on every platform.

Legacy install (manual .mcp.json wiring)

See SETUP.md for the one-time GCP setup (~45 min for v1, ~5 min incremental to enable Drive/Docs/Sheets for v2).

After setup:

bash
pip3 install --break-system-packages -r requirements.txt

Register with Claude Code

Add to your project's .mcp.json (or ~/.claude.json for global access):

json
"google-workspace": {  "type": "stdio",  "command": "python3",  "args": ["/path/to/google-workspace-mcp/server.py"]}

On Windows, give the full path to a real interpreter rather than a bare name — python3 there is usually the Microsoft Store placeholder, which resolves fine and never runs Python:

json
"google-workspace": {  "type": "stdio",  "command": "C:\\Users\\you\\google-workspace-mcp\\.venv\\Scripts\\python.exe",  "args": ["C:\\Users\\you\\google-workspace-mcp\\server.py"]}

Upgrading from v1 → v2

v2 adds Drive + Docs + Sheets scopes. Each authorized account must re-OAuth once so Google grants the new scopes. See SETUP.md step 6b.

Roadmap

  • v3: Gmail filters, vacation responder, push notifications (Gmail Watch), Calendar ACL/delegation, Slides, Forms, Tasks
  • v4: Batch requests across services, Drive revisions

Related MCPs

Same author, same architecture pattern (FastMCP, draft+confirm on writes where applicable, vault auto-export, MIT):

Telemetry

This plugin sends a single anonymous install signal to myceliumai.co the first time it loads in a Claude Code session on a given machine.

What is sent:

  • Plugin name (e.g. slack-mcp)
  • Plugin version (e.g. 0.1.0)

What is NOT sent:

  • No user identifiers, names, emails, tokens, or API keys
  • No file paths, message content, or anything from your work
  • No IP address is stored after dedup processing

Why: Helps the maintainer know which plugins people actually install, so attention goes to the ones that get used.

Opt out: Set the environment variable MYCELIUM_NO_PING=1 before launching Claude Code. The hook will skip the network call entirely. Already-pinged installs leave a sentinel at ~/.mycelium/onboarded-<plugin> — delete it if you want to reset state.

License

MIT


Built by Mycelium AI. Full install or team version at diazroa.com.

來源:README.md,提交 57d86de

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分