Basic information
About Google Sheets MCP Server
Integrate with Google Sheets and Google Drive to manage spreadsheets easily using the Google Sheets API and advanced authentication methods.
Google Sheets is a MCP server in the Productivity category listed in the AddMCP.net directory, published by xing5. It exposes 3 tools, including Discovery:, Reading:, Writing:. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 934 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, google, mcp, mcp-server.
Connection details
https://gateway.pipeworx.io/google_sheets/mcp
Setup
claude mcp add mcp-google-sheets --transport http https://gateway.pipeworx.io/google_sheets/mcp
[mcp_servers.mcp-google-sheets] url = "https://gateway.pipeworx.io/google_sheets/mcp"
{
"mcpServers": {
"mcp-google-sheets": {
"url": "https://gateway.pipeworx.io/google_sheets/mcp"
}
}
}
{
"servers": {
"mcp-google-sheets": {
"type": "http",
"url": "https://gateway.pipeworx.io/google_sheets/mcp"
}
}
}
Google Sheets MCP Server — by xing5 config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"google-sheets": {
"command": "uvx",
"args": [
"mcp-google-sheets@latest"
],
"env": {
"SERVICE_ACCOUNT_PATH": "/full/path/to/your/service-account-key.json",
"DRIVE_FOLDER_ID": "your_shared_folder_id_here"
}
}
}
}
Google Sheets MCP Server — by xing5 tools
- Discovery: — `list_spreadsheets`, `search_spreadsheets`, `list_folders`, `list_sheets` and `get_multiple_spreadsheet_summary` find files and preview titles, tabs, headers and the first rows.
- Reading: — `get_sheet_data` reads a range in A1 notation (optionally with full grid data and formatting), `get_sheet_formulas` returns formulas instead of values, and `get_multiple_sheet_data` reads several ranges across spreadsheets in one call. `find_in_spreadsheet` is also available.
- Writing: — `update_cells` overwrites a range, `batch_update_cells` writes many ranges at once, `add_rows` and `add_columns` insert empty rows or columns, and `batch_update` is exposed for broader updates.
Overview
What is Google Sheets?
Google Sheets MCP Server (mcp-google-sheets) is an open-source Python MCP server that connects Claude, Cursor and other MCP clients to the Google Sheets and Google Drive APIs, so an AI assistant can list, read, write, share and chart spreadsheets.
It is a community project by xing5 (MIT license), published on PyPI as mcp-google-sheets and launched with a single uvx command. It is not made by Google. The server does not store your data: every operation goes through the official Google Sheets and Drive APIs using credentials you control.
How to use Google Sheets?
Prerequisites
- A Google Cloud project with the Google Sheets API and Google Drive API enabled (APIs & Services → Library).
- Credentials. The README recommends a service account: create one under IAM & Admin → Service Accounts, download a JSON key, then create a Google Drive folder and share it with the service account's
client_emailas Editor. Note the folder ID from its URL (https://drive.google.com/drive/folders/<FOLDER_ID>). uvinstalled, which providesuvx:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Environment variables
| Variable | Method | Purpose | |:--|:--|:--| | SERVICE_ACCOUNT_PATH | Service account | Path to the JSON key file | | DRIVE_FOLDER_ID | Service account | ID of the Drive folder shared with the service account | | CREDENTIALS_PATH / TOKEN_PATH | OAuth 2.0 | OAuth client JSON and where to store the token (defaults credentials.json / token.json) | | CREDENTIALS_CONFIG | Either | Base64-encoded credentials JSON, useful in Docker or CI | | GOOGLE_APPLICATION_CREDENTIALS | ADC | Google's standard Application Default Credentials path |
The server checks CREDENTIALS_CONFIG, then SERVICE_ACCOUNT_PATH, then CREDENTIALS_PATH, and finally falls back to Application Default Credentials. Test it from a terminal first:
export SERVICE_ACCOUNT_PATH="/path/to/your/service-account-key.json"
export DRIVE_FOLDER_ID="YOUR_DRIVE_FOLDER_ID"
uvx mcp-google-sheets@latest
The README recommends always using @latest; without it uvx may run a cached older version.
Claude Desktop
Add this to claude_desktop_config.json:
{
"mcpServers": {
"google-sheets": {
"command": "uvx",
"args": ["mcp-google-sheets@latest"],
"env": {
"SERVICE_ACCOUNT_PATH": "/full/path/to/your/service-account-key.json",
"DRIVE_FOLDER_ID": "your_shared_folder_id_here"
}
}
}
}
For OAuth instead, replace the env block with CREDENTIALS_PATH and TOKEN_PATH; a browser window opens for Google login on first use. On macOS, if you see spawn uvx ENOENT, set command to the full path, for example /Users/yourusername/.local/bin/uvx.
Claude Code
Register the same command with the Claude Code CLI:
claude mcp add google-sheets \
-e SERVICE_ACCOUNT_PATH=/full/path/to/your/service-account-key.json \
-e DRIVE_FOLDER_ID=your_shared_folder_id_here \
-- uvx mcp-google-sheets@latest
Cursor
Put the same mcpServers JSON block shown for Claude Desktop into ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project).
Key features of Google Sheets
- Direct integration with the Google Sheets API and Google Drive API.
- Read and write tools for cell values, formulas, rows, columns and tabs, including batch reads and writes.
- Spreadsheet management: create, list, search, copy, rename and share with
reader,commenterorwriterroles. - Chart creation (column, bar, line, area, pie, scatter, combo, histogram) through
add_chart. - Four authentication methods: service account, OAuth 2.0, Base64 credential injection, and Application Default Credentials.
- Tool filtering with
--include-toolsorENABLED_TOOLSto cut the roughly 13K tokens the full tool set uses. - Zero-install launch via
uvx, plus a Dockerfile for SSE deployments. - An MCP resource,
spreadsheet://{spreadsheet_id}/info, for basic spreadsheet metadata.
Google Sheets tools
- Discovery:
list_spreadsheets,search_spreadsheets,list_folders,list_sheetsandget_multiple_spreadsheet_summaryfind files and preview titles, tabs, headers and the first rows. - Reading:
get_sheet_datareads a range in A1 notation (optionally with full grid data and formatting),get_sheet_formulasreturns formulas instead of values, andget_multiple_sheet_datareads several ranges across spreadsheets in one call.find_in_spreadsheetis also available. - Writing:
update_cellsoverwrites a range,batch_update_cellswrites many ranges at once,add_rowsandadd_columnsinsert empty rows or columns, andbatch_updateis exposed for broader updates. - Structure and sharing:
create_spreadsheet,create_sheet,copy_sheet,rename_sheetandshare_spreadsheetmanage files and access;add_chartbuilds charts from a data range.
The README's recommended minimal subset is get_sheet_data, update_cells, list_spreadsheets and list_sheets.
Use cases of Google Sheets
- Reporting: "Create a new spreadsheet titled 'Quarterly Sales Report Q3' and add a 'Summary' sheet."
- Data lookup: "In the 'Quarterly Sales Report' spreadsheet, get the data from Sheet1 range A1 to E10 and summarize the trend."
- Task tracking: "In my 'Project Tasks' spreadsheet, sheet 'Tasks', update cell B2 to 'In Progress'."
- Logging from an agent: append rows of results to a 'Log' sheet as Claude Code finishes steps of a job.
- Sharing: "Share the 'Team Vacation Schedule' spreadsheet with [email protected] as a reader and don't send notifications."
- Charts: "Create a column chart in my 'Sales Report' spreadsheet showing monthly revenue from A1:B13."
Frequently asked questions
1 Is there an official Google Sheets MCP server from Google?
This server is a community project by xing5, not a Google product. It talks to Google's official Sheets and Drive APIs using your own credentials.
2 Is the Google Sheets MCP server free?
Yes. mcp-google-sheets is open source under the MIT license. You only need a Google Cloud project, and normal Google API quotas apply.
3 Do I need an API key?
No API key in the usual sense. You authenticate with a service account JSON key (recommended), an OAuth 2.0 client, Base64 credentials in CREDENTIALS_CONFIG, or Application Default Credentials.
4 Does it work with Claude Code, Cursor and VS Code?
It is a standard stdio MCP server, so any MCP client that can launch uvx mcp-google-sheets@latest can use it, including Claude Desktop, Claude Code and Cursor. The README's own examples target Claude Desktop.
5 Can I run it remotely?
Yes. The included Dockerfile runs the server with SSE transport on a configurable host and port; use CREDENTIALS_CONFIG to pass credentials into the container.
6 Which spreadsheets can the AI access?
With a service account, only spreadsheets in folders or files shared with that account. With OAuth, whatever your Google account can access, so grant the narrowest scope that fits your use.
7 How do I reduce token usage?
All tools are enabled by default (about 13K tokens). Pass --include-tools get_sheet_data,update_cells,list_spreadsheets,list_sheets or set ENABLED_TOOLS to expose only what you need.
8 Where is my spreadsheet data stored?
It stays in Google Drive and Google Sheets. The server only relays requests to the Google APIs and does not keep a copy.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In