Google Sheets

v1.2.1
io.github.domdomegg/google-sheets-mcp Checked 8 hours ago Published 6 months ago

Allow AI systems to read, write, and query spreadsheet data via Google Sheets.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

spreadsheet_get Get spreadsheet

Get spreadsheet metadata including title, sheets list, and optionally cell data

ParameterTypeDescription
spreadsheetId *stringThe ID of the spreadsheet to retrieve
includeGridDatabooleanWhether to include grid data (cell values). Default false for metadata only.
rangesarrayRanges to return grid data for (e.g., "Sheet1!A1:B10"). Only used if includeGridData is true.

spreadsheet_create Create spreadsheet

Create a new Google Sheets spreadsheet

ParameterTypeDescription
title *stringTitle of the new spreadsheet
sheetsarrayInitial sheets to create. If not provided, a default "Sheet1" is created.

values_get Get values

Read cell values from a spreadsheet range

ParameterTypeDescription
range *stringThe A1 notation of the range to read (e.g., "Sheet1!A1:D10", "Sheet1", "A1:D10")
spreadsheetId *stringThe ID of the spreadsheet
dateTimeRenderOptionstringHow dates should be rendered
majorDimensionstringWhether to return data as rows or columns
valueRenderOptionstringHow values should be rendered: FORMATTED_VALUE (display values), UNFORMATTED_VALUE (raw), or FORMULA (formulas)

values_batch_get Batch get values

Read cell values from multiple ranges in a single request

ParameterTypeDescription
ranges *arrayArray of A1 notation ranges to read (e.g., ["Sheet1!A1:D10", "Sheet2!A:A"])
spreadsheetId *stringThe ID of the spreadsheet
dateTimeRenderOptionstringHow dates should be rendered
majorDimensionstringWhether to return data as rows or columns
valueRenderOptionstringHow values should be rendered

values_update Update values

Write cell values to a spreadsheet range (overwrites existing data)

ParameterTypeDescription
range *stringThe A1 notation of the range to update (e.g., "Sheet1!A1:D10")
spreadsheetId *stringThe ID of the spreadsheet
values *arrayThe data to write, as a 2D array of values (rows of columns)
includeValuesInResponsebooleanWhether to include the updated values in the response
valueInputOptionstringHow input data should be interpreted: RAW (as-is) or USER_ENTERED (parsed like typed in UI, e.g., "=A1+B1" becomes formula)

values_batch_update Batch update values

Write cell values to multiple ranges in a single request

ParameterTypeDescription
data *arrayArray of range/values pairs to update
spreadsheetId *stringThe ID of the spreadsheet
includeValuesInResponsebooleanWhether to include the updated values in the response
valueInputOptionstringHow input data should be interpreted

values_append Append values

Append rows of data after the last row with data in a range

ParameterTypeDescription
range *stringThe A1 notation of a range to search for data. Data will be appended after the last row with data in this range (e.g., "Sheet1!A:A" to append to column A, or "Sheet1" to append to the sheet)
spreadsheetId *stringThe ID of the spreadsheet
values *arrayThe data to append, as a 2D array of values (rows of columns)
includeValuesInResponsebooleanWhether to include the appended values in the response
insertDataOptionstringHow to handle existing data: OVERWRITE writes over existing, INSERT_ROWS inserts new rows
valueInputOptionstringHow input data should be interpreted: RAW (as-is) or USER_ENTERED (parsed like typed in UI)

values_clear Clear values

Clear cell values from a range (keeps formatting)

ParameterTypeDescription
range *stringThe A1 notation of the range to clear (e.g., "Sheet1!A1:D10")
spreadsheetId *stringThe ID of the spreadsheet

sheets_list List sheets

List all sheets (tabs) in a spreadsheet with their properties

ParameterTypeDescription
spreadsheetId *stringThe ID of the spreadsheet

sheet_add Add sheet

Add a new sheet (tab) to a spreadsheet

ParameterTypeDescription
spreadsheetId *stringThe ID of the spreadsheet
title *stringTitle of the new sheet
columnCountnumberNumber of columns (default 26)
indexnumberThe index to insert the sheet at. If not specified, appended to the end.
rowCountnumberNumber of rows (default 1000)

sheet_delete Delete sheet

Delete a sheet (tab) from a spreadsheet

ParameterTypeDescription
sheetId *numberThe ID of the sheet to delete (not the title - use sheets_sheets_list to get sheet IDs)
spreadsheetId *stringThe ID of the spreadsheet

batch_update Batch update

Execute multiple spreadsheet operations in a single request. Use for advanced operations like formatting, merging cells, creating filters, conditional formatting, sorting, etc.

ParameterTypeDescription
requests *arrayArray of Sheets API request objects. See https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/request for available request types. Common requests include: updateCells, repeatCell,…
spreadsheetId *stringThe ID of the spreadsheet
includeSpreadsheetInResponsebooleanWhether to include the updated spreadsheet in the response