google-sheets-mcp
MCP server for Google Sheets — read, write, append, and clear data in any spreadsheet using OAuth. Works with Claude Desktop and any MCP client.
Documentation
Google Sheets MCP
A Model Context Protocol (MCP) server that gives Claude (and other MCP clients) read/write access to any Google Sheet via OAuth.
Tools
| Tool | Description |
|---|---|
| `read_sheet` | Read data from any range in a spreadsheet |
| `write_sheet` | Write or update data in a spreadsheet |
| `append_rows` | Append new rows to a spreadsheet |
| `get_sheet_info` | Get sheet names, row counts, and column counts |
| `clear_range` | Clear a range of cells |
All tools accept a full Google Sheets URL or a bare spreadsheet ID.
Prerequisites
- Node.js 18+
- A Google account
- A Google Cloud project (free)
Setup
1. Clone the repo
git clone https://github.com/generalist-club/google-sheets-mcp.git
cd google-sheets-mcp
npm install2. Create a Google Cloud project & OAuth credentials
1. Go to Google Cloud Console
2. Create a new project (or select an existing one)
3. Enable the Google Sheets API and Google Drive API:
4. Create OAuth credentials:
5. Rename the downloaded file to `credentials.json` and place it in the project root
3. Authenticate
Run the auth script to generate your token:
node auth.jsIt will print a URL. Open it in your browser, authorize the app, then paste the code back into the terminal. This creates a `token.json` file locally — keep it secret.
> Token refresh: The server automatically refreshes the access token when it expires. You should only need to run `auth.js` once.
4. Configure Claude Desktop (or any MCP client)
Add this server to your Claude Desktop config at `~/Library/Application Support/Claude/claude_desktop_config.json`:
{
"mcpServers": {
"google-sheets": {
"command": "node",
"args": ["/absolute/path/to/google-sheets-mcp/index.js"]
}
}
}Replace `/absolute/path/to/google-sheets-mcp` with the actual path on your machine.
Restart Claude Desktop. The five Google Sheets tools will now be available.
Usage examples
Once connected, you can ask Claude things like:
- "Read the data from this spreadsheet: `https://docs.google.com/spreadsheets/d/...`"
- "Append a new row with today's date and 42 to Sheet1"
- "What sheets are in this workbook and how many rows does each have?"
- "Clear the range B2:D10 in my spreadsheet"
Security notes
- `credentials.json` and `token.json` are excluded from git via `.gitignore` — never commit them
- The OAuth token is stored locally and only grants access to your own Google account
- Scopes requested: `spreadsheets` (read/write) and `drive.readonly` (to resolve sheet metadata)
License
MIT
Frequently asked questions
What is google-sheets-mcp?
google-sheets-mcp is MCP server for Google Sheets — read, write, append, and clear data in any spreadsheet using OAuth. Works with Claude Desktop and any MCP client.
How do I install google-sheets-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is google-sheets-mcp open source?
Yes — it is hosted on GitHub at https://github.com/generalist-club/google-sheets-mcp.
Related MCP tools
Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients. JavaScript-based implementation.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Unity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
The go-to web for your AI coding agent — local-first search, fetch, crawl & research over MCP. No API keys, no cloud, $0/query. Public beta.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP