Google Sheets MCP Server avatar

Google Sheets MCP Server

Pricing

Pay per event + usage

Go to Apify Store
Google Sheets MCP Server

Google Sheets MCP Server

Google Sheets MCP Server provides seamless access to Google Sheets API, enabling AI assistants to create, read, update, and manage Google Spreadsheets programmatically.

Pricing

Pay per event + usage

Rating

5.0

(1)

Developer

PowerAI

PowerAI

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Google Sheets MCP Server

The Google Sheets MCP Server provides seamless access to Google Sheets API, enabling AI assistants to create, read, update, and manage Google Spreadsheets programmatically. It simplifies integration of Google Sheets data into AI workflows and development environments.

About this MCP Server: To understand how to connect to and utilize this MCP server, please refer to the official Model Context Protocol documentation at mcp.apify.com.

Connection URL

MCP clients can connect to this server at:

https://powerai--google-sheets-mcp-server.apify.actor/mcp

Client Configuration

To connect to this MCP server, use the following configuration in your MCP client:

{
"mcpServers": {
"google-sheets": {
"url": "https://powerai--google-sheets-mcp-server.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN",
"X-Google-Client-Id": "your-google-client-id",
"X-Google-Client-Secret": "your-google-client-secret",
"X-Google-Refresh-Token": "your-google-refresh-token"
}
}
}
}

Headers 说明:

HeaderDescription
AuthorizationApify API token (required)
X-Google-Client-IdGoogle OAuth Client ID
X-Google-Client-SecretGoogle OAuth Client Secret
X-Google-Refresh-TokenGoogle OAuth Refresh Token

Note: The Google credentials (X-Google-* headers) are stored per-session and used for all tool calls within that session. These headers are only required on the initial connection request.

Environment Variables

This MCP server requires the following environment variables:

VariableDescription
GOOGLE_CLIENT_IDGoogle OAuth 2.0 Client ID
GOOGLE_CLIENT_SECRETGoogle OAuth 2.0 Client Secret
GOOGLE_REFRESH_TOKENGoogle OAuth 2.0 Refresh Token

Obtaining Google Credentials

  1. Go to the Google Cloud Console
  2. Create a new project or select an existing one
  3. Enable the Google Sheets API and Google Drive API
  4. Go to "Credentials" and create an OAuth 2.0 Client ID
  5. Set the redirect URI to http://localhost
  6. Generate a refresh token using the OAuth flow

Available Tools

ToolDescriptionDocumentation
google-sheets-create-spreadsheetCreate a new Google Spreadsheethttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/create
google-sheets-get-spreadsheetGet details of a Google Spreadsheethttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get
google-sheets-list-spreadsheetsList all accessible spreadsheetshttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/get
google-sheets-get-valuesGet values from a specific rangehttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get
google-sheets-update-valuesUpdate values in a rangehttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/update
google-sheets-append-valuesAppend values to a sheethttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append
google-sheets-clear-valuesClear values from a rangehttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/clear
google-sheets-add-sheetAdd a new sheet to a spreadsheethttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
google-sheets-delete-sheetDelete a sheet from a spreadsheethttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
google-sheets-rename-sheetRename a sheethttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
google-sheets-copy-sheetCopy a sheet to another spreadsheethttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/sheets/copyTo
google-sheets-batch-get-valuesGet values from multiple rangeshttps://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/batchGet

References

To learn more about Apify and Actors, take a look at the following resources: