ADW Google MCP
Provides 34 tools for Gmail: reading and sending messages, managing threads, drafts and replies, attachments, labels, filters, history, send-as settings, and batch operations.
Provides OAuth-authorized access to Google Workspace APIs — Drive, Docs, Sheets, Calendar, Gmail, Slides, People and Chat (170 tools) — so an agent can work across the user's Google account, with multi-account profiles.
Provides tools for Google Chat: listing spaces, reading and sending messages, working with threads, and performing bounded in-space search.
Provides 30 tools for Google Docs: navigating the nested document tab hierarchy, reading and writing text/Markdown, formatting and code-block styling, images, page breaks, tables, and revision-guarded edits that reject stale writes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ADW Google MCP
Google Workspace MCP Server
Drive Docs Sheets Calendar Gmail Slides People Chat
170 tools across 8 services for AI assistants via the Model Context Protocol
Getting Started
npx adw-google-mcp --setupThe interactive wizard guides you through account naming, service selection, browser authorization, and a ready-to-paste MCP configuration. Choose the built-in client to skip Google Cloud entirely, or bring your own Desktop OAuth client. Your refresh token stays on your machine.
Related MCP server: worksuite-mcp
How It Works
┌──────────────────────────────────────────────────────────────────┐
│ │
│ 1. Run setup npx adw-google-mcp --setup │
│ 2. Name account e.g. "work" or "personal" │
│ 3. Choose access select the Google services you need │
│ 4. Pick client built-in, or your own Desktop OAuth client │
│ 5. Authorize browser opens → approve access │
│ 6. Copy config setup generates it and offers one-click copy │
│ 7. Paste & go add it to your AI client and restart │
│ │
└──────────────────────────────────────────────────────────────────┘Run setup again at any time to add another account, show its config, change services, re-authorize, or delete the local profile.
Want your own OAuth client? See Google Cloud Setup.
What Your Agent Can Do
Service | Tools | Main capabilities |
Drive | 35 | Files and folders, uploads/downloads, sharing, comments, shared drives, access proposals, and approvals |
Docs | 30 | Document tabs, Markdown, text formatting, images, page breaks, tables, and revision-guarded edits |
Sheets | 35 | Values, sheets, native tables, smart chips, formatting, validation, protected ranges, and charts |
Calendar | 18 | Events, recurrence, availability, scheduling suggestions, responses, Meet links, and labels |
Gmail | 34 | Messages, threads, drafts, replies, attachments, labels, filters, history, send-as, and batches |
Slides | 7 | Presentations, slides, thumbnails, creation, duplication, and batch updates |
People | 5 | User profile, contacts, incremental sync, contact search, and Workspace directory search |
Chat | 6 | Spaces, messages, threads, bounded in-space search, and message sending |
Verify the live inventory directly from the implementation:
npm run toolsGoogle Docs highlights
Google Docs document tabs are fully supported. These are the tabs in the Docs sidebar—not spreadsheet sheets. An agent can list the complete nested hierarchy; create, rename, reorder, reparent, or delete tabs; and target reads, text edits, images, page breaks, formatting, and table operations to one tab.
Table tools can discover and insert tables, replace cell text, add or delete rows and columns, merge or unmerge cells, style cells, and pin header rows. Writes can include a revision ID so a stale agent edit is rejected instead of overwriting newer work.
Use format_code_block_in_document to style existing paragraphs with a
monospace font, background color, indentation, and code-friendly spacing.
Call
read_documentorread_document_as_markdown.Take the returned
tabIdandrevisionId.Choose a distinctive
findTextsubstring from the code.Call
format_code_block_in_documentwith those values.
Every matching paragraph in that tab is formatted in one atomic update, so use a unique substring when only one block should change. The font, colors, indentation, and spacing are customizable.
This is a visual approximation. The Google Docs API does not expose the
editor's native code-block building block. Fenced code used with
create_document_from_markdown is likewise imported as preformatted content.
Read operations can choose how suggested edits are rendered. Google Docs' Developer Preview comment/suggestion mutation surface is not exposed as a stable MCP tool; Drive comments remain available through the Drive service.
read_restricted_document is an unsupported, best-effort fallback for Google's
mobilebasic HTML page. Prefer read_document whenever the Docs API can access
the file.
Google Cloud Setup
You need Node.js 22 or newer. The published package includes a built-in Desktop OAuth client, so this section is optional: follow it only if you want your own Google Cloud project and Desktop app OAuth client.
Open the Google Cloud Console and create or select a project.
Enable the APIs for the services you plan to use: Drive, Docs, Sheets, Slides, Calendar, Gmail, People, and/or Chat.
Configure the OAuth consent screen for your Workspace or test users.
Create an OAuth client ID with application type Desktop app.
Download its JSON file, then run
npx adw-google-mcp --setup.
Google Chat also needs a Chat app configured in the same Cloud project. Public apps requesting sensitive or restricted scopes can require Google verification.
The setup wizard accepts any of these:
the built-in client shipped with the package;
the downloaded Desktop OAuth JSON file;
the client ID and client secret entered interactively; or
GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETset for the setup command.
GOOGLE_CLIENT_ID="..." GOOGLE_CLIENT_SECRET="..." \
npx adw-google-mcp --setupProfiles created with the built-in client follow it automatically: when a new release rotates its secret, existing profiles keep working after updating, with no re-authorization. Re-authorize lets you switch any profile to a different client. The generated MCP client configuration contains only the local profile name—not your client secret or refresh token.
Add It to Your AI Client
You do not need to write this by hand. The setup wizard generates it and offers to copy it to your clipboard.
Claude Desktop · Cursor · Air.dev · other stdio MCP clients
{
"mcpServers": {
"google-workspace-work": {
"command": "npx",
"args": ["-y", "adw-google-mcp"],
"env": {
"GOOGLE_WORKSPACE_PROFILE": "work",
"GOOGLE_WORKSPACE_SERVER_NAME": "google-workspace-work"
}
}
}
}Claude Code
claude mcp add google-workspace-work \
-e GOOGLE_WORKSPACE_PROFILE=work \
-e GOOGLE_WORKSPACE_SERVER_NAME=google-workspace-work \
-- npx -y adw-google-mcpMultiple Accounts
Run setup once for each account:
npx adw-google-mcp --setup◆ No accounts yet
│ ● Add new account → name it "work"
◆ 1 account configured
│ ○ work
│ ● Add new account → name it "personal"
◆ 2 accounts configured
│ ○ work
│ ○ personal
│ ● DoneEach account has its own local profile and needs its own MCP server entry. Give
entries clear names such as google-workspace-work and
google-workspace-personal so your agent can select the intended account.
Profiles from older releases still expose Drive, Docs, Sheets, Calendar, and Gmail. Choose Re-authorize in setup to add newer services. To guarantee that previously granted scopes are removed, delete the profile—which attempts token revocation—and create it again.
Capability Controls
Select services during setup, then optionally narrow each MCP server further at startup:
Variable | Purpose |
| Select |
| Use an explicit configuration file instead |
| Set the server name shown to the MCP client |
| Expose comma-separated service IDs or |
| Choose |
| Change the setup callback port from the default |
allexposes every tool for the selected services.safe-writehides destructive operations, raw batch updates, permission and approval mutations, and outbound actions such as email or Chat sending.read-onlyexposes only tools annotated as non-mutating.
These controls reduce the MCP surface; they do not remove OAuth grants already
issued to a profile. GOOGLE_DRIVE_PROFILE, GOOGLE_DRIVE_CONFIG, and
GOOGLE_DRIVE_SERVER_NAME remain available only as legacy aliases.
Security
The built-in Desktop OAuth client is injected from GitHub Actions secrets at release time and never lives in the repository. As with any installed app, Google does not treat a Desktop client secret as confidential; you can always use your own client instead.
Setup uses PKCE, random OAuth state, a loopback timeout, and scopes based on the services you select.
Profiles are written atomically with
0600file permissions and a0700directory on supported platforms.Deleting a profile attempts to revoke its refresh token before removing the local file.
Every MCP call is validated against its JSON Schema, and tools advertise read-only, idempotent, and destructive annotations.
Gmail and Chat content is marked as untrusted; oversized structured responses fail closed at 4 MiB.
Releases use npm trusted publishing from GitHub Actions with OIDC and provenance—there is no long-lived npm publish token.
Release checks install the packed tarball in an isolated consumer project and audit the dependency tree users actually receive.
Revoke Google access at any time from Google Account permissions.
Troubleshooting
Problem | Fix |
Browser authorization was closed | Run |
Authentication error or expired token | Run setup and choose Re-authorize |
A newly selected service is unavailable | Re-authorize the profile so Google grants its scopes |
Port 3000 is already in use | Set |
Google returned no refresh token | Remove the app from Google Account permissions, then authorize again |
Server appears to hang when run directly | Normal for a stdio MCP server; use |
Development and Publishing
npm ci
npm run build # clean TypeScript build
npm test # build and run automated tests
npm run check # tests, audits, and packed consumer verification
npm run tools # generated service-by-service inventory
npm pack --dry-run # inspect the package before releaseThe test suite covers tool contracts, validation, API request construction, pagination, tab-aware Docs behavior, security-sensitive helpers, and packaging invariants with mocks. It does not claim destructive live integration testing against a real Google account.
Releases are tag-triggered through GitHub Actions and npm trusted publishing. See PUBLISHING.md for the release procedure.
AGPL-3.0-only · GitHub · npm
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Multiple Gmail accounts, editable Google Sheets & Docs for AI agents. Deny-by-default access rules.
Gmail, Outlook, Drive, OneDrive and calendars for AI agents. Many accounts, one endpoint, audit log.
Connect an AI assistant to your Google Sheets, Drive, Docs, PDFs, BigQuery and Gmail.
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceProvides AI assistants with access to Google Workspace APIs including Sheets, Calendar, Gmail, Tasks, Drive, and Docs. Enables full CRUD operations and management of Google services through natural language.1-
- AlicenseBqualityDmaintenanceConnects AI assistants to Google Workspace (Gmail, Drive, Docs, Sheets, Slides, Calendar, Tasks, Forms, Chat, Contacts) through your own OAuth app, providing around 120 tools for managing email, files, calendar, and more.100MIT
- AlicenseNot gradedqualityCmaintenanceTurns Google Workspace into 45 MCP tools spanning Gmail, Drive, Calendar, Docs, Sheets, Slides, Chat, Tasks and Contacts, with server-side OAuth and a single bearer token so any AI client can read, send, create, and manage workspace content without a browser or Google SDK.MIT
- AlicenseAqualityCmaintenanceExposes 38 tools that let AI agents search and read Gmail, draft and send messages, find and export Drive files, and work with Sheets, Docs, Slides, Calendar, Tasks, Forms and Contacts. It routes everything through Google's official Workspace CLI, so the user's own credential is created locally and never leaves their machine.381MIT