mcp-google-sheets
by xing5·★ 864·Score 54
A production-ready MCP server for Google Sheets integration with comprehensive tool support and authentication options.
Overview
This MCP server provides a robust bridge between AI assistants and Google Sheets, enabling creation and modification of spreadsheets through a comprehensive set of 19 tools. It supports both Service Accounts and OAuth 2.0 authentication, with detailed setup instructions in the README. The server is actively maintained with recent commits and includes thoughtful features like tool filtering to reduce context usage. All tools are well-documented with clear parameter descriptions and return values.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you need comprehensive Google Sheets integration with an MCP client, especially if you're already using Google Workspace and need AI-driven spreadsheet automation.
When NOT to choose this
Avoid this if you need access to non-Google spreadsheet services or if you're concerned about Google API quotas and rate limits for heavy automation workflows.
Tools this server exposes
12 tools extracted from the READMElist_spreadsheetsLists spreadsheets in the configured Drive folder
create_spreadsheetCreates a new spreadsheet with the specified title
get_sheet_dataReads data from a range in a sheet/tab
update_cellsWrites data to a specific range in a sheet
add_rowsAdds empty rows to a sheet at a specified index
list_sheetsLists all sheet/tab names within a spreadsheet
create_sheetAdds a new sheet/tab to a spreadsheet
find_in_spreadsheetSearch for values in a spreadsheet
copy_sheetCopies an existing sheet within or between spreadsheets
share_spreadsheetShares a spreadsheet with specified users and roles
batch_update_cellsUpdates multiple ranges in one API call
get_multiple_sheet_dataFetches data from multiple ranges across different spreadsheets
Comparable tools
Installation
Quick Start
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# Set environment variables
export SERVICE_ACCOUNT_PATH="/path/to/your/service-account-key.json"
export DRIVE_FOLDER_ID="YOUR_DRIVE_FOLDER_ID"
# Run the server
uvx mcp-google-sheets@latestClaude Desktop Configuration
Add to Claude Desktop config.json:
{
"mcpServers": {
"google-sheets": {
"command": "uvx",
"args": ["mcp-google-sheets@latest"],
"env": {
"SERVICE_ACCOUNT_PATH": "/path/to/credentials.json"
}
}
}
}For tool filtering:
{
"mcpServers": {
"google-sheets": {
"command": "uvx",
"args": ["mcp-google-sheets@latest", "--include-tools", "get_sheet_data,update_cells,list_spreadsheets"],
"env": {
"SERVICE_ACCOUNT_PATH": "/path/to/credentials.json"
}
}
}
}FAQ
- How do I authenticate with Google Sheets?
- The server supports three authentication methods: Service Accounts (recommended), OAuth 2.0, and direct credential injection via environment variables. Detailed setup instructions are provided in the README.
- How can I reduce context window usage?
- Use tool filtering with either the --include-tools command-line argument or ENABLED_TOOLS environment variable to enable only the tools you need, reducing from ~13,000 tokens to just the required tools.
Compare mcp-google-sheets with
Last updated · Auto-generated from public README + GitHub signals.