# Google Workspace (gsuite-sdk) [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/PabloAlaniz/google-suite  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/google-workspace-gsuite-sdk

## Description
Gmail, Calendar, Drive, Sheets, Tasks and Contacts for agents, with your own Google login

## Tools
Capabilities this server exposes over MCP:

- **auth_status** — Whether the server has a valid Google login, and for which account and scopes.
- **gmail_search** — Search Gmail with Gmail query syntax (from:, to:, subject:, is:unread,
        has:attachment, newer_than:7d, label:...). Returns summaries without bodies.
        
- **gmail_read** — Read one email: headers, text body and attachment list.
- **gmail_send** — Send an email. Confirm recipients and content with the user first.
- **gmail_reply** — Reply in the thread of a message. Confirm the content with the user first.
- **gmail_create_draft** — Save a draft without sending it (safe way to propose an email).
- **gmail_read_thread** — Read a whole conversation: every message with its text body, oldest first.
        Messages carry their `thread_id`, so search or read a message first.
        
- **gmail_list_labels** — Every label (system and user) with its ID and unread counts.
- **gmail_list_drafts** — Saved drafts as summaries with their `draft_id`.
- **gmail_modify_labels** — Add or remove labels on messages; labels are names or IDs. Recipes:
        archive = remove ["INBOX"]; mark read = remove ["UNREAD"]; mark unread =
        add ["UNREAD"]; star = add ["STARRED"]; file = add ["Work"]. Use
        gmail_trash to delete.
        
- **gmail_forward** — Forward a message with an optional note above it. Confirm recipients
        with the user first.
        
- **gmail_send_draft** — Send a saved draft. Confirm with the user first.
- **gmail_create_label** — Create a label; "Parent/Child" nests it.
- **gmail_trash** — Move messages to the trash (Gmail empties it after 30 days). Confirm
        with the user first.
        
- **gmail_delete_draft** — Discard a draft for good.
- **calendar_list_events** — Events from now until `days` ahead.
- **calendar_create_event** — Create an event. `start`/`end` are ISO; a date alone makes an all-day event.
        `meet` adds a Google Meet link; `send_updates="all"` emails the attendees
        (confirm with the user first).
        
