Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mcp-gsheets

MCP server by freema Community

Reads, writes and manages Google Sheets documents from MCP clients such as Claude Desktop, Claude Code and Cursor. It is built for users who want an AI assistant to work with spreadsheet data through the Google Sheets API.

  • Score 87
  • 106 stars
  • 5.1k a week
  • MIT
  • Updated

Install mcp-gsheets

Built from the published package, never by AI.

claude mcp add mcp-gsheets -e GOOGLE_PROJECT_ID=YOUR_GOOGLE_PROJECT_ID -- npx -y mcp-gsheets

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install mcp-gsheets in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-gsheets block.

About

mcp-gsheets is a Model Context Protocol server for the Google Sheets API. It lets an MCP client such as Claude Code, Claude Desktop, Cursor or Cline read, write and manage spreadsheets. The source lists tools for reading and writing values, appending rows, clearing ranges, inserting and deleting rows, and inserting links. It also mentions batch operations, formatting, charts and conditional formatting.

The server runs through npx and authenticates with a Google Cloud service account. Credentials can be supplied as a JSON key file, a JSON string, or a private key and client email. Each spreadsheet must be shared with the service account email with Editor access. The GSHEETS_TOOLSETS variable limits which tool groups are exposed, which reduces context cost. The project is written in TypeScript and is aimed at developers and users who want AI assistants to work with Google Sheets data.

Written from the project's README and checked against it.

Tools it gives your assistant

  • sheets_get_valuesReads cell values from a single range in A1 notation.
  • sheets_batch_get_valuesReads cell values from multiple ranges in one request.
  • sheets_get_metadataReturns title, locale, sheet list with IDs, and row and column counts.
  • sheets_check_accessVerifies that the service account can access a spreadsheet.
  • sheets_update_valuesWrites values to a single range, overwriting existing content.
  • sheets_batch_update_valuesWrites values to multiple ranges in one request.
  • sheets_append_valuesAppends rows after the last row of an existing table.
  • sheets_clear_valuesClears all values in a range while preserving formatting.
  • sheets_insert_rowsInserts blank or pre-filled rows at a specific position.
  • sheets_delete_rowsDeletes one or more rows using a full-row A1 range.

What you need

  • Node.js v22 or higher
  • Google Cloud project with the Google Sheets API enabled
  • Google Cloud service account with a JSON key
  • npm
SettingNeededWhat it is
GOOGLE_PROJECT_IDEnvironment variableRequiredGoogle Cloud project ID
GOOGLE_APPLICATION_CREDENTIALSEnvironment variableOptionalPath to service account key JSON file (auth method 1)
GOOGLE_SERVICE_ACCOUNT_KEYEnvironment variable, secretOptionalService account key as JSON string (auth method 2)
GOOGLE_PRIVATE_KEYEnvironment variable, secretOptionalService account private key in PEM format (auth method 3)
GOOGLE_CLIENT_EMAILEnvironment variableOptionalService account email (auth method 3)

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Read the values in Sheet1!A1:D20 from my budget spreadsheet.
  • Append these three expense rows to the bottom of my tracking sheet.
  • Show the sheet names and row counts in this spreadsheet.

Good to know

  • Each spreadsheet must be shared with the service account email with Editor access.
  • Setting GSHEETS_READ_ONLY=true removes all writing tools.
  • With default settings, all 44 tools use about 9,900 tokens of context per session.
  • sheets_update_values overwrites existing content in the target range.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mcp-gsheets

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

mcp-gsheets: common questions

Does this server need a Google service account?

Yes. The source says it authenticates with a Google Cloud service account, using a JSON key file, a JSON string, or a private key and client email.

Can I run it in read-only mode?

Yes. Setting GSHEETS_READ_ONLY=true drops every writing tool, and the restriction is enforced when a tool is called.

How do I limit which tools the assistant sees?

Set GSHEETS_TOOLSETS to a list such as core,charts. The core toolset is always included, and a typo in the name causes a startup error.

How do I install mcp-gsheets?

In Claude Code run claude mcp add mcp-gsheets -e GOOGLE_PROJECT_ID=YOUR_GOOGLE_PROJECT_ID -- npx -y mcp-gsheets. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is mcp-gsheets the official server?

mcp-gsheets is a community project by freema, not verified by a company domain.

Is mcp-gsheets free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is mcp-gsheets safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mcp-gsheets?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does mcp-gsheets work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

mcp-gsheets Install

Add to stack

Loading.