Skip to main content
Glama

mcp-google-workspace

Production-oriented Google Workspace MCP package with:

  • Gmail MCP: send/read/search emails, attachment handling, label management, batch operations.

  • Google Calendar MCP: events, availability, create/update/delete operations.

  • Google Drive MCP: files/folders CRUD, uploads/downloads/exports, sharing permissions, Shared Drives operations.

  • Google Sheets MCP: spreadsheet metadata, values reads/writes, and raw batch updates.

  • Google Docs MCP: document fetch/create flows plus convenience text mutations and raw batch updates.

  • Google Tasks MCP: task lists, tasks, completion, movement, and deletion.

  • Google People MCP: personal contacts and contact groups.

  • Google Forms MCP: forms CRUD, publish settings, and response reads.

  • Google Slides MCP: presentations, slide pages, thumbnails, text replacement, and raw batch updates.

  • MCP Apps Dashboard: workspace dashboard app-layer tools/resources with interactive UI.

  • Optional Google Keep MCP, Google Chat MCP, Google Meet MCP, and Gemini media integrations behind feature flags.

  • FastMCP advanced features: progress updates, background tasks, resources, and prompts on MCP 2026-07-28.

  • Composed server architecture: Gmail + Calendar + Drive + Sheets + Docs + Tasks + People + Forms + Slides mounted by default, with optional Apps/Keep/Chat/Meet/Gemini namespaces.

  • Protocol support: MCP 2026-07-28 (modern, no session) plus legacy handshake-era connectivity for 2024-11-05 through 2025-11-25, over both stdio and Streamable HTTP.

Requirements

  • Python 3.12+

  • UV package manager

  • Node.js 20+ and npm (required for MCP Apps UI in src/mcp_google_workspace/apps/ui)

  • Google Cloud OAuth client credentials (credentials.json) for a client marked Use this client for an AI-powered agent (see OAuth setup)

  • Google APIs enabled in your Google Cloud project: Gmail, Calendar, Drive, Sheets, Docs, Tasks, People, Forms, and Slides

  • Optional APIs when enabling feature-flagged integrations: Google Keep, Google Chat, and Google Meet

  • Gemini Developer API key when enabling Gemini media tools

Related MCP server: Google Workspace MCP Server

Installation

uv sync --all-extras --dev

If you are working on MCP Apps UI, install frontend dependencies and build the bundle:

cd src/mcp_google_workspace/apps/ui
npm ci
npm run build

OAuth setup

Create the server's OAuth client as an AI agent client:

  1. In the Google Cloud console, open Google Auth Platform → Clients and create a client: Desktop app for local stdio/MCPB, or Web application with MCP_GOOGLE_OAUTH_REDIRECT_URL as an authorized redirect URI for HTTP deployments.

  2. Select Use this client for an AI-powered agent.

  3. Download the client JSON as credentials.json.

Google asks developers to mark every OAuth client that an AI agent uses, even one that only calls the Workspace REST APIs, and to keep agent and non-agent workflows on separate client IDs. Use a dedicated client for this server rather than one shared with other apps. The mark grants no extra scopes and does not replace user consent; it lets Workspace administrators apply agent-specific access controls. From November 11, 2026, Google's hosted Workspace MCP servers reject clients that are not marked. This server calls the Workspace REST APIs, not those hosted servers, so an unmarked client still works here. On November 12, 2026, the setting becomes permanent on existing clients: if yours is unmarked after that date, create a new client. See Manage OAuth clients.

To switch an existing installation to a new client, replace credentials.json, then call disconnect_google_workspace (it asks you to confirm) and connect again (each user, over HTTP). Saved grants keep refreshing through the client that issued them until you reconnect.

Place the Google OAuth client credentials.json in one of:

  • project root: ./credentials.json

  • package credentials folder: ./src/credentials/credentials.json

Each user's Google refresh token is encrypted separately with Fernet; the MCP never writes a shared token.json.

Local stdio / MCPB: nothing to configure. On first use the server generates the encryption key and keeps it in the OS keychain (Windows Credential Manager, macOS Keychain, or the Secret Service on Linux), never in a file or in the host's extension settings. If no secure keychain is available (for example headless Linux), startup stops and asks you to set MCP_TOKEN_ENCRYPTION_KEY instead. Losing the keychain entry (new machine, OS reinstall) only means reconnecting Google once.

HTTP deployments: configure a versioned key ring from your secret manager. Mount a secret-manager document through MCP_SECRET_FILE; MCP_TOKEN_ENCRYPTION_KEY remains a single-key development option. The keychain is never used over HTTP.

Generate a key once and store it in your secret manager:

python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"

Mounted secret document:

{
  "active_token_encryption_key_id": "2026-07",
  "token_encryption_keys": {
    "2026-07": "<active Fernet key>",
    "2026-04": "<retained previous Fernet key>"
  }
}

Reads accept retained keys and rewrite ciphertext with the active key. Remove an old key only after a rotation/restore drill confirms all durable records have been rewritten.

Tool tiers

MCP_TOOL_TIER selects how much of the catalog is published:

  • core (default): the everyday tools of every core service (82 tools).

  • extended: core plus the raw *_batch_update_* tools for Docs, Sheets, Slides and Forms, the Gmail settings tools (gmail_manage_filters, gmail_manage_forwarding, gmail_manage_vacation), drive_update_drive and get_mcp_apps_diagnostics (91 tools).

  • complete: extended plus every optional integration below (Apps dashboard, Chat, Keep, Meet, and Gemini when GEMINI_API_KEY is set) unless its ENABLE_* flag is explicitly false.

