@node2flow/google-sheets-mcp

@node2flow/google-sheets-mcp

MCP server for managing Google Sheets via 23 tools, enabling read/write, formatting, sheet management, and data operations through natural language.

Category
访问服务器

README

@node2flow/google-sheets-mcp

smithery badge npm version License: MIT

MCP server for Google Sheets — read, write, format, and manage spreadsheets through 23 tools via the Model Context Protocol.

Quick Start

Claude Desktop / Cursor

Add to your MCP config:

{
  "mcpServers": {
    "google-sheets": {
      "command": "npx",
      "args": ["-y", "@node2flow/google-sheets-mcp"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret",
        "GOOGLE_REFRESH_TOKEN": "your-refresh-token"
      }
    }
  }
}

HTTP Mode

GOOGLE_CLIENT_ID=xxx GOOGLE_CLIENT_SECRET=xxx GOOGLE_REFRESH_TOKEN=xxx npx @node2flow/google-sheets-mcp --http

MCP endpoint: http://localhost:3000/mcp

Cloudflare Worker

Available at: https://google-sheets-mcp-community.node2flow.net/mcp

POST https://google-sheets-mcp-community.node2flow.net/mcp?GOOGLE_CLIENT_ID=xxx&GOOGLE_CLIENT_SECRET=xxx&GOOGLE_REFRESH_TOKEN=xxx

Tools (23)

Spreadsheet (2)

Tool Description
gs_create_spreadsheet Create a new spreadsheet with title and optional sheets
gs_get_spreadsheet Get metadata — sheet names, IDs, properties

Values (6)

Tool Description
gs_read_values Read cell values from an A1 range
gs_batch_read Read multiple ranges at once
gs_write_values Write values to a range (2D array)
gs_append_values Append rows after existing data
gs_clear_values Clear values in a range (keeps formatting)
gs_batch_write Write to multiple ranges at once

Sheet Management (5)

Tool Description
gs_add_sheet Add a new sheet/tab
gs_delete_sheet Delete a sheet/tab (irreversible)
gs_rename_sheet Rename a sheet/tab
gs_copy_sheet Copy sheet to another spreadsheet
gs_duplicate_sheet Duplicate sheet within same spreadsheet

Formatting (4)

Tool Description
gs_format_cells Bold, italic, colors, font, alignment, number format
gs_merge_cells Merge cells in a range
gs_unmerge_cells Unmerge cells
gs_auto_resize Auto-fit column widths or row heights

Data Operations (4)

Tool Description
gs_sort_range Sort range by column
gs_find_replace Find and replace text (supports regex)
gs_set_basic_filter Set or clear auto-filter on a sheet
gs_add_protected_range Protect a range from editing

Advanced (2)

Tool Description
gs_add_chart Add a chart (bar, line, column, scatter, etc.)
gs_batch_update Raw batchUpdate for any operation

A1 Notation

Ranges use A1 notation for the Values tools:

Sheet1!A1:C10    — specific range in Sheet1
Sheet1           — entire sheet
A:C              — columns A through C (first sheet)
Sheet1!A1:A      — column A, all rows
Sheet1!1:5       — rows 1 through 5

Index Notation

Formatting and batchUpdate tools use 0-based indices:

Row 1    → index 0      Column A → index 0
Row 2    → index 1      Column B → index 1
Row 10   → index 9      Column Z → index 25

Ranges are inclusive start, exclusive end:

  • startRowIndex: 0, endRowIndex: 5 = rows 1-5
  • startColumnIndex: 0, endColumnIndex: 3 = columns A-C

Configuration

Parameter Required Description
GOOGLE_CLIENT_ID Yes OAuth 2.0 Client ID from Google Cloud Console
GOOGLE_CLIENT_SECRET Yes OAuth 2.0 Client Secret
GOOGLE_REFRESH_TOKEN Yes Refresh token (obtained via OAuth consent flow)

Getting Your Credentials

  1. Go to Google Cloud Console
  2. Create a project → Enable Google Sheets API
  3. Create OAuth 2.0 Client ID (Desktop app type)
  4. Use the OAuth Playground or your app to get a refresh token with scope https://www.googleapis.com/auth/spreadsheets

OAuth Scopes

Scope Access
spreadsheets Full read/write access
spreadsheets.readonly Read-only access

License

MIT License - see LICENSE

Copyright (c) 2026 Node2Flow

Links

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选