Feedback

Basic information

Runtime
Python
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
taylorwilsdon
Submitted by
Community
Quality
55
Stars
2.8K

About Google Workspace MCP Server

Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search, and Drive with AI.

Google Workspace MCP is a MCP server in the Productivity category listed in the AddMCP.net directory, published by taylorwilsdon. It exposes 120 tools, including start_google_auth, search_gmail_messages, get_gmail_message_content, get_gmail_messages_content_batch and more. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 2,798 GitHub stars. Source code is hosted on github.com. Related topics: ai, chatgpt, claude, claude-code, claude-desktop.

Setup

{
    "mcpServers": {
        "google-workspace": {
            "command": "npx",
            "args": [
                "-y",
                "google-workspace-mcp@latest"
            ],
            "env": {
                "GOOGLE_CLIENT_ID": "<YOUR_CLIENT_ID>",
                "GOOGLE_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
                "GOOGLE_REDIRECT_URI": "http://localhost:4100/code"
            }
        }
    }
}

Google Workspace MCP config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "google-workspace": {
            "command": "npx",
            "args": [
                "-y",
                "google-workspace-mcp@latest"
            ],
            "env": {
                "GOOGLE_CLIENT_ID": "<YOUR_CLIENT_ID>",
                "GOOGLE_CLIENT_SECRET": "<YOUR_CLIENT_SECRET>",
                "GOOGLE_REDIRECT_URI": "http://localhost:4100/code"
            }
        }
    }
}

