If you're searching for "Google Sheets MCP", you're asking one of two things: does Google Sheets have an MCP server? or how do I connect Google Sheets to an AI assistant via the Model Context Protocol?
✅ Google Sheets has an official MCP server. Details in the setup section below.
What Is MCP?
Model Context Protocol (MCP) is an open standard developed by Anthropic that lets AI assistants — like Claude — connect to external tools, APIs, and data sources in a standardised way.
Before MCP, every AI integration required bespoke tooling: custom prompts, custom API wrappers, and custom glue code to pass context back and forth. MCP replaces that with a common interface: the AI asks the MCP server for data or actions, the server returns structured results, and the AI uses them to answer your question or complete a task.
In plain terms: MCP is how you give an AI assistant live access to Google Sheets — not just knowledge about it, but real, up-to-date data from your account.
What a Google Sheets MCP Integration Does
Once Google Sheets is connected via MCP, your AI assistant can:
- Read live data — pull records, metrics, activity, and status directly from Google Sheets
- Take actions — create, update, or log records based on your instructions
- Cross-reference context — combine Google Sheets data with other connected tools mid-conversation
The key difference from a standard chatbot: the assistant is not working from training data or memory. It is reading your actual Google Sheets instance, in real time.
Practical Google Sheets MCP Use Cases
Read and update records without switching tabs
The assistant can look up a page, task, or row in Google Sheets and return the relevant content — then write updates back — from inside your chat interface.
Meeting prep from project context
Before a standup or planning session, ask the assistant to summarise recent activity in Google Sheets and surface open blockers or overdue items.
Cross-tool status updates
The assistant pulls status from Google Sheets and formats it for a Slack message, an email, or a doc — without you needing to copy anything manually.
Google Sheets MCP: Real Configuration & Setup (as of 2026)
Google now ships a first-party, Google-hosted remote MCP server for Sheets, and almost none of the "Google Sheets MCP" guides you will find online describe it. That is the whole problem with this keyword. The SERP is dominated by three unrelated things that all call themselves a Google Sheets MCP server:
- Community stdio servers on GitHub (
mcp-gsheets,mcp-google-sheets, and friends). These run as a local process, authenticate with a service-account JSON key, and shell out to the Sheets API v4. This is what most tutorials document, and it still works. - Google's own remote server at
https://sheetsmcp.googleapis.com/mcp/v1, over Streamable HTTP, authenticated with OAuth 2.0 as the signed-in user. No key file, no local process, nonpxline in your config. - Aggregator pages that list both of the above without saying which is which, so people paste a Google endpoint into a stdio config and get a connection error.
They are not interchangeable. Picking the right one is the first decision on this page.

Google's official "Configure the Sheets MCP server" guide. The remote server is hosted by Google and speaks Streamable HTTP — there is no local install step.
Hosted Google server vs community stdio server
| Google Sheets MCP server (official) | Community stdio servers | |
|---|---|---|
| Transport | Streamable HTTP | stdio (local process) |
| Endpoint | https://sheetsmcp.googleapis.com/mcp/v1 |
none — you run the binary |
| Auth | OAuth 2.0, acts as the signed-in user | Service-account JSON key |
| Access model | Whatever the user can already open | Only files explicitly shared with the service account |
| Availability | Developer Preview Program required | Public, install today |
| Tools | 6 focused tools | 10–30 depending on the project |
| Unattended / scheduled use | Needs a refresh-token-capable client | Straightforward — a key file always works |
The short version: use Google's hosted server for interactive assistant work, and a service-account stdio server for scheduled jobs. A scheduled agent has nobody to click "Allow" on the OAuth consent screen, and that single constraint decides the architecture for most teams.
The enablement step everyone misses: two APIs, not one
Enabling sheets.googleapis.com is not enough. For the hosted server you must also enable the Google Sheets MCP API, sheetsmcp.googleapis.com, in the same Cloud project:
gcloud services enable sheets.googleapis.com --project=PROJECT_ID
gcloud services enable sheetsmcp.googleapis.com --project=PROJECT_ID
Skip the second call and the symptom is a connection that authenticates fine and then fails on the first tool call. It looks like a scopes problem. It is a disabled service.

