npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

google-sheets-mcp-server-configurable

v1.2.0

Published

MCP Server for Google Sheets integration with Claude and other AI assistants

Readme

Google Sheets MCP Server

npm version License: MIT

A Model Context Protocol (MCP) server that enables Claude and other AI assistants to interact with Google Sheets for reading, writing, and creating spreadsheets.

Features

  • read_sheet: Read data from specific ranges in Google Sheets
  • write_sheet: Write data to specific cells
  • create_sheet: Create new spreadsheets
  • Secure authentication with Service Account
  • Robust input validation and error handling
  • ES modules support
  • TypeScript support

Installation

Via npm (Recommended)

npm install -g google-sheets-mcp-server

From source

git clone https://github.com/jorge-espinosa/google-sheets-mcp-server.git
cd google-sheets-mcp-server
npm install

Setup

1. Google Cloud Setup

  1. Create a Google Cloud Project:

  2. Enable APIs:

    • Enable Google Sheets API
    • Enable Google Drive API
  3. Create Service Account:

    • Go to IAM & Admin > Service Accounts
    • Create a new service account
    • Download the credentials JSON file
    • Rename it to credentials.json and place it in your project root

2. Environment Configuration

  1. Copy the environment file:
cp .env.example .env
  1. Configure your Spreadsheet ID:

    • Edit .env file
    • Replace your_spreadsheet_id_here with your actual Google Sheets ID
    • The Spreadsheet ID can be found in the URL: https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/edit
  2. Build the project (if installing from source):

npm run build

Permissions Setup

To use the server with existing spreadsheets, share the spreadsheet with your service account email (found in your credentials.json file) and assign "Editor" permissions.

Usage

Running the Server

Development

npm run dev

Production

npm start

Global Installation

google-sheets-mcp

Available Scripts

  • npm run build - Compile TypeScript
  • npm run dev - Run in development mode
  • npm run start - Run compiled server
  • npm run test - Run basic functionality test

Claude Desktop Integration

Add this to your Claude Desktop config file:

{
  "mcpServers": {
    "google-sheets": {
      "command": "google-sheets-mcp",
      "args": [],
      "env": {
        "GOOGLE_SHEETS_SPREADSHEET_ID": "your_spreadsheet_id_here"
      }
    }
  }
}

Important: Replace your_spreadsheet_id_here with your actual Google Sheets ID.

MCP Tools

read_sheet

Reads data from a specific range in a spreadsheet.

Parameters:

  • spreadsheetId (string): Spreadsheet ID
  • range (string): Range to read (e.g., "Sheet1!A1:C10")

Usage example:

{
  "name": "read_sheet",
  "arguments": {
    "spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
    "range": "Sheet1!A1:C10"
  }
}

write_sheet

Writes data to a specific range in a spreadsheet.

Parameters:

  • spreadsheetId (string): Spreadsheet ID
  • range (string): Range to write to (e.g., "Sheet1!A1")
  • values (array): 2D array of values to write

Usage example:

{
  "name": "write_sheet",
  "arguments": {
    "spreadsheetId": "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms",
    "range": "Sheet1!A1",
    "values": [
      ["Name", "Age", "City"],
      ["John", "25", "Madrid"],
      ["Ana", "30", "Barcelona"]
    ]
  }
}

create_sheet

Creates a new spreadsheet.

Parameters:

  • title (string): Title of the new spreadsheet

Usage example:

{
  "name": "create_sheet",
  "arguments": {
    "title": "My New Spreadsheet"
  }
}

Project Structure

├── src/
│   ├── index.ts      # Main MCP server
│   ├── auth.ts       # Google authentication
│   └── validation.ts # Input validation
├── credentials.json  # Service Account credentials
├── package.json
├── tsconfig.json
└── README.md

Limitations

  • Maximum 10,000 cells per write operation
  • Sheet titles limited to 100 characters
  • Requires sharing permissions for existing sheets
  • Subject to Google Sheets API quota limits

Troubleshooting

Authentication Error

  • Verify credentials.json is in the project root
  • Verify APIs are enabled in Google Cloud Console

Permission Error

  • Share the sheet with the service account email
  • Verify the spreadsheet ID is correct

Range Format Error

  • Use correct format: "SheetName!A1:C10"
  • Verify the sheet name is correct

Contributing

To contribute to the project:

  1. Fork the repository
  2. Create a feature branch
  3. Implement changes with validation
  4. Run tests before committing
  5. Create a pull request

License

MIT