Skip to main content
Glama
google-workspace-mcp-server

google-workspace-mcp-server

by EveryInc

Google Workspace MCP Server

MCP server for Google Workspace APIs - Docs, Sheets, Drive, Gmail, and Calendar. Use it with Claude Code to read, create, and edit Google Docs and Sheets, manage comments, read emails, and view calendar events.

Quick Start

  1. Get your Google credentials (see Setup below)

  2. Add to your Claude Code config (~/.claude.json):

{
  "mcpServers": {
    "google-workspace": {
      "type": "stdio",
      "command": "npx",
      "args": ["google-workspace-mcp-server"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret",
        "GOOGLE_REFRESH_TOKEN": "your-refresh-token"
      }
    }
  }
}
  1. Restart Claude Code

Related MCP server: gworkspace-mcp

Setup

Step 1: Create a Google Cloud Project

  1. Go to Google Cloud Console

  2. Click the project dropdown (top left) → New Project

  3. Name it something like "MCP Server" → Create

  4. Wait for the project to be created, then select it

Step 2: Enable the APIs

  1. Go to APIs & Services → Library (or click here)

  2. Search for and enable each of these APIs:

    • Google Docs API → Click → Enable

    • Google Sheets API → Click → Enable

    • Google Drive API → Click → Enable

    • Gmail API → Click → Enable

    • Google Calendar API → Click → Enable

  1. Go to APIs & Services → OAuth consent screen

  2. Select user type:

    • Internal (only if you have Google Workspace) - simpler, no test user setup needed

    • External (for personal Gmail accounts) - requires adding yourself as a test user

  3. Click Create

  4. Fill in the required fields:

    • App name: "MCP Server" (or anything)

    • User support email: your email

    • Developer contact email: your email

  5. Click Save and Continue

  6. On Scopes page, click Save and Continue (no changes needed)

  7. On Test users page (External only): click Add Users → add your Google email → Save and Continue

  8. Click Back to Dashboard

Step 4: Create OAuth Credentials

  1. Go to APIs & Services → Credentials

  2. Click Create Credentials → OAuth client ID

  3. Application type: Web application

  4. Name: "MCP Server" (or anything)

  5. Under Authorized redirect URIs, click Add URI and enter:

    https://developers.google.com/oauthplayground
  6. Click Create

  7. Copy and save your Client ID and Client Secret - you'll need these!

Step 5: Get Your Refresh Token

  1. Go to OAuth 2.0 Playground

  2. Click the gear icon (⚙️) in the top right corner

  3. Check "Use your own OAuth credentials"

  4. Enter your Client ID and Client Secret from Step 4

  5. Close the settings

  6. In the left panel, find and select these scopes:

    • Google Docs API v1 → https://www.googleapis.com/auth/documents

    • Google Sheets API v4 → https://www.googleapis.com/auth/spreadsheets

    • Google Drive API v3 → https://www.googleapis.com/auth/drive

    • Gmail API v1 → https://www.googleapis.com/auth/gmail.readonly

    • Gmail API v1 → https://www.googleapis.com/auth/gmail.compose (for creating drafts)

    • Google Calendar API v3 → https://www.googleapis.com/auth/calendar.readonly

  7. Click Authorize APIs

  8. Sign in with your Google account and grant permissions

    • If you see "Google hasn't verified this app", click Advanced → Go to MCP Server (unsafe)

    • Click Continue to grant permissions

  9. Click Exchange authorization code for tokens

  10. Copy the Refresh Token (not the Access Token!) - this is what you need!

Step 6: Configure Claude Code

Add the MCP server to your Claude Code settings. Edit ~/.claude.json:

{
  "mcpServers": {
    "google-workspace": {
      "type": "stdio",
      "command": "npx",
      "args": ["google-workspace-mcp-server"],
      "env": {
        "GOOGLE_CLIENT_ID": "123456789-abcdefg.apps.googleusercontent.com",
        "GOOGLE_CLIENT_SECRET": "GOCSPX-xxxxxxxxxxxxx",
        "GOOGLE_REFRESH_TOKEN": "1//04xxxxxxxxxxxxx"
      }
    }
  }
}

