Lists spreadsheets in the configured Drive folder (Service Account) or accessible by the user (OAuth)
Creates a new spreadsheet with the specified title
Reads data from a range in a sheet
Writes data to a specific range, overwriting existing data
Updates multiple ranges in one API call
Appends rows to the end of a sheet (after the last row with data)
Lists all sheet names within a spreadsheet
Adds a new sheet (tab) to a spreadsheet
Fetches data from multiple ranges across potentially different spreadsheets in one call
Gets titles, sheet names, headers, and first few rows for multiple spreadsheets
Shares a spreadsheet with specified users/emails and roles
Adds columns to a sheet
Duplicates a sheet within a spreadsheet
Renames an existing sheet
Google Sheets Integration provides a powerful bridge between AI assistants and Google Spreadsheets. It enables creating, reading, updating, and managing spreadsheets directly through natural language commands, making data manipulation and analysis more accessible. With comprehensive tools for spreadsheet operations including creating new sheets, updating cell data, batch operations, and sharing capabilities, this integration streamlines workflows for data management. The server supports multiple authentication methods, with service accounts being the recommended approach for the most seamless experience.
Google Sheets Integration allows AI assistants to interact with Google Spreadsheets, enabling powerful data manipulation and analysis through natural language. This MCP server acts as a bridge between MCP-compatible clients (like Claude Desktop) and the Google Sheets API.
Before using this integration, you need to set up Google Cloud Platform credentials and enable the necessary APIs:
The easiest way to run the server is using uvx
:
# Install uv if you haven't already
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Set the following environment variables:
# Linux/macOS
export SERVICE_ACCOUNT_PATH="/path/to/your/service-account-key.json"
export DRIVE_FOLDER_ID="YOUR_DRIVE_FOLDER_ID"
# Windows CMD
set SERVICE_ACCOUNT_PATH="C:\path\to\your\service-account-key.json"
set DRIVE_FOLDER_ID="YOUR_DRIVE_FOLDER_ID"
# Windows PowerShell
$env:SERVICE_ACCOUNT_PATH = "C:\path\to\your\service-account-key.json"
$env:DRIVE_FOLDER_ID = "YOUR_DRIVE_FOLDER_ID"
If you prefer OAuth authentication:
export OAUTH_CLIENT_SECRETS_PATH="/path/to/client_secrets.json"
Once authentication is configured, run the server:
uvx mcp-google-sheets
The first time you run with OAuth, you'll need to complete the authentication flow in your browser.
In Claude Desktop, add the MCP server configuration:
Once connected, you can ask Claude to perform various spreadsheet operations: