
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
mcp-google-sheets-full
Advanced tools
The Google Sheets MCP server that can do anything the Sheets API can — 26 tools including read/write, structural batchUpdate, Drive search, and `run_sheets_script` to execute arbitrary Node code with pre-authenticated `sheets`/`drive`/`auth`/`spreadsheetI
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 — no service account required, just your own Google account.
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-gsheets | xing5/mcp-google-sheets | ringo380/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) | ✅ | ❌ | ❌ | ❌ |
| OAuth user flow (no service account) | ✅ default | service-account-first | both | both |
| Language | TypeScript / Node | TypeScript / Node | Python | Python |
spreadsheetId is always an explicit parameter of every tool — there is no hidden default.
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):
tmpdir, or the network in ways the host node process can't.os.tmpdir(), executed via node, deleted on completion (success or failure).~/.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.
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.
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.
This replaces the service-account flow that most "Google Sheets MCP" servers require. You only do this once per machine.
Go to https://console.cloud.google.com/, create or select a project.
APIs & Services → Library: enable Google Sheets API and Google Drive API.
APIs & Services → OAuth consent screen: set up an "External" app (or "Internal" if you have a Workspace). Add yourself as a test user.
APIs & Services → Credentials → Create Credentials → OAuth client ID:
mcp-google-sheets).Download the JSON.
Save it to:
%USERPROFILE%\.mcp-google-sheets\gdrive-credentials.json~/.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-runs the browser flow.
After global install the mcp-google-sheets-full binary is on PATH.
claude mcp add google-sheets -- mcp-google-sheets-full
claude_desktop_config.json){
"mcpServers": {
"google-sheets": {
"command": "mcp-google-sheets-full"
}
}
}
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).
Optional env:
GSHEETS_CONFIG_DIR — override the directory where credentials/token live.run_sheets_scriptWhen 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.
| Tool | Purpose |
|---|---|
auth_status | Where the server looks for credentials/token and whether they exist. |
resolve_url | Extract spreadsheetId + gid from a Google Sheets URL. |
list_spreadsheets | List spreadsheets in the user's Drive (recent-first). |
search_spreadsheets | Search spreadsheets by name substring or full-text content. |
get_spreadsheet | Spreadsheet metadata (tabs, gridProperties). |
get_values | Read one A1 range. |
batch_get_values | Read multiple ranges. |
update_values | Write a 2D array to a range. |
batch_update_values | Write multiple ranges in one call. |
append_values | Append rows to the end of a table. |
clear_values | Clear one or more ranges. |
batch_update | Structural changes (raw Sheets API Request[]) — escape hatch for any Request type not covered by a dedicated tool. |
create_spreadsheet | Create a new spreadsheet owned by the user. |
add_sheet / delete_sheet / duplicate_sheet / rename_sheet | Manage tabs (accept sheet_id gid or sheet_name). |
insert_rows / insert_columns / delete_rows / delete_columns | Manage rows/columns by 0-based index ranges. |
merge_cells / unmerge_cells | Merge ranges (MERGE_ALL / MERGE_COLUMNS / MERGE_ROWS). |
format_cells | Apply a partial CellFormat to a range (background, textFormat, alignment, numberFormat, ...). |
set_borders | Set borders on a range (top/bottom/left/right/innerHorizontal/innerVertical). |
run_sheets_script | Run arbitrary Node code with pre-authenticated sheets/drive/auth/spreadsheetId. |
http://localhost:3456 during initial authorization. Make sure that port is free.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).FAQs
The Google Sheets MCP server that can do anything the Sheets API can — 26 tools including read/write, structural batchUpdate, Drive search, and `run_sheets_script` to execute arbitrary Node code with pre-authenticated `sheets`/`drive`/`auth`/`spreadsheetI
The npm package mcp-google-sheets-full receives a total of 38 weekly downloads. As such, mcp-google-sheets-full popularity was classified as not popular.
We found that mcp-google-sheets-full demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.