Replace the values with your actual credentials from Steps 4 and 5.

Step 7: Restart Claude Code

Restart Claude Code to load the new MCP server. You should now be able to use Google Workspace tools!

Tools

Google Docs API

Tool

Description

docs_get_document

Get document content by ID

docs_create_document

Create a new document

docs_batch_update

Insert/update/delete text, formatting, images, tables

Google Sheets API

Tool

Description

sheets_get_spreadsheet

Get spreadsheet metadata

sheets_get_values

Read cell values from a range

sheets_batch_get_values

Read from multiple ranges

sheets_update_values

Write values to a range

sheets_append_values

Append rows to a table

sheets_create_spreadsheet

Create a new spreadsheet

sheets_batch_update

Apply formatting, charts, filters

sheets_clear_values

Clear cell values from a range

sheets_duplicate_sheet

Duplicate a sheet within a spreadsheet

Google Drive API

Tool

Description

drive_get_file

Download file content (PDFs, images, etc.)

drive_list_files

List files in your Drive

drive_search_files

Search for files by name or content

drive_copy_file

Create a copy of a file

drive_list_comments

List comments on a document

drive_create_comment

Add a comment (anchored or unanchored)

drive_reply_to_comment

Reply to an existing comment

drive_resolve_comment

Mark comment as resolved

drive_delete_comment

Delete a comment

Gmail API

Tool

Description

gmail_list_messages

List messages with optional search filters

gmail_get_message

Get full content of a specific message

gmail_list_threads

List conversation threads

gmail_get_thread

Get all messages in a thread

gmail_list_labels

List all Gmail labels (folders)

gmail_create_draft

Create an email draft (not sent automatically)

gmail_list_attachments

List attachments in a message

gmail_get_attachment

Download an attachment

Google Calendar API (Read-Only)

Tool

Description

calendar_list_calendars

List all accessible calendars

calendar_list_events

List events with time range and search filters

calendar_get_event

Get detailed event information

calendar_freebusy_query

Check free/busy availability for calendars

Usage Examples

Once configured, you can ask Claude Code things like:

Troubleshooting

"Access token expired" errors

The MCP server automatically refreshes tokens using your refresh token. If you see this error, your refresh token may have been revoked. Go through Step 5 again to get a new one.

"App not verified" warning

This is normal for personal projects. Click Advanced → Go to [App Name] (unsafe) to proceed.

"Insufficient permissions" errors

Make sure you enabled all five APIs (Docs, Sheets, Drive, Gmail, Calendar) in Step 2, and selected all five scopes in Step 5.

Environment Variables

Variable

Description

GOOGLE_CLIENT_ID

OAuth 2.0 Client ID from Google Cloud Console

GOOGLE_CLIENT_SECRET

OAuth 2.0 Client Secret

GOOGLE_REFRESH_TOKEN

Refresh token from OAuth Playground

Development

# Clone the repo
git clone https://github.com/nityeshaga/google-workspace-mcp-server.git
cd google-workspace-mcp-server

# Install dependencies
npm install

# Build
npm run build

# Run locally
npm start

License

MIT

Available Tools

34 tools
calendar_freebusy_queryCheck Free/Busy StatusA
Read-onlyIdempotent

Check availability (free/busy times) for one or more calendars within a time range.

This is useful for finding available meeting times across multiple people. It only returns busy time blocks (not event details) for privacy.

Args:

  • time_min (string): Start of the time range (ISO 8601 format, e.g., '2024-01-15T00:00:00Z')

  • time_max (string): End of the time range (ISO 8601 format, e.g., '2024-01-22T00:00:00Z')

  • calendar_ids (string[]): Array of calendar IDs or email addresses to check (e.g., ['primary', 'colleague@company.com'])

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For each calendar, a list of busy time blocks within the range.

