MCP Catalogs
Home

mcp-google-sheets

by xing5·864·Score 54

A production-ready MCP server for Google Sheets integration with comprehensive tool support and authentication options.

productivitydeveloper-toolsai-llm
201
Forks
24
Open issues
this month
Last commit
2d ago
Indexed

Overview

This MCP server provides a robust bridge between AI assistants and Google Sheets, enabling creation and modification of spreadsheets through a comprehensive set of 19 tools. It supports both Service Accounts and OAuth 2.0 authentication, with detailed setup instructions in the README. The server is actively maintained with recent commits and includes thoughtful features like tool filtering to reduce context usage. All tools are well-documented with clear parameter descriptions and return values.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Automate data entry and updates in spreadsheets through natural language commands
you:Create and manage reports and dashboards using AI-driven analysis
you:Enable collaborative workflows between AI systems and Google Sheets
you:How do I authenticate with Google Sheets?
you:How can I reduce context window usage?

When to choose this

Choose this server when you need comprehensive Google Sheets integration with an MCP client, especially if you're already using Google Workspace and need AI-driven spreadsheet automation.

When NOT to choose this

Avoid this if you need access to non-Google spreadsheet services or if you're concerned about Google API quotas and rate limits for heavy automation workflows.

Tools this server exposes

12 tools extracted from the README
  • list_spreadsheets

    Lists spreadsheets in the configured Drive folder

  • create_spreadsheet

    Creates a new spreadsheet with the specified title

  • get_sheet_data

    Reads data from a range in a sheet/tab

  • update_cells

    Writes data to a specific range in a sheet

  • add_rows

    Adds empty rows to a sheet at a specified index

  • list_sheets

    Lists all sheet/tab names within a spreadsheet

  • create_sheet

    Adds a new sheet/tab to a spreadsheet

  • find_in_spreadsheet

    Search for values in a spreadsheet

  • copy_sheet

    Copies an existing sheet within or between spreadsheets

  • share_spreadsheet

    Shares a spreadsheet with specified users and roles

  • batch_update_cells

    Updates multiple ranges in one API call

  • get_multiple_sheet_data

    Fetches data from multiple ranges across different spreadsheets

Comparable tools

mcp-excelmcp-notiongoogle-sheets-api-cli

Installation

Quick Start

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Set environment variables
export SERVICE_ACCOUNT_PATH="/path/to/your/service-account-key.json"
export DRIVE_FOLDER_ID="YOUR_DRIVE_FOLDER_ID"

# Run the server
uvx mcp-google-sheets@latest

Claude Desktop Configuration

Add to Claude Desktop config.json:

{
  "mcpServers": {
    "google-sheets": {
      "command": "uvx",
      "args": ["mcp-google-sheets@latest"],
      "env": {
        "SERVICE_ACCOUNT_PATH": "/path/to/credentials.json"
      }
    }
  }
}

For tool filtering:

{
  "mcpServers": {
    "google-sheets": {
      "command": "uvx",
      "args": ["mcp-google-sheets@latest", "--include-tools", "get_sheet_data,update_cells,list_spreadsheets"],
      "env": {
        "SERVICE_ACCOUNT_PATH": "/path/to/credentials.json"
      }
    }
  }
}

FAQ

How do I authenticate with Google Sheets?
The server supports three authentication methods: Service Accounts (recommended), OAuth 2.0, and direct credential injection via environment variables. Detailed setup instructions are provided in the README.
How can I reduce context window usage?
Use tool filtering with either the --include-tools command-line argument or ENABLED_TOOLS environment variable to enable only the tools you need, reducing from ~13,000 tokens to just the required tools.

Compare mcp-google-sheets with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.