mcpField
G
Google Sheets Mcp

Google Sheets Mcp

Local
github.com/generalist-clubData & Analytics0Updated 31w ago

About Google Sheets Mcp

Google Sheets Mcp is an MCP server that lets Claude and other MCP clients read and modify spreadsheets through OAuth. Its tools cover cell ranges, row appends, and sheet metadata.

Key features

  1. 01Read data from spreadsheet ranges
  2. 02Write or update cell data
  3. 03Append rows to spreadsheets
  4. 04Retrieve sheet names and dimensions
  5. 05Clear selected cell ranges

Use cases

  1. 01Inspecting spreadsheet data through an MCP client
  2. 02Updating cells or adding spreadsheet rows
  3. 03Checking workbook sheet names and dimensions
  4. 04Clearing a specified range of cells

MCP support

It exposes five Google Sheets tools to Claude and other MCP clients: `read_sheet`, `write_sheet`, `append_rows`, `get_sheet_info`, and `clear_range`.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"google-sheets-mcp-generalist-club": {
"command": "npx",
"args": [
"-y",
"@generalist-club/google-sheets-mcp"
]
}
}
}
Run commandnpx -y @generalist-club/google-sheets-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@generalist-club/google-sheets-mcp

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Google Sheets MCP

A Model Context Protocol (MCP) server that gives Claude (and other MCP clients) read/write access to any Google Sheet via OAuth.

Tools

ToolDescription
read_sheetRead data from any range in a spreadsheet
write_sheetWrite or update data in a spreadsheet
append_rowsAppend new rows to a spreadsheet
get_sheet_infoGet sheet names, row counts, and column counts
clear_rangeClear a range of cells

All tools accept a full Google Sheets URL or a bare spreadsheet ID.


Prerequisites

  • Node.js 18+
  • A Google account
  • A Google Cloud project (free)

Setup

1. Clone the repo
git clone https://github.com/generalist-club/google-sheets-mcp.git
cd google-sheets-mcp
npm install
2. Create a Google Cloud project & OAuth credentials
  1. Go to Google Cloud Console
  2. Create a new project (or select an existing one)
  3. Enable the Google Sheets API and Google Drive API:
    • Navigate to APIs & Services → Library
    • Search for and enable both APIs
  4. Create OAuth credentials:
    • Navigate to APIs & Services → Credentials
    • Click Create Credentials → OAuth client ID
    • Application type: Desktop app
    • Download the JSON file
  5. Rename the downloaded file to credentials.json and place it in the project root
3. Authenticate

Run the auth script to generate your token:

node auth.js

It will print a URL. Open it in your browser, authorize the app, then paste the code back into the terminal. This creates a token.json file locally — keep it secret.

Token refresh: The server automatically refreshes the access token when it expires. You should only need to run auth.js once.

4. Configure Claude Desktop (or any MCP client)

Add this server to your Claude Desktop config at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "google-sheets": {
      "command": "node",
      "args": ["/absolute/path/to/google-sheets-mcp/index.js"]
    }
  }
}

Replace /absolute/path/to/google-sheets-mcp with the actual path on your machine.

Restart Claude Desktop. The five Google Sheets tools will now be available.


Usage examples

Once connected, you can ask Claude things like:

  • "Read the data from this spreadsheet: https://docs.google.com/spreadsheets/d/..."
  • "Append a new row with today's date and 42 to Sheet1"
  • "What sheets are in this workbook and how many rows does each have?"
  • "Clear the range B2:D10 in my spreadsheet"

Security notes

  • credentials.json and token.json are excluded from git via .gitignore — never commit them
  • The OAuth token is stored locally and only grants access to your own Google account
  • Scopes requested: spreadsheets (read/write) and drive.readonly (to resolve sheet metadata)

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.