MCP server for Google Spreadsheets

MCP server for Google Spreadsheets

mcp-server-spreadsheet•byhosakakeigo

An MCP server that integrates with Google Spreadsheets, letting AI assistants retrieve and modify spreadsheet data.

License: MIT•Runtime: Awaiting documentation review•Category: productivity work

WHAT IT DOES

  • •Retrieves sheet information such as names, dimensions, and IDs from a spreadsheet.
  • •Retrieves values from a specific sheet with optional range specification.
  • •Updates values in a specific range of cells within a sheet.
  • •Adds a new sheet to an existing spreadsheet with customizable dimensions.

BEST FOR

  • •Asking which sheets exist within a spreadsheet.
  • •Reading data from a named sheet in a spreadsheet.
  • •Adding a new sheet by name to an existing spreadsheet.

ABOUT MCP-SERVER-SPREADSHEET

MCP server for Google Spreadsheets is cataloged as an MCP server attributed to hosakakeigo. An MCP server that integrates with Google Spreadsheets, letting AI assistants retrieve and modify spreadsheet data. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Google Spreadsheets are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server support updating multiple ranges at once?

Yes, the batch_update_cells tool updates multiple ranges across different sheets in a single operation.

What authentication does the server use?

It uses Google Cloud's Application Default Credentials for authentication to access Google Sheets.

上游原版 README

在 GitHub 查看同一版本原文

README.md · ff0df2d7f06d · 采集于 2026-11-13 12:25:12 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Server for Google Spreadsheets

A Model Context Protocol (MCP) server implementation that integrates with Google Spreadsheets, allowing AI assistants to retrieve and modify spreadsheet data. This server enables Claude to interact with your Google Sheets data directly.

Demo

Demo of using Google Sheets with Claude

Features

This server provides the following tools for working with Google Spreadsheets:

  • get_sheets: Retrieve all sheet information from a Google Spreadsheet, including names, dimensions, and IDs
  • get_sheet_values: Retrieve values from a specific sheet with optional range specification
  • update_cells: Update values in a specific range of cells within a sheet
  • batch_update_cells: Update multiple ranges across different sheets in a single operation
  • add_sheet: Add a new sheet to an existing spreadsheet with customizable dimensions

Prerequisites

  • Node.js (v18 or higher)
  • Google Cloud project with the Google Sheets API enabled
  • Google Cloud authentication credentials
  • Claude Desktop (for integration with Claude)

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/mcp-server-spreadsheet.git
    cd mcp-server-spreadsheet
    
  2. Install dependencies:

    pnpm install
    

Authentication Setup

This server uses Google Cloud's Application Default Credentials for authentication to access Google Sheets.

  1. Install the Google Cloud CLI if you haven't already
  2. Log in and authorize access to Google Sheets:
    gcloud auth application-default login --scopes=openid,https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/spreadsheets
    

[!Tip]

  • Ensure your Google Project's Sheet API is enabled.
  • Don't forget --scopes option for gcloud auth application-default login

Building and Running

  1. Build the project:

    pnpm build
    
  2. Run the server:

    pnpm start
    

The server will start and listen for MCP commands via standard input/output.

Integration with Claude for Desktop

To use this server with Claude for Desktop:

  1. Make sure Claude for Desktop is installed and running

  2. Add the server to Claude for Desktop's configuration file (claude_desktop_config.json):

    {
      "mcpServers": {
        "spreadsheet": {
          "command": "node",
          "args": ["/absolute/path/to/mcp-server-spreadsheet/build/index.js"],
          "env": {
            "GOOGLE_PROJECT_ID": "your-google-project-id",
            "GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/your/credentials.json"
          }
        }
      }
    }
    
  3. Restart Claude for Desktop to load the server

Usage Examples

Once integrated with Claude, you can use natural language to work with your spreadsheets. Here are some example prompts:

Retrieving Spreadsheet Information

Could you tell me what sheets are in this spreadsheet? https://docs.google.com/spreadsheets/d/YOUR_SPREADSHEET_ID/edit

Getting Data from a Sheet

Please show me the data from the "Sales" sheet in this spreadsheet: https://docs.google.com/spreadsheets/d/YOUR_SPREADSHEET_ID/edit

Updating Data

Update cells A1:B2 in the "Q1 Budget" sheet with these values: 
- Row 1: 1000, 2000
- Row 2: 3000, 4000
The spreadsheet URL is: https://docs.google.com/spreadsheets/d/YOUR_SPREADSHEET_ID/edit

Adding a New Sheet

Please add a new sheet called "Q2 Planning" to this spreadsheet: https://docs.google.com/spreadsheets/d/YOUR_SPREADSHEET_ID/edit

Available Tools

get_sheets

Retrieves information about all sheets in a spreadsheet.

Parameters:

  • spreadsheetUrl: URL or ID of the Google Spreadsheet

get_sheet_values

Retrieves values from a specific sheet in a spreadsheet.

Parameters:

  • spreadsheetUrl: URL or ID of the Google Spreadsheet
  • sheetName: Name of the sheet to retrieve data from
  • range (optional): Cell range in A1 notation (e.g., "A1:D5")

update_cells

Updates values in a specific range of cells.

Parameters:

  • spreadsheetUrl: URL or ID of the Google Spreadsheet
  • sheetName: Name of the sheet to update
  • range: Cell range in A1 notation (e.g., "A1:B2")
  • values: 2D array of values to write (each inner array represents a row)

batch_update_cells

Updates values in multiple ranges across different sheets in a single operation.

Parameters:

  • spreadsheetUrl: URL or ID of the Google Spreadsheet
  • updates: Array of update operations, each with:
    • sheetName: Name of the sheet to update
    • range: Cell range in A1 notation
    • values: 2D array of values to write

add_sheet

Adds a new sheet to an existing spreadsheet.

Parameters:

  • spreadsheetUrl: URL or ID of the Google Spreadsheet
  • sheetTitle: Title for the new sheet
  • rowCount (optional): Number of rows (default: 1000)
  • columnCount (optional): Number of columns (default: 26)

Development

Project Structure

  • src/index.ts: Main entry point
  • src/tools/: Individual MCP tool implementations
  • src/utils/: Utility functions and services
  • src/types/: TypeScript type definitions

Running Tests

pnpm test

Environment Variables

You can create a .env file in the project root with the following variables:

# Optional: Override Google API credentials path
GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json

# Optional: Debug mode
DEBUG=true

Troubleshooting

  • Authentication Errors: Make sure you've set up the correct credentials and the Google Sheets API is enabled in your Google Cloud project.
  • Permission Errors: Ensure your Google account or service account has access to the spreadsheets you're trying to access.
  • Server Connectivity: Check that Claude for Desktop is correctly configured to start the MCP server.

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Google Spreadsheets from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-spreadsheet)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related productivity work MCP Servers

Alternative and complementary servers in the same category

View all in productivity work →
Tuqui hosted MCP server for Odoo
tuqui-odoo-mcp-for-claude-chatgpt•tuqui-ai

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

Repository stats unavailable
Productivity & Ops