Google Workspace MCP tools

  • start_google_auth — Manually initiate Google OAuth authentication flow. NOTE: This is a legacy OAuth 2.0 tool and is disabled when OAuth 2.1 is enabled. The authentication system automatically handles credential checks and prompts for authentication when needed. Only use this tool if: 1. You nee...
  • search_gmail_messages — Searches messages in a user's Gmail account based on a query. Returns both Message IDs and Thread IDs for each found message, along with Gmail web interface links for manual verification. Supports pagination via page_token parameter.
  • get_gmail_message_content — Retrieves the full content (subject, sender, recipients, body) of a specific Gmail message. Bodies are returned inline and truncated at 20,000 characters. Set full=True to get the complete, untruncated message instead: it is exported to storage and the response carries a shor...
  • get_gmail_messages_content_batch — Retrieves the content of multiple Gmail messages in a single batch request. Supports up to 25 messages per batch to prevent SSL connection exhaustion.
  • get_gmail_attachment_content — Downloads an email attachment and saves it to local disk. In stdio mode, returns the local file path for direct access. In HTTP mode, returns a temporary download URL (valid for 1 hour). May re-fetch message metadata to resolve filename and MIME type.
  • send_gmail_message — Sends an email using the user's Gmail account. Supports new emails, replies, and forwards, with optional attachments. Supports Gmail's "Send As" feature to send from configured alias addresses. To forward an existing message, pass forward_message_id. The original subject, bod...
  • draft_gmail_message — Creates a draft email in the user's Gmail account. Supports new, reply, and forward drafts with optional attachments. Supports Gmail's "Send As" feature to draft from configured alias addresses. To save a forward as a draft for review, pass forward_message_id. The original su...
  • get_gmail_thread_content — Retrieves the complete content of a Gmail conversation thread, including all messages. Optionally also returns structured ownership analysis so a caller can determine who sent the last message and who owes whom a response without re-parsing the formatted string or making a se...
  • get_gmail_threads_content_batch — Retrieves the content of multiple Gmail threads in a single batch request. Supports up to 25 threads per batch to prevent SSL connection exhaustion.
  • list_gmail_labels — Lists labels in the user's Gmail account.
  • manage_gmail_label — Manages Gmail labels: create, update, or delete labels.
  • list_gmail_filters — Lists all Gmail filters configured in the user's mailbox.
  • manage_gmail_filter — Manages Gmail filters: create, delete, update, and apply to existing mail. - update: Gmail has no filter update API, so the filter is recreated (new one first, then the old one is deleted) and its ID changes. A passed criteria or filter_action replaces that whole object; ...
  • modify_gmail_message_labels — Adds or removes labels from a Gmail message. To archive an email, remove the INBOX label. To delete an email, add the TRASH label.
  • batch_modify_gmail_message_labels — Adds or removes labels from multiple Gmail messages in a single batch request, or from whole conversations via thread_ids. message_ids takes MESSAGE ids. Gmail's batch endpoint returns no per-message result and silently ignores ids it does not recognise, so by default this re...
  • search_drive_files — Searches for files and folders within a user's Google Drive, including shared drives.
  • get_drive_file_content — Retrieves the content of a specific Google Drive file by ID, supporting files in shared drives. • Native Google Docs, Sheets, Slides → exported as text / CSV. • Office files (.docx, .xlsx, .pptx) → unzipped & parsed with std-lib to extract readable text. • PDFs �...
  • get_drive_file_download_url — Downloads a Google Drive file and saves it to local disk. In stdio mode, returns the local file path for direct access. In HTTP mode, returns a temporary download URL (valid for 1 hour). In stateless mode (no file storage), returns the file itself as an embedded resource, up ...
  • list_drive_items — Lists files/folders or shared drive containers, supporting shared drives. If `drive_id` is specified, lists items within that shared drive. `folder_id` is then relative to that drive (or use drive_id as folder_id for root). If `drive_id` is not specified, lists items from user...
  • create_drive_folder — Creates a new folder in Google Drive, supporting creation within shared drives.
  • create_drive_file — Creates a new file in Google Drive, supporting creation within shared drives. Accepts direct text content, inline base64 bytes, or a fileUrl to fetch content from. Where local file access is disabled it can instead return an upload URL for the caller to PUT file bytes to. This...
  • import_to_google_doc — Imports a file (Markdown, DOCX, TXT, HTML, RTF, ODT) into Google Docs format with automatic conversion. Google Drive automatically converts the source file to native Google Docs format, preserving formatting like headings, lists, bold, italic, etc. Binary sources may be passe...
  • import_to_google_slides — Imports a presentation (PPTX, PPT, ODP) into Google Slides format with automatic conversion. Google Drive automatically converts the source presentation to native Google Slides format, preserving slides, layouts, text, and images. Binary sources may be passed directly as base...
  • import_to_google_sheets — Imports a spreadsheet (XLSX, XLS, ODS, CSV, TSV) into Google Sheets format with automatic conversion. Google Drive automatically converts the source spreadsheet to native Google Sheets format, preserving rows, columns, sheets, and values. Binary sources may be passed directly...
  • get_drive_file_permissions — Gets detailed metadata about a Google Drive file including sharing permissions, parent folder IDs, ownership, and lifecycle timestamps.
  • check_drive_file_public_access — Searches for a file by name and checks if it has public link sharing enabled.
  • update_drive_file — Updates metadata, properties, and/or content of a Google Drive file. Providing new content (inline as ``content``, fetched from ``file_url``, or on a local server read from a file path) replaces the file's content in place, preserving the existing file ID, sharing, comments, ...
  • get_drive_shareable_link — Gets the shareable link for a Google Drive file or folder.
  • manage_drive_access — Consolidated tool for managing Google Drive file and folder access permissions. Supports granting, batch-granting, updating, revoking permissions, and transferring file ownership -- all through a single entry point.
  • copy_drive_file — Creates a copy of an existing Google Drive file. This tool copies the template document to a new location with an optional new name. The copy maintains all formatting and content from the original file.
  • set_drive_file_permissions — Sets file-level sharing settings and controls link sharing for a Google Drive file or folder. This is a high-level tool for the most common permission changes. Use this to toggle "anyone with the link" access or configure file-level sharing behavior. For managing individual u...
  • list_calendars — Retrieves a list of calendars accessible to the authenticated user.
  • get_events — Retrieves events from a specified Google Calendar. Can retrieve a single event by ID or multiple events within a time range. You can also search for events by keyword by supplying the optional "query" param.
  • manage_event — Manages calendar events. Supports creating, updating, deleting, and RSVP.
  • manage_out_of_office — Manages Out of Office events on Google Calendar. These special events auto-decline meeting invitations and set the user's status to "Out of office" across Google Workspace.
  • manage_focus_time — Manages Focus Time events on Google Calendar. These special events auto-decline meeting invitations and, by default, set the user's chat status to Do Not Disturb, helping protect blocks of uninterrupted work time.
  • query_freebusy — Returns free/busy information for a set of calendars.
  • create_calendar — Creates a new secondary Google Calendar.
  • search_docs — Searches for Google Docs by name using Drive API (mimeType filter).
  • get_doc_content — Retrieves content of a Google Doc or a Drive file (like .docx) identified by document_id. - Native Google Docs: Fetches content via Docs API. - Office files (.docx, etc.) stored in Drive: Downloads via Drive API and extracts text. By default, native Google Docs text is index-...
  • list_docs_in_folder — Lists Google Docs within a specific Drive folder.
  • create_doc — Creates a new Google Doc and optionally inserts initial content. `content` is inserted as plain text (Markdown is not rendered); use import_to_google_doc to create a doc from Markdown. After creation, the document body starts at index 1. A new empty doc has total length 2 (o...
  • modify_doc_text — Modifies text in a Google Doc - can insert/replace text and/or apply formatting in a single operation. TIP: To append text to the end of the document without calculating indices, set end_of_segment=true. This avoids index calculation errors. For ordinary header/footer text, ...
  • find_and_replace_doc — Finds and replaces text throughout a Google Doc. No index calculation required. This is the safest way to update specific text in a document because it does not require knowing any indices. Use this tool when you need to: - Replace placeholder text (e.g., {{TITLE}}) with real...
  • insert_doc_elements — Inserts structural elements like tables, lists, or page breaks into a Google Doc.
  • insert_doc_image — Inserts an image into a Google Doc from Drive or a URL.
  • update_doc_headers_footers — Safely creates or updates header/footer text in a Google Doc. This is the default tool for header/footer content. Do NOT use batch_update_doc with create_header_footer just to set header/footer text; that low-level operation is only for advanced section-break workflows and ca...
  • batch_update_doc — Executes multiple low-level document operations in a single atomic batch update. For normal header/footer text, prefer update_doc_headers_footers. Only use create_header_footer here for advanced section-break layouts. RECOMMENDED WORKFLOW FOR BUILDING DOCUMENTS: ============...
  • inspect_doc_structure — Essential tool for finding safe insertion points and understanding document structure. USE THIS FOR: - Finding the correct index for table insertion - Understanding document layout before making changes - Locating existing tables and their positions - Getting document statist...
  • debug_docs_runtime_info — Return runtime/source information for diagnosing stale MCP server instances. This is a temporary diagnostic tool intended to verify which code checkout the running MCP server has loaded.
  • create_table_with_data — Creates a table and populates it with data in one reliable operation. CRITICAL: YOU MUST CALL inspect_doc_structure FIRST TO GET THE INDEX! MANDATORY WORKFLOW - DO THESE STEPS IN ORDER: Step 1: ALWAYS call inspect_doc_structure first Step 2: Use the 'total_length' value fro...
  • debug_table_structure — ESSENTIAL DEBUGGING TOOL - Use this whenever tables don't work as expected. USE THIS IMMEDIATELY WHEN: - Table population put data in wrong cells - You get "table not found" errors - Data appears concatenated in first cell - Need to understand existing table structure - Plann...
  • export_doc_to_pdf — Exports a Google Doc to PDF format and saves it to Google Drive.
  • update_paragraph_style — Apply paragraph-level formatting, heading styles, and/or list formatting to a range in a Google Doc. This tool can apply named heading styles (H1-H6) for semantic document structure, create bulleted or numbered lists with nested indentation, and customize paragraph properties...
  • get_doc_as_markdown — Reads a Google Doc and returns it as clean Markdown with optional comment context. Unlike get_doc_content which returns plain text, this tool preserves document formatting as Markdown: headings, bold/italic/strikethrough, links, code spans, ordered/unordered lists with nestin...
  • manage_doc_tab — Manage document tabs: create, rename, delete, or populate from Markdown.
  • list_document_comments — List all comments from a Google Document (optional max_comments to limit results).
  • manage_document_comment — Manage comments on a Google Document.
  • list_spreadsheets — Lists spreadsheets from Google Drive that the user has access to.
  • get_spreadsheet_info — Gets information about a specific spreadsheet including its sheets.
  • read_sheet_values — Reads values from a specific range in a Google Sheet.
  • modify_sheet_values — Modifies values in a specific range of a Google Sheet - can write, update, or clear values, or insert Smart Chips (Drive files/folders or People).
  • format_sheet_range — Applies formatting to a range: colors, number formats, text wrapping, alignment, text styling, cell merging/unmerging, borders, and dropdown lists. Colors accept hex strings (#RRGGBB). Number formats follow Sheets types (e.g., NUMBER, CURRENCY, DATE, PERCENT). If no sheet nam...
  • manage_conditional_formatting — Manages conditional formatting rules on a Google Sheet. Supports adding, updating, and deleting conditional formatting rules via a single tool.
  • create_spreadsheet — Creates a new Google Spreadsheet.
  • create_sheet — Creates a new sheet or duplicates an existing sheet (user_google_email: str, spreadsheet_id: str, sheet_name: Optional[str] = None, source_sheet_name: Optional[str] = None, insert_sheet_index: Optional[int] = None).
  • list_sheet_tables — Lists all structured tables in a spreadsheet with their IDs, names, ranges, and column details. Use this to find table IDs for append_table_rows.
  • append_table_rows — Appends rows to a structured table in a Google Sheet. The rows are added to the end of the table body, automatically extending the table range. Use list_sheet_tables first to find the table ID.
  • manage_sheet_tab — Manages an existing sheet tab: rename, delete, hide, unhide, reorder, or style (tab color and gridlines). Use create_sheet to add a tab, and resize_sheet_dimensions for row and column level changes. This tool operates on the tab itself.
  • resize_sheet_dimensions — Manages sheet-level dimension properties: resize columns/rows, auto-resize to fit content, freeze rows/columns, hide/unhide rows/columns, and insert/delete rows/columns.
  • move_sheet_rows — Moves rows from one sheet to another within the same spreadsheet. The move is performed in a single batchUpdate (copyPaste followed by deleteDimension). Note: batchUpdate executes requests sequentially but does not roll back on partial failure — if the copy succeeds but the ...
  • manage_named_range — Manages the lifecycle of named ranges in a Google Sheet: list, create, update, or delete.
  • list_spreadsheet_comments — List all comments from a Google Spreadsheet (optional max_comments to limit results).
  • manage_spreadsheet_comment — Manage comments on a Google Spreadsheet.
  • list_spaces — Lists Google Chat spaces (rooms and direct messages) accessible to the user.
  • get_messages — Retrieves messages from a Google Chat space.
  • send_message — Sends a message to a Google Chat space, or edits a message already sent there.
  • search_messages — Searches for messages in Google Chat spaces by text content and/or time range.
  • create_reaction — Adds an emoji reaction to a Google Chat message.
  • download_chat_attachment — Downloads an attachment from a Google Chat message and saves it to local disk. In stdio mode, returns the local file path for direct access. In HTTP mode, returns a temporary download URL (valid for 1 hour).
  • create_form — Create a new form using the title given in the provided form message in the request.
  • get_form — Get a form.
  • set_publish_settings — Updates the publish settings of a form.
  • get_form_response — Get one response from the form.
  • list_form_responses — List a form's responses.
  • batch_update_form — Apply batch updates to a Google Form. Supports adding, updating, and deleting form items, as well as updating form metadata and settings. This is the primary method for modifying form content after creation.
  • create_presentation — Create a new Google Slides presentation.
  • get_presentation — Get details about a Google Slides presentation.
  • batch_update_presentation — Apply batch updates to a Google Slides presentation.
  • get_page — Get details about a specific page (slide) in a presentation.
  • get_page_thumbnail — Generate a thumbnail URL for a specific page (slide) in a presentation.
  • list_presentation_comments — List all comments from a Google Presentation (optional max_comments to limit results).
  • manage_presentation_comment — Manage comments on a Google Presentation.
  • list_task_lists — List all task lists for the user.
  • get_task_list — Get details of a specific task list.
  • manage_task_list — Manage task lists: create, update, delete, or clear completed tasks.
  • list_tasks — List all tasks in a specific task list.
  • get_task — Get details of a specific task.
  • manage_task — Manage tasks: create, update, delete, or move tasks within task lists.
  • list_contacts — List contacts for the authenticated user.
  • get_contact — Get detailed information about a specific contact.
  • search_contacts — Search contacts by name, email, phone number, or other fields.
  • manage_contact — Create, update, or delete a contact. Consolidated tool replacing create_contact, update_contact, and delete_contact.
  • list_contact_groups — List contact groups (labels) for the user.
  • get_contact_group — Get details of a specific contact group including its members.
  • manage_contacts_batch — Batch create, update, or delete contacts. Consolidated tool replacing batch_create_contacts, batch_update_contacts, and batch_delete_contacts.
  • manage_contact_group — Create, update, delete a contact group, or modify its members. Consolidated tool replacing create_contact_group, update_contact_group, delete_contact_group, and modify_contact_group_members.
  • search_custom — Performs a search using Google Custom Search JSON API.
  • get_search_engine_info — Retrieves metadata about a Programmable Search Engine.
  • get_script_project — Read Apps Script projects and their source files.
  • manage_script_content — Update the source files of an Apps Script project.
  • run_script_function — Executes a function in a deployed script.
  • manage_deployment — Create, update, or delete Apps Script deployments.
  • list_script_deployments — List deployments for an Apps Script project.
  • manage_script_project — Create or delete an Apps Script project.
  • manage_script_version — Create immutable version snapshots of a script project. Versions capture a snapshot of the current script code; once created they cannot be modified.
  • get_script_version — List or retrieve immutable version snapshots of a script project.
  • get_script_activity — Read execution activity for scripts: recent processes or aggregate metrics.
  • generate_trigger_code — Generates Apps Script code for creating triggers. The Apps Script API cannot create triggers directly - they must be created from within Apps Script itself. This tool generates the code you need. To list or remove existing triggers without opening the editor, use `manage_scri...
  • manage_script_trigger — List or delete the current user's installable triggers on a script project. The Apps Script REST API has no triggers resource, so in dev_mode both actions provision (or refresh) a small helper file and run it via the Execution API - the only way to inspect or change trigger s...

Overview

What is Google Workspace MCP?

Google Workspace MCP Server is an open-source Model Context Protocol server that gives MCP-compatible clients a unified interface to Google Workspace. Instead of configuring a separate integration for every Google service, you can run one server and let an AI assistant securely search, read, create, edit, organize, and share Workspace content on behalf of the signed-in user.

The server works with free Google accounts and Google Workspace plans. It supports local use, direct CLI automation, and centrally hosted multi-user deployments with OAuth 2.1.

How to use Google Workspace MCP?

The fastest path is the five-step Workspace MCP Quick Start, which walks through installation, Google OAuth setup, server startup, client connection, and validation.

You will need Python 3.10 or newer, uv/uvx, and a Google Cloud project with OAuth credentials. For a confidential OAuth client, a basic modern HTTP setup looks like this:

export GOOGLE_OAUTH_CLIENT_ID="your-client-id"
export GOOGLE_OAUTH_CLIENT_SECRET="your-client-secret"
export MCP_ENABLE_OAUTH21=true

uvx workspace-mcp --transport streamable-http --tool-tier core

Streamable HTTP is the recommended transport for modern MCP clients, OAuth 2.1, and multi-user deployments. Claude Desktop, Claude on the web, and Claude Cowork can connect through a custom Connector; Claude Code, VS Code, MCP Inspector, and other compatible clients can connect directly to the HTTP endpoint. Stdio remains available as a legacy fallback.

Start with the core tool tier, move to extended or complete when you need more operations, or load only selected services with --tools. Public PKCE clients, reverse proxies, and hosted deployments require additional authentication settings, so use the Quick Start Guide for setup and the authentication documentation for production configuration.

Key features of Google Workspace MCP

  • 12 service groups in one server: Gmail, Drive, Calendar, Docs, Sheets, Slides, Forms, Chat, Apps Script, Tasks, Contacts, and Custom Search
  • Deep Workspace operations: search, read, create, edit, format, comment, share, organize, send, publish, and automate
  • Full CLI support: list and invoke tools directly from terminals, scripts, Claude Code, Codex, and other coding-agent workflows
  • Modern authentication: OAuth 2.0, OAuth 2.1 with PKCE, automatic token refresh, multi-user bearer authentication, external OAuth providers, and service-account domain-wide delegation
  • Flexible tool control: cumulative core, extended, and complete tiers, per-service selection, read-only mode, and granular permission levels
  • Deployment-ready: streamable HTTP, stateless containers, reverse proxies, encrypted OAuth storage backends, and centrally hosted multi-user instances
  • Private by default: uses your OAuth client and Google Cloud project; the default data path is directly from your infrastructure to Google APIs
  • Open source: MIT licensed, with no license server, SaaS dependency, usage reporting, or analytics

Use cases of Google Workspace MCP

  • Search Gmail for a conversation, save its attachments to Drive, and summarize the result in a Google Doc
  • Find open Calendar time, create an event, add attendees, and attach relevant Drive files
  • Create and format Docs, Sheets, Slides, and Forms from an AI assistant or coding agent
  • Draft, send, label, and organize email while limiting the server to only the Gmail permissions you approve
  • Manage Drive files, folders, shared drives, permissions, imports, exports, and shareable links
  • Build Apps Script projects and execute cross-application Workspace automations
  • Create internal assistants that work across company email, documents, tasks, contacts, calendars, and Chat spaces
  • Run read-only research and reporting workflows with restricted OAuth scopes
  • Host one secure OAuth 2.1 MCP endpoint for a team or an entire organization
  • Use the CLI in scripts and coding-agent workflows without operating through a chat interface

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