Google Sheets MCP server: write data, formulas, charts and filters in Claude, Codex or Cursor
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
- 1Connect Google Sheets (Google sign-in) on its card on Integrations.
- 2Create a key in API & MCP:
tools:readfor reading, addtools:writefor changes andtools:rawfor 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. - 3Add the server to your client with one of the snippets below, run
describe_permissions, thengoogle_sheets__list_spreadsheets.
# 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}" } } } }The Google Sheets tools
| Tool | Kind | What it does |
|---|---|---|
google_sheets.list_spreadsheets | Read | The Google Sheets this app made or was handed (Drive, drive.file): id, title, link, modified time. |
google_sheets.get_spreadsheet | Read | ONE 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_values | Read | Cell 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_spreadsheet | Read | Export a spreadsheet (Drive files.export) to the Asset Library: format xlsx | csv (the FIRST tab) | pdf. |
google_sheets.raw_get | Read | RAW 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_spreadsheet | Write | Create 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_values | Write | Write 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_rows | Write | Append 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_tab | Write | Add 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_chart | Write | Add 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_filter | Write | Add 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_range | Write | Format 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_text | Write | Find 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_template | Write | Make 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_update | Write | Any 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: [...]… |
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_requestsends 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 thetools:rawscope; 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."
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.