Requirements for checking other people's calendars:

  • Same Google Workspace organization, OR

  • They have shared their calendar with you, OR

  • Their calendar is public

Examples:

  • Check your availability: calendar_ids=["primary"], time_min="2024-01-15T09:00:00Z", time_max="2024-01-15T18:00:00Z"

  • Check team availability: calendar_ids=["alice@company.com", "bob@company.com"]

Inputs: time_min (required), time_max (required), calendar_ids (required), response_format.

calendar_get_eventGet Calendar EventA
Read-onlyIdempotent

Get detailed information about a specific calendar event.

Args:

  • calendar_id (string): Calendar ID (default: 'primary')

  • event_id (string): The event ID to retrieve

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: Full event details including description, attendees, and conference info.

Inputs: event_id (required), calendar_id, response_format.

calendar_list_calendarsList CalendarsA
Read-onlyIdempotent

List all calendars accessible to the user.

Args:

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: List of calendars with their IDs, names, and access roles.

Inputs: response_format.

calendar_list_eventsList Calendar EventsA
Read-onlyIdempotent

List events from a calendar within an optional time range.

Args:

  • calendar_id (string): Calendar ID (default: 'primary' for main calendar)

  • time_min (string, optional): Start of time range in ISO 8601 format (e.g., '2024-01-01T00:00:00Z')

  • time_max (string, optional): End of time range in ISO 8601 format

  • max_results (number): Maximum events to return, 1-250 (default: 10)

  • query (string, optional): Free text search to filter events

  • single_events (boolean): Expand recurring events into instances (default: true)

  • order_by ('startTime' | 'updated'): Sort order (default: 'startTime')

  • page_token (string, optional): Token for pagination

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: List of events with title, time, location, and attendees.

Examples:

  • Today's events: time_min="2024-01-15T00:00:00Z", time_max="2024-01-16T00:00:00Z"

  • Search meetings: query="standup"

  • Next 7 days: time_min=(now), time_max=(now + 7 days)

Inputs: calendar_id, time_min, time_max, max_results, +5 more.

docs_batch_updateBatch Update Google DocumentA
Destructive

Apply batch updates to a Google Doc (insert/update/delete text, formatting, images, tables).

Args:

  • document_id (string): The ID of the Google Doc to update

  • requests (array): Array of batch update request objects

Common request types:

  • insertText: { insertText: { location: { index: 1 }, text: "Hello" } }

  • deleteContentRange: { deleteContentRange: { range: { startIndex: 1, endIndex: 10 } } }

  • updateTextStyle: { updateTextStyle: { range: {...}, textStyle: {...}, fields: "bold" } }

  • insertInlineImage: { insertInlineImage: { location: {...}, uri: "https://..." } }

  • insertTable: { insertTable: { rows: 3, columns: 3, location: {...} } }

See Google Docs API batchUpdate documentation for full request schema.

Returns: { "documentId": string, "replies": array, "writeControl": object }

Inputs: document_id (required), requests (required).

docs_create_documentCreate Google DocumentA

Create a new Google Doc with an optional initial body.

Args:

  • title (string): The title for the new document

  • body_content (string, optional): Initial text content for the document body

Returns: { "documentId": string, "title": string, "revisionId": string }

Examples:

  • Create empty doc: title="Meeting Notes"

  • Create with content: title="Draft", body_content="Hello World"

Inputs: title (required), body_content.

docs_get_documentGet Google DocumentA
Read-onlyIdempotent

Retrieve the content of a Google Doc by its ID.

Args:

  • document_id (string): The ID of the Google Doc (found in the URL after /d/)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: Document title, content, and metadata. For JSON format: { "documentId": string, "title": string, "textContent": string, "revisionId": string }

Examples:

  • Get doc content: document_id="1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"

Inputs: document_id (required), response_format.

drive_copy_fileCopy Drive FileA

Create a copy of a file in Google Drive.

