# Google Sheets MCP Server

> Read, write, and manage Google Sheets through MCP.

- **URL**: https://followmcp.com/en/servers/mcp-gsheets
- **Category**: Other
- **Origin**: Community
- **Stars**: 106
- **FMRS Score**: 54/100 (Grade D)
- **Source**: https://github.com/freema/mcp-gsheets
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 22+
- **Auth**: API key / credential required

## Overview
Google Sheets MCP Server connects MCP clients to spreadsheets through the Google Sheets API. It supports cell reads and writes, sheet management, formatting, native tables, charts, and batch operations. It uses stdio transport and Google Cloud service account credentials.

## Best for
- Users who want an MCP client to read or edit Google Sheets.
- Workflows that automate batch spreadsheet operations, formatting, or sheet management.

## Not for
- Users who do not use Google Sheets or do not want to configure a Google Cloud service account.
- Strictly read-only workflows unless the server's read-only mode is configured and verified.

## Required permissions
- GOOGLE_PROJECT_ID is required; authentication can use a service account key file, a service account JSON string, or a private key with client email.
- The service account must have access to target spreadsheets. The README recommends sharing them and granting Editor access; set permissions according to the operations needed.
- The tools include writes, clears, and deletion of sheets, rows, and columns.

## Risks
- Write, clear, and delete operations can overwrite or remove spreadsheet data. Append defaults to OVERWRITE, so check its insert option.
- Service account credentials are sensitive; JSON-string and private-key authentication require correctly escaped newlines.
- The README describes a read-only setting enforced when tools are called; verify whether it is enabled in the deployment configuration.

## Client config (JSON)
```json
{
  "mcpServers": {
    "mcp-gsheets": {
      "command": "npx",
      "args": ["-y", "mcp-gsheets@latest"],
      "env": {
        "GOOGLE_PROJECT_ID": "your-project-id",
        "GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/service-account-key.json"
      }
    }
  }
}
```

## Tools (42)
- `sheets_get_values`: Read cell values from one range.
- `sheets_batch_get_values`: Read cell values from multiple ranges in one request.
- `sheets_get_metadata`: Read spreadsheet metadata including title, locale, sheets, and dimensions.
- `sheets_check_access`: Check whether the service account can access a spreadsheet.
- `sheets_update_values`: Write values to one range, overwriting existing content.
- `sheets_batch_update_values`: Write values to multiple ranges in one request.
- `sheets_append_values`: Append rows after an existing table; the default option is OVERWRITE.
- `sheets_clear_values`: Clear values from a range while preserving formatting.
- `sheets_insert_rows`: Insert blank or prefilled rows at a specified position.
- `sheets_delete_columns`: Delete one or more columns using a full-column range.
- `sheets_delete_rows`: Delete one or more rows using a full-row range.
- `sheets_insert_link`: Insert a hyperlink formula into a cell.
- `sheets_insert_date`: Write a date or datetime value to a cell using the requested format.
- `sheets_create_spreadsheet`: Create a new Google Sheets file.
- `sheets_insert_sheet`: Add a sheet tab to an existing spreadsheet.
- `sheets_delete_sheet`: Delete a sheet tab by its sheet ID.
- `sheets_duplicate_sheet`: Copy a sheet within the same spreadsheet.
- `sheets_copy_to`: Copy a sheet to a different spreadsheet.
- `sheets_update_sheet_properties`: Update sheet properties such as name, tab color, or gridline visibility.
- `sheets_batch_delete_sheets`: Delete multiple sheet tabs in one request.
- `sheets_format_cells`: Set background color, font style, alignment, and number format for a range.
- `sheets_batch_format_cells`: Apply formatting to multiple ranges in one request.
- `sheets_update_borders`: Set or remove borders on a range.
- `sheets_merge_cells`: Merge a range of cells.
- `sheets_unmerge_cells`: Unmerge a specified range.
- `sheets_add_conditional_formatting`: Add a gradient or boolean conditional formatting rule to a range.
- `sheets_add_table`: Create a native table with typed columns and optional dropdown values.
- `sheets_update_table`: Update a native table using an explicit field mask.
- `sheets_delete_table`: Delete a native table by table ID.
- `sheets_get_tables`: Read native tables for a spreadsheet or a specified sheet.
- `sheets_create_chart`: Create a chart on a sheet.
- `sheets_update_chart`: Modify an existing chart's specification or position.
- `sheets_delete_chart`: Remove a chart from a spreadsheet.
- `sheets_get_merged_cells`: Read merged cell ranges for a sheet.
- `sheets_get_sheet_dimensions`: Read column widths, row heights, frozen row and column counts, and hidden row and column information.
- `sheets_get_sheet_formatting`: Read raw cell formatting for a range without returning cell values.
- `sheets_get_conditional_formatting`: Read conditional formatting rules and banded ranges on a sheet.
- `sheets_get_sheet_structure`: Read sheet dimensions, frozen rows and columns, tab color, sizes, hidden items, and merge ranges without cell data.
- `sheets_get_formatting_compact`: Read formatting as compact range-to-format pairs, grouping adjacent cells with identical formatting.
- `sheets_get_full_sheet_snapshot`: Read sheet structure and formatting metadata in one call, optionally including cell formatting.
- `sheets_get_basic_filter`: Read a sheet's basic filter configuration, sort specifications, and column filter criteria.
- `sheets_get_data_validation`: Read data validation rules for a sheet or range, grouped by ranges.
