Is the Google Sheets MCP server safe? What it can reach
What the Google Sheets MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
Google runs an official remote Sheets MCP server at sheetsmcp.googleapis.com. It signs in with OAuth 2.0 and acts with your own Google account’s access to spreadsheets. It can edit cells, formulas and sheet structure. The control that matters most is choosing the read-only OAuth scopes when you set up the client.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| Google Sheets MCP server (Google, hosted) | Official | active |
It runs as a hosted remote server. The documented endpoint is https://sheetsmcp.googleapis.com/mcp/v1.
How it signs in
OAuth 2.0 with a client you create in Google Cloud and mark as an AI-powered agent. The server inherits the signed-in user’s permissions and data governance controls.
| Scope or permission | Access |
|---|---|
https://www.googleapis.com/auth/spreadsheets.readonly | read |
https://www.googleapis.com/auth/drive.readonly | read |
https://www.googleapis.com/auth/spreadsheets | write |
https://www.googleapis.com/auth/drive.file | write |
What its tools can do
| Kind | Tools |
|---|---|
| Read | get_values, get_spreadsheet |
| Write | update_values, update_formulas, insert_dimension |
| Can’t be undone | update_spreadsheet |
Google’s reference lists names only, with no descriptions or annotations. update_spreadsheet is placed in destructive because Google warns that the assistant can modify and delete data; check tools/list for exact behavior. A second endpoint, /mcp/v1self, exposes the same six tools.
Built-in limits
| Option | What it does |
|---|---|
Read-only scopes | Request only spreadsheets.readonly and drive.readonly when you do not need edits. They are offered separately from the read and write scopes. |
Custom setup | Enable only the APIs, MCP services and scopes you need, instead of the quick personal setup. |
Internal audience | Choose Internal on the consent screen when possible; with External, add specific test users. |
Separate OAuth client | Use a dedicated client for the AI agent if an existing client serves non-agent features. |
Admin logs | Workspace administrators can review OAuth log events in the security investigation tool. |
The risks
- A spreadsheet from an outside source can hold hidden instructions in a cell, and Google warns this indirect prompt injection could lead to your data being modified or deleted.
- update_spreadsheet and update_values can overwrite formulas and data in any sheet the token reaches, so check Sheets’ version history after a session.
- Cell contents returned by get_values go to your AI client and its model provider, so anything in the sheet can leave Google.
- Static bearer tokens made with gcloud work for one hour and carry the full user’s access if they leak.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add --transport http googlesheets https://sheetsmcp.googleapis.com/mcp/v1Claude Code names MCP tools mcp__googlesheets__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__googlesheets__update_spreadsheet"
],
"ask": [
"mcp__googlesheets__update_values",
"mcp__googlesheets__update_formulas",
"mcp__googlesheets__insert_dimension"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.googlesheets]
url = "https://sheetsmcp.googleapis.com/mcp/v1"
disabled_tools = ["update_spreadsheet"]Checklist
- Request the readonly scopes first and add write scopes only when needed.
- Do not point the agent at spreadsheets from unverified sources.
- Use a separate OAuth client and an Internal audience.
- Review edits in version history after each session.
Checked against the vendor documentation on November 25, 2026. Configure the Sheets MCP server (Google) · MCP reference: sheetsmcp.googleapis.com (Google)
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing