MCP Google Sheets Server
Provides tools for reading, writing, and managing Google Sheets, including reading ranges, updating cells, appending rows, clearing ranges, and performing batch updates, enabling AI agents to automate spreadsheet workflows.
Click on "Install 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 Serverappend a row to my reading log with the book I just finished"
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 Server
Read, write, and manage Google Sheets from Claude Desktop, Claude Code, and any Model Context Protocol (MCP) compatible AI client.
A lightweight, production-ready Model Context Protocol (MCP) server that exposes the Google Sheets API to Claude and other LLM agents. Automate spreadsheet workflows, build AI agent tools that log to sheets, sync data pipelines with your team's spreadsheets, or let Claude edit a doc for you — all with a single MCP server.
Table of contents
Why
If you've wanted Claude to update a Google Sheet — a job-tracker, a habit log, a project dashboard — without switching windows, this server gives you the missing tool. It's the natural counterpart to Anthropic's official Google Drive MCP connector (which reads files but cannot write cells).
Common workflows:
Let Claude append rows to a job-application tracker sheet as you apply
Sync a research reading list, weekly retro, or IELTS study log
Give an AI agent structured, auditable output to a spreadsheet
Automate financial or ops dashboards from natural-language prompts
Features
✅ Read any range in A1 notation
✅ Update cell values with
RAWorUSER_ENTEREDparsing✅ Append rows to any sheet (ideal for logging)
✅ Clear ranges without deleting formatting
✅ Batch update multiple ranges in one call
✅ Inspect spreadsheet metadata (sheet tabs, dimensions)
🔐 OAuth 2.0 with local token storage and automatic refresh
📦 TypeScript, ES modules, minimal dependencies
🖥️ Works with Claude Desktop, Claude Code, and any MCP client over stdio
Quick start
# 1. Clone
git clone https://github.com/yangchoi/mcp-google-sheets.git
cd mcp-google-sheets
# 2. Install and build
npm install
npm run build
# 3. Put your Google Cloud OAuth credentials.json here
mkdir -p ~/.config/mcp-google-sheets
cp /path/to/downloaded-credentials.json ~/.config/mcp-google-sheets/credentials.json
# 4. Authorize (opens browser once)
npm run auth
# 5. Register with Claude — see belowSetup
1. Create a Google Cloud project
Open Google Cloud Console.
Click New Project → give it any name (e.g.,
mcp-sheets).
2. Enable the Sheets API
In your project, open Google Sheets API.
Click Enable.
3. Create OAuth 2.0 credentials
Open Credentials.
Click Create Credentials → OAuth client ID.
If prompted, configure the OAuth consent screen first:
User type: External (unless you're on a Workspace with Internal available)
Add yourself as a test user while the app is in
TestingmodeScopes can be left empty at the consent screen; the app will request them at runtime
Back at Create OAuth client ID:
Application type: Desktop app
Name: anything (e.g.,
mcp-google-sheets)
Click Download JSON and save it. This is your
credentials.json.
Move the file to the default config directory:
mkdir -p ~/.config/mcp-google-sheets
mv ~/Downloads/client_secret_*.json ~/.config/mcp-google-sheets/credentials.json(Or set GOOGLE_SHEETS_CREDENTIALS_PATH to point somewhere else — see Configuration.)
4. Install the server
git clone https://github.com/yangchoi/mcp-google-sheets.git
cd mcp-google-sheets
npm install
npm run build5. Authorize
Run the one-time OAuth flow. Your browser will open, you approve access to your own Sheets, and the resulting token is stored at ~/.config/mcp-google-sheets/token.json.
npm run authYou should see Authorization complete. Token saved. in the terminal.
Register with your MCP client
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) and add:
{
"mcpServers": {
"google-sheets": {
"command": "node",
"args": ["/absolute/path/to/mcp-google-sheets/dist/index.js"]
}
}
}Restart Claude Desktop. The Sheets tools will appear in the tool picker.
Claude Code
Add to your Claude Code MCP config (typically ~/.claude/settings.json under mcpServers):
{
"mcpServers": {
"google-sheets": {
"command": "node",
"args": ["/absolute/path/to/mcp-google-sheets/dist/index.js"]
}
}
}Restart Claude Code. Confirm the tools load via /mcp.
Available tools
Tool | Purpose |
| List sheet tabs and their dimensions. Call first to discover sheet names. |
| Read cell values in A1 notation. |
| Overwrite cells in a specific range. |
| Append one or more rows after the last row with data. |
| Clear values in a range without deleting formatting. |
| Update multiple ranges in a single API call. |
All tools take spreadsheetId (found in the sheet URL between /d/ and /edit).
Usage examples
Prompt Claude:
"Look at the spreadsheet
1abcXYZ...and add a new row to theApplicationssheet:Legora, Stockholm, Legal AI, 2026-08-18, pending."
Claude will call get_spreadsheet_metadata to find the sheet, then append_row with the values.
Or read + summarize:
"Read the first 20 rows of sheet
Applicationsin1abcXYZ...and tell me how many are still pending."
Claude calls read_range on Applications!A1:F20, then reasons over the returned array.
Configuration
Environment variables (all optional):
Variable | Default | Purpose |
|
| OAuth client credentials file. |
|
| Where the refresh token is stored. |
|
| Base directory used when the two paths above are unset. |
Security
credentials.jsonandtoken.jsonare local only and never transmitted anywhere except to Google's OAuth servers.Both files are covered by
.gitignore; do not commit them to version control.The server only requests the
spreadsheetsscope — no Drive-wide access, no Gmail, no calendar.Token refresh happens automatically; no long-lived access token is exposed.
Running the server does not require any network listening port at steady state (the temporary port
47319is used only during the initial OAuth callback and is closed immediately after).
Troubleshooting
credentials.json not found — you missed step 3–4. Check the path.
Error: access_denied during OAuth — your Google account is not listed as a test user on the OAuth consent screen. Go to OAuth consent screen → add your email under Test users.
insufficient permission when calling a tool — the token was created with a smaller scope. Delete token.json and re-run npm run auth.
Tool doesn't appear in Claude — confirm the path in your MCP config is absolute and points to dist/index.js (not src/index.ts). Ensure you ran npm run build.
No stored token at server startup — you skipped step 5. Run npm run auth.
Development
npm install
npm run dev # tsc --watch
npm run build # produces dist/
npm run start # runs dist/index.js on stdioContributions welcome. This is a minimal core; PRs for structural updates (spreadsheets.batchUpdate for formatting, sheet-add, filters, protected ranges) are appreciated.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Query your Google Sheets as structured JSON: list sheets and tabs, read schemas, filter rows.
233 tools for Google, Microsoft, TikTok, LinkedIn Ads in Claude or ChatGPT. Writes need approval.
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yangchoi/mcp-google-sheets'
If you have feedback or need assistance with the MCP directory API, please join our Discord server