Args:

  • file_id (string): The ID of the file to copy

  • name (string, optional): New name for the copied file (defaults to 'Copy of [original name]')

  • parent_folder_id (string, optional): ID of the folder to copy the file into (defaults to same location as original)

Returns: { "id": string, "name": string, "mimeType": string, "webViewLink": string }

Examples:

  • Copy file: file_id="1abc123"

  • Copy with new name: file_id="1abc123", name="Budget 2025"

  • Copy to folder: file_id="1abc123", parent_folder_id="0xyz789"

Inputs: file_id (required), name, parent_folder_id.

drive_create_commentCreate Comment on DocumentA

Add a comment to a Google Doc. Can be anchored to specific text or unanchored.

Args:

  • file_id (string): The ID of the Google Doc

  • content (string): The text content of the comment

  • quoted_text (string, optional): Text to anchor the comment to (for anchored comments)

Returns: { "id": string, "content": string, "author": string, "createdTime": string }

Examples:

  • Unanchored: file_id="...", content="Please review this section"

  • Anchored: file_id="...", content="Typo here", quoted_text="teh"

Inputs: file_id (required), content (required), quoted_text.

drive_delete_commentDelete CommentA
DestructiveIdempotent

Delete a comment from a Google Doc.

Args:

  • file_id (string): The ID of the Google Doc

  • comment_id (string): The ID of the comment to delete

Returns: { "deleted": true, "comment_id": string }

Note: This action cannot be undone.

Inputs: file_id (required), comment_id (required).

drive_get_fileGet File ContentA
Read-onlyIdempotent

Download and return the content of a file from Google Drive. Supports PDFs, images, and other binary files.

Args:

  • file_id (string): The ID of the file to download (found in the URL after /d/)

Returns: The file content. For PDFs and images, returns the binary content that Claude can read directly.

Examples:

Inputs: file_id (required).

drive_list_commentsList Document CommentsA
Read-onlyIdempotent

List comments on a Google Doc.

Args:

  • file_id (string): The ID of the Google Doc

  • include_deleted (boolean): Include deleted comments (default: false)

  • page_size (number): Max comments to return, 1-100 (default: 20)

  • page_token (string, optional): Pagination token for next page

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "comments": [ { "id": string, "content": string, "author": string, "createdTime": string, "resolved": boolean, "quotedFileContent": string, "replies": [{ "id", "content", "author", "createdTime" }] } ], "next_page_token": string | null }

Inputs: file_id (required), include_deleted, page_size, page_token, +1 more.

drive_list_filesList Drive FilesA
Read-onlyIdempotent

List files in your Google Drive.

Args:

  • page_size (number): Max files to return, 1-100 (default: 20)

  • page_token (string, optional): Pagination token for next page

  • order_by (string): Sort order (default: 'modifiedTime desc')

  • mime_type ('all' | 'documents' | 'spreadsheets' | 'presentations' | 'folders'): Filter by type (default: 'all')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "files": [ { "id": string, "name": string, "mimeType": string, "createdTime": string, "modifiedTime": string, "size": string, "webViewLink": string, "owners": string[] } ], "next_page_token": string | null }

Inputs: page_size, page_token, order_by, mime_type, +1 more.

drive_reply_to_commentReply to CommentA

Reply to an existing comment on a Google Doc.

Args:

  • file_id (string): The ID of the Google Doc

  • comment_id (string): The ID of the comment to reply to

  • content (string): The text content of the reply

Returns: { "id": string, "content": string, "author": string, "createdTime": string }

Inputs: file_id (required), comment_id (required), content (required).

drive_resolve_commentResolve CommentA
Idempotent

Mark a comment as resolved on a Google Doc.

Args:

  • file_id (string): The ID of the Google Doc

  • comment_id (string): The ID of the comment to resolve

Returns: { "id": string, "resolved": true }

Inputs: file_id (required), comment_id (required).

drive_search_filesSearch Drive FilesA
Read-onlyIdempotent

Search for files in your Google Drive by name or content.

