MCP

Google Sheets MCP server: write data, formulas, charts and filters in Claude, Codex or Cursor

TL;DR

Google Sheets reaches Claude, Codex or Cursor through the Agent Planners MCP endpoint with 5 reads and 10 writes. Agent Planners never shares a file, changes who can open it, deletes or trashes it, moves it to another folder or adds protected ranges — do that in Google Drive. Google Cloud, Google Docs, Google Sheets and Google Slides are open to every workspace: Google has verified the permissions they ask for, and an admin or editor connects each one on its own card.

Is there an MCP server for Google Sheets?

Agent Planners hosts marketing MCP at https://www.agentplanners.com/api/mcp. Its app catalog includes 5 Google Sheets read tools and 10 write tools. Direct MCP calls require a paid plan. Use tool discovery to check what your connection exposes. With an API key, irreversible changes require review unless an admin exempts a key.

Connect your AI client to the hosted server

  1. 1Connect Google Sheets (Google sign-in) on its card on Integrations.
  2. 2Create a key in API & MCP: tools:read for reading, add tools:write for changes and tools:raw for the raw request lane — or sign in from the client with OAuth. To keep a key to this product, choose Only these platforms → Google Sheets.
  3. 3Add the server to your client with one of the snippets below, run describe_permissions, then google_sheets__list_spreadsheets.
bash
# Claude Code
claude mcp add --transport http agent-planners https://www.agentplanners.com/api/mcp \
  --header "Authorization: Bearer $AGENTPLANNERS_API_KEY"

# Codex (signs in with OAuth in the browser)
codex mcp add agent-planners --url https://www.agentplanners.com/api/mcp

# Cursor (~/.cursor/mcp.json)
{ "mcpServers": { "agent-planners": { "url": "https://www.agentplanners.com/api/mcp", "headers": { "Authorization": "Bearer ${env:AGENTPLANNERS_API_KEY}" } } } }
Every client's setup, including OAuth sign-in without a key: MCP setup guide.

The Google Sheets tools

ToolKindWhat it does
google_sheets.list_spreadsheetsReadThe Google Sheets this app made or was handed (Drive, drive.file): id, title, link, modified time.
google_sheets.get_spreadsheetReadONE spreadsheet's structure (spreadsheets.get, no cell data): title, locale, time zone, each tab (id, title, rows × columns, frozen rows, charts, basic filter, filter views).
google_sheets.read_valuesReadCell values of one or more ranges (values.batchGet): { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), ranges: [A1…] (≤…
google_sheets.export_spreadsheetReadExport a spreadsheet (Drive files.export) to the Asset Library: format xlsx | csv (the FIRST tab) | pdf.
google_sheets.raw_getReadRAW Google Sheets API read — ONLY when no typed tool covers what the goal needs: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), path (relative to the API, e.g. "spreadsheets…
google_sheets.create_spreadsheetWriteCreate a NEW, formatted Google Sheet: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), title, tabs: [{ title, header?: [column names], rows: [[cell…]] or [{column: value}], co…
google_sheets.write_valuesWriteWrite cells into an existing spreadsheet: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), range (A1, e.g. 'Data'!A1:D…
google_sheets.append_rowsWriteAppend rows after a tab's last row (values.append, INSERT_ROWS): { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), tab,…
google_sheets.add_sheet_tabWriteAdd a tab to an existing spreadsheet, optionally filled like a create_spreadsheet tab: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.…
google_sheets.add_chartWriteAdd a chart to a tab: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), tab, chart: { type: column | bar | line | area …
google_sheets.set_filterWriteAdd a filter: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), tab, range? (default = the tab's data), view? (true = a…
google_sheets.format_rangeWriteFormat a range: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), range (A1, e.g. 'Data'!A1:D200), numberFormat? (curre…
google_sheets.replace_textWriteFind and replace across a spreadsheet (findReplace): { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), replacements: [{…
google_sheets.copy_from_templateWriteMake a NEW spreadsheet from a template spreadsheet (Drive files.copy) and fill its {{placeholders}}: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), template (the file's id o…
google_sheets.batch_updateWriteAny Google Sheets batchUpdate in Google's own format: { accountId? (the connected Google sign-in; optional when this workspace has exactly one), spreadsheet (the file's id or its docs.google.com link), requests: [...]…
Over MCP and the REST API the names are google_sheets__<tool>.

What waits for a person, whatever the key allows

Ordinary changes follow how the key was minted: they apply inside the workspace's guardrails, or queue for a person. The changes below wait for a person on every key mode and never ride a bulk approval — the only exceptions are a connection of the workspace's own OAuth app and an API key an admin set to apply changes you can't take back.

  • A change that deletes, clears or overwrites content — clearing a whole tab before writing, a find-and-replace with an empty replacement, or a batch update that removes text, rows, columns, tabs, slides, shapes, charts, filters or formatting rules, pastes or cuts over a range, blanks a range, resizes a grid or replaces shapes with images or charts — waits for a person on every lane, auto-approve and API keys included. The exceptions, by the owner's choice: a connection of the workspace's own OAuth app, and an API key an admin set to apply these changes at once.

The raw request lane

  • google_sheets__raw_request sends Google Sheets API (sheets.googleapis.com) requests in Google's own format (method, path, query and body) for any file the connected Google login can open, with the same holds as the typed tools. It needs the tools:raw scope; Drive itself (sharing, deleting, moving files) is refused.

Things to ask

  • "Put last month's campaign spend by channel in a Google Sheet with totals and a chart."
  • "Append yesterday's rows to the tracking sheet at this link."
  • "Add a filter view that shows only campaigns with a CPA above target."
Tested live in the first connected workspace on 2026-11-25, before the release: a formatted document with a table and an image, a spreadsheet with formulas, a filter view and two charts, and a six-slide themed deck; the exported PDFs and thumbnails were checked. Google Sheets setup guide · Google Sheets platform page

Frequently asked questions

Can an MCP client clear my spreadsheet?
Only after a person approves it: clearing a tab, deleting rows, tabs or charts and overwriting content always wait for a person.
How large a table can it write?
It writes in chunks up to Google's limit of 10,000,000 cells per spreadsheet.
Connect your AI client to Agent Planners

Start free — 4,400 free credits, one time, no credit card. Direct tool calls require a paid plan and the appropriate connection scopes.

Related reading