原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Google Sheets Full

作者:moooonad版本 0.2.0i★ –i在你的电脑上运行
注册名称io.github.moooonad/mcp-google-sheets-full

安装

概览

作者提供的说明(英文原文)

Full Google Sheets MCP: 26 tools + run_sheets_script escape hatch. User OAuth, no service account.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 文档、表格与办公

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "google-sheets-full": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-sheets-full"
      ]
    }
  }
}

在终端中运行这条命令

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

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "google-sheets-full": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-sheets-full"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "google-sheets-full": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-google-sheets-full"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 moooonad 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“文档、表格与办公”中的其他服务器比较i

  • 星标数多于此分类中其他 2198 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2198 个服务器的 10% 更新
  • 基础检查结果等于或优于此分类中其他 2198 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Google Sheets Full 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.0)于6个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Agent-Native Calendar

作者:BuilderIO

Agent-Native Google Calendar - manage events, sync, and public booking

在云端运行★ 7,620MIT2个月前更新
安装

Excel MCP Server

作者:haris-musa

Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.

在你的电脑上运行★ 4,276MIT6天前更新
安装

MCP Server for Excel

作者:sbroenne

Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.

在你的电脑上运行★ 847MIT4天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mcp-google-sheets-full

The Google Sheets MCP server that can do anything the Sheets API can.

26 tools spanning read/write, structural batchUpdate, Drive search, and an escape hatch (run_sheets_script) that executes arbitrary Node.js code with sheets / drive / auth / spreadsheetId pre-injected. Two auth modes: OAuth (default, your own Google account, zero per-sheet setup) or service account (opt-in, for headless / CI).

Why this server

Most Google Sheets MCP servers expose a curated set of operations and stop there. If you need something they didn't anticipate (a particular conditional-format request, a multi-step migration, a Drive-side operation, an analysis-then-write workflow), you're stuck.

This server adds the missing primitive: `run_sheets_script`. Pass a snippet of Node code, get back the result. The Sheets v4 and Drive v3 clients are already authenticated and in scope. The temp file is always cleaned up.

`mcp-google-sheets-full`freema/mcp-gsheetsxing5/mcp-google-sheetsringo380/claude-google-sheets-mcp
Read / write / append / clear✅✅✅✅
Structural batchUpdate (raw)✅partial❌❌
Granular tabs / rows / format / borders✅✅partial❌
Drive search (list / search_spreadsheets)✅❌partial❌
Arbitrary code execution (run_sheets_script)✅❌❌❌
Auth modes✅ OAuth default + service account opt-inservice-account-firstbothboth
LanguageTypeScript / NodeTypeScript / NodePythonPython

spreadsheetId is always an explicit parameter of every tool — there is no hidden default.

Security model

run_sheets_script executes Node code on the machine where the MCP server runs, under your user account, against your OAuth token. The trust boundary is the same as any tool that lets Claude run code on your behalf (Bash, Edit, Write):

  • The script can only do what the OAuth scopes allow (Sheets + Drive). It cannot touch your other Google services, your filesystem outside tmpdir, or the network in ways the host node process can't.
  • Every script gets a fresh temp file in os.tmpdir(), executed via node, deleted on completion (success or failure).
  • There is a per-call timeout (default 2 min, max 10 min).
  • The token never leaves disk: the OAuth file lives in ~/.mcp-google-sheets/.

If you're not comfortable with code execution, simply don't call run_sheets_script — the other 25 tools cover the common cases without it.

For AI agents

If you're an AI agent (Claude Code, Cursor, etc.) installing or operating this server for a user, read AGENTS.md. It contains the canonical step-by-step setup flow, tool selection guide, common failure modes, and the trust/security expectations.

Setup (one-time)

1. Install
npm install -g mcp-google-sheets-full

This places an mcp-google-sheets-full executable on your PATH. To update: re-run the same command. To remove: npm uninstall -g mcp-google-sheets-full.

For development: clone the repo and run npm install && npm run build.

2. Choose an auth mode

Two ways to authenticate the server. Pick exactly one depending on how you will use it.

OAuth (default)Service account
Best forClaude Desktop / Code / Cursor on your laptopCI, cron, serverless, headless automation
Setup effort1 file in ~/.mcp-google-sheets/1 file anywhere + 1 env var
Acts asYou (your Google account)A bot identity
SeesEvery sheet you can seeOnly sheets explicitly shared with the bot email
Requires a browser?Yes (once, on first call)Never
Token refreshAutomaticN/A

Selection is automatic: if the env var GOOGLE_APPLICATION_CREDENTIALS is set, the server uses service account mode; otherwise it uses OAuth mode.

OAuth setup
  1. Go to https://console.cloud.google.com/, create or select a project.
  2. APIs & Services → Library: enable Google Sheets API and Google Drive API.
  3. APIs & Services → OAuth consent screen: set up an "External" app (or "Internal" if you have a Workspace). Add yourself as a test user.
  4. APIs & Services → Credentials → Create Credentials → OAuth client ID:
  • Application type: Desktop app.
  • Name: anything.
  1. Download the JSON.
  2. Save it to:
  • Windows: %USERPROFILE%\.mcp-google-sheets\gdrive-credentials.json
  • macOS / Linux: ~/.mcp-google-sheets/gdrive-credentials.json

