About freema/mcp-gsheets
freema/mcp-gsheets is an MCP server published by freema in the Data category: mCP server for Google Sheets - Read, write and manipulate spreadsheets through Claude Desktop. Conduid read 44 tools from its source: sheets_add_conditional_formatting, sheets_add_table, sheets_append_values, sheets_batch_delete_sheets, sheets_batch_format_cells, sheets_batch_get_values and 38 more. It is published to npm as mcp-gsheets and starts with npx.
The repository has 106 stars and 24 forks, is licensed MIT, and its last commit was on 29 Nov 2026. The latest release is v1.10.3 (19 Sep 2026). It follows v1.10.2 (16 Aug 2026), and the 5 most recent releases go back to v1.9.0 (10 Jul 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include devtools, automation and google-sheets-api.
Install
npx mcp-gsheetsclaude mcp add gsheets -- npx -y mcp-gsheets@latestnpx -y mcp-gsheets@latestgit clone https://github.com/freema/mcp-gsheetsTools (44)
sheets_add_conditional_formattingAdd a conditional formatting rule (gradient or boolean) to a rangesheets_add_tableCreate a native Google Sheets table with typed columns and optional dropdown values| Parameter | Type | Description |
|---|---|---|
| columns * | array | Column definitions for the table |
| name * | string | Unique table name within the spreadsheet |
| range * | string | A1 notation range for the table, e.g. "A1:D20" or "Sheet1!A1:D20" |
| sheetName * | string | Name of the sheet (tab) where the table will be created |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_append_valuesAppend rows after the last row of an existing table. Default `insertDataOption` is `OVERWRITE` — set `INSERT_ROWS` to push existing rows down| Parameter | Type | Description |
|---|---|---|
| insertDataOption | string | How the input data should be inserted (default: OVERWRITE) |
| range * | string | The A1 notation range of the table to append to (e.g., "Sheet1!A:B") |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| valueInputOption | string | How the input data should be interpreted (default: USER_ENTERED) |
| values * | array | A 2D array of values to append, where each inner array represents a row |
sheets_batch_delete_sheetsDelete multiple sheet tabs in one request| Parameter | Type | Description |
|---|---|---|
| sheetIds * | array | Array of sheet IDs to delete (use sheets_get_metadata to find sheet IDs) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_batch_format_cellsApply different formats to multiple ranges in one request| Parameter | Type | Description |
|---|---|---|
| formatRequests * | array | Array of format requests, each containing a range and format object |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_batch_get_valuesRead cell values from multiple ranges in one request| Parameter | Type | Description |
|---|---|---|
| majorDimension | string | The major dimension of the values (default: ROWS) |
| ranges * | array | Array of A1 notation ranges to retrieve (e.g., ["Sheet1!A1:B10", "Sheet2!C1:D5"]) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| valueRenderOption | string | How values should be represented (default: FORMATTED_VALUE) |
sheets_batch_update_valuesWrite values to multiple ranges in one request| Parameter | Type | Description |
|---|---|---|
| data * | array | Array of range-value pairs to update |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| valueInputOption | string | How the input data should be interpreted (default: USER_ENTERED) |
sheets_check_accessVerify that the service account can access a spreadsheet| Parameter | Type | Description |
|---|---|---|
| spreadsheetId * | string | The ID of the spreadsheet to check access for |
sheets_clear_valuesClear all values in a range (preserves formatting)| Parameter | Type | Description |
|---|---|---|
| range * | string | The A1 notation range to clear (e.g., "Sheet1!A1:B10") |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_compare_rangesCompare cell formatting between two ranges of identical dimensions. Useful for verifying repeated patterns, e.g. "do all data rows 6–85 have identical formatting?" or "is row 10 formatted identically to the template row 5?". Returns a diff listing only the cells and properties that differ between the two ranges. Cells are compared position-by-position; rangeA and rangeB must have the same number of rows and columns. Use fields to restrict comparison to specific format properties.| Parameter | Type | Description |
|---|---|---|
| fields | array | Optional list of format property names to compare, e.g. ["backgroundColor", "textFormat"]. All format properties compared if omitted. |
| rangeA * | string | First range with sheet prefix, e.g. "Sheet1!A6:Z6" |
| rangeB * | string | Second range with sheet prefix, e.g. "Sheet1!A7:Z7" |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| useEffectiveFormat | boolean | Default: false. Compare effectiveFormat (true) or userEnteredFormat (false). effectiveFormat includes conditional formatting overlays. |
sheets_copy_toCopy a sheet to a different spreadsheet| Parameter | Type | Description |
|---|---|---|
| destinationSpreadsheetId * | string | The ID of the destination spreadsheet |
| sheetId * | number | The ID of the sheet to copy (use sheets_get_metadata to find sheet IDs) |
| spreadsheetId * | string | The ID of the source spreadsheet (found in the URL after /d/) |
sheets_create_chartCreate a bar, line, pie, column or other chart on a sheet| Parameter | Type | Description |
|---|---|---|
| altText | string | Alternative text for accessibility |
| backgroundColor | object | Chart background color |
| chartType * | string | Type of chart to create |
| domainAxis | object | Domain (X) axis configuration |
| domainRange | string | Optional domain range in A1 notation (e.g., "A2:A5" or "My Sheet"!A2:A5). If not provided, column A will be used |
| leftAxis | object | Left (Y) axis configuration |
| legend | object | Legend configuration |
| position * | object | Chart position settings with overlay position. Use overlayPosition.anchorCell.sheetId to specify the sheet. |
| rightAxis | object | Right (Y) axis configuration |
| series * | array | Array of data series for the chart |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| subtitle | string | Chart subtitle (optional) |
| title | string | Chart title (optional) |
sheets_create_spreadsheetCreate a new Google Sheets file| Parameter | Type | Description |
|---|---|---|
| sheets | array | Array of sheets to create in the spreadsheet |
| title * | string | The title of the new spreadsheet |
sheets_delete_chartRemove a chart from a spreadsheet| Parameter | Type | Description |
|---|---|---|
| chartId * | number | The ID of the chart to delete (use sheets_get_metadata to find chart IDs) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_delete_columnsDelete one or more columns using a full-column A1 range| Parameter | Type | Description |
|---|---|---|
| range * | string | Full-column A1 range to delete (e.g., "Sheet1!B:D" or "Sheet1!C:C"). If sheet name is omitted, the first sheet is used |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_delete_rowsDelete one or more rows using a full-row A1 range| Parameter | Type | Description |
|---|---|---|
| range * | string | Full-row A1 range to delete (e.g., "Sheet1!2:4" or "Sheet1!3:3"). If sheet name is omitted, the first sheet is used |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_delete_sheetRemove a sheet tab by its numeric sheet ID| Parameter | Type | Description |
|---|---|---|
| sheetId * | number | The ID of the sheet to delete (use sheets_get_metadata to find sheet IDs) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_delete_tableDelete a native Google Sheets table by table ID| Parameter | Type | Description |
|---|---|---|
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| tableId * | string | The ID of the table to delete |
sheets_duplicate_sheetCopy a sheet within the same spreadsheet| Parameter | Type | Description |
|---|---|---|
| insertSheetIndex | number | The index where the new sheet should be inserted (0-based) |
| newSheetName | string | The name for the duplicated sheet |
| sheetId * | number | The ID of the sheet to duplicate (use sheets_get_metadata to find sheet IDs) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_format_cellsApply background colour, font style, alignment and number format to a rangesheets_get_basic_filterRead the Basic Filter (AutoFilter) configuration for a sheet, including filtered range, sort specs, and per-column filter criteria (hidden values, conditions, colour filters)| Parameter | Type | Description |
|---|---|---|
| sheetName * | string | Name of the sheet (tab) to inspect |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_border_mapReturns a visual tabular map of borders for a range. Instead of per-cell JSON with 4 separate border objects, returns compact grids showing which cells have top/bottom/left/right borders and their styles. Solves the ambiguity between "right border of cell N" vs "left border of cell N+1". Output: a horizontal-lines grid and a vertical-lines grid, each as a 2D array of line styles. Set includeStyle:true to include color and width details (larger output).| Parameter | Type | Description |
|---|---|---|
| includeStyle | boolean | Default: false. When true, each border line includes color and width details. When false, only the style name (SOLID, DASHED, etc.) is shown — more compact. |
| range * | string | Range with sheet prefix, e.g. "Sheet1!A1:F10". Sheet name is required to resolve the range correctly. |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_conditional_formattingRead all conditional formatting rules and banded (alternating-colour) ranges defined on a sheet| Parameter | Type | Description |
|---|---|---|
| normalizeFormulas | boolean | Default: true. Normalize formula separators to English locale (semicolons → commas). Each normalized rule includes "_formulaLocaleRaw" with the original formula. Set to false to get formulas exactly as returned by the Google Sheets API. |
| sheetName * | string | Name of the sheet (tab) to inspect |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_data_validationRead data validation rules (checkboxes, dropdowns, custom formulas) from a sheet or range. Returns compact run-length-encoded list of unique rules grouped by cell ranges| Parameter | Type | Description |
|---|---|---|
| range | string | Optional range WITHOUT sheet prefix, e.g. "A1:Z85". If omitted, the entire sheet is inspected. |
| sheetName * | string | Name of the sheet (tab) to inspect |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_formatting_compactRead cell formatting for a range and return it as compact A1Range→format pairs (run-length encoded). Identical adjacent cells are collapsed into rectangular ranges — reduces output by 90 %+ compared to per-cell data| Parameter | Type | Description |
|---|---|---|
| fields | array | Optional list of format fields to include, e.g. ["backgroundColor", "textFormat", "borders"]. All supported fields returned if omitted. |
| range * | string | Range WITHOUT sheet prefix, e.g. "A1:Z85" |
| sheetName * | string | Name of the sheet (tab) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| useEffectiveFormat | boolean | Use effectiveFormat (true, includes all inherited defaults) or userEnteredFormat (false, default — only explicit overrides). userEnteredFormat produces much smaller output. |
sheets_get_full_sheet_snapshotMaster one-shot tool — returns all structural and formatting metadata (merges, dimensions, conditional formatting, and optionally cell formatting) in a single API call. Supports `fields` filter and `compactMode` to limit response size| Parameter | Type | Description |
|---|---|---|
| compactMode | boolean | Default: false. Full per-cell formatting is returned unless compactMode:true is set. When true, adjacent cells with identical formatting are collapsed into range descriptors (run-length encoded), reducing output by 90%+ for typical formatted sheets. Only applies when includeFormattingRange is set. |
| fields | array | Optional list of format field names to include, e.g. ["backgroundColor", "textFormat", "borders"]. Reduces response size by excluding unused format properties. All fields returned if omitted. |
| includeConditionalFormatting | boolean | Default: true. Include conditional formatting rules and banded ranges in the snapshot. CF formulas are normalized to English locale (semicolons → commas). Set to false to reduce output size when CF rules are not needed. |
| includeFormattingRange | string | Optional range WITHOUT sheet prefix (e.g. "A1:Z85") to include cell-level formatting. If omitted, only structural metadata is returned. |
| sheetName * | string | Name of the sheet (tab) to snapshot |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| useEffectiveFormat | boolean | If includeFormattingRange is set: use effectiveFormat (true) or userEnteredFormat (false, default). |
sheets_get_merged_cellsReturn all merged cell ranges for a sheet, with A1 notation and raw GridRange coordinates| Parameter | Type | Description |
|---|---|---|
| sheetName * | string | Name of the sheet (tab) to inspect |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_metadataGet spreadsheet metadata: title, locale, sheets list with IDs, row/column counts| Parameter | Type | Description |
|---|---|---|
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_sheet_dimensionsReturn column widths, row heights, frozen column/row counts, and hidden flags for every column and row| Parameter | Type | Description |
|---|---|---|
| sheetName * | string | Name of the sheet (tab) to inspect |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_sheet_formattingRead raw cell formatting (background colour, font, borders, alignment, number format) for a range without returning cell values| Parameter | Type | Description |
|---|---|---|
| range * | string | Range in A1 notation, MUST include sheet name, e.g. "Dyspozycje!A1:Z85" |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| useEffectiveFormat | boolean | If true, returns effectiveFormat (includes inherited/default styles). Default: false (userEnteredFormat only). |
sheets_get_sheet_structureLightweight structural metadata only — no per-cell data. Returns dimensions, frozen rows/cols, tab colour, column widths, row heights, hidden columns/rows, and all merges in A1 notation. Single fast API call| Parameter | Type | Description |
|---|---|---|
| sheetName * | string | Name of the sheet (tab) to inspect |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_tablesRead native tables for a spreadsheet or a specific sheet| Parameter | Type | Description |
|---|---|---|
| sheetName | string | Optional name of the sheet (tab) to inspect |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
sheets_get_valuesRead cell values from a single range| Parameter | Type | Description |
|---|---|---|
| majorDimension | string | The major dimension of the values (default: ROWS) |
| range * | string | The A1 notation range to retrieve (e.g., "Sheet1!A1:B10") |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| valueRenderOption | string | How values should be represented (default: FORMATTED_VALUE) |
sheets_insert_dateInsert a date/datetime value formatted correctly into a cell| Parameter | Type | Description |
|---|---|---|
| autoDetect | boolean | Automatically detect and parse date format (default: true) |
| date * | string | Date to insert (supports various formats: YYYY-MM-DD, DD.MM.YYYY, MM/DD/YYYY, or relative dates like "today", "tomorrow") |
| format | string | Date format preference (locale=spreadsheet locale, iso=YYYY-MM-DD, us=MM/DD/YYYY, eu=DD.MM.YYYY) |
| range * | string | The A1 notation range to insert the date (e.g., "Sheet1!A1") |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| useEUFormat | boolean | Use semicolon separator for EU locale sheets (auto-detected from user language/context if not specified) |
sheets_insert_linkInsert a hyperlink formula into a cell| Parameter | Type | Description |
|---|---|---|
| range * | string | The A1 notation range to insert the link (e.g., "Sheet1!A1" or "A1:B2") |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| text | string | Custom display text for the link (optional - if not provided, the URL will be displayed) |
| url * | string | The URL to link to (must be a valid URL) |
| useEUFormat | boolean | Use semicolon separator for EU locale sheets (auto-detected from user language/context if not specified) |
| validation | boolean | Whether to validate the URL format (default: true) |
sheets_insert_rowsInsert blank or pre-filled rows at a specific position| Parameter | Type | Description |
|---|---|---|
| inheritFromBefore | boolean | Whether to inherit formatting from the row before (default: false) |
| position | string | Position relative to the anchor row (default: BEFORE) |
| range * | string | The A1 notation anchor point where rows will be inserted (e.g., "Sheet1!A5") |
| rows | number | Number of rows to insert (default: 1) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| valueInputOption | string | How the input data should be interpreted (default: USER_ENTERED) |
| values | array | Optional 2D array of values to fill the newly inserted rows |
sheets_insert_sheetAdd a new sheet tab to an existing spreadsheet| Parameter | Type | Description |
|---|---|---|
| columnCount | number | Number of columns in the sheet (default: 26) |
| index | number | The index where the sheet should be inserted (0-based) |
| rowCount | number | Number of rows in the sheet (default: 1000) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| title * | string | The title of the new sheet |
sheets_merge_cellsMerge a range of cellssheets_unmerge_cellsUnmerge previously merged cells in a rangesheets_update_bordersSet or remove borders on a range (style, width, colour per side)sheets_update_chartModify an existing chart's spec or position| Parameter | Type | Description |
|---|---|---|
| altText | string | Updated alternative text for accessibility (optional) |
| backgroundColor | object | Updated chart background color (optional) |
| chartId * | number | The ID of the chart to update (use sheets_get_metadata to find chart IDs) |
| chartType | string | Updated chart type (optional) |
| domainAxis | object | Updated domain (X) axis configuration (optional) |
| leftAxis | object | Updated left (Y) axis configuration (optional) |
| legend | object | Updated legend configuration (optional) |
| position | object | Updated chart position settings (optional) |
| rightAxis | object | Updated right (Y) axis configuration (optional) |
| series | array | Updated array of data series for the chart (optional) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| subtitle | string | Updated chart subtitle (optional) |
| title | string | Updated chart title (optional) |
sheets_update_sheet_propertiesRename a sheet, change tab colour, toggle grid lines, etc.| Parameter | Type | Description |
|---|---|---|
| gridProperties | object | Grid properties to update |
| sheetId * | number | The ID of the sheet to update (use sheets_get_metadata to find sheet IDs) |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| tabColor | object | Tab color (RGB values from 0.0 to 1.0) |
| title | string | New title for the sheet |
sheets_update_tableUpdate an existing native Google Sheets table by table ID using an explicit field mask| Parameter | Type | Description |
|---|---|---|
| columns | array | Optional replacement column definitions for the table |
| fields * | string | Required field mask for the table update, e.g. "name", "range", "columnProperties", or "name,range" |
| name | string | Optional new table name |
| range | string | Optional new A1 notation range for the table, e.g. "A1:D20" |
| sheetName | string | Name of the target sheet when updating the table range |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| tableId * | string | The ID of the table to update |
sheets_update_valuesWrite values to a single range (overwrites existing content)| Parameter | Type | Description |
|---|---|---|
| range * | string | The A1 notation range to update. Use "Sheet1!A1:B10" for exact range (must match row count exactly) or "Sheet1!A1" for flexible range that auto-expands based on data. TIP: If updating multiple rows with varying content, use flexible range (e.g., "A42" instead of "A42:E53") to avoid row count mismatch errors. |
| spreadsheetId * | string | The ID of the spreadsheet (found in the URL after /d/) |
| valueInputOption | string | How the input data should be interpreted (default: USER_ENTERED) |
| values * | array | A 2D array of values to update, where each inner array represents a row |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.2K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json.
- ✓No dynamic code executionScanned 68 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:18
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- package-lock.json
Pattern matches on the source text of 68 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.2K words, fetched a month ago. The original in the repository is authoritative.
Read full README