mcp-gsheets
MCP server by freema Community
Reads, writes and manages Google Sheets documents from MCP clients such as Claude Desktop, Claude Code and Cursor. It is built for users who want an AI assistant to work with spreadsheet data through the Google Sheets API.
Install mcp-gsheets
Built from the published package, never by AI.
claude mcp add mcp-gsheets -e GOOGLE_PROJECT_ID=YOUR_GOOGLE_PROJECT_ID -- npx -y mcp-gsheetsRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-gsheets": {
"env": {
"GOOGLE_PROJECT_ID": "YOUR_GOOGLE_PROJECT_ID"
},
"args": [
"-y",
"mcp-gsheets"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-gsheets": {
"env": {
"GOOGLE_PROJECT_ID": "YOUR_GOOGLE_PROJECT_ID"
},
"args": [
"-y",
"mcp-gsheets"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-gsheets": {
"env": {
"GOOGLE_PROJECT_ID": "YOUR_GOOGLE_PROJECT_ID"
},
"args": [
"-y",
"mcp-gsheets"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-gsheets --env GOOGLE_PROJECT_ID=YOUR_GOOGLE_PROJECT_ID -- npx -y mcp-gsheets{
"mcpServers": {
"mcp-gsheets": {
"env": {
"GOOGLE_PROJECT_ID": "YOUR_GOOGLE_PROJECT_ID"
},
"args": [
"-y",
"mcp-gsheets"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-gsheets npx -y mcp-gsheetsGemini 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 mcp-gsheets block.
About
mcp-gsheets is a Model Context Protocol server for the Google Sheets API. It lets an MCP client such as Claude Code, Claude Desktop, Cursor or Cline read, write and manage spreadsheets. The source lists tools for reading and writing values, appending rows, clearing ranges, inserting and deleting rows, and inserting links. It also mentions batch operations, formatting, charts and conditional formatting.
The server runs through npx and authenticates with a Google Cloud service account. Credentials can be supplied as a JSON key file, a JSON string, or a private key and client email. Each spreadsheet must be shared with the service account email with Editor access. The GSHEETS_TOOLSETS variable limits which tool groups are exposed, which reduces context cost. The project is written in TypeScript and is aimed at developers and users who want AI assistants to work with Google Sheets data.
Written from the project's README and checked against it.
Tools it gives your assistant
sheets_get_valuesReads cell values from a single range in A1 notation.sheets_batch_get_valuesReads cell values from multiple ranges in one request.sheets_get_metadataReturns title, locale, sheet list with IDs, and row and column counts.sheets_check_accessVerifies that the service account can access a spreadsheet.sheets_update_valuesWrites values to a single range, overwriting existing content.sheets_batch_update_valuesWrites values to multiple ranges in one request.sheets_append_valuesAppends rows after the last row of an existing table.sheets_clear_valuesClears all values in a range while preserving formatting.sheets_insert_rowsInserts blank or pre-filled rows at a specific position.sheets_delete_rowsDeletes one or more rows using a full-row A1 range.
What you need
- Node.js v22 or higher
- Google Cloud project with the Google Sheets API enabled
- Google Cloud service account with a JSON key
- npm
| Setting | Needed | What it is |
|---|---|---|
GOOGLE_Environment variable | Required | Google Cloud project ID |
GOOGLE_Environment variable | Optional | Path to service account key JSON file (auth method 1) |
GOOGLE_Environment variable, secret | Optional | Service account key as JSON string (auth method 2) |
GOOGLE_Environment variable, secret | Optional | Service account private key in PEM format (auth method 3) |
GOOGLE_Environment variable | Optional | Service account email (auth method 3) |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Read the values in Sheet1!A1:D20 from my budget spreadsheet.
- Append these three expense rows to the bottom of my tracking sheet.
- Show the sheet names and row counts in this spreadsheet.
Good to know
- Each spreadsheet must be shared with the service account email with Editor access.
- Setting GSHEETS_READ_ONLY=true removes all writing tools.
- With default settings, all 44 tools use about 9,900 tokens of context per session.
- sheets_update_values overwrites existing content in the target range.
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 mcp-gsheets
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
mcp-gsheets: common questions
Does this server need a Google service account?
Yes. The source says it authenticates with a Google Cloud service account, using a JSON key file, a JSON string, or a private key and client email.
Can I run it in read-only mode?
Yes. Setting GSHEETS_READ_ONLY=true drops every writing tool, and the restriction is enforced when a tool is called.
How do I limit which tools the assistant sees?
Set GSHEETS_TOOLSETS to a list such as core,charts. The core toolset is always included, and a typo in the name causes a startup error.
How do I install mcp-gsheets?
In Claude Code run claude mcp add mcp-gsheets -e GOOGLE_PROJECT_ID=YOUR_GOOGLE_PROJECT_ID -- npx -y mcp-gsheets. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-gsheets the official server?
mcp-gsheets is a community project by freema, not verified by a company domain.
Is mcp-gsheets free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp-gsheets safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality B. 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 mcp-gsheets?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does mcp-gsheets 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.