Args:

  • query (string): Search query - searches file names and content

  • page_size (number): Max files to return, 1-100 (default: 20)

  • page_token (string, optional): Pagination token for next page

  • mime_type ('all' | 'documents' | 'spreadsheets' | 'presentations' | 'folders'): Filter by type (default: 'all')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "files": [ { "id": string, "name": string, "mimeType": string, "createdTime": string, "modifiedTime": string, "size": string, "webViewLink": string, "owners": string[] } ], "next_page_token": string | null }

Examples:

  • Search by name: query="budget 2024"

  • Search spreadsheets: query="sales", mime_type="spreadsheets"

Inputs: query (required), page_size, page_token, mime_type, +1 more.

gmail_create_draftCreate Gmail DraftA

Create a new email draft in Gmail. The draft is saved but NOT sent automatically.

Args:

  • to (string[]): Array of recipient email addresses (required)

  • subject (string): Email subject line

  • body (string): Email body content (plain text or HTML depending on content_type)

  • content_type (string, optional): MIME content type - "text/plain" (default) or "text/html"

  • cc (string[], optional): Array of CC recipient email addresses

  • bcc (string[], optional): Array of BCC recipient email addresses

  • reply_to_message_id (string, optional): Message ID to reply to (for creating reply drafts)

Returns: { "draftId": string, "messageId": string, "threadId": string }

Examples:

  • Simple draft: to=["bob@example.com"], subject="Hello", body="Hi Bob!"

  • Reply draft: to=["bob@example.com"], subject="Re: Meeting", body="Sounds good!", reply_to_message_id="abc123"

Inputs: to (required), subject (required), body (required), content_type, +3 more.

gmail_get_attachmentGet Gmail AttachmentA
Read-onlyIdempotent

Download an attachment from a Gmail message.

Args:

  • message_id (string): The ID of the message containing the attachment

  • attachment_id (string): The ID of the attachment to download (from gmail_list_attachments)

  • filename (string, optional): Filename for the attachment (for display purposes)

Returns: The attachment content. For images, returns the image directly. For other files, provides download info.

Examples:

  • Download attachment: message_id="abc123", attachment_id="xyz789"

Inputs: message_id (required), attachment_id (required), filename.

gmail_get_messageGet Gmail MessageA
Read-onlyIdempotent

Get the full content of a specific Gmail message.

Args:

  • message_id (string): The message ID to retrieve

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: Full message content including headers and body text.

Inputs: message_id (required), response_format.

gmail_get_threadGet Gmail ThreadA
Read-onlyIdempotent

Get all messages in a conversation thread.

Args:

  • thread_id (string): The thread ID to retrieve

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: All messages in the thread with full content.

Inputs: thread_id (required), response_format.

gmail_list_attachmentsList Gmail AttachmentsA
Read-onlyIdempotent

List all attachments in a specific Gmail message.

Args:

  • message_id (string): The ID of the message to list attachments from

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: { "attachments": [ { "attachmentId": string, "filename": string, "mimeType": string, "size": number } ] }

Inputs: message_id (required), response_format.

gmail_list_labelsList Gmail LabelsA
Read-onlyIdempotent

List all labels (folders) in Gmail.

Args:

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: List of all labels with their IDs and types.

Inputs: response_format.

gmail_list_messagesList Gmail MessagesA
Read-onlyIdempotent

List messages from Gmail with optional search filters.

Args:

  • query (string, optional): Gmail search query (e.g., 'from:boss@company.com is:unread', 'subject:invoice after:2024/01/01')

  • max_results (number): Maximum messages to return, 1-100 (default: 10)

  • label_ids (string[]): Filter by labels like 'INBOX', 'UNREAD', 'STARRED', 'SENT'

  • page_token (string, optional): Token for pagination

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: List of message summaries with ID, subject, from, date, and snippet.

Examples:

  • Unread emails: query="is:unread"

  • From specific sender: query="from:notifications@github.com"

  • Recent with attachment: query="has:attachment newer_than:7d"