The Workspace-wide MCP configuration guide. Sheets has its own server and its own MCP API, separate from Gmail, Drive, and Calendar.
OAuth client setup, with the trap that causes silent 401s
Google requires the OAuth client to be marked as an agent client. In Google Auth Platform → Clients, create a Web application client and select "Use this client for an AI-powered agent."
If you do not, requests to the MCP server are rejected — and this is the part that wastes an afternoon: Google's troubleshooting note says you cannot retroactively change this setting on an existing client. You must create a new client with the agent flag set and migrate the app to it. If that client also serves non-agent features, create a second client rather than reusing it.
Required scopes:
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/spreadsheets.readonly
https://www.googleapis.com/auth/spreadsheets
The drive scopes are not optional decoration — a spreadsheet is a Drive file, and the server needs Drive visibility to resolve a sheet the user pastes in as a URL or bare ID.
Redirect URIs by client: Antigravity https://antigravity.google/oauth-callback, Claude https://claude.ai/api/mcp/auth_callback. Claude requires an Enterprise, Pro, Max, or Team plan for custom connectors.
Client configuration
The config key is serverUrl — not url, not httpUrl:
{
"mcpServers": {
"sheets": {
"serverUrl": "https://sheetsmcp.googleapis.com/mcp/v1",
"oauth": {
"clientId": "OAUTH_CLIENT_ID",
"clientSecret": "OAUTH_CLIENT_SECRET"
}
}
}
}
For clients that take the connection through a UI (Claude, Antigravity), enter server name sheets, transport Streamable HTTP, and paste the client ID and secret into Advanced settings.
What the official server actually exposes
Six tools, and the small number is a feature — the tool list is short enough that a model picks correctly on the first try:
| Tool | What it does | Notes |
|---|---|---|
get_values |
Read cell values from a range | The workhorse; A1 notation |
get_spreadsheet |
Sheet names, grid properties, metadata | Call this first — models guess tab names otherwise |
update_values |
Write values into a range | Overwrites the target range |
update_formulas |
Write formulas as formulas | Keeps =SUM(...) evaluating instead of writing text |
update_spreadsheet |
Structural batch update | Insert/delete rows and columns, formatting batches |
insert_dimension |
Insert rows or columns at an index | Index-based, not A1-based — see the pitfall below |
The distinction between update_values and update_formulas is the one that matters in practice. Pasting a formula through a values write stores the literal string; a cell holding =SUM(B2:B9) as text is a spreadsheet that silently stops adding up.
Pitfalls that are specific to Google Sheets MCP
The hourly re-sign-in is a missing access_type=offline. If your client makes you re-authorise roughly every hour, it is not receiving a refresh token. Google only issues refresh tokens when the authorisation request carries access_type=offline — and requesting the OIDC offline_access scope alone is not sufficient. To force a new refresh token for a user who already granted access, add prompt=consent as well.
Addressing a spreadsheet needs the ID, not the URL. Models cheerfully paste https://docs.google.com/spreadsheets/d/.../edit#gid=0 into a tool call. The server wants the bare ID, and the #gid= fragment does not identify the tab — a tab is identified by its sheet name from get_spreadsheet. Ask for sheet metadata before any read; guessing "Sheet1" fails on every spreadsheet that renamed its tabs.
insert_dimension is zero-indexed and shifts formulas. Inserting a column at index 2 does not append it — it splices it in, and every range reference to the right of that point is rewritten by Sheets. A tracker read the next day will disagree with a report built twenty minutes earlier. Prefer appending columns at the end, and write the index the spreadsheet reports, not the one you assume.
Service-account sharing is per-file, not per-folder-inherited. If you go the community stdio route, a service account sees only files explicitly shared with its ...@...iam.gserviceaccount.com address. A file inside a shared Drive folder is not automatically visible. This is the single most common "the tool works but the sheet is empty" cause.
Sheets is not a database, and an agent will treat it as one. No row-level locking, no transactions, no uniqueness constraints. Two agents (or one agent plus a human) writing the same range overwrite each other with no conflict signal. Any workflow that appends rows should append to a blank region discovered at runtime, never to a fixed last-row number baked into a prompt.
Indirect prompt injection is the real risk here, and Google says so explicitly. A spreadsheet is user-supplied content. Google's own documentation warns that cells can carry hidden instructions that hijack a session with write access — and that this is the integrator's responsibility to mitigate, with Model Armor or an equivalent. Practical rule: read-only scopes for anything that summarises a sheet someone else created, and never let a summarisation workflow and a write workflow share one credential.
Developer Preview is not a production promise. The hosted server is gated behind the Google Workspace Developer Preview Program: read the program terms, submit the application form with your Workspace and Cloud project details, and get your account accepted before you plan anything around it. Do not build a client-facing process on a preview surface without a fallback.

