google-workspace-mcp-server
Read and manage Gmail messages, threads, labels, and drafts, including listing, fetching, and creating emails.
Read-only access to Google Calendar events, calendars, and free/busy availability information.
Read, create, and edit Google Docs documents, including inserting and formatting text, images, and tables.
Manage Google Drive files: list, search, copy, and download files, as well as manage comments and replies.
Read, write, create, and format Google Sheets spreadsheets, including cell values, ranges, and sheet operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-workspace-mcp-server create a new Google Doc titled 'Meeting Notes'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Get your Google credentials (see Setup below)
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"
}
}
}
}Restart Claude Code
Related MCP server: gworkspace-mcp
Setup
Step 1: Create a Google Cloud Project
Go to Google Cloud Console
Click the project dropdown (top left) → New Project
Name it something like "MCP Server" → Create
Wait for the project to be created, then select it
Step 2: Enable the APIs
Go to APIs & Services → Library (or click here)
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
Step 3: Configure OAuth Consent Screen
Go to APIs & Services → OAuth consent screen
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
Click Create
Fill in the required fields:
App name: "MCP Server" (or anything)
User support email: your email
Developer contact email: your email
Click Save and Continue
On Scopes page, click Save and Continue (no changes needed)
On Test users page (External only): click Add Users → add your Google email → Save and Continue
Click Back to Dashboard
Step 4: Create OAuth Credentials
Go to APIs & Services → Credentials
Click Create Credentials → OAuth client ID
Application type: Web application
Name: "MCP Server" (or anything)
Under Authorized redirect URIs, click Add URI and enter:
https://developers.google.com/oauthplaygroundClick Create
Copy and save your Client ID and Client Secret - you'll need these!
Step 5: Get Your Refresh Token
Go to OAuth 2.0 Playground
Click the gear icon (⚙️) in the top right corner
Check "Use your own OAuth credentials"
Enter your Client ID and Client Secret from Step 4
Close the settings
In the left panel, find and select these scopes:
Google Docs API v1 →
https://www.googleapis.com/auth/documentsGoogle Sheets API v4 →
https://www.googleapis.com/auth/spreadsheetsGoogle Drive API v3 →
https://www.googleapis.com/auth/driveGmail API v1 →
https://www.googleapis.com/auth/gmail.readonlyGmail API v1 →
https://www.googleapis.com/auth/gmail.compose(for creating drafts)Google Calendar API v3 →
https://www.googleapis.com/auth/calendar.readonly
Click Authorize APIs
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
Click Exchange authorization code for tokens
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 |
| Get document content by ID |
| Create a new document |
| Insert/update/delete text, formatting, images, tables |
Google Sheets API
Tool | Description |
| Get spreadsheet metadata |
| Read cell values from a range |
| Read from multiple ranges |
| Write values to a range |
| Append rows to a table |
| Create a new spreadsheet |
| Apply formatting, charts, filters |
| Clear cell values from a range |
| Duplicate a sheet within a spreadsheet |
Google Drive API
Tool | Description |
| Download file content (PDFs, images, etc.) |
| List files in your Drive |
| Search for files by name or content |
| Create a copy of a file |
| List comments on a document |
| Add a comment (anchored or unanchored) |
| Reply to an existing comment |
| Mark comment as resolved |
| Delete a comment |
Gmail API
Tool | Description |
| List messages with optional search filters |
| Get full content of a specific message |
| List conversation threads |
| Get all messages in a thread |
| List all Gmail labels (folders) |
| Create an email draft (not sent automatically) |
| List attachments in a message |
| Download an attachment |
Google Calendar API (Read-Only)
Tool | Description |
| List all accessible calendars |
| List events with time range and search filters |
| Get detailed event information |
| Check free/busy availability for calendars |
Usage Examples
Once configured, you can ask Claude Code things like:
"Read my Google Doc at https://docs.google.com/document/d/abc123/edit"
"Read this PDF from my Drive: https://drive.google.com/file/d/xyz789/view"
"Create a new Google Doc with meeting notes from today"
"Add a row to my spreadsheet with today's data"
"Search my Drive for files about project planning"
"Show me the comments on this document"
"Reply to John's comment saying I'll fix it tomorrow"
"Show me my unread emails"
"Find emails from notifications@github.com"
"What's on my calendar today?"
"Show me my meetings for this week"
"Get the details of that standup meeting"
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 |
| OAuth 2.0 Client ID from Google Cloud Console |
| OAuth 2.0 Client Secret |
| 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 startLicense
MIT
Available Tools
34 toolscalendar_freebusy_queryCheck Free/Busy StatusARead-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 EventARead-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 CalendarsARead-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 EventsARead-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 DocumentADestructive
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 DocumentARead-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 CommentADestructiveIdempotent
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 ContentARead-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:
Get PDF: file_id="1Q3BmlH3_sII1VGf0-GYXSiLGTZstM-l1"
From URL https://drive.google.com/file/d/ABC123/view -> file_id="ABC123"
Inputs: file_id (required).
drive_list_commentsList Document CommentsARead-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 FilesARead-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 CommentAIdempotent
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 FilesARead-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 AttachmentARead-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 MessageARead-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 ThreadARead-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 AttachmentsARead-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 LabelsARead-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 MessagesARead-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 ThreadsARead-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 ValuesARead-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 SpreadsheetADestructive
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 ValuesADestructiveIdempotent
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 SpreadsheetARead-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 ValuesARead-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 ValuesADestructive
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
Scored across 34 tools
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.
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.
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.
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
Related MCP Connectors
Streamable HTTP MCP server for Google Calendar and Sheets with OAuth login.
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Hosted MCP for Google Workspace, Atlassian and Notion: one OAuth, per-user accounts, write access.
Related MCP Servers
- AlicenseBqualityAmaintenanceGoogle Workspace MCP Server11861,538 PyPI3,579PythonMIT
- AlicenseBqualityDmaintenanceAn 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.31MIT
- AlicenseBqualityDmaintenanceProduction-ready MCP server for Google Workspace providing broad coverage across Gmail, Drive, Calendar, Docs, Sheets, and more, with safe-by-default write operations and markdown-to-Google-Docs support.10039 PyPIMIT
- FlicenseBqualityDmaintenanceMCP server providing full access to Google Workspace services (Gmail, Drive, Calendar, Docs, Sheets, Slides, Forms, Tasks, Contacts) using OAuth authentication.1001-