Inputs: query, max_results, label_ids, page_token, +1 more.

gmail_list_threadsList Gmail ThreadsA
Read-onlyIdempotent

List conversation threads from Gmail.

Args:

  • query (string, optional): Gmail search query to filter threads

  • max_results (number): Maximum threads to return, 1-100 (default: 10)

  • label_ids (string[]): Filter by labels

  • page_token (string, optional): Token for pagination

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: List of threads with message count and snippet.

Inputs: query, max_results, label_ids, page_token, +1 more.

sheets_append_valuesAppend Spreadsheet ValuesA

Append rows of data to the end of a table in a Google Spreadsheet.

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet

  • range (string): The A1 notation range defining the table to append to (e.g., 'Sheet1!A:D')

  • values (array): 2D array of values to append (rows of cells)

  • value_input_option ('RAW' | 'USER_ENTERED'): How to interpret input (default: 'USER_ENTERED')

  • insert_data_option ('OVERWRITE' | 'INSERT_ROWS'): How to insert data (default: 'INSERT_ROWS')

Returns: { "spreadsheetId": string, "tableRange": string, "updates": { "updatedRange": string, "updatedRows": number, "updatedCells": number } }

Examples:

  • Append rows: range="Sheet1!A:D", values=[["Alice", 30, "Engineer", "NYC"]]

Inputs: spreadsheet_id (required), range (required), values (required), value_input_option, +1 more.

sheets_batch_get_valuesBatch Get Spreadsheet ValuesA
Read-onlyIdempotent

Read cell values from multiple ranges in a Google Spreadsheet in a single request.

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet

  • ranges (string[]): Array of A1 notation ranges to read (e.g., ['Sheet1!A1:D10', 'Sheet2!A1:B5'])

  • major_dimension ('ROWS' | 'COLUMNS'): Return data by rows or columns (default: 'ROWS')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "spreadsheetId": string, "valueRanges": [{ "range": string, "values": [[...]] }, ...] }

Examples:

  • Read multiple ranges: ranges=["Sheet1!A1:D10", "Sheet2!A:B"]

Inputs: spreadsheet_id (required), ranges (required), major_dimension, response_format.

sheets_batch_updateBatch Update SpreadsheetA
Destructive

Apply batch updates to a Google Spreadsheet (formatting, charts, filters, conditional formatting, etc.).

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet to update

  • requests (array): Array of batch update request objects

Common request types:

  • updateCells: Update cell data and formatting

  • addSheet: Add a new sheet

  • deleteSheet: Delete a sheet

  • updateSheetProperties: Rename sheet, change grid size

  • mergeCells: Merge cell ranges

  • addConditionalFormatRule: Add conditional formatting

  • addChart: Add a chart

  • setDataValidation: Add data validation rules

  • addFilterView: Add filter views

  • repeatCell: Apply formatting to a range

See Google Sheets API batchUpdate documentation for full request schema.

Returns: { "spreadsheetId": string, "replies": array }

Examples:

  • Add sheet: requests=[{ "addSheet": { "properties": { "title": "NewSheet" } } }]

  • Bold range: requests=[{ "repeatCell": { "range": {...}, "cell": { "userEnteredFormat": { "textFormat": { "bold": true } } }, "fields": "userEnteredFormat.textFormat.bold" } }]

Inputs: spreadsheet_id (required), requests (required).

sheets_clear_valuesClear Spreadsheet ValuesA
DestructiveIdempotent

Clear cell values from a specific range in a Google Spreadsheet (keeps formatting).

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet

  • range (string): The A1 notation range to clear (e.g., 'Sheet1!A1:D10')

Returns: { "spreadsheetId": string, "clearedRange": string }

Examples:

  • Clear range: range="Sheet1!A1:D10"

  • Clear entire sheet: range="Sheet1"

Inputs: spreadsheet_id (required), range (required).

sheets_create_pivot_tableCreate Pivot TableA

