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

@xmqywxkris/google-sheets-mcp

v1.0.0

Published

MCP server for Google Sheets — read, write, format, and manage spreadsheets from any AI assistant

Readme

Google Sheets MCP Server

npm version License: MIT

A production-ready Model Context Protocol server that gives AI assistants full access to Google Sheets. Read, write, format, and manage spreadsheets directly from Claude, GPT, or any MCP-compatible client.

What It Does

This MCP server wraps the Google Sheets API v4 and exposes 14 tools that let AI assistants:

  • Create and manage spreadsheets
  • Read and write cell data
  • Append rows, clear ranges, search across sheets
  • Apply formatting (bold, colors, number formats, alignment)
  • Get sheet overviews with sample data

Available Tools (14)

| Tool | Description | |------|-------------| | list_spreadsheets | List recent spreadsheets from Google Drive | | create_spreadsheet | Create a new spreadsheet with custom sheet names | | get_spreadsheet | Get spreadsheet metadata (title, sheets, locale, timezone) | | list_sheets | List all sheets/tabs in a spreadsheet | | add_sheet | Add a new sheet/tab | | delete_sheet | Delete a sheet/tab by ID | | read_range | Read cells from a range (e.g., Sheet1!A1:D10) | | write_range | Write a 2D array of values to a range | | append_rows | Append rows to the end of a sheet | | clear_range | Clear all values in a range | | get_values | Get all values from a sheet | | format_cells | Apply formatting (bold, italic, colors, number format, alignment) | | search_sheets | Search for text across all sheets (case-insensitive) | | sheet_overview | Get row/column counts, headers, and sample data |

Quick Start

Install

npm install -g @xmqywxkris/google-sheets-mcp

Or use directly with npx:

npx -y @xmqywxkris/google-sheets-mcp

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "google-sheets": {
      "command": "npx",
      "args": ["-y", "@xmqywxkris/google-sheets-mcp"],
      "env": {
        "GOOGLE_SERVICE_ACCOUNT_KEY": "/path/to/service-account.json"
      }
    }
  }
}

Claude Code

claude mcp add google-sheets -- npx -y google-sheets-mcp

# Set the environment variable
export GOOGLE_SERVICE_ACCOUNT_KEY="/path/to/service-account.json"

Authentication

Option 1: Service Account (Recommended)

Full read/write access. Best for automation and production use.

  1. Go to Google Cloud Console
  2. Create a project (or select an existing one)
  3. Enable the Google Sheets API and Google Drive API
  4. Go to Credentials > Create Credentials > Service Account
  5. Create the service account and download the JSON key file
  6. Set the environment variable:
export GOOGLE_SERVICE_ACCOUNT_KEY="/path/to/service-account.json"
  1. Important: Share your spreadsheets with the service account email (found in the JSON file as client_email) to grant access.

Option 2: API Key (Read-Only)

Simpler setup, but only works with publicly shared spreadsheets.

  1. Go to Google Cloud Console
  2. Enable the Google Sheets API
  3. Go to Credentials > Create Credentials > API Key
  4. Set the environment variable:
export GOOGLE_SHEETS_API_KEY="your-api-key"

Configuration

| Variable | Required | Description | |----------|----------|-------------| | GOOGLE_SERVICE_ACCOUNT_KEY | One of these | Path to service account JSON key file (full access) | | GOOGLE_SHEETS_API_KEY | is required | Google API key (read-only, public sheets only) |

Usage Examples

Data analysis:

"Read the sales data from my spreadsheet and summarize Q1 results"

Report generation:

"Create a new spreadsheet called 'Monthly KPIs', add headers, and format them bold with a blue background"

Data entry:

"Append these 50 customer records to the Customers sheet"

Search and audit:

"Search all sheets for cells containing 'ERROR' or 'N/A'"

Formatting:

"Bold the header row, set currency format on column C, and color negative values red"

Sheet management:

"Add a 'Summary' tab and populate it with totals from other sheets"

Development

git clone https://github.com/xmqywx/google-sheets-mcp.git
cd google-sheets-mcp
npm install
npm run dev

Build for production:

npm run build
npm start

Cursor Plugin

Install directly in Cursor IDE:

  1. Open Cursor → Settings → Plugins
  2. Search "google-sheets-mcp"
  3. Click Install
  4. Configure your Google credentials in the MCP server settings

Or manually: clone this repo and open it in Cursor — the plugin auto-discovers.

License

MIT