Google Sheets MCP logo

Google Sheets MCP

Manage Google Sheets through guarded MCP tools for reading, editing, formatting, analysis, comments, and spreadsheet structure.

Install Google Sheets MCP

Run the project’s own setup commands, in order.

Setup steps from the project

google-sheets-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    go install github.com/mmedum/google-sheets-mcp/v4/cmd/google-sheets-mcp@latest
    
  2. 2. Sign in
    google-sheets-mcp login -secret ./client_secret.json
    
  3. 3. Add to Claude Code
    claude mcp add google-sheets -- google-sheets-mcp
    

Overview

google-sheets-mcp exposes Google Sheets operations through MCP over stdio, running locally as a Go binary against the user's Google account. It can inspect spreadsheet structure, read values and formatting, write data with formula and overwrite safeguards, and manage sheets, ranges, charts, pivots, comments, and connected data sources. OAuth credentials are stored in the operating system keyring after a one-time login, with no hosted service or service account required. Reach for it when an agent needs controlled spreadsheet automation rather than file-level Google Drive management.

Use cases

  • Read spreadsheet ranges while preserving formulas and reporting checkpoints
  • Update tabular data without silently overwriting existing formulas
  • Format and validate worksheet regions in one batch
  • Build or maintain charts, pivot tables, and spreadsheet structure
  • Search cells, notes, formulas, and comments for matching text

Key features

  • Guarded writes with overwrite and formula protection
  • A1 range reads with values, formulas, and continuation checkpoints
  • Block-based formatting inspection
  • Sheet, dimension, chart, pivot, and anchor management
  • Cell comments, notes, validation, tables, and protected ranges
  • Optional Connected Sheets and BigQuery data-source operations

Tools25

What Google Sheets MCP lets your agent do. Expand a tool for its parameters.

Self-reported~1.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 48d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit5d agoMost recent push to the default branch.
Tools exposed25Callable tools this server registers over MCP.

How Google Sheets MCP works

What google-sheets-mcp does

google-sheets-mcp turns Google Sheets into a collection of MCP tools for agents and other MCP clients. It works within spreadsheets: reading cells and formulas, changing values, applying formatting, managing sheet structure, and inspecting or modifying objects attached to ranges. Spreadsheet discovery is supported through a Drive search operation, but broader file actions such as sharing, moving, deleting, or revision management are outside its scope.

The tool set covers both ordinary grid work and higher-level Sheets features. Agents can create spreadsheets, add or reorganize sheets, insert or resize rows and columns, manage named ranges and protected ranges, work with tables and validation, and operate on charts, slicers, pivot tables, and Connected Sheets data sources. Cell comments and notes are handled separately, including comment replies and resolution state.

How it works

The server is a local Go executable that communicates with an MCP client over stdio. It uses the Google Sheets API for spreadsheet operations and the Drive API only for finding spreadsheets. Authentication uses a user-created Google OAuth desktop client. After login completes, the refresh token is kept in the OS keyring; if no keyring is available, it is stored in a permissions-restricted file under the configuration directory.

Ranges use A1 notation, with sheet titles handled for the caller. Reads return checkpoints and can continue when output is limited by cell or character budgets. Formatting reads describe contiguous blocks with the same formatting and also include related features such as merges, conditional formatting, banding, validation, and notes.

Writes are deliberately guarded. write_values checks the destination before changing it, refuses unsafe overwrites unless the relevant options are supplied, and reports values that Google stores differently from the submitted values. Operations that remove data or structure are disabled by default and require explicit enablement or acknowledgement. Durable anchors can identify rows, columns, or sheets even after edits make an A1 address obsolete.

Setup and configuration

Create a Google Cloud project, enable the Google Sheets API and Google Drive API, configure the OAuth consent screen, and create a Desktop app OAuth client. Install the binary with:

bash
go install github.com/mmedum/google-sheets-mcp/v4/cmd/google-sheets-mcp@latest

Authenticate it with:

bash
google-sheets-mcp login -secret ./client_secret.json

The login flow opens a browser when possible and uses a loopback callback with PKCE and state protection. status reports the signed-in account and credential location, logout revokes the token and removes the local copy, and doctor checks credentials, granted scopes, and Google API responses.

Normal operation requires spreadsheet access and read-only Drive access. Connected Sheets additionally requires the BigQuery read-only scope and the GSHEETS_ENABLE_DATA_SOURCES setting. Setting GSHEETS_READ_ONLY=true requests read-only spreadsheet access and prevents write tools from being registered. Claude Desktop can install the release bundle, while Claude Code uses a normal command configuration; the bundle still requires a prior binary login.

Tools and capabilities

  • Inspect spreadsheet metadata, sheets, named ranges, tables, protections, and filter views with get_spreadsheet.
  • Read values, formulas, formatting, comments, and cell-level matches with read_range, read_formatting, find_in_spreadsheet, and comment tools.
  • Create spreadsheets, write or append values, format cells, clear values, and transform ranges.
  • Add, update, or remove validations, tables, banding, conditional formats, protected ranges, and named ranges.
  • Manage sheets, dimensions, anchors, charts, slicers, pivot tables, and Connected Sheets sources.
  • Search spreadsheets by title, content, owner, or modification time through search_spreadsheets.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Google Sheets MCP

google-sheets-mcp is an MCP server that connects AI clients to Google Sheets through a local Go binary and OAuth account. Its main tools read ranges and formatting, search spreadsheets, write values safely, append rows, manage sheets and dimensions, and handle charts, pivots, comments, validations, and other spreadsheet features.

Install it with `go install github.com/mmedum/google-sheets-mcp/v4/cmd/google-sheets-mcp@latest`, or download an archive from the latest release. The project publishes binaries for Linux, macOS, and Windows on amd64 and arm64.

Authenticate with a Google OAuth Desktop app client by running `google-sheets-mcp login -secret ./client_secret.json`. Enable the Google Sheets API and Drive API first; the refresh token is stored in the OS keyring when available.

Yes, google-sheets-mcp provides an `.mcpb` bundle for Claude Desktop. You must run the binary's login command first, because opening the bundle does not perform Google authentication. Claude Desktop then uses the saved credentials and presents its normal tool approval controls.

Enable Connected Sheets during login with `google-sheets-mcp login -enable-data-sources=true` and set `GSHEETS_ENABLE_DATA_SOURCES=true` when running the server. The Google project also needs the BigQuery read-only scope, and Connected Sheets operations incur charges to the named Cloud project.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGoogle Sheets MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/google-sheets-mcp-2?style=directory)](https://allmcps.com/mcp/google-sheets-mcp-2)
HTML Embed
<a href="https://allmcps.com/mcp/google-sheets-mcp-2"><img src="https://allmcps.com/api/badge/google-sheets-mcp-2?style=directory" alt="Google Sheets MCP on AllMCPs" /></a>