mcp-google-sheets-rw
Provides tools for interacting with Google Sheets, allowing AI agents to read and filter spreadsheet data, list sheets, write cell values, append rows, and update rows matching a query.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-google-sheets-rwSet Status to Approved in every row containing 'Acme'."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-google-sheets-rw
MCP server for Google Sheets with read AND write.
Works with any Google spreadsheet — trackers, CRMs, registries, or any Excel-style sheet living on Google.
Why another Google Sheets MCP?
Read without credentials. Any sheet shared by link is readable (gviz export) — no Google Cloud setup needed to start.
Server-side filtering.
queryfilters rows on the server, so you never dump the whole 500-row spreadsheet into the model's context.Write by human names. Address columns by header name and rows by content query — not by A1 notation.
update_by_query— the killer feature: "set Status = Rejected in every row containing Acme".Handles a title row above the header row automatically.
Lightweight: Bun + a single dependency.
Related MCP server: Google Sheets MCP Server
Tools
Tool | What it does |
| Read a sheet. Optional |
| List sheets of the spreadsheet (via API when a key is configured). |
| Set a cell: |
| Append a row to the end from a |
| Set |
Install
git clone https://github.com/Ap1-Pie/mcp-google-sheets-rw
cd mcp-google-sheets-rw
bun installConfigure the service account (writes; 10 minutes, one time)
Reading works out of the box for link-shared sheets. Writing needs a service account:
Open console.cloud.google.com and create a project.
APIs & Services → Library → enable Google Sheets API.
APIs & Services → Credentials → Create credentials → Service account (no role needed).
Open the account → Keys → Add key → JSON → download. Put the file next to the server as
service-account.json.Copy the service account email (looks like
xxx@yyy.iam.gserviceaccount.com).Share your spreadsheet with that email as Editor.
Configure your MCP client
{
"mcpServers": {
"gsheets": {
"command": "bun",
"args": ["/absolute/path/to/mcp-google-sheets-rw/src/gsheets-rw.ts"],
"env": {
"GSHEETS_SPREADSHEET_ID": "1AbC...your-spreadsheet-id",
"GSHEETS_SHEETS": "Sheet1",
"GOOGLE_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json"
}
}
}
}Env var | Meaning |
| Spreadsheet ID from its URL (required) |
| Comma-separated sheet names; the first is the default |
| Path to the service account JSON (optional; enables writes) |
Security
Never commit
service-account.json—.gitignorealready excludes it.Grant the service account access only to the specific spreadsheet it serves.
Reads go through the public gviz export; only share by link what you consider public-readable.
Keywords
mcp, google sheets, google excel, spreadsheet, read, write, model context protocol, agent, llm
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Query your Google Sheets as structured JSON: list sheets and tabs, read schemas, filter rows.
Connect AI assistants to Google Sheets through controlled tools for reading and updating rows.
Permissioned access to Gmail, Drive and Calendar via the user's own Google account
Composable APIs for document extraction, image transformation, and document & sheet generation.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables reading, writing, and managing Google Sheets documents with support for batch operations, formatting, charts, and conditional formatting through the Model Context Protocol.1,787 npmMIT
- AlicenseNot gradedqualityDmaintenanceExposes Google Sheets as queryable database tables with operations to list sheets, get schemas, and fetch rows with pagination. Designed to run as a Google Cloud Function with service account authentication.568 npmMIT
- FlicenseNot gradedqualityDmaintenanceEnables reading and writing Google Sheets using API key or service account, with support for public and authenticated access.-
- AlicenseBqualityBmaintenanceProvides tools for reading, modifying, and analyzing Google Sheets, as well as searching and managing Google Drive spreadsheets with access control.25MIT