(Override the directory via env GSHEETS_CONFIG_DIR.)

The first time any tool runs, the server opens your browser to grant access. The resulting token is saved to gdrive-token.json next to the credentials. Subsequent runs refresh silently. If a refresh fails (e.g. the token was revoked), delete gdrive-token.json and the next call re-triggers the browser flow.

Service account setup (opt-in, headless)
  1. In Google Cloud Console, enable Google Sheets API and Google Drive API on your project (same as OAuth).
  2. IAM & Admin → Service Accounts → Create service account. Give it a name; no roles needed at the project level for our use case.
  3. Open the service account → Keys → Add Key → JSON. Download the file.
  4. Place the file anywhere readable (e.g. ~/.mcp-google-sheets/sa-key.json or a CI secret path).
  5. Set the env var when launching the server:
  • Shell: export GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/to/sa-key.json
  • Claude config: add it under the server entry (see below).
  1. Share every spreadsheet you want the server to access with the service account's email (visible inside the key JSON as client_email, looks like xxx@yyy.iam.gserviceaccount.com). Without this, calls return 403 even though the credentials are valid.

There is no token file in this mode; the server gets fresh access tokens on demand. No browser flow.

Register the server

After global install the mcp-google-sheets-full binary is on PATH.

Claude Code (project or user scope)
claude mcp add google-sheets -- mcp-google-sheets-full
Claude Desktop (claude_desktop_config.json)

OAuth mode (default):

{

"mcpServers": { "google-sheets": { "command": "mcp-google-sheets-full" } } }

Service account mode — add the env var to switch the server into headless auth:

{

"mcpServers": { "google-sheets": { "command": "mcp-google-sheets-full", "env": { "GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/sa-key.json" } } } }

If Claude Desktop can't find the command (it sometimes ignores PATH on macOS/Windows), use the absolute path from npm bin -g followed by /mcp-google-sheets-full (or .cmd on Windows).

Recognized env vars:

  • GOOGLE_APPLICATION_CREDENTIALS — if set to a service account JSON key path, the server switches to service account mode. If unset, OAuth mode.
  • GSHEETS_CONFIG_DIR — override the directory where OAuth credentials/token live (default: ~/.mcp-google-sheets).

Using run_sheets_script

When the caller needs to do something not covered by the convenience tools (multi-step operations, custom batchUpdate composition, Drive operations, ad-hoc analysis), it passes a chunk of Node code. The harness pre-creates an authenticated context, so the script body itself just uses sheets, drive, spreadsheetId. Assign to result to return a structured value.

Example body:

// List all tabs and their first row

const meta = await sheets.spreadsheets.get({ spreadsheetId }); const headers = {}; for (const s of meta.data.sheets) { const r = await sheets.spreadsheets.values.get({ spreadsheetId, range: ${s.properties.title}!1:1, }); headers[s.properties.title] = r.data.values?.[0] ?? []; } result = headers;

The harness wraps the code in an async IIFE, so top-level await works directly. Errors are reported with stack trace and non-zero exit code. The temp file is removed in every path.

Provided tools

ToolPurpose
auth_statusWhere the server looks for credentials/token and whether they exist.
resolve_urlExtract spreadsheetId + gid from a Google Sheets URL.
list_spreadsheetsList spreadsheets in the user's Drive (recent-first).
search_spreadsheetsSearch spreadsheets by name substring or full-text content.
get_spreadsheetSpreadsheet metadata (tabs, gridProperties).
get_valuesRead one A1 range.
batch_get_valuesRead multiple ranges.
update_valuesWrite a 2D array to a range.
batch_update_valuesWrite multiple ranges in one call.
append_valuesAppend rows to the end of a table.
clear_valuesClear one or more ranges.
batch_updateStructural changes (raw Sheets API Request[]) — escape hatch for any Request type not covered by a dedicated tool.
create_spreadsheetCreate a new spreadsheet owned by the user.
add_sheet / delete_sheet / duplicate_sheet / rename_sheetManage tabs (accept sheet_id gid or sheet_name).
insert_rows / insert_columns / delete_rows / delete_columnsManage rows/columns by 0-based index ranges.
merge_cells / unmerge_cellsMerge ranges (MERGE_ALL / MERGE_COLUMNS / MERGE_ROWS).
format_cellsApply a partial CellFormat to a range (background, textFormat, alignment, numberFormat, ...).
set_bordersSet borders on a range (top/bottom/left/right/innerHorizontal/innerVertical).
run_sheets_scriptRun arbitrary Node code with pre-authenticated sheets/drive/auth/spreadsheetId.

Notes

  • The OAuth flow listens on http://localhost:3456 during initial authorization. Make sure that port is free.
  • Scopes requested: https://www.googleapis.com/auth/spreadsheets and https://www.googleapis.com/auth/drive.
  • run_sheets_script runs a fresh node process per call. It re-uses the same ~/.mcp-google-sheets/ credentials and token. There's a configurable timeout (default 2 min, max 10 min).
问 PopNx