google-sheets-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GSHEETS_SCOPES | No | Override requested OAuth scopes. Default: 'spreadsheets drive.metadata.readonly' | |
| GSHEETS_TOKEN_PATH | No | Override OAuth token cache location. Default: ~/.config/google-sheets-mcp/token.json | |
| GOOGLE_OAUTH_CLIENT_ID | No | OAuth client ID for desktop flow (acts as you). | |
| GOOGLE_OAUTH_CLIENT_SECRET | No | OAuth client secret for desktop flow (acts as you). | |
| GOOGLE_SERVICE_ACCOUNT_KEY | No | Inline service-account JSON. | |
| GOOGLE_APPLICATION_CREDENTIALS | No | Path to Google Application Default Credentials file. | |
| GOOGLE_SERVICE_ACCOUNT_KEY_FILE | No | Path to a service-account JSON key. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Edit Google Sheets in place — never create a copy to make a change. Typical flow: list_spreadsheets or get_spreadsheet_info to find the target, read_range to see current data, then the matching edit tool (update_cells, append_rows, insert_rows/columns, delete_rows/columns, fill_formula, format_cells, find_replace). Spreadsheet IDs may be given as full Google Sheets URLs. Rows are 1-based numbers and columns are letters, exactly as shown in the Sheets UI.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_spreadsheetsA | List Google Sheets spreadsheets the authorized account can access, most recently modified first. Optionally filter by name. |
| get_spreadsheet_infoA | Get a spreadsheet's title and its sheets (tabs) with their IDs and grid sizes. Call this before structural edits to see what sheets exist. |
| read_rangeA | Read cell values from a sheet. Omit |
| update_cellsA | Write values into a range in place, overwriting existing cells. Values are parsed as if typed in the Sheets UI, so strings starting with '=' become formulas, and dates/numbers are recognized. |
| append_rowsA | Append rows after the last row of data in a sheet (or of the table containing |
| clear_rangeA | Clear cell values in a range (formatting is kept). To remove rows or columns entirely, use delete_rows / delete_columns instead. |
| fill_formulaA | Write one formula into every cell of a range, with relative references adjusting per cell (like dragging the fill handle). For a formula in a single cell, update_cells works too. |
| insert_rowsA | Insert blank rows at a position, shifting existing rows down. Existing formulas and references adjust automatically. |
| delete_rowsA | Delete entire rows, shifting the rows below up. This removes the rows themselves, not just their values. |
| insert_columnsA | Insert blank columns at a position, shifting existing columns right. Existing formulas and references adjust automatically. |
| delete_columnsA | Delete entire columns, shifting the columns to the right left. This removes the columns themselves, not just their values. |
| add_sheetC | Add a new sheet (tab) to an existing spreadsheet. |
| delete_sheetB | Delete a sheet (tab) and all of its data from a spreadsheet. |
| format_cellsB | Apply formatting to a range: bold/italic, font size, text and background color, alignment, wrapping, and number format. Only the options you pass are changed. |
| find_replaceC | Find and replace text across a sheet or the whole spreadsheet. Can also search inside formulas. |
| batch_updateA | Escape hatch: apply raw Google Sheets API batchUpdate requests (charts, conditional formatting, merges, data validation, sorting — anything the API supports). Each item is one request object from the Sheets API v4 batchUpdate schema. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 16 tools
Tools are separated by both resource and action: listing spreadsheets vs. inspecting structure vs. reading values, and writing (update_cells), appending (append_rows), and filling (fill_formula) are explicitly distinguished in the descriptions. The main soft spot is batch_update, which overlaps with nearly every other tool, though it is clearly framed as a raw API escape hatch.
Every tool follows a consistent snake_case verb_noun pattern (read_range, update_cells, insert_rows, delete_columns, format_cells, find_replace). Verbs are used consistently per action type and no camelCase or vague verbs appear.
16 tools is on the high side but each maps to a distinct Sheets operation, with structural edits (row/column/sheet insert/delete) legitimately multiplying the count. Nothing feels redundant except the deliberate batch_update catch-all, which earns its place as an escape hatch.
The surface covers reading, writing, appending, clearing, structural row/column/sheet edits, formatting, find/replace, and a raw API escape hatch — enough for most lifecycle workflows. Gaps remain at the spreadsheet level: no create_spreadsheet, delete_spreadsheet, or rename/duplicate sheet, which batch_update cannot compensate for.