- **calendar_delete_event** — Delete an event. Confirm with the user first.
- **calendar_free_busy** — Busy intervals per calendar (default: the user's) between two ISO datetimes.
- **drive_search** — Find files by name (contains) or with a raw Drive query
        (e.g. "mimeType = 'application/pdf' and modifiedTime > '2026-01-01'").
        
- **drive_read_file** — Text of a file: Google Docs/Slides as text, Google Sheets as CSV, and
        plain-text files as they are. Binary files (PDF, images) are refused.
        
- **drive_upload** — Upload a local file (path on the machine running this server).
- **drive_share** — Share a file with a person (email) or with anyone who has the link
        (anyone=true). Confirm with the user first.
        
- **sheets_read** — Read a range. `spreadsheet` is a URL, an ID or an exact title; `sheet`
        is the tab (default: the first one). Values come back as displayed.
        
- **sheets_append** — Append rows after the last one with data.
- **sheets_update** — Overwrite a range starting at `range` (e.g. "B2") with a 2D list of values.
- **sheets_upsert** — Update the rows whose `key` column matches and append the rest.
        The first row of the sheet is the header; rows are {column: value}.
        
- **tasks_list** — Tasks of a list (default: the user's main list), pending only unless
        show_completed. Needs the Tasks scope.
        
- **tasks_add** — Create a task (a subtask when `parent` is a task ID). `due` is a day.
- **tasks_complete** — Mark a task as completed.
- **contacts_search** — Contacts whose name, email, phone or company starts with `query`
        (max 30). Needs the Contacts scope.
        
- **contacts_get** — One contact by ID ("c123" or "people/c123").
- **contacts_list_groups** — Contact groups (labels) with their member counts.

        System groups such as "myContacts" are included.
        
- **contacts_group_members** — The contacts in a group (ID like "a1b2" or "contactGroups/a1b2").
- **contacts_create_group** — Create a contact group (label).
- **contacts_modify_group** — Add contacts to a group and/or remove them (contact IDs).

        Removing keeps the contact. `skipped` lists contacts Google left as they were.
        
- **contacts_delete_group** — Delete a contact group; its contacts stay. Confirm with the user first.
- **searchconsole_list_sites** — Search Console properties the user can see (siteUrl, permissionLevel).
        Domain properties look like "sc-domain:example.com".
        
- **searchconsole_query** — Search analytics: clicks, impressions, ctr and position, grouped by
        `dimensions` (each row's `keys` maps dimension -> value). Dates are ISO
        days (data lags ~2-3 days). `filters` are ANDed:
        [{"dimension": "query", "operator": "contains", "expression": "shoes"}];
        operators: equals, notEquals, contains, notContains, includingRegex, excludingRegex.
        `row_limit` max 25000.
        
- **searchconsole_inspect_url** — URL Inspection: Google index status, coverage, canonical and last
        crawl for one URL of a property; `raw` has the full result (mobile
        usability, rich results).
        
- **searchconsole_list_sitemaps** — Sitemaps submitted for a property, with status, errors and warnings.
- **analytics_account_summaries** — GA4 accounts with their properties (use it to find property IDs).
- **analytics_list_properties** — GA4 properties of an account ("123" or "accounts/123").
- **analytics_run_report** — GA4 Data API runReport. Metrics e.g. activeUsers, sessions,
        screenPageViews, conversions; dimensions e.g. date, country, pagePath,
        sessionSource. Dates: ISO days or today/yesterday/NdaysAgo; `date_ranges`
        ([[start, end], ...]) overrides start/end. Filters are ANDed:
        {"field": "country", "value": "Argentina"}, {"field": .., "operator":
        "CONTAINS", "value": ..}, {"field": .., "values": [..]}, numeric
        {"field": "sessions", "operator": "GREATER_THAN", "value": 10}; "not": true negates.
        Each row has `dimensions` (name -> value) and numeric `metrics`.
        
- **analytics_run_realtime_report** — GA4 realtime report (last 30 minutes). Default metric activeUsers;
        dimensions e.g. country, unifiedScreenName, deviceCategory.
        
- **tagmanager_list_accounts** — Tag Manager accounts (path like "accounts/123").
- **tagmanager_list_containers** — Containers of an account ("accounts/123"), with their public GTM-XXXX id.
- **tagmanager_list_workspaces** — Workspaces of a container ("accounts/123/containers/456").
- **tagmanager_list_tags** — Tags of a workspace ("accounts/1/containers/2/workspaces/3").
- **tagmanager_list_triggers** — Triggers of a workspace ("accounts/1/containers/2/workspaces/3").
- **tagmanager_list_variables** — Variables of a workspace ("accounts/1/containers/2/workspaces/3").
- **tagmanager_list_versions** — Version headers of a container ("accounts/123/containers/456").

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "google-workspace-gsuite-sdk": {
    "command": "uvx",
    "args": ["gsuite-mcp"]
  }
}
```

## Documentation

## What Google Workspace (gsuite-sdk) does

Google Workspace (gsuite-sdk) exposes selected Google Workspace operations to agents through MCP. Its toolset covers Gmail, Calendar, Drive, Sheets, and Google Tasks, using the user's Google login for access. The package also provides a broader Python SDK, REST API, and CLI, but the MCP capabilities are centered on the services and operations listed below.

Gmail tools support query-based message search, reading individual messages or complete threads, listing labels and drafts, creating and managing labels, and changing message labels. Agents can create drafts, send or reply to messages, forward them, send saved drafts, and move messages to the trash. Sending, sharing, deletion, and other consequential actions require confirmation in the relevant tool workflows.

## How it works

Authentication uses Google OAuth and can report whether a valid login exists, which account is active, and which scopes are available. A token store can hold multiple named accounts; account selection uses an account name, with the default account used when none is specified.

Calendar tools list upcoming events, create or delete events, and return free/busy intervals. Event creation accepts ISO timestamps, supports all-day dates, can add a Google Meet link, and can email attendees when configured to send updates.

Drive search accepts a filename fragment or a raw Google Drive query. Text can be read from Google Docs, Google Slides, Google Sheets, and plain-text files. Sheets can be addressed by URL, ID, or exact title, and ranges return displayed values. Task tools list pending or completed tasks, create tasks or subtasks, and mark tasks complete.

## Setup and configuration

Install the Python package with `pip install gsuite-sdk`. Google OAuth credentials from Google Cloud Console are required for interactive login. The SDK also supports service-account authentication, although the MCP workflows are described around a user's Google login.

Tasks require the Tasks scope and the Google Tasks API enabled in the Cloud project. The package's default login does not include the Tasks scope, so it must be requested during authentication. Token storage can use the operating system keyring with the package's optional keyring dependency. Named accounts can be selected through the account configuration used by the SDK.

## Tools and capabilities

- Check authentication state and available scopes with `auth_status`.
- Search Gmail using operators such as `from:`, `is:unread`, `has:attachment`, date filters, and labels.
- Read messages and threads, including text bodies and attachment lists.
- Draft, send, reply to, forward, label, archive, star, and trash Gmail messages.
- List, create, update, append, and upsert Google Sheets data.
- Search Drive, read supported text content, upload local files, and share files.
- List, create, delete, and check availability for Calendar events.
- List, add, and complete Google Tasks.

## Limitations and notes

Gmail search returns message summaries; message bodies require a separate read operation. Drive text reading refuses binary files such as PDFs and images. Uploads use a path on the machine running the server. Sheets upserts use the first row as column headers, and task listing defaults to pending tasks. Actions that send messages, notify attendees, delete or trash content, or change sharing are confirmation-sensitive.

_Full upstream README: https://allmcps.com/mcp/google-workspace-gsuite-sdk/readme_

