MCP Gsheets logo

MCP Gsheets

by freema

Connects MCP clients to Google Sheets for spreadsheet data, formatting, charts, and sheet management.

Install MCP Gsheets

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "freema-mcp-gsheets": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-gsheets@latest"
      ],
      "env": {
        "GOOGLE_PROJECT_ID": "YOUR_VALUE_HERE",
        "GOOGLE_APPLICATION_CREDENTIALS": "YOUR_VALUE_HERE",
        "GOOGLE_SERVICE_ACCOUNT_KEY": "YOUR_VALUE_HERE",
        "GOOGLE_PRIVATE_KEY": "YOUR_VALUE_HERE",
        "GOOGLE_CLIENT_EMAIL": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

freema/mcp-gsheets connects MCP clients to the Google Sheets API through a Node.js stdio process launched with npx. It supports reading, writing, spreadsheet management, batch operations, formatting, charts, and conditional formatting. Authentication uses a Google service account supplied as a key file, JSON string, or private-key and email variables. Reach for it when an agent needs to inspect or modify shared Google Sheets.

Use cases

  • Read data from shared Google Sheets
  • Write agent-generated values to spreadsheets
  • Apply formatting and conditional formatting
  • Manage sheets and spreadsheet structure
  • Create or update charts in workbooks

Key features

  • Google Sheets API integration
  • Spreadsheet reading and writing
  • Batch spreadsheet operations
  • Formatting and conditional formatting
  • Chart management
  • Service-account authentication

Security & health

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

ActiveLast checked 2d ago

Recent health check succeeded.

21/21 checks healthy over the last 80d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · mcp-gsheets@latest (npm)

Adoption & maintenance

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

GitHub stars104Stargazers on the source repository.
npm downloads6.4kPackage downloads in the last 30 days.
Last commit3d agoMost recent push to the default branch.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Gsheets works

What freema/mcp-gsheets does

freema/mcp-gsheets exposes Google Sheets operations to MCP-compatible applications. It lets an agent read spreadsheet content, write updates, manage sheets, apply formatting, work with charts, and configure conditional formatting. Batch operations are also supported for workflows that need to make multiple spreadsheet changes together.

The server is suited to automations where spreadsheet data is both an input and an output. For example, an MCP client can use it to inspect an existing workbook, update cells or ranges, and perform document-management tasks without requiring a separate application-specific connector.

How it works

The package runs as a Node.js MCP server, typically through npx and the package's @latest tag. An MCP client starts the process with a command and environment variables, then exposes its Google Sheets capabilities to the connected model.

Google Cloud supplies the credentials. The Google Sheets API must be enabled in the selected project, and the target spreadsheets must be shared with the service account. Editor access is used in the setup instructions so the server can perform write and management operations.

Setup and configuration

Install Node.js 22 or newer and npm. In Google Cloud, create or select a project, enable the Google Sheets API, create a service account, and generate a JSON key. Share each target spreadsheet with the service account email.

A typical MCP configuration uses:

config.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"
      }
    }
  }
}

Credentials can instead be supplied through GOOGLE_SERVICE_ACCOUNT_KEY as a single-line, escaped JSON value. Another option uses GOOGLE_PRIVATE_KEY and GOOGLE_CLIENT_EMAIL; the private key must retain its PEM markers, with newline characters represented as \\n. GOOGLE_PROJECT_ID is optional when the selected credential value contains the project ID or when using the private-key method.

For local development, clone the repository, run npm install, and build with npm run build. The project also provides an interactive setup command and a local configuration that starts the compiled dist/index.js file directly.

Tools and capabilities

The server supports the following categories of Google Sheets work:

  • Read spreadsheet data.
  • Write spreadsheet data.
  • Manage spreadsheets and sheets.
  • Perform batch operations.
  • Apply spreadsheet formatting.
  • Create or manage charts.
  • Configure conditional formatting.

The exact operations are available to the connected MCP client after the server starts successfully and authenticates with Google Cloud.

Limitations and notes

Access depends on Google Cloud configuration and spreadsheet sharing. Enabling the Sheets API alone is not sufficient; each workbook must also grant the service account access. File-based credentials require a readable absolute path, while inline credentials must be correctly escaped for the MCP client's JSON configuration.

The server requires Node.js 22 or newer. Its standard examples use an MCP client configuration that launches a local stdio process with npx; clients using another transport or deployment model need an equivalent way to start and configure the process. The project is licensed under MIT.

Reviews

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

Frequently Asked Questions about MCP Gsheets

freema/mcp-gsheets is an MCP server that connects MCP clients to the Google Sheets API. Its main capabilities cover reading and writing spreadsheet data, managing sheets, running batch operations, applying formatting, handling charts, and configuring conditional formatting with service-account authentication.

Install it through an MCP client's stdio configuration with `npx -y mcp-gsheets@latest`. Set the required Google Cloud environment variables, or clone the project, install dependencies with npm, build it, and point the client at the generated `dist/index.js` file.

Authenticate with a Google service account by setting `GOOGLE_APPLICATION_CREDENTIALS` to a JSON key path, `GOOGLE_SERVICE_ACCOUNT_KEY` to escaped JSON credentials, or `GOOGLE_PRIVATE_KEY` and `GOOGLE_CLIENT_EMAIL`. Enable the Sheets API and share target spreadsheets with the service account.

Yes. Add freema/mcp-gsheets from Cursor Settings, then MCP, then New MCP Server, using the standard `npx` command and Google Cloud environment variables shown in the configuration.

Yes. Claude Desktop accepts the server entry in its platform-specific configuration file, while Claude Code can add it with `claude mcp add mcp-gsheets npx mcp-gsheets@latest`; both require Google Cloud authentication variables.

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 PreviewMCP Gsheets AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/freema-mcp-gsheets?style=directory)](https://allmcps.com/mcp/freema-mcp-gsheets)
HTML Embed
<a href="https://allmcps.com/mcp/freema-mcp-gsheets"><img src="https://allmcps.com/api/badge/freema-mcp-gsheets?style=directory" alt="MCP Gsheets on AllMCPs" /></a>