sheets-mcp
Enables Claude Desktop to read, write, and manage Google Sheets through natural language conversation using the Model Context Protocol.
README
Sheets MCP
Give Claude Desktop the ability to read, write, and manage Google Sheets — directly in conversation.
Overview
Claude has no built-in way to talk to Google Sheets. Sheets MCP is a small local server that sits between Claude Desktop and the Google Sheets/Drive APIs, speaking the Model Context Protocol so Claude can call it like any other tool.
Ask Claude things like:
"List my Google Sheets" "Read A1:D10 from my Budget spreadsheet" "Add a row to my Tasks sheet with today's date and 'Follow up with client'"
...and it actually happens, live, in your real spreadsheet.
How it works
You <──chat──> Claude Desktop <──MCP (stdio)──> Sheets MCP server <──REST──> Google Sheets / Drive API
Claude Desktop starts the server locally, sends it tool calls over stdio, and the server translates those into real Google API requests using a saved OAuth login.
Tools
| Tool | Description | Required arguments |
|---|---|---|
list_sheets |
Find spreadsheets by name | query (optional) |
read_range |
Read cell values from a range | spreadsheetId, range |
write_range |
Overwrite cell values in a range | spreadsheetId, range, values |
append_row |
Add row(s) to the end of a sheet | spreadsheetId, sheetName, values |
The spreadsheetId is the long string in a sheet's URL, between /d/ and /edit:
https://docs.google.com/spreadsheets/d/1XUqH2AumsmusdvsavsdvadsvewrvVAFAvEMcWzUmrlg/edit
└──────────── spreadsheetId ─────────────┘
In practice you can just ask Claude in plain English (e.g. "read my Budget sheet") and it'll use list_sheets to find the ID for you — you don't have to paste it yourself.
Prerequisites
- Node.js 18 or newer
- Claude Desktop already installed
- A Google account with access to the Sheets you want Claude to use
Setup
0. Clone this repo
git clone https://github.com/Luchitha7/sheets-mcp.git
cd sheets-mcp
1. Create Google OAuth credentials
All of this happens in Google Cloud Console, logged into the Google account you want Claude to access sheets as.
- Create a project — top-left project dropdown → New Project → name it (e.g.
sheets-mcp) → Create, then make sure it's selected as the active project. - Enable two APIs — use the top search bar to find and enable, one at a time:
Google Sheets APIGoogle Drive API(needed so the server can look up a spreadsheet by name, not just by ID)
- Set up the consent screen — left sidebar → Google Auth Platform → Branding (older docs may call this "OAuth consent screen," it's the same thing).
- User type: External (unless you're on a Google Workspace org)
- Fill in app name + your email, click through the wizard (Audience, Contact Information, Finish)
- On the Audience page, scroll to Test users → Add users → add your own Google account email. Skip this and Google will block your login later with an
access_deniederror, since unpublished apps only allow pre-approved accounts to sign in.
- Create the OAuth Client ID — left sidebar → Clients → Create OAuth client
- Application type: Desktop app (not "Web application" — a desktop app client is built for a local script doing its own login, not a website with a public redirect URL)
- Name it anything, e.g.
Sheets MCP Desktop, click Create
- Download the credentials — a popup shows a Client ID and Client Secret. If clicking "Download JSON" there doesn't produce a file (a known quirk), instead go to Clients → click your new client → use the download icon next to Client secret on its detail page.
- Save the downloaded file as
credentials/gcp-oauth-client.jsonin this project.
2. Install dependencies
npm install
3. Log in to Google (one-time)
npm run auth
This opens your browser to log in and grant access, then saves a token to credentials/token.json. You won't need to log in again unless access is revoked.
4. Connect it to Claude Desktop
Open Claude Desktop → Settings → Developer → Edit Config, and add this server under mcpServers (keep any existing entries in the file):
{
"mcpServers": {
"sheets-mcp": {
"command": "node",
"args": ["/absolute/path/to/sheets-mcp/server.js"]
}
}
}
Fully quit and reopen Claude Desktop. sheets-mcp should now appear under Settings → Developer → Local MCP servers.
Project structure
sheets-mcp/
├── server.js # The MCP server — exposes the 4 tools to Claude
├── auth.js # Shared OAuth login + token refresh logic
├── auth-setup.js # One-time login script (npm run auth)
├── credentials/ # gcp-oauth-client.json + token.json (gitignored)
└── package.json
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
access_denied during login |
App is in "Testing" mode | Add your Google account under Audience → Test users |
Drive API has not been used... |
Drive API not enabled on the project | Enable it in Google Cloud Console, wait a minute, retry |
| Server missing from Claude Desktop | Config not picked up | Fully quit and reopen Claude Desktop (not just close the window) |
| Login expired / revoked | Token no longer valid | Rerun npm run auth |
Security notes
credentials/gcp-oauth-client.jsonandcredentials/token.jsoncontain secrets and are gitignored — never commit or share them.- The server only requests the minimum scopes needed: read/write Sheets, and read-only Drive metadata (to list files).
License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.