Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dvlpjrs/guMCP/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Google Sheets server enables AI agents to interact with Google Sheets spreadsheets. It provides tools for reading, writing, updating, and managing spreadsheet data.Prerequisites
- Python 3.11+
- A Google Cloud project with the Google Sheets API enabled
- OAuth 2.0 credentials configured for desktop application access
Authentication
Setup OAuth Credentials
- Create a Google Cloud project in the GCP Console
- Enable the Google Sheets API
- Create OAuth 2.0 credentials (Desktop App)
- Download the credentials JSON file
- Save it as
local_auth/oauth_configs/gsheets/oauth.json
Authenticate
Available Tools
The Google Sheets server provides the following tools:create-sheet
create-sheet
Description: Create a new Google Sheets spreadsheetParameters:Returns: Spreadsheet ID and URL
title(string, required): The title of the new spreadsheet
get-spreadsheet-info
get-spreadsheet-info
Description: Get metadata about a spreadsheet (title, sheets, properties)Parameters:Returns: Spreadsheet metadata including title and sheet names
spreadsheet_url(string, required): The Google Sheets URL
get-sheet-names
get-sheet-names
Description: List all sheet (tab) names in a spreadsheetParameters:Returns: Array of sheet names
spreadsheet_url(string, required): The Google Sheets URL
batch-get
batch-get
Description: Read values from multiple ranges in a spreadsheetParameters:Returns: Values from all requested ranges
spreadsheet_url(string, required): The Google Sheets URLranges(array, required): Array of A1 notation ranges (e.g., [“Sheet1!A1:C10”, “Sheet2!A1:B5”])
batch-update
batch-update
Description: Write values to multiple ranges in a spreadsheetParameters:Returns: Confirmation of successful update
spreadsheet_url(string, required): The Google Sheets URLdata(array, required): Array of range/values pairs
append-values
append-values
Description: Append new rows to the end of a rangeParameters:Returns: Number of rows appended
spreadsheet_url(string, required): The Google Sheets URLrange(string, required): A1 notation rangevalues(array, required): 2D array of values to append
lookup-row
lookup-row
Description: Search for a row containing a specific valueParameters:Returns: First matching row or “Value not found”
spreadsheet_url(string, required): The Google Sheets URLrange(string, required): A1 notation range to searchvalue(string, required): Value to search for
clear-values
clear-values
Description: Clear all values in a specified rangeParameters:Returns: Confirmation of successful clear
spreadsheet_url(string, required): The Google Sheets URLrange(string, required): A1 notation range to clear
copy-sheet
copy-sheet
Description: Copy a sheet from one spreadsheet to anotherParameters:Returns: New sheet ID in destination spreadsheet
source_spreadsheet_id(string, required): Source spreadsheet IDsource_sheet_id(integer, required): Source sheet ID (not name)destination_spreadsheet_id(string, required): Destination spreadsheet ID
Usage Examples
Creating and Populating a Spreadsheet
Reading and Searching Data
Running the Server
Local Development
Testing Connection
API Reference
| Tool | Purpose | Common Use Cases |
|---|---|---|
create-sheet | Create spreadsheet | Initialize new workbooks |
get-spreadsheet-info | Get metadata | Discover sheet structure |
batch-get | Read multiple ranges | Fetch data efficiently |
batch-update | Write multiple ranges | Bulk updates |
append-values | Add new rows | Log entries, add records |
lookup-row | Find specific data | Search operations |
clear-values | Delete range data | Reset sections |
copy-sheet | Duplicate sheets | Template operations |
Best Practices
- Use batch operations: Combine multiple reads/writes into single batch-get/batch-update calls
- A1 notation: Always specify ranges using A1 notation (e.g., “Sheet1!A1:C10”)
- Error handling: Check for invalid URLs or non-existent ranges
- Rate limits: Be mindful of Google Sheets API quotas