What mcp-google-sheets-full does
The mcp-google-sheets-full MCP server exposes Google Sheets and selected Google Drive operations to MCP clients. Its tools cover spreadsheet discovery, URL parsing, authentication status, metadata retrieval, range reads, multi-range reads, writes, appends, clears, and structural changes. Every operation requires an explicit spreadsheetId; the server does not select a hidden default spreadsheet.
A raw batch_update operation accepts Google Sheets API request objects for structural work that does not have a dedicated convenience tool. This can cover custom formatting, tab operations, borders, conditional-format requests, and other Sheets API request types, provided the caller supplies valid requests.
How it works
The mcp-google-sheets-full MCP server runs as a Node.js executable and communicates with an MCP client over its standard server configuration. Google Sheets API v4 and Drive API v3 clients are authenticated before operations run. OAuth is the default mode and acts as the configured user, while service-account mode is selected when GOOGLE_APPLICATION_CREDENTIALS is set.
The run_sheets_script tool provides an additional execution path for multi-step workflows, custom Drive actions, ad-hoc analysis, or API operations not covered by the other tools. The script receives authenticated sheets, drive, auth, and spreadsheetId variables. Assigning a value to result returns it to the caller. Scripts run through Node.js in a temporary file, which is removed after success or failure.
This execution path has a default two-minute timeout and a maximum timeout of ten minutes. It runs on the machine hosting the MCP server and uses the permissions of the configured Google credentials. The OAuth token is stored under the configured MCP directory rather than being sent outside the local server process.
Setup and configuration
Install the published executable with:
npm install -g mcp-google-sheets-full
For OAuth, enable the Google Sheets and Google Drive APIs, create a desktop OAuth client, and save its JSON file as gdrive-credentials.json in ~/.mcp-google-sheets/ on macOS or Linux, or the corresponding user directory on Windows. The first tool call opens a browser for consent; later calls reuse and refresh the saved token.
For headless or CI use, create a Google service-account JSON key and set GOOGLE_APPLICATION_CREDENTIALS to its path. Each spreadsheet must be shared with the service account email. The service-account mode does not use a browser or token file.
Set GSHEETS_CONFIG_DIR to change where OAuth credentials and tokens are stored. Claude Code can register the executable with claude mcp add google-sheets -- mcp-google-sheets-full; Claude Desktop uses a server entry with the executable as its command.
Tools and capabilities
The documented tool set includes:
auth_status for checking credential and token locations.
resolve_url for extracting a spreadsheet ID and tab ID from a Sheets URL.
list_spreadsheets and search_spreadsheets for Drive-based discovery.
get_spreadsheet for spreadsheet and tab metadata.
get_values and batch_get_values for reading ranges.
update_values, batch_update_values, append_values, and clear_values for value changes.
batch_update for raw structural Sheets API requests.
run_sheets_script for custom Node.js workflows using authenticated API clients.
The mcp-google-sheets-full MCP server supports user OAuth without per-spreadsheet setup, provided the Google account can access the target file. Service accounts instead see only files explicitly shared with their bot identity.
Limitations and notes
run_sheets_script is code execution on the host running the MCP server. It should be treated with the same trust considerations as tools that let an agent execute local code. Its access is constrained by the configured Sheets and Drive OAuth scopes, but it can perform any operation available through those authenticated clients.
The service account must be granted access to each spreadsheet separately; valid credentials alone do not provide access. OAuth setup requires a browser on the first authorization. If an OAuth refresh token is revoked, removing gdrive-token.json triggers authorization again on the next call.
The server does not provide a default spreadsheet context. Callers must supply spreadsheetId explicitly, including when using the scripting escape hatch.