Access to Google's hosted Workspace MCP servers requires Developer Preview Program membership. Applications are reviewed, so budget a lead time.
Five workflows where Sheets MCP actually earns its place
1. Tracker triage. "Read the Deals tab, list every row with no activity date in the last 14 days, and summarise them by owner." The assistant calls get_spreadsheet for the tab name, get_values for the range, and reasons over the rows. Works today, no writes, no risk.
2. Weekly rollup into a summary tab. "Append a row to the Weekly Summary tab with this week's totals from the Pipeline tab, running total in column E." This is where update_formulas matters — write the running total as a formula so it keeps computing next week.
3. Cross-sheet reconciliation. "Compare the invoice numbers in the Billing tab against the Paid tab and list what is in one but not the other." Something a human does by squinting at two screens for twenty minutes; well within an agent's tolerance for tedium.
4. Column hygiene and staleness. "Insert a column after Notes called 'Days Open', fill it with a formula from the Opened date, and flag anything over 30." A concrete insert_dimension plus update_formulas job — and one where you want a human to approve the write.
5. Content calendar into chat. "Summarise what is publishing this week from the Content tab and post the list." Read-only, no formula risk, immediate daily value.
Google Sheets MCP vs. a direct Sheets API proxy
If your needs are one or two fixed queries — "total this column every Monday" — a small proxy calling spreadsheets.values.get is still cheaper, more predictable, and easier to monitor than any MCP server. MCP earns its place when the question varies: when the tab, the range, and the shape of the answer change from day to day and you cannot enumerate the queries in advance. Sheets is a particularly good fit for that, because operational teams reshape trackers constantly and every reshape breaks a hardcoded report.
For the self-hosted path, see How to connect Google Sheets to OpenClaw — the service-account route, which is the one that survives a scheduled job. If you are wiring the rest of the Workspace surface, Google Workspace MCP covers the per-product server split, and Google Analytics MCP is the same pattern applied to measurement data.
Also read
- How to use Google Sheets with ChatGPT — the same spreadsheet, wired into a different assistant
- OpenClaw for Google Sheets — trackers, row lookups, and spreadsheet summaries from Slack
How to Connect Google Sheets via MCP
There are two main paths:
Option A: Use Google Sheets's official MCP server
Google Sheets maintains an official Google Sheets MCP server. This is the recommended starting point — it's built and maintained by the Google Sheets team, so it stays up to date with API changes.
Note: Google ships a first-party hosted remote MCP server for Sheets over Streamable HTTP, authenticated with OAuth 2.0 as the signed-in user (not a service-account key). Access requires Google Workspace Developer Preview Program membership, and the project must enable the separate Google Sheets MCP API (sheetsmcp.googleapis.com) in addition to the Sheets API. Community stdio servers remain the practical route for unattended or scheduled agents.
What the server exposes:
- read values
- read spreadsheet metadata
- update values
- update formulas
- structural batch updates
- insert rows and columns
What you'll need:
- An MCP-compatible client (Claude Desktop, OpenClaw, or another host)
- Google Sheets credentials configured per the server's setup guide
This path gives you the most control but requires you to handle client configuration and credential management yourself.
Option B: Use Cody (OpenClaw-based, managed)
Cody is built on OpenClaw and supports MCP-compatible integrations out of the box. You connect Google Sheets once from the Cody dashboard — no server to run, no code to write — and Cody handles authentication, context passing, and write-back actions with appropriate guardrails.
Cody works where your team already operates: Slack, Telegram, or the web chat. The Google Sheets connection is available to your entire team without each person setting up their own MCP client.
Want Google Sheets Connected to AI Without Running Your Own MCP Server?
Cody gives your team a Google Sheets assistant in Slack, so people can search tabs, summarise trackers, spot stale rows, update spreadsheets, and draft status notes without managing service accounts, spreadsheet IDs, or Sheets API glue.
MCP vs Other AI Integration Patterns
| Approach | What it is | Tradeoff |
|---|---|---|
| MCP | Standardised protocol for live tool access | Requires an MCP server; most powerful when set up correctly |
| RAG (retrieval) | Pre-index Google Sheets content and retrieve it | Good for static docs; not suitable for live/transactional data |
| Manual copy-paste | Paste Google Sheets output into ChatGPT/Claude | Fast to start; breaks for anything recurring or at scale |
| Custom API wrappers | Bespoke integration code per tool | Full control; high maintenance overhead |
MCP wins when you need live data from Google Sheets and want to avoid rebuilding integrations as APIs change.
Common Mistakes
- Using training data when live data is needed — if the AI doesn't have an MCP connection, it will answer from memory, which is often outdated or wrong for account-specific questions
- No write-back guardrails — MCP can write to Google Sheets, so it's worth adding an approval step for any action that modifies records
- Too many tools exposed at once — give the AI access to the Google Sheets actions it actually needs; a scoped connection is easier to reason about and audit
- Skipping structured outputs — ask the AI to return structured JSON or clear fields when writing back to Google Sheets; free-form output is harder to validate
Related MCP Guides
Want the full workflow picture? See: Google Sheets AI Automation and How to Connect Google Sheets to OpenClaw.