Skip to content

Menu

Google Sheets MCP Server logo

Google Sheets MCP Server

Published · Updated

At a glance

GitHub repository
xing5/mcp-google-sheets
Watch out for
Google is not the author; it comes from an independent developer.

mcp-google-sheets by Xing Wu is a Python community server that connects an assistant to the Google Sheets API, run with uvx mcp-google-sheets@latest. It is a focused alternative to the all-in-one Workspace servers when spreadsheets are all you need.

It can find spreadsheets, list their tabs, read data and formulas, write cells and ranges in batches, add rows and columns, create, copy and rename sheets, read several sheets or spreadsheets in one call, share a spreadsheet and add charts. Reading formulas separately from values is a nice detail: it lets the model understand how a sheet calculates something rather than only seeing the results.

Authentication is flexible, which matters because spreadsheets are often shared across teams. A service account is recommended for automation: you share specific sheets or a Drive folder with the service account's email address, and the server can only see those, which is a clean way to limit what the model reaches. OAuth works for personal use with your own account, and application default credentials suit Google Cloud environments. Tool filtering, through ENABLED_TOOLS or --include-tools, cuts the tool list down to, say, reading and updating cells only.

How it connects

Your AI app

An assistant or agent that supports MCP

Google Sheets MCP Server

Runs as

  • Python (uv / pip)

Gives the agent

  • Finding and navigating
  • Reading
  • Writing
  • Structure and sharing
  • Tool filtering

Google Sheets

Signs in with

  • OAuth / browser sign-in
Your AI app talks to Google Sheets MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Finding and navigating
list_spreadsheets (within a Drive folder for service accounts), list_sheets and get_multiple_spreadsheet_summary.
Reading
get_sheet_data, get_sheet_formulas and get_multiple_sheet_data read values and formulas.
Writing
update_cells, batch_update_cells, add_rows and add_columns change data.
Structure and sharing
create_spreadsheet, create_sheet, copy_sheet, rename_sheet, share_spreadsheet and add_chart.
Tool filtering
ENABLED_TOOLS or --include-tools limits which tools load, reducing context and risk.

Setting it up

Enable the Google Sheets and Drive APIs in a Google Cloud project. For a service account, download its key and set SERVICE_ACCOUNT_PATH, and optionally DRIVE_FOLDER_ID to limit listing to one folder; share the sheets you want with the service account's email. For personal OAuth, set CREDENTIALS_PATH to your OAuth client file and sign in on first run. Then add a server that runs uvx mcp-google-sheets@latest with those variables. Set ENABLED_TOOLS=get_sheet_data,update_cells,list_spreadsheets,list_sheets (or fewer) to keep the tool set small.

Run in a terminal
claude mcp add google-sheets -- uvx mcp-google-sheets@latest

Runs the mcp-google-sheets package from PyPI. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Asking questions about data in a shared spreadsheet
  • Appending rows from a conversation, such as logging decisions
  • Understanding a complex sheet by reading its formulas
  • Building a summary tab with a chart from raw data

Limitations and things to watch

  • Google is not the author; it comes from an independent developer.
  • Writes and sharing change real spreadsheets; share_spreadsheet can expose data to others.
  • Large sheets return a lot of data; read specific ranges.
  • Service account setup takes some Google Cloud configuration.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…