Create a pivot table from spreadsheet data with full Google Sheets UI feature support.

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet

  • source_range (string): A1 notation range (e.g., 'Sheet1!A1:E100', 'Sales!A:F')

  • destination_sheet_id (number, optional): Sheet ID for pivot (default: creates new sheet)

  • destination_sheet_name (string): Name for new sheet (default: 'Pivot Table')

  • rows/columns (array): Groupings (at least one row OR column required)

    • source_column: Column letter ('A') or index (0)

    • label: Custom display name

    • show_totals: Show subtotals (default: true)

    • sort_order: 'ASCENDING' or 'DESCENDING'

    • sort_by_value: { value_index: 0 } - Sort by aggregated value instead of alphabetically

    • group_rule: Bucketing options (pick one):

      • { date_time: { type: 'MONTH' } } - Group dates (YEAR, QUARTER, MONTH, DAY_OF_WEEK, etc.)

      • { histogram: { interval: 100, start: 0, end: 1000 } } - Numeric buckets

      • { manual: { groups: [{ group_name: 'West', items: ['CA', 'WA', 'OR'] }] } }

    • group_limit: Max groups to display

  • values (array, required): Aggregations

    • source_column: Column to aggregate (or use formula)

    • formula: Custom formula like '=Revenue/Quantity' (use with summarize_function: 'CUSTOM')

    • summarize_function: SUM, COUNT, COUNTA, COUNTUNIQUE, AVERAGE, MAX, MIN, MEDIAN, PRODUCT, STDEV, STDEVP, VAR, VARP, CUSTOM

    • name: Display name

    • calculated_display_type: 'PERCENT_OF_ROW_TOTAL', 'PERCENT_OF_COLUMN_TOTAL', 'PERCENT_OF_GRAND_TOTAL'

  • filters (array, optional): Filter source data

    • source_column: Column to filter

    • visible_values: ['Active', 'Pending'] - Show only these values

    • condition: { type: 'NUMBER_GREATER', values: [100] } - Filter by condition

  • value_layout: 'HORIZONTAL' or 'VERTICAL' (default: 'HORIZONTAL')

Examples:

  • Date grouped: rows=[{source_column: "A", group_rule: {date_time: {type: "MONTH"}}}], values=[{source_column: "E", summarize_function: "SUM"}]

  • Sorted by value: rows=[{source_column: "A", sort_by_value: {value_index: 0}, sort_order: "DESCENDING"}], values=[{source_column: "E", summarize_function: "SUM"}]

  • Filtered: filters=[{source_column: "B", visible_values: ["Active"]}], rows=[{source_column: "A"}], values=[{source_column: "E", summarize_function: "SUM"}]

  • Percentage: values=[{source_column: "E", summarize_function: "SUM", calculated_display_type: "PERCENT_OF_GRAND_TOTAL"}]

Inputs: no named parameters.

sheets_create_spreadsheetCreate Google SpreadsheetA

Create a new Google Spreadsheet with optional sheet names.

Args:

  • title (string): The title for the new spreadsheet

  • sheet_titles (string[], optional): Array of sheet names to create

Returns: { "spreadsheetId": string, "title": string, "spreadsheetUrl": string, "sheets": [{ "sheetId": number, "title": string }] }

Examples:

  • Create basic: title="My Spreadsheet"

  • With sheets: title="Budget", sheet_titles=["Income", "Expenses", "Summary"]

Inputs: title (required), sheet_titles.

sheets_duplicate_sheetDuplicate SheetA

Duplicate a sheet within the same spreadsheet.

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet

  • sheet_id (number): The ID of the sheet to duplicate (use sheets_get_spreadsheet to find sheet IDs)

  • new_sheet_name (string, optional): Name for the new sheet (defaults to 'Copy of [original name]')

Returns: { "sheetId": number, "title": string, "index": number }

Examples:

  • Duplicate sheet: spreadsheet_id="...", sheet_id=0

  • Duplicate with new name: spreadsheet_id="...", sheet_id=0, new_sheet_name="January Data"

