Google Sheets MCP
MCP server by A1-x-Tech Community
Lets an AI assistant find, read, write, format and share Google Sheets spreadsheets through the Google Sheets API. Built for people who want to work with spreadsheets in plain language from their AI app.
Install Google Sheets MCP
Built from the published package, never by AI.
claude mcp add google-sheets-mcp -- npx -y @a1-x-tech/mcp-google-sheetsRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"google-sheets-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-sheets"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"google-sheets-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-sheets"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"google-sheets-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-sheets"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add google-sheets-mcp -- npx -y @a1-x-tech/mcp-google-sheets{
"mcpServers": {
"google-sheets-mcp": {
"args": [
"-y",
"@a1-x-tech/mcp-google-sheets"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add google-sheets-mcp npx -y @a1-x-tech/mcp-google-sheetsGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the google-sheets-mcp block.
About
Google Sheets MCP lets an AI assistant find, read and write Google spreadsheets through the Google Sheets API, using the user's Google account. It separates reads from writes, marks destructive tools so the AI client can ask first, and states the limits of the Sheets API. Tools cover ranges, sheets, formatting, data validation, protected ranges, conditional formats, tables, charts and sharing.
Setup can happen from the chat. The server walks the user through creating a Desktop app OAuth client, catches the Google redirect on 127.0.0.1 with PKCE and stores the tokens itself, so no config files or restart are needed. It suits people who want an assistant to update budgets, logs and reports in Google Sheets. Writes are not replayed after an ambiguous failure, to avoid duplicate rows.
Written from the project's README and checked against it.
Tools it gives your assistant
setup_instructionsPrints the checklist for creating the Google Cloud project and OAuth client.set_clientStores the path to the downloaded OAuth client file, readable by the owner only.start_loginReturns a Google consent link to open on the local machine.finish_loginExchanges the authorization code and saves the tokens to a local credentials file.auth_statusShows what is currently connected.get_spreadsheetReturns the structure of a spreadsheet and the sheet ids that structural tools need.append_valuesAdds rows after the last data row of a range.clear_valuesEmpties values and formulas while keeping formatting, validation, notes and merges.search_spreadsheetsSearches for spreadsheets in Google Drive, which needs a Drive scope.manage_permissionsChanges who can open or edit a file. It cannot transfer ownership.
What you need
- Node.js 20+
- A Google account
- A Google Cloud project with the Google Sheets API enabled
- A Desktop app OAuth client, since an API key is not enough
- Google Drive API, only for spreadsheet search and sharing
| Setting | Needed | What it is |
|---|---|---|
GOOGLE_Environment variable | Optional | Google OAuth2 client id (refresh-token flow). |
GOOGLE_Environment variable, secret | Optional | Google OAuth2 client secret (refresh-token flow). Treat it as a secret. |
GOOGLE_Environment variable, secret | Optional | Google OAuth2 refresh token, exchanged for access tokens automatically. Treat it as a secret. |
GOOGLE_Environment variable, secret | Optional | Static OAuth2 access token (~1h lifetime) — alternative to the refresh-token trio, mostly for testing. |
GOOGLE_Environment variable | Optional | Fixed port for the loopback listener of the in-chat login (127.0.0.1 + PKCE). Set it when the client runs over SSH port forwarding; otherwise a free port is picked per login. |
GOOGLE_Environment variable | Optional | Sheets API root override. Default: https://sheets.googleapis.com |
GOOGLE_Environment variable | Optional | Per-request timeout in milliseconds. Default: 60000 |
GOOGLE_Environment variable | Optional | Retries on transient errors (429 always; 5xx/network for reads). Default: 3 |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Find the newest budget spreadsheet and summarize each of its sheets.
- Append today's figures as a new row in the expense log.
- Give a colleague edit access and everyone else read-only.
Good to know
- Clearing values or deleting sheets, rows or columns has no undo through the API.
- Spreadsheet search and sharing need a Drive scope. Other tools need only the Sheets scope.
- raw_request is limited to the Sheets API origin and cannot reach Drive.
- Testing-mode OAuth refresh tokens can expire after seven days.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Google Sheets MCP
All alternatives →Agentmesh MCP Proxy is a security proxy for MCP servers, described by its publisher as a firewall for the Model Context Protocol. It is aimed at teams that run AI agents which call tools and other agents.
Hardens client-side artifacts such as binaries, Electron apps, JS bundles, Python and WebAssembly against AI reverse-engineering agents. Built for developers who ship proprietary logic to user-controlled devices.
Bla Agents is an MCP server and CLI that adds seeded, format-specific decoys to shipped binaries, JavaScript, WebAssembly and other artifacts. It is for developers who ship proprietary logic to user-controlled devices and want to make AI reverse-engineering slower.
A shared OAuth server for the MCP route of an app, built on better-auth, with passkey sign-in for the owner
Agent Governance Toolkit adds policy enforcement, identity, sandboxing and audit logging to autonomous AI agents. It is aimed at teams shipping agents to production. The source does not confirm the Claude Desktop MCP server named in the listing.
Convex MCP Gateway is a Convex component that exposes selected Convex functions as MCP tools. It checks each call with your own authorize callback and writes an audit log. It is for developers who run Convex apps and want AI assistants to call parts of them.
Compare with Agentmesh MCP Proxy, Bla or Bla Agents
Google Sheets MCP: common questions
Does Google Sheets MCP need an API key?
No. The source says Google Sheets requires OAuth 2.0 and an API key is not enough, so the user creates a Desktop app OAuth client in Google Cloud.
Can it delete data in my spreadsheets?
Yes. Clearing values and deleting sheets, rows or columns are destructive, have no undo through the API, and are marked so the AI client can ask first.
Can it move a spreadsheet into a folder?
The source says moving a new spreadsheet into a folder is not covered, since new files land in the My Drive root. manage_permissions also cannot transfer ownership.
How do I install Google Sheets MCP?
In Claude Code run claude mcp add google-sheets-mcp -- npx -y @a1-x-tech/mcp-google-sheets. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Google Sheets MCP the official server?
Google Sheets MCP is a community project by A1-x-Tech, not verified by a company domain.
Is Google Sheets MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Google Sheets MCP safe to use?
It scores 80 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Google Sheets MCP?
Similar MCP servers: Agentmesh MCP Proxy, Bla, Bla Agents, MCP Auth.
Does Google Sheets MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