Tools above the active tier are not registered: they are absent from tools/list, a call to one is an unknown tool, and prepare_workspace_action does not offer them. format: raw on sheets_get_spreadsheet, slides_read_presentation and forms_get_form (Google's resource unchanged, to read before a raw batch update) also needs extended or complete; under core it fails with invalid_input. get_google_connection_status reports the active tier under server.tool_tier.

Calls that are hard to undo or reach other people ask the user first: sending mail, replies, drafts, invitations and Chat messages; sharing and unsharing; permanent deletion; forwarding, forwarding or trashing filters and the auto-reply; disconnecting; and changes to 10 or more items in one call. Reads and ordinary reversible edits do not ask. No tool argument skips the question; arguments that change what happens (mode: permanent, send_updates, the recipients) decide whether it is asked.

A client that supports elicitation shows the question with a preview of exactly what will happen. Other clients get a confirmation_required error whose next step is prepare_workspace_action, which returns the same preview and a one-time token; commit_workspace_action then runs that exact call once. For those clients the host's own permission prompt on commit_workspace_action is the point where a person approves, so do not auto-approve that tool. gmail_modify_messages, gmail_delete and the *_batch_update_* tools take dry_run: true to return the preview without changing anything.

Variable

Default

Effect

MCP_CONSENT

required

required: ask as above. preview_only: never elicit; every consequential call goes through prepare/commit. off: run consequential calls without asking (for unattended deployments; logged as a warning at startup).

MCP_EMAIL_PREPARE_RECIPIENTS

10

Recipient count from which a send preview flags a large send. It does not decide whether a send asks: every send asks.

Classification is per call; the table is in src/mcp_google_workspace/common/consent.py and the model in docs/CONSENT.md.

Optional service feature flags

Sheets, Docs, Tasks, People, Forms, and Slides are mounted by default and their scopes are always requested. When scopes change, reconnect the affected user so their encrypted per-user token receives the expanded grant.

Google Keep OAuth scope can return invalid_scope in standard user OAuth flows. Keep integration is therefore disabled by default.

Enable Keep when your Google Workspace setup supports it:

$env:ENABLE_KEEP="true"

Google Chat OAuth scopes also commonly require Google Workspace accounts. Chat integration is therefore disabled by default.

Enable Chat when your Google Workspace setup supports it:

$env:ENABLE_CHAT="true"

Google Meet integration is also disabled by default. Enable it only after enabling the Meet API for the same OAuth client:

$env:ENABLE_MEET="true"

Gemini media integration is also disabled by default. Enable it with a Gemini Developer API key:

$env:ENABLE_GEMINI="true"
$env:GEMINI_API_KEY="your-api-key"

Capability-specific Gemini model defaults:

$env:GEMINI_IMAGE_GENERATE_MODEL="gemini-3.1-flash-image"
$env:GEMINI_IMAGE_EDIT_MODEL="gemini-3.1-flash-image"
$env:GEMINI_VIDEO_UNDERSTANDING_MODEL="gemini-3-flash-preview"
$env:GEMINI_AUDIO_UNDERSTANDING_MODEL="gemini-3-flash-preview"
$env:GEMINI_REASONING_MODEL="gemini-3.1-pro-preview"

Image generation and editing default to the generally available gemini-3.1-flash-image. Without configuration, the other allowed image models are gemini-nano-banana-2.1, gemini-3.1-flash-lite-image and gemini-3-pro-image. The *-image-preview IDs were shut down by Google on 2026-06-25 and are no longer offered; any model set explicitly as a default is still accepted.

Whenever you enable an optional integration or otherwise change scopes, reconnect each affected user.

Apps dashboard rollout flag

The MCP app-layer dashboard namespace is opt-in for controlled rollout.

Enable apps namespace:

$env:ENABLE_APPS_DASHBOARD="true"

Run (STDIO)

uv run python -m mcp_google_workspace

Local stdio trust boundary

A local stdio server (including the MCPB bundle) serves exactly one trusted user: the person running it. There is no bearer token, so every request runs as one explicit trusted-local principal (MCP_LOCAL_PRINCIPAL, default local-user). That principal owns the Google grant, the picker uploads, and the dashboard views of this process.

Dashboard view handles and upload IDs are still unguessable (256-bit and 192-bit random values) and are checked on every call, but over stdio they only keep one view's state apart from another view's. They are not multitenant isolation: anything that can talk to this stdio process already acts as that user. Serve more than one user only through the authenticated Streamable HTTP entrypoint, where every handle and upload is bound to the verified (issuer, subject) of the bearer token.

MCP Bundle (MCPB)

This repository now includes a native uv-based MCP Bundle manifest and packaging assets.

Install on Claude Desktop:

  1. Download the latest .mcpb from GitHub Releases.

  2. In Claude Desktop, open the MCP bundle install flow.

  3. Select the downloaded mcp-google-workspace-*.mcpb file.

  4. Choose the credentials directory that contains credentials.json (a Desktop app client marked as an AI agent client; see OAuth setup), or leave it empty to use the repo defaults.

  5. Enable optional integrations only if your Google Workspace account and OAuth client support their scopes.

  6. Finish the install and authenticate in the browser on first launch.

Gemini media tools are API-key-based rather than OAuth-based. If you enable Gemini in the bundle UI, also set the Gemini API key and optional model defaults there.

Build a local .mcpb archive only if you are developing or testing bundle changes:

uv run python scripts/build_mcpb.py

The packaging command runs npm ci and rebuilds the Apps UI from the exact frontend lock before creating the archive. It fails instead of packaging a stale generated UI.

Note: Claude Desktop currently rejects extra server metadata keys such as package_manager, python_version, and working_dir, so this bundle keeps the uv server block to the manifest fields Claude accepts.

Bundle-specific documentation, runtime settings, and validation steps live in docs/MCPB.md.

Run (Streamable HTTP)

The remote server speaks MCP Streamable HTTP for protocol 2026-07-28 and keeps FastMCP's built-in compatibility path for every handshake-era (legacy) client version: 2024-11-05, 2025-03-26, 2025-06-18, and 2025-11-25. /version reports both the full supported set and the pair this repository's suite actively tests (2025-11-25 and 2026-07-28). Modern requests are self-contained POSTs with no session: a response is JSON unless the tool reports progress or runs long, in which case it becomes a request-scoped SSE stream, and closing that stream cancels the tool. Legacy requests keep the initialize handshake and an Mcp-Session-Id session. Durable long-running work runs as MCP Tasks on the Redis queue. It requires an OIDC bearer-token issuer and refuses to start without this configuration:

$env:MCP_HOST="0.0.0.0"
$env:MCP_PORT="8000"
$env:MCP_HTTP_BASE_URL="https://mcp.example.com"
$env:MCP_HTTP_JWT_ISSUER="https://issuer.example.com"
$env:MCP_HTTP_JWT_AUDIENCE="google-workspace-mcp"
$env:MCP_HTTP_JWKS_URI="https://issuer.example.com/.well-known/jwks.json"
$env:MCP_GOOGLE_OAUTH_REDIRECT_URL="https://mcp.example.com/google/oauth/callback"
$env:MCP_USER_TOKEN_DIR="/srv/mcp-google-workspace/tokens"
$env:MCP_SECRET_FILE="/run/secrets/mcp-google-workspace.json"
uv run python -m mcp_google_workspace.server_http

Clients connect with an OIDC bearer JWT. The server validates its signature (JWKS), issuer, audience and expiry, and requires iss, sub and exp; the verified iss + sub selects an isolated encrypted Google token. MCP bearer tokens are never forwarded to Google. A request without a valid token gets 401 with a WWW-Authenticate challenge whose resource_metadata points to the RFC 9728 document served at /.well-known/oauth-protected-resource<base path>/mcp, which names the issuer as the authorization server (the server does not implement an authorization server or dynamic client registration). Each user calls connect_google_workspace, opens its returned URL and completes Google consent; tools/list reflects the caller's current grants on every request (get_google_connection_status reports them). The callback is PKCE-protected, one-time, checks the RFC 9207 iss parameter when present, and cannot connect Google credentials to a different MCP principal.

Prefect Horizon (FastMCP Cloud)

Horizon imports a server object with fastmcp run semantics. Package modules use relative imports, so do not point it at src/mcp_google_workspace/server.py (that fails with "attempted relative import with no known parent package").

  • Entrypoint: horizon_server.py (FastMCP finds the mcp object; Horizon's settings form rejects the file:object form as "not found in repository"). Settings apply to the next deployment built from a new commit, not to Redeploy.

  • Authentication: keep Horizon's Authentication enabled. Horizon forwards no verifiable caller identity, so this entrypoint serves a single owner (MCP_TRUSTED_GATEWAY_AUTH=true): anyone who can reach /mcp acts with the owner's Google grant.

  • Environment variables (Production):

    • MCP_HTTP_BASE_URL = https://<name>.fastmcp.app

    • GOOGLE_OAUTH_CLIENT_JSON = contents of the Google OAuth client JSON (client type Web application, with authorized redirect URI https://<name>.fastmcp.app/google/oauth/callback)

    • MCP_TOKEN_ENCRYPTION_KEY = a Fernet key (python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")

    • optional MCP_REDIS_URL to keep the Google grant across redeploys; without it the grant is stored on the instance's disk and you reconnect after a redeploy.

  • optional MCP_PREFAB_RENDERER=cdn: Horizon's gateway fails on the ~6.6 MB bundled upload-picker renderer (resources/read returns -32603). cdn serves prefab-ui's 0.5 KB loader for the same pinned version instead, at the cost of allowing https://cdn.jsdelivr.net in the view's CSP. The default stays bundled.

  • Then call connect_google_workspace, open the returned URL and finish consent. Horizon's gateway also guards /google/oauth/callback, so after consent the browser shows Bearer token required. Copy that page's full URL from the address bar and call connect_google_workspace with authorization_response set to it. The state in the URL is one-time and bound to the caller, and the code only works with the server's PKCE verifier.

Server Card (discovery)

Every HTTP deployment serves an MCP Server Card (experimental ext-server-card v1) at GET /mcp/server-card: public, read-only identity (name, version, title, description, icon, repository) and the Streamable HTTP endpoint with its supported protocol versions, as application/mcp-server-card+json with open CORS, Cache-Control: public, max-age=3600 and an ETag for If-None-Match revalidation. The endpoint URL comes from MCP_HTTP_BASE_URL. It contains no tools, user data or secrets. Behind an authenticating gateway that guards every path (Prefect Horizon), the card is not publicly reachable.

Docker / GHCR

Every GitHub release publishes a signed multi-architecture image for linux/amd64 and linux/arm64:

docker pull ghcr.io/guinacio/mcp-google-workspace:latest
docker pull ghcr.io/guinacio/mcp-google-workspace:2.2.0

The image runs the authenticated Streamable HTTP entrypoint on port 8000. It does not replace the local stdio/MCPB installation. To run it locally:

cp .env.example .env
# Configure the OIDC, Google OAuth redirect, and encryption values in .env.
# Place the Google OAuth client at ./credentials.json.
docker compose up -d
curl http://localhost:8000/health/live

The Compose service persists encrypted Google tokens and upload metadata in a named volume. For production, terminate TLS in front of the container, use a versioned image tag, mount a versioned MCP_SECRET_FILE, and configure the distributed Redis/S3 contract described under Production operations when running multiple replicas.

Release images include signed GitHub build provenance. Verify a tag with:

gh attestation verify \
  oci://ghcr.io/guinacio/mcp-google-workspace:2.2.0 \
  -R guinacio/mcp-google-workspace

Notable MCP tools

The catalog is organised around tasks rather than Google API methods: one tool per job, with typed parameters, and an action enum where a resource has several operations. The default core tier publishes 82 tools (80 for the model plus two app-only upload callbacks); see Tool tiers for the rest.

Gmail (namespaced as gmail_* in composed server):

  • search_emails (Gmail query plus sender, recipient, subject, unread, attachment and age filters; group_by_thread lists conversations)

  • get_mail_digest, check_mail_updates (unbiased received/sent feeds, including routed and automated mail)

  • read_emails (one to 100 messages at one detail level; attachments carry their download_id), get_thread, download_attachment

  • send_email, reply (true Gmail-thread replies with RFC reply headers; reply_all copies everyone)

  • modify_messages: labels by name or ID, read/unread, archive or back to the inbox, spam/not spam and restore from Trash, for messages or a whole thread

  • delete: Trash (default) or permanent deletion of messages or a thread

  • Drafts: save_draft (create, or rewrite with draft_id), list_drafts (draft_id reads one), send_draft, delete_draft

  • Labels: list_labels, manage_labels (create, update, delete)

  • Extended tier: manage_filters, manage_forwarding, manage_vacation

Label parameters accept names as shown in Gmail ("Clients/Acme") or IDs; system labels such as INBOX, UNREAD or STARRED match case-insensitively. A name costs one users.labels.list per call; an unknown or ambiguous name fails with not_found and the candidate labels, and no label is ever created implicitly.

Calendar (namespaced as calendar_*):

  • search_events, read_events, get_calendar_digest

  • get_calendar_context: the account time zone and current time, plus the user's calendars

  • find_free_time: one FreeBusy query that reports whether a window is free for everyone (all_free, busy periods per calendar) and suggests slots of a given length inside working hours

  • create_event, update_event (add_meet_link, reminder_minutes or reminders with popup and email methods, send_updates, color, visibility, transparency, attendees, attachments, recurrence), respond_to_event, delete_event

  • set_event_attachments: add and remove attachments in one change; attached Drive files download through drive_download_file

  • Conflict prevention: create/update run overlap checks and fail with conflict when the slot is unavailable; updates exclude the event being moved

  • Retry safety: pass a stable idempotency_key to create_event; the App does this automatically and Google Calendar stores a deterministic event ID

find_free_time takes participants (calendar IDs or attendee emails, as a native JSON array), time_min/time_max, slot_duration_minutes (default 30), granularity_minutes (15), max_results (10), time_zone and working_hours_start/working_hours_end (08:00/17:00). To check one proposed time, pass it as the window and read all_free.

Drive (namespaced as drive_*):

  • Find and read: list_files (Drive query plus folder_id, kind, modified_after and full_text filters), get_file (metadata plus how the content can be retrieved), read_file (text of Docs, Sheets, Slides and text files)

  • Write: upload_file (new file from an upload or local path, replace an existing file's content with file_id, or an empty/native Google file from metadata alone), create_folder, update_file_metadata, move_file, copy_file, delete_file

  • Save locally: download_file (stored files, and Google files exported to PDF or export_mime_type; local stdio only)

  • Sharing: list_permissions, share_file (new grant, or change one with permission_id), unshare_file

  • Shared drives: list_drives; extended tier: update_drive (hide or unhide)

  • Progress reporting: upload_file and download_file emit MCP progress updates

Sheets (namespaced as sheets_*):

  • get_spreadsheet (format: raw in the extended tier: Google's Spreadsheet resource, paged by sheet), create_spreadsheet

  • Values: read_sheet_values (one or many ranges), update_sheet_values, append_sheet_values

  • Extended tier: batch_update_spreadsheet (raw request escape hatch)

Docs (namespaced as docs_*):

  • read_document (text, markdown, outline with the indices batch updates need, or raw), create_document

  • Convenience text mutations: append_document_text, replace_document_text

  • Extended tier: batch_update_document

Tasks (namespaced as tasks_*):

  • Task lists: list_tasklists (tasklist_id reads one), create_tasklist

  • Tasks: list_tasks (task_id reads one), tasks_digest, create_task, update_task (fields, completion, and moves within or across lists), delete_task; every task tool defaults to the account's default list

People (namespaced as people_*):

  • Contacts: search_contacts (without query it lists every contact), get_contact, create_contact, update_contact, delete_contact

  • Contact groups: manage_contact_groups (list, create, modify_members)

  • Scope note: v1 is personal contacts only; Workspace directory lookup is intentionally excluded

Forms (namespaced as forms_*):

  • get_form (format: raw in the extended tier: Google's Form resource, paged by item), create_form, set_form_publish_settings

  • Responses: list_form_responses (response_id reads one)

  • Extended tier: batch_update_form

Slides (namespaced as slides_*):

  • read_presentation (outline with each slide's text and notes; slide_ids adds element geometry; format: raw in the extended tier: Google's Presentation, or the Pages of slide_ids, paged), create_presentation, get_slide_thumbnail

  • Text mutation: replace_text_in_presentation; extended tier: batch_update_presentation

Apps (namespaced as apps_*, mounted when ENABLE_APPS_DASHBOARD=true):

  • State/navigation: get_state, set_state, patch_state, today, next_range, prev_range

  • Dashboard: get_dashboard

  • Weekly calendar layout: get_weekly_calendar_view (Google Calendar-like week columns)

  • Detail views: get_event_detail, get_email_detail, get_email_attachment

  • Calendar mutations are provided only by the core calendar_* tools; the App namespace contains view/state tools only.

Keep (namespaced as keep_*):

  • create_note, get_note, list_notes, delete_note

  • share_note, unshare_note

  • compatibility stubs for unsupported Keep v1 operations:

    • update_note

    • archive_note, unarchive_note

    • list_keep_labels, create_keep_label, delete_keep_label

    • checklist mutation helpers

Note: Keep tools/resources are mounted only when ENABLE_KEEP=true.

Chat (namespaced as chat_*):

  • list_spaces, get_space

  • list_messages, get_message

  • create_message, update_message, delete_message

Note: Chat tools/resources are mounted only when ENABLE_CHAT=true.

Meet (namespaced as meet_*, mounted when ENABLE_MEET=true):

  • Spaces: create_space, get_space, update_space, end_active_conference

  • Conference records: list_conference_records, get_conference_record

Gemini (namespaced as gemini_*, mounted when ENABLE_GEMINI=true):

  • generate_image, edit_image

  • describe_video, analyze_audio

  • local filesystem or Drive file ID inputs for media tools

  • generated images are written locally under GEMINI_OUTPUT_DIR

  • Artifacts and attendance metadata: list_conference_participants, list_conference_recordings, list_conference_transcripts

  • v1 scope boundary: metadata only; transcript or recording file downloads still belong in Drive if added later

MCP Resources and Prompts

Gmail resources:

  • gmail://inbox/summary

  • gmail://labels

  • gmail://email/{message_id}

Calendar resources:

  • calendar://today

  • calendar://week

Drive resources:

  • drive://recent

  • drive://shared-drives

  • drive://file/{file_id}

Keep resources:

  • keep://notes/recent

  • keep://note/{note_id}

Chat resources:

  • chat://spaces

  • chat://space/{space_id}/messages

  • chat://space/{space_id}/members

  • chat://users/{user_ref}

  • chat://users/me

Apps resources (mounted when ENABLE_APPS_DASHBOARD=true; the root composition adds the apps namespace prefix, matching the mounted ui://apps/dashboard-ui address below):

  • apps://apps/dashboard/current

  • apps://apps/dashboard/day/{ymd}

  • apps://apps/dashboard/week/{ymd}

  • apps://apps/calendar/week/{ymd}

Prompts:

  • compose_email_prompt

  • reply_email_prompt

  • summarize_inbox_prompt

  • summarize_keep_note_prompt

  • extract_actions_from_keep_notes_prompt

  • draft_chat_announcement_prompt

  • summarize_chat_thread_prompt

Production operations

The remote runtime exposes unauthenticated minimal operational endpoints:

  • /health/live — event-loop/process liveness

  • /health/ready — draining, encryption, token storage, Redis, S3, app state, task queue, operation records, operation lease and (for a fleet) continuation keys and shared storage; advisory checks are listed under warnings

  • /version — package/build/MCP protocol versions without secrets

  • /metrics — Prometheus/OpenTelemetry-compatible low-cardinality metrics

Admission control is principal- and tool-cost-aware. Per-principal limits are fleet-wide (enforced in Redis) whenever MCP_REDIS_URL is set, and process-local otherwise (MCP_ADMISSION_BACKEND=auto|local|redis); process limits always apply per process. Background-task executions take the same concurrency slots as foreground calls and count toward draining; the request rate is charged once, at submission. Rejections are JSON-RPC errors (-32005 rate limited, -32006 draining/unavailable); the deadline and every Google or validation failure are isError tool results with a stable error envelope.

Variable

Default

Scope

Purpose

MCP_RATE_LIMIT_PER_MINUTE

120

principal (fleet)

Sliding one-minute request rate

MCP_PRINCIPAL_CONCURRENCY

8

principal (fleet)

Active calls and task executions per principal

MCP_PRINCIPAL_QUEUE_SECONDS

10

principal (fleet)

Wait for a fleet concurrency slot before refusing

MCP_GLOBAL_CONCURRENCY

64

process

Active tool calls and task executions in this process

MCP_PRINCIPAL_STATE_LIMIT

10000

process

Maximum retained process-local admission identities

MCP_PRINCIPAL_STATE_TTL_SECONDS

900

process

Idle admission-state retention

MCP_EXPENSIVE_CONCURRENCY

4

process

Gemini/download/export/batch calls

MCP_TOOL_DEADLINE_SECONDS

120

call

Standard deadline (also bounds a task's runtime)

MCP_EXPENSIVE_DEADLINE_SECONDS

600

call

Expensive-tool deadline; must stay below MCP_OPERATION_LEASE_SECONDS

MCP_SHUTDOWN_GRACE_SECONDS

30

process

In-flight request and task drain interval

Google provider calls have a failure-window circuit breaker and expose logical-call versus HTTP-attempt metrics so retries are measurable. Logs include hashed principals and correlation IDs, never tokens, message bodies, prompts, filenames, recipient lists or continuation state. A valid W3C traceparent/tracestate in the request _meta parents the tool span; malformed values are ignored and baggage is never accepted. A multi-round-trip question is recorded as outcome input_required (a round, span attribute mcp.tool.round), separately from completed logical operations (mcp_workspace_logical_operations_total).

The HTTP boundary validates Host and Origin (defaults derived from MCP_HTTP_BASE_URL; MCP_ALLOWED_HOSTS, MCP_ALLOWED_ORIGINS), bounds request bodies while they stream (MCP_MAX_REQUEST_BYTES, 36 MiB, enough for one 25 MiB picker upload after base64 encoding; chunked bodies are refused with 413 before being buffered) and lets the SDK reject MCP-Protocol-Version / Mcp-Method / Mcp-Name mismatches (-32020) and unsupported versions (-32022) before any tool runs. MCP_HTTP_RESPONSE_MODE=json disables request-scoped SSE for intermediaries that cannot pass it (no progress, and disconnects no longer cancel tools). Change subscriptions (subscriptions/listen) are not advertised.

Deployment

A single stdio (MCPB) process or a single-process Streamable HTTP deployment needs none of the distributed infrastructure below: app state, uploads, operation records and the task queue all use in-memory backends, and Redis is not required. Redis (and S3-compatible object storage for uploads) becomes required only when you run more than one HTTP process or replica behind a load balancer, as described next. For a dedicated walkthrough of that fleet topology (Redis/S3 contract, reverse proxy, and running workers), see the multi-replica runbook.

For more than one HTTP process or replica, declare the fleet (MCP_WORKERS for processes per replica, MCP_REPLICAS for single-worker replicas; setting MCP_REDIS_URL implies a fleet too) and set MCP_REDIS_URL, MCP_UPLOAD_S3_BUCKET, MCP_REQUEST_STATE_KEYS and FASTMCP_TASKS_ENCRYPTION_KEY identically on every replica and worker. Redis then stores encrypted Google credentials, one-time PKCE state, distributed refresh locks, operation records, upload metadata, dashboard view state (encrypted with the same key ring), fleet admission counters and the task queue. Modern (2026-07-28) clients need no session affinity: every request is independent, and views, uploads, confirmations and tasks are addressed by server-issued handles or sealed continuations that any replica can verify. Only handshake-era (legacy) clients hold an Mcp-Session-Id session in one process; if you serve them behind several replicas, pin them to one replica at the load balancer (a hash of that header does not work; see the multi-replica runbook) and set MCP_SESSION_AFFINITY=true (readiness reports it as an advisory legacy_session_affinity check). Set MCP_TOKEN_REDIS_URL only when OAuth state must use a separate Redis deployment. Readiness fails unless OAuth state is Redis-backed and the complete distributed contract is reachable. Task-enabled tools run through the MCP Tasks extension (io.modelcontextprotocol/tasks), registered once on the root server by one shared factory for HTTP, stdio, and workers: the queue is FASTMCP_DOCKET_URL when set, otherwise MCP_REDIS_URL (except in the local stdio bundle), otherwise an in-process memory:// queue; the queue name defaults to mcp-google-workspace (FASTMCP_DOCKET_NAME overrides it). Set the same FASTMCP_TASKS_ENCRYPTION_KEY on every server and worker so queued caller-credential snapshots are encrypted (tool arguments and results are not). Additional workers run with uv run mcp-google-workspace-worker against the same Redis queue.

Clients without elicitation complete consequential calls with prepare_workspace_action and commit_workspace_action (see Consent). The one-time token is principal-bound and bound to the validated arguments, expires after MCP_CONFIRMATION_TTL_SECONDS (10 minutes by default), and comes with the same preview the elicitation would show. The bound action runs at most once: repeating a commit that already ran returns its saved result, and a call whose outcome is uncertain after a timeout or disconnect returns outcome_unknown with verification steps instead of being retried (see docs/migration/W4_CONFIRMATION_POLICY.md). Stable resource handles (gdrive:///..., gmail-message:///..., and related schemes) are included where applicable and can be refreshed through resolve_workspace_resource.

Emergency principal invalidation accepts hashed principal storage keys through MCP_REVOKED_PRINCIPALS or the Redis set mcp:revoked_principals. Redis-backed validation fails closed if revocation state cannot be checked.

MCP Client-Dependent Features

These features depend on active MCP client support and may be silently unavailable in clients that do not implement the corresponding MCP capabilities.

MCP Apps File Picker

The composed server exposes uploads_file_manager, built with FastMCP Prefab and delivered through the standard MCP Apps wire protocol. Its model-visible tool references a generated ui://prefab/tool/.../renderer.html resource served as text/html;profile=mcp-app; the rendered app provides drag-and-drop and native file selection. It is intended for hosted clients such as Claude where a server-local path is not useful and sending binary data through the model context is wasteful.

Typical flow:

  1. Call uploads_file_manager and let the user choose one or more files (up to 25 MiB each).

  2. Use the opaque upl_... handle returned by the picker as uploaded_file in a Workspace tool. display_name is presentation-only.

  3. The integration reads the bytes directly from scoped server storage; the binary payload does not pass through the model context.

uploaded_file is supported by:

  • Gmail send_email, reply and save_draft attachments

  • Drive upload_file (new files and content replacement)

  • Gemini edit_image, describe_video, and analyze_audio

Local/stdio uploads live in process memory, scoped to the trusted-local principal (not to an MCP connection, so they survive across requests) and use the same upl_... handles, TTL, quota, and content checks as remote uploads; see Local stdio trust boundary. A single remote instance can use encrypted filesystem objects plus SQLite metadata through MCP_UPLOAD_DB. Multi-worker production uses Redis metadata and S3-compatible encrypted object storage by configuring MCP_REDIS_URL and MCP_UPLOAD_S3_BUCKET (plus optional MCP_UPLOAD_S3_ENDPOINT and MCP_UPLOAD_S3_PREFIX). Uploads use opaque handles, expire after one hour, and have a 250 MiB per-principal aggregate quota by default. Configure MCP_UPLOAD_TTL_SECONDS and MCP_UPLOAD_QUOTA_BYTES as needed. Uploads are MIME-sniffed, archive expansion is bounded, checksums are verified, and MCP_REQUIRE_MALWARE_SCAN=true enforces ClamAV through MCP_CLAMAV_HOST/MCP_CLAMAV_PORT. Raw host paths are absent from the remote catalog and rejected at runtime.

Uploads expire on their own; uploads_list_files lists them a page at a time (limit, cursor). get_mcp_apps_diagnostics (extended tier) reports the UI resource, renderer mode, generated hidden callback addresses, and can run a temporary store/delete self-test with run_self_test=true.

The picker always serves the self-contained renderer bundled in the locked prefab-ui version (every transport, not only the MCPB), so its resource declares no CSP domains and loads nothing from a CDN. uploads_list_files and uploads_read_file are model-only; uploads_store_files and uploads_delete_file are the picker's app-only callbacks.

Requires: an MCP client with MCP Apps/iframe rendering support. Clients without Apps support can still use Google Drive file IDs or trusted local/stdio paths.

Progressive Tool Discovery

Progressive discovery is opt-in. Claude clients search large tool catalogs themselves, so by default every client gets the complete catalog and no search_tools/call_tool layer. For a client without its own tool search, MCP_TOOL_SEARCH=on switches on FastMCP's BM25 Tool Search transform: the model-visible catalog is reduced to the connection and consent tools, search_workspace, the main read entry point of each core service (gmail_search_emails, gmail_get_mail_digest, calendar_search_events, calendar_get_calendar_digest, drive_list_files, tasks_tasks_digest), plus search_tools and call_tool; hidden tools, including the upload picker and diagnostics, remain callable after discovery.

Independently of discovery, HTTP hides namespaces whose OAuth capability is not granted and removes host-filesystem-only tools and parameters. The catalog is sorted and evaluated against the caller's current grants on every request (and re-checked when a tool is called, so a stale catalog cannot run a revoked capability); after a consent, list tools again (get_google_connection_status reports the grants; no notification is sent).

Configuration:

  • MCP_TOOL_SEARCH=off (default): expose the complete catalog.

  • MCP_TOOL_SEARCH=on: enable progressive discovery (for clients without their own tool search).

  • MCP_TOOL_SEARCH=auto: enable progressive discovery unless MCP_CLIENT_MODEL contains claude.

The official MCPB manifest also declares MCP_CLIENT_MODEL=claude, which keeps Claude Desktop on the complete catalog even under auto.

get_google_connection_status reports, besides the user's grants, the active tool tier, enabled namespaces, OAuth capability names, and supported file-input strategies. search_workspace searches Drive (names and content), contacts, and Gmail concurrently and returns normalized hits: Gmail hits carry subject, sender, date and snippet. docs_read_document and drive_read_file return a document or file as text (Docs also as Markdown) in pages, with the same next_offset, body_chars and body_sha256 paging fields as email bodies, so a remote client can read content without the server's filesystem.

connect_google_workspace accepts a capabilities list such as ["drive"], ["gmail", "calendar"], or ["people"]. When omitted it requests Gmail only. Tools build clients with service-specific scopes and return an actionable reconnect error when that capability has not yet been granted. get_google_connection_status accepts an optional capability to verify one grant and reports all currently granted capabilities. Disconnect attempts to revoke the Google grant before deleting encrypted local credentials.

Response and Error Contracts

All model-visible tools publish documented input schemas with closed objects; open input objects are limited to an audited set of genuine Google polymorphic batch maps. Argument size limits (1,000,000 characters per string, 10,000 items per array or properties per object) are enforced on every call but not repeated in the schemas. Every response is normalized by the server (snake_case keys, dates in the account's time zone, people as {name, email}, a resource handle per Workspace item carrying only what the item does not already say) and publishes an open output schema; batch-update tools keep Google's per-request replies inside that envelope. Every list-shaped response (list and search tools, digests, thread reads) carries the same count, has_more, next_page_token and fetched_at fields next to its resource-named list, plus account_timezone when its items carry dates; status appears only on results of changes. Uncaught tool failures use a machine-readable envelope with code, message, retryable, retry_after, executable required_action, provider_status, and field_errors.

Drive, Calendar, and Gemini Drive-media downloads stream through bounded temporary files instead of buffering complete files in memory. MCP_MAX_DOWNLOAD_BYTES controls the per-download ceiling (default 250 MiB, maximum 10 GiB). Setting MCP_REDIS_URL makes prepare/commit records cross-replica and atomic.

MCP Apps (UI Dashboard)

When ENABLE_APPS_DASHBOARD=true, the apps_get_dashboard and apps_get_weekly_calendar_view tools carry _meta.ui.resourceUri pointing to ui://apps/dashboard-ui (the nested key only; the flat ui/resourceUri alias and the old ui://dashboard-ui/apps://dashboard/ui addresses were removed). MCP clients that support the stable MCP Apps protocol (2026-01-26), such as Claude Desktop, embed an interactive workspace dashboard alongside the tool response. The dashboard applies the host's theme, colors, fonts, safe area and container size, and loads nothing from the network (no web fonts, no CDN), so the host's default CSP applies.

The UI is a vanilla TypeScript view built on MCP Apps SDK 2 (@modelcontextprotocol/ext-apps 2.0.3 with the split @modelcontextprotocol/client/core 2.1.0). It talks only to the host through the Apps ui/* channel and:

  • takes the host's tool input/result as the invocation context and never opens a second view while the launch call is opening one; it handles cancellation and teardown and ignores stale or late responses;

  • checks the host's capabilities before optional actions: links, downloads (draft ui/download-file, bounded to 10 MiB inline), "Reply in chat" (ui/message), model context updates and full screen are offered only when supported, and a declined action is reported with a usable alternative instead of forcing another path;

  • offers a write only when the server's operation manifest (_meta["mcp-google-workspace/operations"] on launch results) lists it for your account; without a manifest it only reads;

  • reports tool failures by their typed code and undoes optimistic changes when an action fails.

The two launch tools are visible to the model and the view; the dashboard callbacks (apps_get_state, apps_set_state, apps_patch_state, apps_next_range, apps_prev_range, apps_today, apps_get_event_detail, apps_get_email_detail, apps_get_email_attachment) are app-only. The server still authorizes every call. Details, the capability matrix and the manifest format: docs/RICH_OUTPUTS.md.

It renders:

  • A weekly calendar view (all-day events + timed event columns)

  • An inbox summary with email detail drill-down

  • Scheduling action buttons (RSVP, reschedule, cancel)

Each dashboard view has its own server-side state (current view, anchor date, selected calendars, inbox query, weekend visibility), addressed by a server-issued view handle:

  • apps_get_dashboard or apps_get_weekly_calendar_view called without view_handle opens a new view. The result carries {handle, revision, expires_at, ttl_seconds} in _meta["mcp-google-workspace/view"] (what the Apps UI reads) and as view in the structured content. Pass view_handle to reopen an existing view.

  • apps_get_state, apps_set_state, apps_patch_state, apps_next_range, apps_prev_range, and apps_today require view_handle. Writes accept expected_revision; if the view changed since that revision nothing is written and the call returns a view_state_conflict tool error with the current state (the UI refetches). Without it, the change is applied atomically on top of the latest state.

  • Unknown, expired, malformed, or another user's handles return a view_handle_invalid tool error; the UI then opens one fresh view and retries once.

  • Views expire after MCP_APP_VIEW_TTL_SECONDS of inactivity (default 86400, sliding). State lives in process memory over stdio and in Redis (MCP_REDIS_URL) for the HTTP fleet. Each view is isolated from every other view, including other views of the same user.

Requires: MCP client with App/iframe rendering support.

Progress Notifications

Long-running tools emit incremental notifications/progress messages via ctx.report_progress(current, total, description). Clients that handle progress notifications can display progress bars or status messages during API-heavy operations.

Tools that emit progress:

Namespace

Tools

Drive

upload_file, update_file_content, download_file, export_google_file

Apps

get_dashboard, get_weekly_calendar_view, get_event_detail, get_email_detail, get_email_attachment

Chat

list_spaces, list_messages

Requires: MCP client that handles notifications/progress.

Tool Input Contract

The published JSON Schema is the runtime contract. Send a native JSON object using the documented field names and native arrays/objects. Unknown keys, camelCase aliases, JSON-stringified objects, comma-delimited arrays, and legacy parameter aliases are rejected rather than silently coerced.

Google Keep API limitations

Google Keep API v1 currently exposes create, get, list, and delete for notes, plus permission batch create/delete. It does not expose a direct update/patch endpoint, archive/unarchive endpoints, or dedicated label endpoints in v1. The MCP server returns explicit unsupported responses for those operations.

Marketplace packaging

This repo includes:

  • .claude-plugin/marketplace.json

  • .claude-plugin/plugin.json

and a compatibility manifest at:

  • plugins/google-workspace/.claude-plugin/plugin.json

Reference docs:

Install with Claude Code marketplace

From within Claude Code:

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

Local checkout flow (from this repository root):

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

Optional refresh after updates:

/plugin marketplace update google-workspace-mcp

Claude Desktop JSON (mcpServers)

If you want to run it directly in Claude Desktop without marketplace install, add this to your Claude Desktop config JSON under mcpServers.

Windows config file:

  • %APPDATA%\Claude\claude_desktop_config.json

macOS config file:

  • ~/Library/Application Support/Claude/claude_desktop_config.json

Linux config file:

  • ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "google-workspace": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "c:/path/to/mcp-google-workspace",
        "python",
        "-m",
        "mcp_google_workspace"
      ],
      "env": {
        "ENABLE_APPS_DASHBOARD": "true",
        "ENABLE_KEEP": "false",
        "ENABLE_CHAT": "false",
        "ENABLE_MEET": "false"
      }
    }
  }
}

Replace c:/path/to/mcp-google-workspace with your local repo path.

Tests

uv run pytest -q

This includes the golden wire-contract fixtures (tests/wire/, raw JSON-RPC over HTTP and the in-memory stdio-equivalent transport, modern and legacy) and the feature-flag matrix (tests/test_feature_flag_matrix.py, startup + list + one safe call per optional integration, independently and together). Regenerate the wire fixtures deliberately after a reviewed protocol/behavior change with UPDATE_WIRE_FIXTURES=1 uv run pytest tests/wire.

Verify the packaged MCPB bundle actually runs standalone (build, extract, stdio lifecycle: start, list, a safe call, picker store/list/read/delete, close, reconnect):

uv run python scripts/verify_mcpb_bundle.py

Dashboard browser regression tests (from src/mcp_google_workspace/apps/ui):

npm ci
npx playwright install chromium
npm run build
npm test

These tests embed the generated UI bundle in an AppBridge host with fixture data; Google credentials are not required.

Apps smoke test:

# in-process mode (auto-enables apps namespace)
uv run python scripts/qa_apps_smoke.py

# or against a running Streamable HTTP server
uv run python scripts/qa_apps_smoke.py --http-url http://127.0.0.1:8001/mcp

Existing calendar project reference

Available Tools

82 tools
calendar_create_eventCalendar Create EventA
Destructive

Create an event on one calendar, optionally with guests, a Meet link, reminders, attachments or a recurrence rule. The time is first checked against that calendar's busy times only, and an overlap fails with a conflict error that creates nothing; to plan around other people's calendars use calendar_find_free_time first. Returns status 'ok', event (id, title, start and end in the event's timezone, url, meeting_url, attendees and the other calendar_read_events fields), deduplicated (true when idempotency_key matched an existing event) and warnings, non-empty when the conflict check could not run. An event with guests asks the user to confirm first; they are emailed only as send_updates says.

Inputs: summary (required), end_datetime (required), start_datetime (required), color_id, +16 more. Returns: event, status, warnings, deduplicated

calendar_delete_eventCalendar Delete EventA
DestructiveIdempotent

Delete an event from a calendar. The user is asked to confirm first, and declining returns status 'cancelled' with nothing deleted. Returns status 'ok' and event_id once the event is deleted. Guests are notified of the cancellation as send_updates says.

Inputs: event_id (required), calendar_id, send_updates. Returns: status, event_id

calendar_find_free_timeCalendar Find Free TimeA
Read-onlyIdempotent

Check the free/busy times of up to 50 calendars or people over one window. To test a chosen time, pass it as the window and read all_free; to find meeting times, read suggested_slots, then book with calendar_create_event. Returns all_free (true only when every calendar was read and is free for the whole window), calendars in request order (id, free, null when unreadable, busy periods, errors such as notFound), suggested_slots (start/end within working hours when every readable calendar is free; unreadable ones count as free), total_suggestions and count (both the number of suggested_slots), timezone (the zone of every time) and the window and slot settings used.

Inputs: time_max (required), time_min (required), participants (required), time_zone, +5 more. Returns: count, all_free, time_max, time_min, +8 more

calendar_get_calendar_contextCalendar Get Calendar ContextA
Read-onlyIdempotent

Get the account's Calendar time zone, the current date and time in it, and the user's calendars. Call it before turning relative phrases such as "tomorrow at 3pm" into the times other calendar tools take, or to find a calendar_id other than 'primary'. Returns current_date, current_time, day_of_week, timezone and timezone_name (both the IANA name), utc_offset, current_local_time, current_utc_time (also as utc_datetime), count, has_more (false), next_page_token, fetched_at and calendars: each with id (the calendar_id), name, description, primary, access_role (owner, writer, reader or freeBusyReader), time_zone, hidden and selected (shown in the user's Google Calendar view).

Inputs: include_calendars. Returns: count, has_more, timezone, calendars, +10 more

calendar_get_calendar_digestCalendar Get Calendar DigestA
Read-onlyIdempotent

Summarize the user's upcoming schedule: events on the primary calendar from now until the given number of days ahead, with recurring events expanded. Use it for "what is on my calendar" and pending invitations; for another calendar or a specific window use calendar_search_events. Returns events (compact, earliest first), count, account_timezone, and requires_response: the events whose invitation the user has not answered yet, which calendar_respond_to_event can answer.

Inputs: days, max_results. Returns: count, events, has_more, fetched_at, +4 more

calendar_read_eventsCalendar Read EventsA
Read-onlyIdempotent

Read the full details of one to 100 events from one calendar by ID. Use it after calendar_search_events or calendar_get_calendar_digest when you need the description, guest list or attachments, which those compact results leave out. Returns events with the compact fields plus url, description, attendees (name, email, response_status, optional, organizer, is_self, is_resource), attachments (title, file_url, mime_type and the Drive file_id that drive_download_file takes), recurrence, recurring_event_id, visibility and transparency, and account_timezone (the zone of start and end); IDs that do not exist are listed in missing_event_ids instead of failing the call.

Inputs: event_ids (required), time_zone, calendar_id, max_attendees. Returns: events, calendar_id, missing_count, account_timezone, +1 more

calendar_respond_to_eventCalendar Respond To EventA
Idempotent

Answer an event invitation as the signed-in user: accept, decline or mark tentative. Find unanswered invitations in the requires_response list of calendar_get_calendar_digest; the call fails if the user is not on the event's guest list. Returns status 'ok', event_id, response_status and event (the updated event in the calendar_read_events shape). With the default send_updates 'all', Google notifies the event's guests of the answer.

Inputs: event_id (required), response_status (required), calendar_id, send_updates. Returns: event, status, event_id, response_status

calendar_search_eventsCalendar Search EventsA
Read-onlyIdempotent

Find events on one calendar in a time window, given as a range_preset or explicit time_min/time_max. For the user's upcoming week plus pending invitations use calendar_get_calendar_digest, and for full details of known events use calendar_read_events. Returns compact events (id, title, start and end in the account time zone, all_day, status, organizer, my_response, requires_response, meeting_url, location, is_recurring, updated_at), count, next_page_token, account_timezone and the effective_time_min/effective_time_max that were applied.

Inputs: order_by, time_max, time_min, page_token, +4 more. Returns: count, events, has_more, fetched_at, +5 more

calendar_set_event_attachmentsCalendar Set Event AttachmentsA
DestructiveIdempotent

Add files to and remove files from an existing event's attachments in one change, keeping the others; give add, remove or both. To replace the whole list use calendar_update_event, and to save an attached file use drive_download_file with its file_id. Returns status 'ok', event (the updated event in the calendar_read_events shape), added_count and removed_count (0 when nothing matched). Removing attachments, or a send_updates that emails guests, asks the user to confirm first; declining returns status 'cancelled' with nothing changed.

Inputs: event_id (required), add, remove, calendar_id, +1 more. Returns: event, status, added_count, removed_count

calendar_update_eventCalendar Update EventA
DestructiveIdempotent

Change an existing event: only the fields you pass change, but attendees, attachments and recurrence each replace the whole existing list. When both start_datetime and end_datetime are given, the new time is checked against the calendar's other events and an overlap fails with a conflict error that changes nothing. Changing the guest list or recurrence, or a send_updates that emails guests, asks the user to confirm first. Returns status 'ok', event (the updated event in the calendar_read_events shape, times in timezone or else the account's zone) and warnings, non-empty when the conflict check could not run; guests are notified as send_updates says.

Inputs: event_id (required), summary, color_id, location, +16 more. Returns: event, status, warnings

commit_workspace_actionCommit Workspace ActionA
DestructiveIdempotent

Run the call prepared with prepare_workspace_action, with exactly the bound arguments, at most once; this is the step that carries out a consequential action, so call it only after the user has seen the preview and agreed. A client that can ask the user directly is still asked here. A token that is invalid, expired or another user's is rejected. Returns status 'committed' with tool and the bound tool's result, that tool's error result if it failed, or its confirmation question if it asks one.

Inputs: commit_token (required). Returns: tool, result, status

connect_google_workspaceConnect Google WorkspaceA

Connect the user's Google account, or add services to an existing connection, so Workspace tools can run. In local mode (no remote OAuth callback configured) it runs Google's browser consent flow on the server machine and waits up to 180 seconds by default, unless the stored grant already covers every enabled service. In remote mode it returns a one-time authorization_url, valid for 10 minutes, for the user to open. Returns state, connected and granted_capabilities locally, or authorization_url, expires_at and requested_scopes remotely; after remote consent call get_google_connection_status. If the callback page was blocked, pass the URL the browser ended on as authorization_response.

Inputs: capabilities, authorization_response. Returns: mode, state, action, message, +11 more

disconnect_google_workspaceDisconnect Google WorkspaceA
DestructiveIdempotent

Disconnect the calling user's Google account: revoke the grant at Google and delete this user's stored credentials; other users' connections are untouched. The user is asked to confirm first, and the call returns status 'cancelled' if declined. Returns status 'disconnected' with grant_revoked and revocation_error; the stored credentials are deleted even when revocation fails. Reconnect later with connect_google_workspace.

Inputs: no named parameters. Returns: status, grant_revoked, revocation_error

docs_append_document_textDocs Append Document TextA

Append plain, unformatted text to the end of a Google Docs document. The document_id comes from drive_list_files, search_workspace or docs_create_document; to change existing text use docs_replace_document_text, and for formatting or inserts at a position use docs_batch_update_document (extended tool tier). Returns status 'ok', document_id and revision_id, the document's revision after the append.

Inputs: text (required), document_id (required). Returns: status, document_id, revision_id

docs_create_documentDocs Create DocumentA

Create a new, empty Google Docs document in the root of the user's My Drive. Add text afterwards with docs_append_document_text, or copy an existing document with drive_copy_file instead. Returns status 'ok', document_id (the ID every other docs_ tool takes), title, revision_id and url.

Inputs: title (required). Returns: url, title, status, document_id, +1 more

docs_read_documentDocs Read DocumentA
Read-onlyIdempotent

Read a Google Docs document, every tab in order: 'text' or 'markdown' to read or summarize it, 'outline' for the indices docs_batch_update_document (extended tool tier) needs, 'raw' for Google's Document resource unchanged. Every format returns document_id, title, url and revision_id (null unless the user can edit the document). Text and markdown add format, tabs and one page of body with truncated, next_offset, body_chars and body_sha256; outline adds tabs of content elements (kind, start_index, end_index, text, style) with truncated, next_offset, element_count, outline_chars and outline_sha256; page on with offset=next_offset until it is null. Raw returns the resource in document.

Inputs: document_id (required), format, offset, include_tabs_content, +1 more. Returns: url, body, tabs, title, +12 more

docs_replace_document_textDocs Replace Document TextA
Idempotent

Replace every occurrence of a piece of text in a Google Docs document. The document_id comes from drive_list_files, search_workspace or docs_create_document; to add text use docs_append_document_text, and for formatting or targeted edits use docs_batch_update_document (extended tool tier). Returns status 'ok', document_id, revision_id and occurrences_changed, which is 0 when nothing matched.

Inputs: document_id (required), replace_text (required), contains_text (required), match_case. Returns: status, document_id, revision_id, occurrences_changed

drive_copy_fileDrive Copy FileA

Make a copy of a Drive file, such as duplicating a template Doc or Sheet. To relocate the original instead use drive_move_file, and to rename it drive_update_file_metadata. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it) of the new copy; the source file is unchanged.

Inputs: file_id (required), name, parent_ids, description. Returns: file, status

drive_create_folderDrive Create FolderA

Create a new Drive folder. For other empty files, such as a blank Google Doc, use drive_upload_file with only name and mime_type; to put an existing file into a folder use drive_move_file. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it); use file.id as a parent ID in later calls.

Inputs: name (required), parent_ids. Returns: file, status

drive_delete_fileDrive Delete FileA
DestructiveIdempotent

Delete a Drive file or folder: move it to the trash (default) or delete it permanently. Prefer the default trash mode, which is reversible from Drive's trash; to only revoke someone's access use drive_unshare_file instead. Returns status 'ok' with mode 'trash' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it), or mode 'permanent' and file_id. A permanent delete cannot be undone, asks the user to confirm first and returns status 'cancelled' if they decline.

Inputs: file_id (required), delete_mode. Returns: file, mode, status, file_id

drive_download_fileDrive Download FileA

Save a Drive file to the server's disk: stored files such as PDFs or images are downloaded as they are, and Google Docs, Sheets, Slides and Drawings are exported (PDF by default, PNG for Drawings, or export_mime_type). Calendar event attachments are Drive files, so download them here by their file_id; to read text without saving a file use drive_read_file. Returns status 'ok', file_id, name, mode ('download' or 'export'), mime_type, export_mime_type, saved_to and bytes_written. It writes to the server's filesystem, so it works only when the server runs locally and is rejected with picker_required over remote MCP; Google limits exports to 10 MB.

Inputs: file_id (required), output_path (required), overwrite, export_mime_type, +1 more. Returns: mode, name, status, file_id, +4 more

drive_get_fileDrive Get FileA
Read-onlyIdempotent

Get the metadata of one Drive file or folder by ID, including how its content can be retrieved. To find files by name or filter use drive_list_files; to read a file's text use drive_read_file, and to save or export it drive_download_file. Returns file (id, name, kind, mime_type, size (Drive's string) and size_bytes (the number), created_at, modified_at, owners, last_modified_by, parent_ids, drive_id, web_url, shared, trashed, can_edit, can_download, is_google_native, export_formats: the MIME types a Google-native file can be exported to).

Inputs: file_id (required). Returns: file, account_timezone

drive_list_drivesDrive List DrivesA
Read-onlyIdempotent

List the shared drives the user is a member of, or look up one by drive_id. Use it to get a drive_id for drive_list_files; to search the files inside drives use drive_list_files. Returns drives (id, name, hidden, created_at, org_unit_id; what the user may do: can_add_children, can_edit, can_share, can_manage_members, can_download, can_delete_drive; restrictions: admin_managed_restrictions, domain_users_only, drive_members_only, copy_requires_writer_permission), count and next_page_token.

Inputs: query, drive_id, page_size, page_token. Returns: count, drives, has_more, fetched_at, +1 more

drive_list_filesDrive List FilesA
Read-onlyIdempotent

Search or list Drive files in My Drive, shared with the user and in shared drives, by folder, kind, modification time, full text or a raw Drive query, all combined with AND. For a quick name lookup across Drive, contacts and Gmail at once use search_workspace, and for one known file use drive_get_file. Returns files (id, name, kind, mime_type, modified_at, parent_ids, owners, web_url, trashed, can_edit), count and next_page_token for the next page; trashed files are included unless the query says trashed = false.

Inputs: kind, query, drive_id, order_by, +5 more. Returns: count, files, has_more, fetched_at, +2 more

drive_list_permissionsDrive List PermissionsA
Read-onlyIdempotent

List who has access to a Drive file or folder and at what level, or look up one grant by permission_id. Use it before drive_share_file (update mode) or drive_unshare_file to find the permission_id. Returns permissions (id, type, role, email_address, domain, display_name, allow_file_discovery, pending_owner, expires_at in the account time zone, deleted), count and next_page_token.

Inputs: file_id (required), page_size, page_token, permission_id. Returns: count, has_more, fetched_at, permissions, +1 more

drive_move_fileDrive Move FileA

Move a Drive file or folder to another folder. Drive allows one parent per file, so a move passes the destination in add_parent_ids and the current parent (from drive_get_file) in remove_parent_ids. To rename use drive_update_file_metadata, and to duplicate use drive_copy_file. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it).

Inputs: file_id (required), add_parent_ids, remove_parent_ids. Returns: file, status

drive_read_fileDrive Read FileA
Read-onlyIdempotent

Read the text of one Drive file without saving it, a page of about 8,000 characters at a time: Google Docs and Slides export as text (Docs also as Markdown), Sheets as CSV of the first sheet, and stored text files up to 5 MB (text, Markdown, CSV, JSON, XML, HTML) are downloaded. Binary files, folders, forms and drawings fail with invalid_input; use docs_read_document for a Doc's tabs, chips and footnotes (it renders the document itself, so its body_chars differ from this export's). Returns file_id, name, mime_type, format, exported_as, modified_at, web_url and the page as body, truncated, next_offset (pass it back as offset), body_chars and body_sha256 (length and hash of the whole text).

Inputs: file_id (required), format, offset. Returns: name, format, file_id, web_url, +3 more

drive_share_fileDrive Share FileA
Destructive

Share a Drive file or folder with a person, group, domain or anyone with the link, or with permission_id change an existing grant's role, expiry or discoverability. To revoke access use drive_unshare_file; find permission_id with drive_list_permissions. Returns status 'ok', mode 'created' or 'updated' and permission (id, type, role, email_address, domain, display_name, allow_file_discovery, pending_owner, expires_at; deleted is null), or status 'cancelled' if the user declines. Every share or change asks the user to confirm first, shown who gets which access; Google emails new user and group grantees by default.

Inputs: file_id (required), role, type, domain, +8 more. Returns: mode, status, permission

drive_unshare_fileDrive Unshare FileA
DestructiveIdempotent

Revoke one person's, group's, domain's or link's access to a Drive file or folder. Find the permission_id with drive_list_permissions; to lower access instead of removing it use drive_share_file with permission_id. Returns status 'ok' with file_id and permission_id, or status 'cancelled' if the user declines. It asks the user to confirm first; undo by granting access again with drive_share_file.

Inputs: file_id (required), permission_id (required). Returns: status, file_id, permission_id

drive_update_file_metadataDrive Update File MetadataA
Idempotent

Rename a Drive file or change its description and custom properties. Only the fields you pass change. To move it between folders use drive_move_file, and to replace its content use drive_upload_file with file_id. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it).

Inputs: file_id (required), name, properties, description, +3 more. Returns: file, status

drive_upload_fileDrive Upload FileA

Upload a file to Drive from the Workspace Files picker or a local path, as a new file or, with file_id, as new content of an existing file (same ID, name, folder and sharing). With neither source it creates an empty file from name and mime_type, such as a blank Google Doc in a chosen folder; for folders use drive_create_folder and to rename or set properties drive_update_file_metadata. Returns status 'ok', mode ('create', 'overwrite', 'skipped', 'replace' or 'metadata_only') and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where not reported). Mode 'skipped' returns the same-named file that already exists.

Inputs: name, file_id, if_exists, mime_type, +6 more. Returns: file, mode, reason, status

forms_create_formForms Create FormA

Create a new Google Form with a title and no questions; add questions afterwards with forms_batch_update_form (extended tool tier). Returns status ok, form_id (the ID every other forms_ tool takes), title, document_title, responder_url (the link to share with respondents) and revision_id. Unless unpublished is true, the form is published and accepting responses as soon as it exists.

Inputs: title (required), unpublished, document_title. Returns: title, status, form_id, revision_id, +2 more

forms_get_formForms Get FormA
Read-onlyIdempotent

Read a Google Form's structure: title, description, publish state and every item with its question. The form_id comes from drive_list_files, search_workspace or forms_create_form; for submitted answers use forms_list_form_responses. Returns form_id, title, document_title, description, responder_url, revision_id, linked_spreadsheet_id, is_quiz, published and accepting_responses (both null for legacy forms), count and items, each with item_id, title, description, kind, question_id (for a grid, a list of question_id and row_title), required, question_type and options (choices, or scale bounds and labels). Format raw returns Google's Form instead, paged.

Inputs: form_id (required), format, offset. Returns: form, count, items, title, +15 more

forms_list_form_responsesForms List Form ResponsesA
Read-onlyIdempotent

List the submitted responses of a Google Form one page at a time, or read one of them by response_id. The form_id comes from drive_list_files, search_workspace or forms_create_form; for the questions themselves use forms_get_form. Returns form_id, count, next_page_token, account_timezone and responses, each with id (the response_id), created_at and submitted_at in the account time zone, respondent_email (only when the form collects emails) and answers as question_id, question and values (answer text, or Drive file IDs for uploads). With response_id, responses holds that one response and next_page_token is null.

Inputs: form_id (required), filter, page_size, page_token, +2 more. Returns: count, form_id, has_more, responses, +3 more

forms_set_form_publish_settingsForms Set Form Publish SettingsA
Idempotent

Publish or unpublish a Google Form, or open and close it for responses. For questions and form info use forms_batch_update_form (extended tool tier); the form_id comes from drive_list_files, search_workspace or forms_create_form. Returns status ok, form_id, published and accepting_responses as they stand after the call. Legacy forms, whose forms_get_form result has null published, do not support this.

Inputs: form_id (required), publish_settings (required), update_mask. Returns: status, form_id, published, accepting_responses

get_google_connection_statusGet Google Connection StatusA
Read-onlyIdempotent

Check whether the calling user has a stored Google connection and which services it grants, and what this server offers, without calling Google. Use it before connect_google_workspace, after a consent finishes, or to learn the active tool tier; for remote users tools/list already reflects the current grants, so list tools again after consent. Returns state (connected, refresh_required, missing_scopes, reauth_required, not_connected or error), connected, granted_capabilities, granted_scopes, expires_at, an action hint when the user must reconnect, and server (tool_tier, enabled_namespaces, optional_namespaces, oauth_capabilities, file_inputs, tool_search).

Inputs: capability. Returns: state, action, server, connected, +5 more

gmail_check_mail_updatesGmail Check Mail UpdatesA
Read-onlyIdempotent

Fetch the mail added to the mailbox since a saved checkpoint (since_history_id), or on a cold start since timestamp (the last day without one), received and sent alike with drafts left out, for incremental polling. Use gmail_get_mail_digest for a one-off look at a recent window and gmail_search_emails to search. Returns messages (the digest's fields), count, skipped_deleted_message_ids for mail deleted before it could be read, next_page_token, and next_history_id: the checkpoint to save for the next call, null until the last page. Read bodies with gmail_read_emails.

Inputs: timestamp, page_token, max_results, since_history_id. Returns: count, has_more, messages, fetched_at, +7 more

gmail_deleteGmail DeleteA
DestructiveIdempotent

Delete Gmail messages or one whole conversation: move them to Trash (default) or, with mode 'permanent', delete them for good. Prefer Trash, which gmail_modify_messages with untrash=true can undo; to only hide mail from the inbox, archive it with gmail_modify_messages instead. Returns status 'ok', mode, message_ids or thread_id and processed, or status 'cancelled' if the user declines. Permanent deletion, and trashing 10 or more messages, asks the user to confirm first; permanent deletion cannot be undone. Trashing several messages goes one by one, so a failure part-way leaves the earlier ones in Trash.

Inputs: mode, dry_run, thread_id, message_ids. Returns: mode, status, processed, thread_id, +1 more

gmail_delete_draftGmail Delete DraftA
DestructiveIdempotent

Permanently delete one Gmail draft after asking the user to confirm; it does not go to Trash. To change a draft instead use gmail_save_draft with its draft_id. Returns status 'ok' with the draft_id, or status 'cancelled' if the user declines. Cannot be undone.

Inputs: draft_id (required). Returns: status, draft_id

gmail_download_attachmentGmail Download AttachmentA

Download one attachment of a Gmail message and save it to a file on the server's own filesystem. It works only when the server runs locally (stdio) and is refused over remote MCP; get the attachment's download_id from gmail_read_emails first. Returns status 'ok', saved_to (the path written) and bytes_written. Creates missing parent folders and overwrites an existing file at output_path.

Inputs: message_id (required), output_path (required), attachment_id (required). Returns: status, saved_to, bytes_written

gmail_get_mail_digestGmail Get Mail DigestA
Read-onlyIdempotent

List the mail received and sent in a recent time window (default the last 3 days) as one feed with snippets, with no category or importance filtering; drafts, Spam and Trash are left out. Use it to catch up on recent mail; use gmail_search_emails to find mail by sender, subject or any Gmail query, and gmail_check_mail_updates to poll for new mail since a saved checkpoint. Returns messages (id, thread_id, from, subject, date, snippet, unread, has_attachments, direction 'received' or 'sent'), count, window and account_timezone; there is no next page. Read bodies with gmail_read_emails.

Inputs: window, max_items, unread_only. Returns: count, window, has_more, messages, +3 more

gmail_get_threadGmail Get ThreadA
Read-onlyIdempotent

Read one Gmail conversation by thread ID. The default format 'clean' gives the newest message with its cleaned body plus a one-line summary of each earlier message; 'full', 'metadata' and 'minimal' return Gmail's raw thread resource instead. Use gmail_read_emails to read particular messages in full or continue a truncated body, and gmail_search_emails (group_by_thread=true lists conversations) to find threads. Returns thread_id, count (messages in the thread) and either latest, prior_messages and account_timezone ('clean') or thread (the other formats, whose historyId is Gmail's).

Inputs: thread_id (required), format. Returns: count, latest, thread, has_more, +5 more

gmail_list_draftsGmail List DraftsA
Read-onlyIdempotent

List the account's Gmail drafts a page at a time, or read one draft in full with draft_id. Change a draft with gmail_save_draft and send it with gmail_send_draft. Returns drafts and next_page_token: without draft_id each draft has id, message_id and thread_id only; with draft_id the one draft also has label_ids, date, from, to, cc, bcc, subject, snippet, attachments (with download_id) and, with format 'full', the whole cleaned body text as body with body_chars; fields a format does not read are null.

Inputs: format, draft_id, page_token, max_results, +1 more. Returns: count, drafts, has_more, fetched_at, +2 more

gmail_list_labelsGmail List LabelsA
Read-onlyIdempotent

List every label in the mailbox: system labels (INBOX, SENT, DRAFT, SPAM, TRASH, UNREAD, STARRED, IMPORTANT, CATEGORY_*) and the user's own. The other Gmail tools accept label names directly; use this to see which labels exist, their IDs and types. Returns labels (id, name, type 'system' or 'user', message_list_visibility, label_list_visibility, background_color, text_color) and count.

Inputs: no named parameters. Returns: count, labels, has_more, fetched_at, +1 more

gmail_manage_labelsGmail Manage LabelsA
Destructive

Create, update or delete a Gmail user label. To put labels on mail or take them off use gmail_modify_messages, and to see existing labels gmail_list_labels. Returns status 'ok' and action with label (id, name, type, message_list_visibility, label_list_visibility, background_color, text_color) for create and update, or label_id for delete; status 'cancelled' if the user declines a delete. Deleting asks the user to confirm and cannot be undone; Gmail removes the label from every message, but the messages are kept.

Inputs: action (required), name, label, text_color, +3 more. Returns: label, action, status, label_id

gmail_modify_messagesGmail Modify MessagesA
DestructiveIdempotent

Change the state of Gmail messages or of one whole conversation: add or remove labels by name or ID, mark read or unread, archive or move back to the inbox, report spam or not spam, or restore from Trash, in one call. Use gmail_delete to move mail to Trash or delete it, and gmail_manage_labels to create or rename labels. Returns status 'ok', the label IDs added and removed, untrashed, processed and messages (id, thread_id, label_ids) when Gmail reports them (one message or a thread). Changing 10 or more message_ids asks the user to confirm first.

Inputs: spam, archive, dry_run, untrash, +5 more. Returns: status, messages, processed, thread_id, +4 more

gmail_read_emailsGmail Read EmailsA
Read-onlyIdempotent

Read the content of one to 100 Gmail messages by ID, all at the same detail level. Use it after gmail_search_emails, gmail_get_mail_digest or gmail_check_mail_updates, which return only snippets; gmail_get_thread reads a whole conversation at once. Returns messages (id, thread_id, from, to, subject, date, snippet, label_ids, attachments with filename, mime_type, size and the download_id gmail_download_attachment takes, and, by format, body with truncated and next_offset), missing_count and missing_message_ids for IDs that no longer exist instead of failing the call, account_timezone, and count, has_more (always false), next_page_token and fetched_at.

Inputs: message_ids (required), format, offset, include_html. Returns: count, format, has_more, messages, +5 more

gmail_replyGmail ReplyA
Destructive

Reply to one Gmail message inside its existing thread, to the sender only or with reply_all to everyone on it: the subject is reused and In-Reply-To and References point at that message, leaving out the account's own and send-as addresses (on your own sent mail the original recipients are kept). gmail_send_email starts a new conversation instead, and gmail_save_draft saves mail for review without sending. Returns status 'sent' with mode ('reply' or 'reply_all'), the new message_id, thread_id, to, cc and subject, or status 'cancelled' if the user declines. The user is always asked to approve the reply first, shown its recipients, subject, attachments and body.

Inputs: message_id (required), html_body, reply_all, text_body, +1 more. Returns: cc, to, mode, status, +6 more

gmail_save_draftGmail Save DraftA

Save mail as a Gmail draft without sending it, so the user can review or edit it in Gmail first: a new draft, or with draft_id a full rewrite of an existing one (pass again everything to keep). Send it later with gmail_send_draft; gmail_send_email sends right away, and gmail_reply replies in a thread right away with the reply recipients filled in. Returns status 'ok', mode ('created' or 'updated') and draft: id (the draft_id the other draft tools take), message_id, thread_id and label_ids.

Inputs: subject (required), cc, to, bcc, +5 more. Returns: mode, draft, status

gmail_search_emailsGmail Search EmailsA
Read-onlyIdempotent

Find Gmail messages, or with group_by_thread whole conversations, by a Gmail search query, labels (names or IDs) and helper filters (sender, recipient, subject, unread, attachments, age), ANDed together, a page at a time; Spam and Trash are left out unless include_spam_trash is true. Use gmail_get_mail_digest for a plain recent feed and gmail_check_mail_updates to poll for new mail since a saved checkpoint. Returns messages (id, thread_id, from, subject, date, snippet, unread, has_attachments, is_draft, is_sent) or threads (the same plus message_count), next_page_token, result_size_estimate and effective_query. Read bodies with gmail_read_emails or gmail_get_thread.

Inputs: query, labels, to_email, is_unread, +8 more. Returns: count, threads, has_more, messages, +5 more

gmail_send_draftGmail Send DraftA
Destructive

Send an existing Gmail draft exactly as saved; Gmail removes it from Drafts once sent. Check its content with gmail_list_drafts (draft_id) and change it with gmail_save_draft first; gmail_send_email sends new mail without a draft. Returns status 'sent' with the sent message's message_id, thread_id and label_ids, or status 'cancelled' if the user declines. The user is asked to approve the send first, shown the draft's recipients, subject, attachments and body.

Inputs: draft_id (required). Returns: status, label_ids, thread_id, message_id

gmail_send_emailGmail Send EmailA
Destructive

Compose and send a new Gmail message, with a plain-text and/or HTML body and optional attachments. To answer an existing message inside its thread use gmail_reply; to save mail for review instead of sending it, use gmail_save_draft. Returns status 'sent' with the new message_id, thread_id and label_ids, or status 'cancelled' if the user declines. The user is always asked to approve the send first (recipients, subject, attachments and the body).

Inputs: to (required), subject (required), cc, bcc, +3 more. Returns: status, label_ids, thread_id, message_id

people_create_contactPeople Create ContactA

Create a new contact in the user's Google Contacts; at least one field must be set. To change an existing contact use people_update_contact. Returns status 'ok' and contact, the stored contact: resource_name (the person_name other people_ tools take), etag, name, given_name, family_name, emails, phones, organizations and biography.

Inputs: biography, given_name, family_name, display_name, +3 more. Returns: status, contact

people_delete_contactPeople Delete ContactA
DestructiveIdempotent

Permanently delete one Google contact, found with people_search_contacts. The user is asked to confirm first, and the call returns status 'cancelled' if declined. Returns status 'deleted' with the person_name (people/...). These tools cannot restore a deleted contact.

Inputs: person_name (required). Returns: status, person_name

people_get_contactPeople Get ContactA
Read-onlyIdempotent

Read one Google contact by its resource name, found with people_search_contacts. Use it to fetch the current etag before people_update_contact. Returns contact: resource_name, etag, name, given_name, family_name, emails and phones (each {value, type}), organizations ({name, title}) and biography.

Inputs: person_name (required), sources. Returns: contact

people_manage_contact_groupsPeople Manage Contact GroupsA

Work with the user's contact groups (labels): 'list' pages through them, system groups such as myContacts and starred included; 'create' adds an empty group; 'modify_members' adds and removes contacts (from people_search_contacts) in one group in a single call. Every result echoes action. 'list' returns contact_groups (resource_name, the group_name to pass; name; group_type 'user' or 'system'; member_count), count, total and next_page_token; 'create' returns status 'ok' and contact_group; 'modify_members' returns status 'ok', group_name, not_found and cannot_remove_last_group (both empty when every change applied).

Inputs: action (required), name, page_size, group_name, +3 more. Returns: count, total, action, status, +6 more

people_search_contactsPeople Search ContactsA
Read-onlyIdempotent

Find the user's saved Google contacts whose name, email, phone or organization starts with query, or, without query, list every saved contact page by page (sort_order, page_token). A search returns at most 30 matches in one response with no paging. Returns contacts, each with resource_name (the person_name other people_ tools take; also as id), etag, name, given_name, family_name, emails and phones (each {value, type}), organizations ({name, title}) and biography; plus count, total (all saved contacts, null for a search) and next_page_token (null for a search).

Inputs: query, sources, page_size, page_token, +1 more. Returns: count, total, contacts, has_more, +2 more

people_update_contactPeople Update ContactA
Idempotent

Change fields of an existing Google contact. Only the fields passed are written and each replaces the stored value: list fields replace the whole list, and a name part left out keeps its stored value. Get the current etag first with people_get_contact. Returns status 'ok' and contact, the contact as stored now: resource_name, its new etag (needed for a further update), name, given_name, family_name, emails, phones, organizations and biography.

Inputs: person_name (required), etag, sources, biography, +6 more. Returns: status, contact

prepare_workspace_actionPrepare Workspace ActionA
Read-onlyIdempotent

Preview a consequential call (sending mail, sharing, permanent deletion, forwarding, a bulk change) and bind it to a one-time commit token, for clients that cannot ask the user directly: a direct call of such a tool fails with confirmation_required and names this tool as the next step. Nothing runs here. Returns status 'prepared', action, preview (the exact text to show the user before committing), commit_token, expires_at (epoch seconds, 10 minutes ahead by default) and next_action; a call that needs no consent fails with invalid_input naming the direct call.

Inputs: arguments (required), tool_name (required). Returns: action, status, preview, expires_at, +2 more

resolve_workspace_resourceResolve Workspace ResourceA
Read-onlyIdempotent

Turn a resource URI from an earlier result's resource handle back into a handle with current metadata. Drive files are re-read for a fresh name, mime_type, modified_at (account time zone), web_url and etag, and Gmail messages are checked to still exist; threads, events, contacts and tasks are only parsed, without a Google call. Returns resource and verified (true when Google confirmed the resource exists); pass resource.id to the matching service tool for content.

Inputs: uri (required). Returns: resource, verified

search_workspaceSearch WorkspaceA
Read-onlyIdempotent

Search Drive, the user's saved contacts and Gmail with one query, for a first look when the right service is unclear. Drive matches names and content (name matches first, no shared drives); Gmail takes Gmail query syntax and each hit is read in one metadata request. For full queries and paging use drive_list_files, people_search_contacts or gmail_search_emails. Returns matches (service, id, kind, resource; Drive name, mime_type, modified_at, web_url; contact name, email; Gmail thread_id, subject, from, date, snippet, unread), count, account_timezone and errors per failed service; the call fails only when every service fails.

Inputs: query (required), services, max_results_per_service. Returns: count, query, errors, matches, +5 more

sheets_append_sheet_valuesSheets Append Sheet ValuesA

Append rows below the existing data of a table in a Google Sheets spreadsheet, leaving the current rows in place. To overwrite a known range use sheets_update_sheet_values; the spreadsheet_id comes from drive_list_files, search_workspace or sheets_create_spreadsheet. Returns status ok, spreadsheet_id, table_range (the table that was found, null on an empty sheet), updated_range, updated_rows, updated_columns, updated_cells and updated_values (the written cells with include_values_in_response, else null).

Inputs: values (required), range_a1 (required), spreadsheet_id (required), insert_data_option, +2 more. Returns: status, table_range, updated_rows, updated_cells, +4 more

sheets_create_spreadsheetSheets Create SpreadsheetA

Create a new Google Sheets spreadsheet in the root of the user's My Drive, optionally with named sheets (tabs). Fill it afterwards with sheets_update_sheet_values or sheets_append_sheet_values. Returns status ok, spreadsheet_id (the ID every other sheets_ tool takes), title, url and sheets, each with sheet_id, title and index.

Inputs: title (required), sheet_titles. Returns: url, title, sheets, status, +1 more

sheets_get_spreadsheetSheets Get SpreadsheetA
Read-onlyIdempotent

Read a spreadsheet's structure: its title, locale and every sheet (tab) with its ID and grid size. The spreadsheet_id comes from drive_list_files, search_workspace or sheets_create_spreadsheet; for cell values use sheets_read_sheet_values. Returns spreadsheet_id, title, locale, spreadsheet_time_zone (the file's own setting), url, named_ranges (name, named_range_id, A1 range) and sheets, each with sheet_id, title, index, type, row_count, column_count, frozen_row_count, frozen_column_count and hidden. With include_grid_data each sheet also has values (displayed cell text) and values_start (the cell of values[0][0]), else both are null; format raw returns Google's JSON instead, paged.

Inputs: spreadsheet_id (required), format, offset, ranges, +1 more. Returns: url, title, format, locale, +10 more

sheets_read_sheet_valuesSheets Read Sheet ValuesA
Read-onlyIdempotent

Read the cell values of one or more A1 ranges of a Google Sheets spreadsheet in a single call. The spreadsheet_id comes from drive_list_files, search_workspace or sheets_create_spreadsheet; for the sheet (tab) names and sizes use sheets_get_spreadsheet, and to write cells sheets_update_sheet_values. Returns spreadsheet_id, count and value_ranges, one per requested range in request order (a list even for one range), each with range (the A1 range actually read), major_dimension, values (rows, or columns with major_dimension COLUMNS, without trailing empty rows and cells; [] when the range is empty) and row_count.

Inputs: ranges (required), spreadsheet_id (required), major_dimension, value_render_option, +1 more. Returns: count, value_ranges, spreadsheet_id

sheets_update_sheet_valuesSheets Update Sheet ValuesA
Idempotent

Write values into one A1 range of a Google Sheets spreadsheet, overwriting the cells it covers. To add rows below existing data use sheets_append_sheet_values, and for formatting or tab changes use sheets_batch_update_spreadsheet (extended tool tier); the spreadsheet_id comes from drive_list_files, search_workspace or sheets_create_spreadsheet. Returns status ok, spreadsheet_id, updated_range, updated_rows, updated_columns, updated_cells and updated_values (the written cells with include_values_in_response, else null).

Inputs: values (required), range_a1 (required), spreadsheet_id (required), value_input_option, +1 more. Returns: status, updated_rows, updated_cells, updated_range, +3 more

slides_create_presentationSlides Create PresentationA

Create a new Google Slides presentation in the root of the user's My Drive. Add content with slides_batch_update_presentation (extended tool tier), or copy an existing deck with drive_copy_file and fill its placeholders with slides_replace_text_in_presentation. Returns status ok, presentation_id (the ID every other slides_ tool takes), title, url and slides, each with object_id and index.

Inputs: title (required). Returns: url, title, slides, status, +1 more

slides_get_slide_thumbnailSlides Get Slide ThumbnailA
Read-onlyIdempotent

Render one slide of a Google Slides presentation as an image and return a link to it. Use slides_read_presentation instead to read the slide's text and elements; it also supplies the presentation and slide IDs. Returns content_url, a temporary image URL (valid for about 30 minutes), width and height in pixels, and mime_type.

Inputs: page_object_id (required), presentation_id (required), mime_type, thumbnail_size. Returns: width, height, mime_type, content_url

slides_read_presentationSlides Read PresentationA
Read-onlyIdempotent

Read a Google Slides presentation as an outline: every slide with its title, text, speaker notes and page elements, or with slide_ids only those slides, their elements adding size and position for layout edits. The presentation_id comes from drive_list_files, search_workspace or slides_create_presentation; for a picture of a slide use slides_get_slide_thumbnail. Returns presentation_id, title, revision_id, url, page_size (width_pt, height_pt), count and slides, each with object_id (the page_object_id other slides_ tools take), index, layout, title, text (one shape per line), notes and elements (object_id, type, placeholder, text). Format raw returns Google's JSON instead, paged.

Inputs: presentation_id (required), format, offset, slide_ids. Returns: url, count, pages, title, +11 more

slides_replace_text_in_presentationSlides Replace Text In PresentationA
Idempotent

Replace every occurrence of a piece of text on all slides of a Google Slides presentation, e.g. a template placeholder such as {{name}}. The presentation_id comes from drive_list_files, search_workspace or slides_create_presentation; for any other edit use slides_batch_update_presentation (extended tool tier). Returns status ok, presentation_id and occurrences_changed, the number of replacements (0 when nothing matched).

Inputs: replace_text (required), contains_text (required), presentation_id (required), match_case. Returns: status, presentation_id, occurrences_changed

tasks_create_taskTasks Create TaskA

Add a task to a task list (the default list when tasklist_id is omitted), optionally as a subtask (parent) or right after a sibling (previous). To change, complete or move an existing task use tasks_update_task. Returns status 'ok' and task: id (the task_id for the other tasks tools), title, status ('needsAction' or 'completed'), due_date, is_overdue, completed_at, updated_at, notes_snippet, notes_truncated, parent_id, deleted, hidden and url.

Inputs: title (required), due, notes, parent, +3 more. Returns: task, status

tasks_create_tasklistTasks Create TasklistA

Create a new, empty Google Tasks task list. To add tasks to an existing list use tasks_create_task with its ID from tasks_list_tasklists. Returns status 'ok' and tasklist: id (the tasklist_id for the other tasks tools), title and updated_at (local time).

Inputs: title (required). Returns: status, tasklist

tasks_delete_taskTasks Delete TaskA
DestructiveIdempotent

Delete a task from its task list (the default list when tasklist_id is omitted) after the user confirms. To only mark it done use tasks_update_task with status 'completed'. Returns status 'deleted' with task_id and tasklist_id; declining returns status 'cancelled' with nothing deleted.

Inputs: task_id (required), tasklist_id. Returns: status, task_id, tasklist_id

tasks_list_tasklistsTasks List TasklistsA
Read-onlyIdempotent

List the user's Google Tasks task lists, or look up one list by tasklist_id. Call it to get the tasklist_id the other tasks tools take ('@default' also selects the default list); for the tasks in a list use tasks_list_tasks. Returns tasklists (id, title, updated_at in local time), count, next_page_token when more lists remain, and account_timezone.

Inputs: page_token, max_results, tasklist_id. Returns: count, has_more, tasklists, fetched_at, +2 more

tasks_list_tasksTasks List TasksA
Read-onlyIdempotent

List the tasks in one task list (the default list when tasklist_id is omitted), filtered by due date, completion or update time, or read one task by task_id. For a triage view of open work grouped by overdue, upcoming and unscheduled use tasks_tasks_digest. Returns tasklist_id (the list's real ID when Google reports it), tasks (id, title, status, due_date, is_overdue, completed_at and updated_at in local time, notes_snippet, notes_truncated, parent_id, deleted, hidden, url), count, next_page_token when more tasks remain, and account_timezone.

Inputs: due_max, due_min, task_id, page_token, +9 more. Returns: count, tasks, has_more, fetched_at, +3 more

tasks_tasks_digestTasks DigestA
Read-onlyIdempotent

Triage one task list's open tasks into overdue, upcoming and unscheduled work; it reads the default list unless tasklist_id names another one from tasks_list_tasklists. For completed tasks or custom filters use tasks_list_tasks. Returns overdue (due before today in the account time zone), upcoming (due from today through the window, soonest first) and unscheduled (no due date), each a list of tasks shaped as in tasks_list_tasks, plus count (tasks in the three groups), tasklist_id (the list's real ID when Google reports it), window_days and account_timezone.

Inputs: days, max_results, tasklist_id. Returns: count, overdue, has_more, upcoming, +6 more

tasks_update_taskTasks Update TaskA
DestructiveIdempotent

Change an existing task: edit its fields, mark it done (status 'completed') or reopen it, move it within its list (parent, previous, move_to_top) or to another list (destination_tasklist_id). Only what you pass changes and at least one change is required; a move runs first, then the field changes on the list the task ends up in. Returns status 'ok' and task, shaped as in tasks_list_tasks: id, title, status, due_date, is_overdue, completed_at, updated_at, notes_snippet, notes_truncated, parent_id, deleted, hidden and url. Flagging the task deleted asks the user to confirm first.

Inputs: task_id (required), due, notes, title, +9 more. Returns: task, status

uploads_delete_fileUploads Delete FileA
Idempotent

App-only callback that permanently deletes one of the user's Workspace Files uploads from the MCP server's temporary upload area, freeing quota before the upload expires; Google Drive is not touched (for Drive files use drive_delete_file). Models cannot call it: uploads expire on their own, and the extended tier's get_mcp_apps_diagnostics uses it for its self-test. Returns status 'deleted', or 'not_found' when the ID is unknown or already expired, with the name.

Inputs: name (required). Returns: name, status

uploads_file_managerUploads File ManagerA
Read-onlyIdempotent

Open the Workspace Files picker so the user can upload files from their device to this MCP server's temporary upload area (not Google Drive), at most 25 MiB per file, kept for one hour by default. Use it when a tool needs a file the user has and the server cannot read local paths; after the user uploads, get the upl_... IDs from uploads_list_files and pass one as uploaded_file to a tool such as gmail_send_email (attachments) or drive_upload_file. Returns the picker UI for an MCP Apps host, whose state.stored lists uploads already staged.

Inputs: no named parameters. Returns: view, _meta, state, $prefab

uploads_list_filesUploads List FilesA
Read-onlyIdempotent

List the user's Workspace Files uploads from uploads_file_manager, newest first, a page at a time; they are staged on the MCP server, not in Google Drive (for Drive use drive_list_files). Pass an upload_id as uploaded_file to drive_upload_file, the attachments of gmail_send_email, gmail_reply and gmail_save_draft, or the Gemini media tools. Returns files (upload_id, display_name, type, size, uploaded_at, expires_at, remaining_quota_bytes, ...), count, next_cursor, which is null once a page comes back short, and the same cursor as next_page_token with has_more and fetched_at.

Inputs: limit, cursor. Returns: count, files, has_more, fetched_at, +2 more

uploads_read_fileUploads Read FileA
Read-onlyIdempotent

Read the content of one Workspace Files upload by its upload ID, to check what the user uploaded. Files stored with a text/ MIME type come back whole as UTF-8 text; any other file returns only a base64 preview of its first 150 bytes, so pass binary files to the consuming tool (e.g. drive_upload_file) instead. Returns name (the original filename), type, size, and content or content_base64 with encoding and truncated.

Inputs: name (required). Returns: result

uploads_store_filesUploads Store FilesA

Upload callback that the Workspace Files picker UI calls with the files the user selected; it is app-only (hidden from the model), and models should open uploads_file_manager instead. Each file is base64-decoded, limited to 25 MiB, checked against its declared type and stored for one hour by default within the user's upload quota. Returns the user's stored uploads, newest first, with upload_id, display_name, type, size and expires_at.

Inputs: files (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 82 tools

    Disambiguation4/5

    Most tools have clearly distinct service+resource+action purposes, and the descriptions explicitly direct agents between similar operations. Some retrieval overlaps remain, especially Gmail search/digest/check versus search_workspace and drive_read_file versus docs_read_document, so the agent must read descriptions carefully.

    Naming Consistency4/5

    The set is overwhelmingly snake_case with predictable service prefixes such as gmail_, calendar_, drive_, docs_, sheets_, slides_, forms_, tasks_, and people_. Minor deviations exist, such as connect_google_workspace, tasks_tasks_digest, and some app-only upload callbacks, but the pattern remains readable.

    Tool Count1/5

    With 82 tools, the surface is far beyond the recommended 3-15 range and creates substantial selection and maintenance overhead. Even for a broad Google Workspace suite, this is an extreme tool count that should be split or tiered more aggressively.

    Completeness3/5

    Core CRUD and lifecycle coverage exists across Gmail, Calendar, Drive, Docs, Sheets, Slides, Forms, Tasks, and People. However, important operations are missing or delegated to a mentioned but absent extended tier, including form question editing, slide content insertion, sheet formatting/tab changes, tasklist update/delete, and Gmail forwarding.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      An MCP server for automating Google Workspace applications including Sheets, Apps Script, Drive, Docs, and Gmail. It enables users to manipulate spreadsheets, edit scripts, manage files, and send emails directly from conversational AI interfaces.
      31
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A complete MCP server integrating Gmail and Google Docs, enabling email management (list, send, search, reply) and document operations (create, edit, search, share) through natural language.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that enables AI assistants to manage Google Workspace (Gmail and Calendar) through natural language, including reading/sending emails, managing events, and checking availability.
      -