Inputs: spreadsheet_id (required), sheet_id (required), new_sheet_name.

sheets_get_spreadsheetGet Google SpreadsheetA
Read-onlyIdempotent

Retrieve metadata and optionally cell data from a Google Spreadsheet.

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet (found in the URL after /d/)

  • include_grid_data (boolean): Whether to include cell data (default: false)

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: Spreadsheet title, sheets info, and metadata. For JSON format: { "spreadsheetId": string, "title": string, "locale": string, "sheets": [{ "sheetId": number, "title": string, "rowCount": number, "columnCount": number }], "spreadsheetUrl": string }

Examples:

  • Get spreadsheet info: spreadsheet_id="1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms"

Inputs: spreadsheet_id (required), include_grid_data, response_format.

sheets_get_valuesGet Spreadsheet ValuesA
Read-onlyIdempotent

Read cell values from a specific range in a Google Spreadsheet.

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet

  • range (string): The A1 notation range to read (e.g., 'Sheet1!A1:D10' or 'A1:D10')

  • major_dimension ('ROWS' | 'COLUMNS'): Return data by rows or columns (default: 'ROWS')

  • response_format ('markdown' | 'json'): Output format (default: 'markdown')

Returns: For JSON format: { "range": string, "majorDimension": string, "values": [[cell values...], ...] }

Examples:

  • Read range: spreadsheet_id="...", range="Sheet1!A1:D10"

  • Read specific column: spreadsheet_id="...", range="Sheet1!A:A"

Inputs: spreadsheet_id (required), range (required), major_dimension, response_format.

sheets_update_valuesUpdate Spreadsheet ValuesA
Destructive

Write cell values to a specific range in a Google Spreadsheet.

Args:

  • spreadsheet_id (string): The ID of the Google Spreadsheet

  • range (string): The A1 notation range to update (e.g., 'Sheet1!A1:D10')

  • values (array): 2D array of values to write (rows of cells)

  • value_input_option ('RAW' | 'USER_ENTERED'): How to interpret input (default: 'USER_ENTERED')

    • 'RAW': Values are stored as-is

    • 'USER_ENTERED': Values are parsed as if typed by user (formulas, dates work)

Returns: { "spreadsheetId": string, "updatedRange": string, "updatedRows": number, "updatedColumns": number, "updatedCells": number }

Examples:

  • Write data: range="Sheet1!A1", values=[["Name", "Age"], ["Alice", 30]]

  • Write formula: range="Sheet1!C1", values=[["=SUM(A1:B1)"]]

Inputs: spreadsheet_id (required), range (required), values (required), value_input_option.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 34 tools

    Disambiguation5/5

    Each tool is clearly scoped to a specific Google Workspace service and action. The service prefixes (calendar_, docs_, drive_, gmail_, sheets_) combined with distinct verbs (e.g., create vs list vs get) ensure no two tools have overlapping purposes. For example, calendar_freebusy_query is distinct from calendar_list_events, and sheets_append_values is distinct from sheets_update_values.

    Naming Consistency5/5

    All tool names follow a consistent pattern: service_verb_noun in lowercase with underscores. Examples include calendar_list_events, sheets_create_spreadsheet, and gmail_get_message. There are no deviations like camelCase or mixed conventions, making the naming predictable and easy to parse.

    Tool Count4/5

    With 34 tools across five distinct services, the count is on the higher side but still reasonable for a comprehensive Google Workspace integration. Each service has a manageable number of tools (6-12), covering essential operations without being unnecessarily bloated. However, the total could feel heavy for agents that only need a subset of services.

    Completeness3/5

    The tool set covers many common operations but has notable gaps. Calendar lacks create/update/delete events, Drive lacks file upload and deletion, and Gmail lacks send and modify operations. These gaps can cause agent failures when such actions are required. The surface is strong for reading and basic manipulation but incomplete for full lifecycle management.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers